# Physical-phone repair recovery

The 31 October internal eight-second test completed a real phone render and
FFmpeg assembly, but its first independent review failed. The output showed
separate foreground geometry competing with the generated raster subject.
The repair planner received findings without the actual modules or artwork and
returned no supported repair. Narration timing described in free text also
never reached the audio builder.

The repair protocol now supplies checksum-verified project dependencies,
original raster images, complete scene and runner source, native-image receipts,
generated audio receipts, original phone result/snapshot and decoded output
frames. A separate output review receives the same production method evidence.
Method evidence never substitutes for visual quality or listening.

`narrationWindow: {"start": 0.3, "end": 3.5}` is an optional scene property.
Its times are local seconds and must lie inside the scene's output interval,
excluding an outgoing transition overlap. Both audio generation and audio
verification use this field. Omitting it preserves the historical full-scene
schedule. A timing change requires an audio/text repair scope.

Repair plans are validated before dispatch: scene IDs/durations stay fixed,
image prompts and narration cannot change outside their declared scopes, and
unaffected components retain their original hashes. Code generation receives
the actual raster to avoid composing an unrelated duplicate subject over it.

Historical provider stages and rejected outputs remain intact. An explicitly
resumed, completed empty legacy repair can use a new hash-bound v2 stage.
An unfinished legacy invocation keeps its original identity and inputs.
The same application job resumes; successful artwork is not regenerated merely
because checking or repair failed.

Regression tests are in `tests/test_production_repair.py`. Real integration
outcomes and limitations are retained separately under `evidence/`; unit tests
do not establish phone execution, reference fidelity or human approval.

Native replay is isolated in a child frame so production readiness cannot mark
the diagnostic ready prematurely. Phone heartbeats persist reports against the
exact immutable snapshot and diagnostic request, retaining them after telemetry
changes. A known pixel mismatch is a quality failure for repair, not a permanent
exception. Diagnostic terminal retries use the same explicit resume-token limits
as production rendering.

The CLI timeout supervisor stops its process group and records uncertain remote
provider outcome, preventing blind resubmission. Per-clip speech receipts survive
worker/supervisor failure. Completed local/provider stages retain their original
context across software upgrades.
