## 2026-10-09T06:30:57Z
You are Worker 2 for Milestone M3 Iteration 2 (Pipeline & Character Remediation).

Your working directory is: c:\Projects\KieuStory\.agents\teamwork\worker_m3_remediation_2

MANDATORY FIRST STEP:
Read c:\Projects\KieuStory\.agents\teamwork\ORIGINAL_REQUEST.md completely. Do not skip this.
Read c:\Projects\KieuStory\.agents\teamwork\orchestrator_1\PROJECT.md.

MANDATORY AUDIT & CHALLENGE EVIDENCE:
Read the full handoff reports from Iteration 1 Gate:
- Challenger 1 Report: c:\Projects\KieuStory\.agents\teamwork\challenger_m3_1\handoff.md
- Challenger 2 Report: c:\Projects\KieuStory\.agents\teamwork\challenger_m3_2\handoff.md
- Test Probe: tests/test_m3_challenger1_probe.py

MANDATORY INTEGRITY WARNING:
DO NOT CHEAT. All implementations must be genuine. DO NOT hardcode test results, create dummy/facade implementations, or circumvent the intended task. A teamwork_preview_auditor will independently verify your work. Integrity violations WILL be detected and your work WILL be rejected.

EXCLUSIVE WRITE OWNERSHIP:
- c:\Projects\KieuStory\05_Production_Pipeline\production_orchestrator.py
- c:\Projects\KieuStory\05_Production_Pipeline\run_shot.py
- c:\Projects\KieuStory\05_Production_Pipeline\antigravity_critic_gate.py
- c:\Projects\KieuStory\episodes\ep01\prompts\muse_prompts.json
- c:\Projects\KieuStory\02_AI_Prompts\gemini_banana_prompts.json
- c:\Projects\KieuStory\tests\test_m3_challenger1_probe.py
- READ-ONLY: 04_Assets/characters/ (DO NOT MODIFY OR DELETE)
- PRESERVE: 04_Assets/archive/ep01_legacy_v1/ (DO NOT MODIFY OR DELETE)

TASKS TO EXECUTE IN EXACT ORDER:
1. Fix Scene 03 Thúy Vân Face Leakage:
   - In episodes/ep01/prompts/muse_prompts.json:
     * ep01_scene03_shot05: change character_asset_ref from thuy_kieu_maiden_16yo_720p.png to 04_Assets/characters/01_Main_Protagonists/thuy_van_maiden_16yo_720p.png.
     * ep01_scene03_shot03: set character_asset_ref to 04_Assets/characters/01_Main_Protagonists/thuy_van_maiden_16yo_720p.png.
   - In 02_AI_Prompts/gemini_banana_prompts.json:
     * ep01_scene03_shot03: change character_anchor from thuy_kieu_maiden to thuy_van.
   - In 05_Production_Pipeline/production_orchestrator.py:
     * In resolve_start_frame: decouple room headers from character focus. Separate title into room header and shot action (e.g. after " - " or "Shot {N}:") so room headers like "KHUÊ PHÒNG THÚY KIỀU & THÚY VÂN" do not falsely deactivate title_tv_only when the shot action is focused on Thúy Vân.
   - Run python 05_Production_Pipeline/episode_manager.py --sync-to-master.
   - In tests/test_m3_challenger1_probe.py: unmark xfail on test_empirical_defect_scene03_thuy_van_shots_leak_thuy_kieu.

2. Fix Audio Guard on 4 Prologue Prompts:
   - In episodes/ep01/prompts/muse_prompts.json: update prologue_shot_1_lang_que_198x, prologue_shot_2_ngam_kieu, prologue_shot_3_xuyen_khong, and prologue_shot_4_gia_tinh_trieu_minh to include the full canonical Audio Guard:
     " Quy tắc âm thanh: Tuyệt đối KHÔNG sinh nhạc nền (no music/BGM), không âm thanh điện tử, không tạp âm rè nhiễu. Chỉ sinh âm thanh môi trường tự nhiên (foley, ambience) và thoại nhân vật chân thực."
   - Run python 05_Production_Pipeline/episode_manager.py --sync-to-master.

3. Fix MUSE_DRY_RUN Synthetic Video Generator in run_shot.py:
   - In run_shot_pipeline dry_run mode: replace static solid navy blue bar (color=c=0x1a2b3c) with a dynamic video pattern that provides inter-frame pixel differences across the 10 seconds (e.g. FFmpeg lavfi testsrc=duration=10:size=1280x720:rate=24 or color with moving counter overlay).
   - Verify that evaluate_shot_gate evaluates dry-run videos as not frozen (max_diff >= 0.8), approving them with score >= 0.80 and allowing dry-run batch renders to complete.

4. Close Scene Gate Concat Hole in production_orchestrator.py:
   - In concat_scene_shots: change line 928 so that if not scene_verdict.approved, concatenation is aborted and returns None.

5. Fix Async Coroutine Warning in antigravity_critic_gate.py:
   - In AntigravitySDKEngine.evaluate_shot: properly execute agent.chat(inputs) using an async runner (e.g. asyncio.run() or running event loop) to eliminate the unawaited coroutine warning.

6. Run Full Verification Test Suites:
   - python -m pytest tests/test_m3_challenger1_probe.py -v (10/10 PASS)
   - python -m pytest tests/test_production_pipeline_m3.py -v (16/16 PASS)
   - python -m pytest tests/test_critic_gate.py -v (30/30 PASS)
   - python -m pytest tests/test_m2_hygiene.py -v (6/6 PASS)
   - python -m pytest tests/test_m1_challenger2_probe.py -v (41/41 PASS)
   - pytest tests/test_tier1_features.py -k "not test_render" -v (65/65 PASS)
   Capture verbatim outputs demonstrating 100% tests PASS across all suites without regressions.

7. Output your detailed handoff report to c:\Projects\KieuStory\.agents\teamwork\worker_m3_remediation_2\handoff.md and notify parent orchestrator.
