# Studio 영상 제작 실행기 (pipeline)

설계: `scratch/bmad-studio-check/_bmad-output/planning-artifacts/video-pipeline/` 의 PRD.md, ARCHITECTURE.md, stories.yaml (E0~E8).

## 지금 되는 것 (2026-11-17, E0~E2)
```
python studio_run.py plan <storyboard.json> <출력 폴더> --work mugi-yeo  # 스토리보드 → job.json 변환, 0크레딧
python studio_run.py check <에피소드 폴더>   # job.json 검사, 0크레딧
python studio_run.py quote <에피소드 폴더>   # 캔버스 준비·노드 저장·견적, 0크레딧 → quote.json
python -m unittest tests.test_job -v          # 검사 규칙 테스트 7개
```
- 예시: `examples/coffee-v2/` (통과, 7/8/6초 = 273크레딧), `examples/coffee-v2-original/` (v2 원래 5/6/5초 → 여유 부족으로 3컷 거부)
- 인물: `apps/studio/works/<작품>/elements.json` (얼굴·목소리 리소스 ID). 캔버스마다 Element를 0크레딧으로 다시 만든다.
- CLI 계약: `contracts/` (schema 해시, help, E0_RESULT.md)

## 안전장치
- `engine/dreamina.py`가 `confirm`·`run`·`promote`·`upscale`·`interpolate`·`delete`·`--yes`를 기본 차단한다. 지출 경로는 E3에서 `--ceiling` 승인과 함께만 연다.
- `state.json`: 캔버스, 업로드 캐시(해시), Element, 컷 노드, 사양 해시. 같은 사양이면 다시 만들지 않는다. 이미 제출된 컷의 사양을 바꾸면 거부한다.

## 다음
E3 run/resume (💳 승인 필요) → E4 post → E5 edit → E6 judge/review → E7 elements → E8 무기여 종단 검증
