{
  "version": "p12_shot_context_reentry_planning.v1",
  "created_at": "2026-05-31T22:16:12.197436Z",
  "phase": "P12_shot_context_reentry_planning_contract",
  "project_root": ".",
  "output_run_dir": "outputs/p12_shot_context_reentry_planning_20260601_061609",
  "source_artifacts": {
    "p12_contract": {
      "path": "docs/p12_shot_context_reentry_planning_contract_20260531.md",
      "sha256": "94da44a4fb5f11c92ed0bd91684ec12fb676481b57effd7cd54f6eeb7904c68b",
      "size_bytes": 7831,
      "exists": true
    },
    "p11_closeout_retrospective": {
      "path": "docs/p11_closeout_retrospective_20260531.md",
      "sha256": "d5107b84885e4d0407295e85ed00adf34d963876abf76152b7725c9ac593a5df",
      "size_bytes": 12391,
      "exists": true
    },
    "p11_gate": {
      "artifact": "P11_shooting_script_gate.json",
      "path": "outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_gate.json",
      "exists": true,
      "size_bytes": 10585,
      "sha256": "ddaa7538a6b5fea8c86e7240b1d9a1bf4ba130926f688ba7b3a39f25b5a2f3a1"
    },
    "p11_validator": {
      "artifact": "P11_shooting_script_validator_report.json",
      "path": "outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_validator_report.json",
      "exists": true,
      "size_bytes": 5940,
      "sha256": "6f4e12f1e138c75936e33dc4a93daec3ce1eb6e6107201e0551fc98c1b9548df"
    },
    "p11_execution_input": {
      "artifact": "P11_shooting_script_execution_input.json",
      "path": "outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_execution_input.json",
      "exists": true,
      "size_bytes": 35951,
      "sha256": "8afda7d9baa33db530e15421dab38973c6bfa159926430fc6354c9d32b9fc0df"
    },
    "p11_shooting_script": {
      "artifact": "P11_shooting_script.json",
      "path": "outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script.json",
      "exists": true,
      "size_bytes": 45637077,
      "sha256": "6dadc619d2bc1da0a64f2224ca1540e0d3cfbde602ac99b84958f5ef55338917"
    },
    "p11_rows": {
      "path": "outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_rows.jsonl",
      "exists": true,
      "sha256": "b9bf6b47bbbeaf98b1b6495aab334f01a33808a238533110401e4e1824a0ebe9",
      "size_bytes": 33699534
    },
    "p11_sequence": {
      "path": "outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_sequence_index.jsonl",
      "exists": true,
      "sha256": "5f8e6c45367c5815631e67300c6e1cb7cc532f57f4d221b98cc1f7d81152fa2a",
      "size_bytes": 3887090
    },
    "p11_queue": {
      "path": "outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_dependency_queue.jsonl",
      "exists": true,
      "sha256": "1f5d6d5fdba2d765a96eb9782e045bb65e63a965a4ad209ee2def5ddde54ce6f",
      "size_bytes": 4707
    },
    "p11_manifest": {
      "artifact": "manifest.json",
      "path": "outputs/p11_shooting_script_fresh_execution_20260531_145346/manifest.json",
      "exists": true,
      "size_bytes": 5367,
      "sha256": "fe45972c1d9fe3b3965ef239fa8ee70a311202adec4258c9108fc26944a67faa"
    },
    "p11_program_validation": {
      "artifact": "P11_shooting_script_program_validation.json",
      "path": "outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_program_validation.json",
      "exists": true,
      "size_bytes": 6289,
      "sha256": "512b4bf23030a2bc3a439abb4f2552f5c7c827ee10abab85d17a072140efaf8f"
    },
    "p11_deepseek_gate": {
      "artifact": "P11_shooting_script_deepseek_audit_gate.json",
      "path": "outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_deepseek_audit_gate.json",
      "exists": true,
      "size_bytes": 4712,
      "sha256": "cfb71ef8d51668edc3c456d1501e9db46a13edab8be257a6f9608b0299e98fd4"
    },
    "p11_deepseek_raw": {
      "artifact": "P11_shooting_script_deepseek_audit_raw.json",
      "path": "outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_deepseek_audit_raw.json",
      "exists": true,
      "size_bytes": 233532,
      "sha256": "80a71d3c74bc48479fe513a31a77015bcf84af0b7f326be89ecb3ca4d7e346cf"
    },
    "execution_state": {
      "artifact": "execution_state.json",
      "path": "execution_state.json",
      "exists": true,
      "size_bytes": 61946,
      "sha256": "04947b6658ab54d9f451263403e41695acf66bd8d506978f3e16be78b39e240d"
    }
  },
  "contract_checks": {
    "p12_contract_present": true,
    "p12_contract_planning_only": true,
    "p12_contract_p11_explicit_authority": true,
    "p12_contract_required_outputs": true,
    "p12_contract_validator_matrix_bound": true,
    "p12_contract_shot_context_execution_blocked": true,
    "p12_contract_no_prompt_provider_media": true,
    "p12_contract_no_kg_overlay_replay": true,
    "p12_contract_old_b7_reference_only": true,
    "p12_contract_runtime_hardcoding_ban": true
  },
  "p12_contract_excerpt": "# P12 Shot Context Reentry Planning Contract\n\n更新时间：`2026-05-31T14:55:00+08:00`\n\n本文冻结 P计划 `P12_shot_context_reentry_planning_contract` 的执行细则。P12 基于 P11 provider-neutral shooting_script outputs，执行 shot context reentry planning only，不执行 shot context rows、prompt packet、adapter render、provider job、media generation、feedback/replay、KG/overlay/replay，也不改写 `outputs/index.json` / `outputs/index-lite.json`。\n\n## Contract ID\n\n`P12_shot_context_reentry_planning_contract`\n\n## Objective\n\nP12 的目标是在 P11 closeout 之后，规划 shot context fresh execution 的重入边界：\n\n- consume P11 execution run, P11 program validation/advisory gate, and P11 closeout retrospective by explicit path。\n- consume P11 shooting_script rows and sequence index as the only active shooting_script authorities。\n- consume P10/P9 refs only through explicit P11/P10/P9 refs, not generated indexes or old B7。\n- produce shot context readiness rows that are traceable to P11 shot ids, shot numbers, P10 readiness row ids, P9 screenplay unit ids, P8 adaptation unit ids, P5E source scene ids, P6 chronology refs, source refs, transition refs, continuity refs, and merge/drop provenance。\n- identify the first later shot context fresh execution contract candidate, but keep shot context execution blocked in P12。\n- keep prompt packet, adapter render, provider/media, feedback/replay, KG/overlay/replay blocked。\n- keep old B7 downstream outputs as paused reference / diagnostic comparison only。\n- require P12 program validation, DeepSeek v4 pro thinking/max advisory, closeout retrospective, and control-plane sync before any shot context execution stage opens。\n\nP12 planning output is provider-neutral control-plane readiness data. It must not generate provider prompt syntax, adapter payloads, media jobs, real provider evidence, KG/overlay/replay writes, or accepted operator decisions.\n\n## Required Inputs\n\n- `docs/p12_shot_context_reentry_planning_contract_20260531.md`\n- `docs/p11_closeout_retrospective_20260531.md`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_gate.json`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_validator_report.json`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_execution_input.json`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script.json`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_rows.jsonl`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_sequence_index.jsonl`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_dependency_queue.jsonl`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/manifest.json`\n- `outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_program_validation.json`\n- `outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_deepseek_audit_gate.json`\n- `outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_deepseek_audit_raw.json`\n- `execution_state.json`\n\nP12 must not discover P11 through generated indexes. Use explicit paths unless a later deterministic index-refresh stage is opened.\n\n## Execution Boundary\n\nP12 may execute shot context reentry planning only:\n\n- allowed: reading P11 shooting_script rows and sequence index by explicit path, verifying shot-level traceability, deriving shot context readiness rows, generating dependency queue, validators, gate/report/html, and manifest。\n- not allowed: shot context execution, prompt packet generation, adapter render, provider/media, feedback intake, KG writeback, raw KG writeback, accepted/operator overlay writeback, replay, output deletion, output cold archive, generated index mutation。\n- DeepSeek advisory is required after P12 planning, but remains advisory-only and cannot become accepted operator evidence, accepted overlay, KG fact, replay action, provider evidence, or runtime routing logic。\n- Runtime branching by entity name, work title, block title, or sample text is prohibited. Entity names, work titles, block titles, and source excerpts may appear only as evidence/display text.\n\n## Required Outputs\n\nP12 must write a fresh output run dir such as:\n\n`outputs/p12_shot_context_reentry_planning_<timestamp>`\n\nRequired files:\n\n- `P12_shot_context_reentry_input.json`\n- `P12_shot_context_readiness_matrix.jsonl`\n- `P12_shot_context_dependency_queue.jsonl`\n- `P12_shot_context_reentry_validator_report.json`\n- `P12_shot_context_reentry_gate.json`\n- `P12_shot_context_reentry_report.md`\n- `P12_shot_context_reentry.html`\n- `manifest.json`\n\n## P12 Validator Matrix\n\n| Validator | Required check | Blocks pass when |\n| --- | --- | --- |\n| `p11_authority` | P12 consumes explicit P11 execution/advisory/retrospective paths and verifies pass gates | P11 gate/advisory missing, not pass, or P11 retrospective missing |\n| `shooting_script_traceability` | every readiness row maps to a P11 shot id/shot number and source P10/P9 refs | orphan readiness row, missing shot id, missing upstream refs |\n| `shot_context_readiness_schema` | readiness rows expose required future shot context prerequisites without generating shot context rows | missing future context fields or accidental context execution |\n| `source_provenance_guard` | source scene ids, adaptation ids, chronology refs, transition refs, continuity refs, and merge/drop provenance remain visible | source/adaptation/chronology/transition/continuity/merge/drop refs disappear |\n| `shot_context_scope_guard` | P12 generates planning/readiness artifacts only | shot context rows, prompt, provider, or media fields generated in P12 |\n| `dependency_queue_ordering` | queue opens only the next shot context execution contract candidate after P12 advisory/retrospective | shot context execution marked allowed before P12 closeout |\n| `downstream_leakage_guard` | prompt/provider/media counters remain zero | any prompt/provider/media artifact is generated in P12 |\n| `kg_overlay_replay_guard` | KG/overlay/replay counters remain zero | canonical/raw KG, accepted/operator overlay, or replay writeback appears |\n| `old_b7_exclusion` | old B7 remains reference-only | old B7 output is used as active authority |\n| `active_route_guard` | `execution_state.json.next_entrypoint.id` remains `platform_neutral_prompt_readiness_manual_execution_log_contract` | active route changes |\n\n## DeepSeek Advisory Requirements\n\nP12 closeout requires DeepSeek v4 pro thinking/max advisory over:\n\n- P12 contract。\n- P11 closeout retrospective。\n- P12 readiness outputs。\n- P12 validator report and gate。\n- active route boundary from `execution_state.json`。\n\nExpected pass verdict:\n\n`supports_p12_shot_context_reentry_planning`\n\nPass requires:\n\n- DeepSeek call status=`success`。\n- parse status=`pass`。\n- finding/blocker/high=0/0/0。\n- advisory confirms P12 uses P11 fresh artifacts as active authorities。\n- advisory confirms shot context readiness rows are traceable and provider-neutral。\n- advisory confirms shot context execution, prompt/provider/media remain blocked in P12。\n- advisory confirms KG/overlay/replay/index mutation remain blocked。\n- advisory confirms old B7 remains reference-only。\n\nMissing/skipped/unavailable/unparseable advisory blocks P12 closeout or records `blocked_unavailable`; it never counts as pass.\n\n## Non-Goals\n\n- P12 does not execute shot context rows。\n- P12 does not generate prompt packet、adapter render、provider/media。\n- P12 does not write KG/overlay/replay。\n- P12 does not repair generated indexes。\n- P12 does not continue old B7 downstream。\n- P12 does not silently perform unlogged LLM enrichment。\n",
  "p11_retrospective_excerpt": "# P11 Closeout Retrospective\n\n更新时间：`2026-05-31T14:55:00+08:00`\n\n本文是 P计划阶段间复盘门禁下的 `P11_shooting_script_fresh_execution_contract` closeout retrospective。它在 P11 provider-neutral shooting_script fresh execution、程序验证和 DeepSeek advisory 通过后，任何 P12 shot context reentry planning 推进前复盘实际落地、证据基础、风险和下一阶段校准。\n\n## Retrospective Summary\n\nP11 已完成 provider-neutral shooting_script fresh execution：基于 P10 shooting_script readiness rows 和 P9 screenplay units，生成 P11 execution input、shooting_script JSON、shooting_script rows JSONL、sequence index、dependency queue、validator report、gate、report/html 和 manifest。\n\nP11 只执行 provider-neutral shooting_script rows。P11 没有执行 shot context、prompt packet、adapter render、provider/media、feedback/replay、KG/overlay/replay，没有删除/冷归档 outputs run，也没有改写 `outputs/index.json` / `outputs/index-lite.json`。DeepSeek v4 pro thinking/max advisory 支持 P11 closeout，finding/blocker/high=0/0/0。\n\n## Actual Landed\n\n- P11 contract：`docs/p11_shooting_script_fresh_execution_contract_20260531.md`\n- P11 implementation：\n  - `src/novel2video/p11_shooting_script_fresh_execution.py`\n  - `scripts/run_p11_shooting_script_fresh_execution.py`\n  - `scripts/run_p11_shooting_script_deepseek_audit.py`\n  - `tests/test_p11_shooting_script_fresh_execution.py`\n- Core backup before P11 `src/` / `scripts` edits：`backups/20260531_144016_p11_shooting_script_fresh_execution`\n- P11 focused tests：6 passed。\n- P11 fresh execution run：`outputs/p11_shooting_script_fresh_execution_20260531_145346`\n  - gate=`pass`\n  - gate_status=`p11_shooting_script_fresh_execution_pass`\n  - P10 readiness rows / ready rows=5002 / 5002\n  - P9 screenplay units / sequence rows=5002 / 5002\n  - shooting_script rows / sequence rows=5002 / 5002\n  - shot ids / shot numbers=5002 / 5002\n  - camera placeholder fields / duration fields=5002 / 5002\n  - total duration estimate seconds=69351\n  - adaptation refs / source scene refs in shooting_script=6989 / 6989\n  - drop-from-script refs preserved=1518 / 1518\n  - dependency queue items=7\n  - future executable after P11 closeout candidates=1\n  - validator failures=0\n- P11 advisory run：`outputs/p11_shooting_script_deepseek_audit_20260531_145402`\n  - program validation status=`pass`\n  - program validation failure_count=0\n  - gate=`pass`\n  - gate_status=`deepseek_advisory_supports_p11_shooting_script_fresh_execution`\n  - verdict=`supports_p11_shooting_script_fresh_execution`\n  - finding/blocker/high=0/0/0\n  - false_required_confirmation_count=0\n  - recommended next=`P11_closeout_retrospective_then_P12_shot_context_reentry_planning_contract`\n  - DeepSeek raw meta model=`deepseek-v4-pro`\n  - prompt_tokens=63119\n  - completion_tokens=2476\n  - reasoning_tokens=2194\n  - reasoning_content_present=true\n\n## Program Validation Summary\n\n- P11 required output files exist and parse。\n- P11 gate status=`pass`。\n- P11 validator status=`pass`。\n- P10 execution/advisory/retrospective paths were consumed explicitly。\n- P10 gate and P10 program validation pass。\n- P10 DeepSeek verdict=`supports_p10_shooting_script_reentry_planning`。\n- shooting_script rows=5002。\n- sequence rows=5002。\n- shot ids and shot numbers are stable and complete: 5002 / 5002。\n- camera placeholders and duration estimates are present: 5002 / 5002。\n- source/adaptation refs are fully preserved: 6989 / 6989。\n- drop/merge provenance remains visible: 1518 / 1518 dropped refs retained。\n- `execution_state.json.next_entrypoint.id` remains `platform_neutral_prompt_readiness_manual_execution_log_contract`。\n- shot context、prompt packet、adapter render、provider/media、feedback、KG/overlay/replay、output deletion/archive/index mutation counters all 0。\n\n## Not Landed\n\n- shot context reentry planning 未执行。\n- shot context execution 未执行。\n- prompt packet、adapter render、provider/media 未执行。\n- LLM dialogue/rewrite enrichment 未执行。\n- feedback intake / repair / replay 未执行。\n- KG/accepted overlay/operator overlay/raw KG/canonical KG/replay 未写入。\n- outputs run deletion/cold archive 未执行。\n- `outputs/index.json` / `outputs/index-lite.json` 未改写。\n- 旧 B7 paused reference 未恢复为 active mainline。\n\n## Evidence Basis\n\n- `docs/p11_shooting_script_fresh_execution_contract_20260531.md`\n- `docs/p10_closeout_retrospective_20260531.md`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_execution_input.json`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script.json`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_rows.jsonl`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_sequence_index.jsonl`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_dependency_queue.jsonl`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_validator_report.json`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_gate.json`\n- `outputs/p11_shooting_script_fresh_execution_20260531_145346/P11_shooting_script_report.md`\n- `outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_program_validation.json`\n- `outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_deepseek_audit_input.json`\n- `outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_deepseek_audit_raw.json`\n- `outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_deepseek_audit.json`\n- `outputs/p11_shooting_script_deepseek_audit_20260531_145402/P11_shooting_script_deepseek_audit_gate.json`\n- `execution_state.json`\n\n## DeepSeek Advisory Summary\n\n- call_status=`success`\n- parse_status=`pass`\n- model=`deepseek-v4-pro`\n- thinking/reasoning content present\n- verdict=`supports_p11_shooting_script_fresh_execution`\n- recommended_next_candidate=`P11_closeout_retrospective_then_P12_shot_context_reentry_planning_contract`\n- finding/blocker/high=0/0/0\n- false_required_confirmation_count=0\n\nDeepSeek confirmed all required checks:\n\n- P11 contract artifact-backed。\n- program validation passed。\n- P10 authority passed。\n- P10/P9 fresh artifacts used。\n- shooting_script rows traceable。\n- shooting_script rows provider-neutral。\n- source provenance preserved。\n- shot context / prompt / provider / media not performed。\n- KG/overlay/replay blocked。\n- outputs index unchanged。\n- old B7 reference-only。\n- next_entrypoint unchanged。\n- runtime branching by names absent。\n- P12 requires a separate contract。\n\n## Conclusive Output Review\n\nP11 is a conclusive provider-neutral shooting_script output. It satisfies P计划 parallel review requirement:\n\n- P11 contract is present。\n- P11 deterministic execution gate pass。\n- P11 program validation pass。\n- Focused tests pass。\n- DeepSeek v4 pro thinking/max advisory available and parsed。\n- DeepSeek verdict supports P11。\n- finding/blocker/high=0/0/0。\n- shot context/prompt/provider/media/KG/overlay/replay/downstream execution/output deletion/output archive/index mutation counters all 0。\n\n## Risk And Debt\n\n- P11 shooting_script rows are deterministic provider-neutral control rows with placeholders. They are not shot-context-complete and do not contain provider prompt syntax。\n- P11 did not validate visual continuity at shot-context detail level. P12 must plan shot context readiness without assuming prompt/provider execution。\n- P11 did not perform LLM dialogue/rewrite enrichment. Any later enrichment must be separately logged and audited, or kept outside canonical row generation。\n- P11 did not add run dirs to generated indexes. Continue using explicit control-plane paths unless a deterministic index-refresh substage is opened。\n- Old B7 shooting_script outputs remain diagnostic only and must not be used as active authority for P12。\n\n## Project Goal Alignment\n\nP11 advances the pipeline rebuild goal by turning P9 screenplay control data into provider-neutral production control rows:\n\n- P10 readiness row ids, P9 screenplay unit ids, P8 adaptation ids, retained group ids, beat ids, P5E scene ids, P6 chronology refs, source refs, dependency ids, ",
  "p11_gate_status": {
    "status": "pass",
    "gate_status": "p11_shooting_script_fresh_execution_pass"
  },
  "p11_gate_summary": {
    "p10_readiness_row_count": 5002,
    "p10_ready_row_count": 5002,
    "p10_dependency_queue_item_count": 7,
    "p9_screenplay_unit_count": 5002,
    "p9_sequence_row_count": 5002,
    "shooting_script_row_count": 5002,
    "shooting_script_sequence_row_count": 5002,
    "shot_id_generation_count": 5002,
    "shot_number_assignment_count": 5002,
    "camera_field_generation_count": 5002,
    "duration_field_generation_count": 5002,
    "total_duration_estimate_seconds": 69351,
    "adaptation_unit_refs_in_shooting_script_count": 6989,
    "source_scene_refs_in_shooting_script_count": 6989,
    "drop_from_script_scene_refs_preserved": 1518,
    "p10_drop_from_script_scene_count": 1518,
    "dependency_queue_item_count": 7,
    "future_executable_after_p11_closeout_count": 1,
    "validator_failure_count": 0,
    "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
    "p10_deepseek_overall_verdict": "supports_p10_shooting_script_reentry_planning",
    "old_b7_reference_only": true,
    "old_b7_active_source_ref_count": 0,
    "shooting_script_execution_count": 1,
    "shot_context_generation_count": 0,
    "prompt_packet_generation_count": 0,
    "adapter_render_count": 0,
    "provider_job_execution_count": 0,
    "media_generation_count": 0,
    "feedback_intake_count": 0,
    "accepted_overlay_write_count": 0,
    "operator_overlay_write_count": 0,
    "canonical_kg_writeback_count": 0,
    "raw_kg_writeback_count": 0,
    "replay_action_count": 0,
    "outputs_index_mutation_count": 0,
    "outputs_run_deletion_count": 0,
    "outputs_run_cold_archive_count": 0,
    "runtime_branching_by_entity_name_rule_count": 0,
    "runtime_branching_by_work_title_rule_count": 0,
    "runtime_branching_by_block_title_rule_count": 0,
    "runtime_branching_by_sample_text_rule_count": 0
  },
  "p11_validator_summary": {
    "p10_readiness_row_count": 5002,
    "p10_ready_row_count": 5002,
    "p10_dependency_queue_item_count": 7,
    "p9_screenplay_unit_count": 5002,
    "p9_sequence_row_count": 5002,
    "shooting_script_row_count": 5002,
    "shooting_script_sequence_row_count": 5002,
    "shot_id_generation_count": 5002,
    "shot_number_assignment_count": 5002,
    "camera_field_generation_count": 5002,
    "duration_field_generation_count": 5002,
    "total_duration_estimate_seconds": 69351,
    "adaptation_unit_refs_in_shooting_script_count": 6989,
    "source_scene_refs_in_shooting_script_count": 6989,
    "drop_from_script_scene_refs_preserved": 1518,
    "p10_drop_from_script_scene_count": 1518,
    "dependency_queue_item_count": 7,
    "future_executable_after_p11_closeout_count": 1,
    "validator_failure_count": 0,
    "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
    "p10_deepseek_overall_verdict": "supports_p10_shooting_script_reentry_planning",
    "old_b7_reference_only": true,
    "old_b7_active_source_ref_count": 0,
    "shooting_script_execution_count": 1,
    "shot_context_generation_count": 0,
    "prompt_packet_generation_count": 0,
    "adapter_render_count": 0,
    "provider_job_execution_count": 0,
    "media_generation_count": 0,
    "feedback_intake_count": 0,
    "accepted_overlay_write_count": 0,
    "operator_overlay_write_count": 0,
    "canonical_kg_writeback_count": 0,
    "raw_kg_writeback_count": 0,
    "replay_action_count": 0,
    "outputs_index_mutation_count": 0,
    "outputs_run_deletion_count": 0,
    "outputs_run_cold_archive_count": 0,
    "runtime_branching_by_entity_name_rule_count": 0,
    "runtime_branching_by_work_title_rule_count": 0,
    "runtime_branching_by_block_title_rule_count": 0,
    "runtime_branching_by_sample_text_rule_count": 0
  },
  "p11_shooting_script_summary": {
    "p10_readiness_row_count": 5002,
    "p10_ready_row_count": 5002,
    "p10_dependency_queue_item_count": 7,
    "p9_screenplay_unit_count": 5002,
    "p9_sequence_row_count": 5002,
    "shooting_script_row_count": 5002,
    "shooting_script_sequence_row_count": 5002,
    "shot_id_generation_count": 5002,
    "shot_number_assignment_count": 5002,
    "camera_field_generation_count": 5002,
    "duration_field_generation_count": 5002,
    "total_duration_estimate_seconds": 69351,
    "adaptation_unit_refs_in_shooting_script_count": 6989,
    "source_scene_refs_in_shooting_script_count": 6989,
    "drop_from_script_scene_refs_preserved": 1518,
    "p10_drop_from_script_scene_count": 1518,
    "dependency_queue_item_count": 7,
    "future_executable_after_p11_closeout_count": 1,
    "validator_failure_count": 0,
    "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
    "p10_deepseek_overall_verdict": "supports_p10_shooting_script_reentry_planning",
    "old_b7_reference_only": true,
    "old_b7_active_source_ref_count": 0,
    "shooting_script_execution_count": 1,
    "shot_context_generation_count": 0,
    "prompt_packet_generation_count": 0,
    "adapter_render_count": 0,
    "provider_job_execution_count": 0,
    "media_generation_count": 0,
    "feedback_intake_count": 0,
    "accepted_overlay_write_count": 0,
    "operator_overlay_write_count": 0,
    "canonical_kg_writeback_count": 0,
    "raw_kg_writeback_count": 0,
    "replay_action_count": 0,
    "outputs_index_mutation_count": 0,
    "outputs_run_deletion_count": 0,
    "outputs_run_cold_archive_count": 0,
    "runtime_branching_by_entity_name_rule_count": 0,
    "runtime_branching_by_work_title_rule_count": 0,
    "runtime_branching_by_block_title_rule_count": 0,
    "runtime_branching_by_sample_text_rule_count": 0
  },
  "p11_manifest_summary": {
    "stage": "P11_shooting_script_fresh_execution_contract",
    "fresh_run_policy": {
      "new_output_run_dir": "outputs/p11_shooting_script_fresh_execution_20260531_145346",
      "no_overwrite": true
    }
  },
  "p11_program_validation": {
    "status": "pass",
    "failure_count": 0,
    "summary": {
      "p10_readiness_row_count": 5002,
      "p10_ready_row_count": 5002,
      "p10_dependency_queue_item_count": 7,
      "p9_screenplay_unit_count": 5002,
      "p9_sequence_row_count": 5002,
      "shooting_script_row_count": 5002,
      "shooting_script_sequence_row_count": 5002,
      "shot_id_generation_count": 5002,
      "shot_number_assignment_count": 5002,
      "camera_field_generation_count": 5002,
      "duration_field_generation_count": 5002,
      "total_duration_estimate_seconds": 69351,
      "adaptation_unit_refs_in_shooting_script_count": 6989,
      "source_scene_refs_in_shooting_script_count": 6989,
      "drop_from_script_scene_refs_preserved": 1518,
      "p10_drop_from_script_scene_count": 1518,
      "dependency_queue_item_count": 7,
      "future_executable_after_p11_closeout_count": 1,
      "validator_failure_count": 0,
      "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
      "p10_deepseek_overall_verdict": "supports_p10_shooting_script_reentry_planning",
      "old_b7_reference_only": true,
      "old_b7_active_source_ref_count": 0,
      "shooting_script_execution_count": 1,
      "shot_context_generation_count": 0,
      "prompt_packet_generation_count": 0,
      "adapter_render_count": 0,
      "provider_job_execution_count": 0,
      "media_generation_count": 0,
      "feedback_intake_count": 0,
      "accepted_overlay_write_count": 0,
      "operator_overlay_write_count": 0,
      "canonical_kg_writeback_count": 0,
      "raw_kg_writeback_count": 0,
      "replay_action_count": 0,
      "outputs_index_mutation_count": 0,
      "outputs_run_deletion_count": 0,
      "outputs_run_cold_archive_count": 0,
      "runtime_branching_by_entity_name_rule_count": 0,
      "runtime_branching_by_work_title_rule_count": 0,
      "runtime_branching_by_block_title_rule_count": 0,
      "runtime_branching_by_sample_text_rule_count": 0
    }
  },
  "p11_deepseek_gate": {
    "status": "pass",
    "gate_status": "deepseek_advisory_supports_p11_shooting_script_fresh_execution",
    "summary": {
      "program_validation_status": "pass",
      "program_validation_failure_count": 0,
      "deepseek_call_status": "success",
      "deepseek_parse_status": "pass",
      "deepseek_overall_verdict": "supports_p11_shooting_script_fresh_execution",
      "recommended_next_candidate": "P11_closeout_retrospective_then_P12_shot_context_reentry_planning_contract",
      "pipeline_finding_count": 0,
      "pipeline_blocker_count": 0,
      "pipeline_high_count": 0,
      "false_required_confirmation_count": 0,
      "p10_readiness_row_count": 5002,
      "p10_ready_row_count": 5002,
      "p10_dependency_queue_item_count": 7,
      "p9_screenplay_unit_count": 5002,
      "p9_sequence_row_count": 5002,
      "shooting_script_row_count": 5002,
      "shooting_script_sequence_row_count": 5002,
      "shot_id_generation_count": 5002,
      "shot_number_assignment_count": 5002,
      "camera_field_generation_count": 5002,
      "duration_field_generation_count": 5002,
      "total_duration_estimate_seconds": 69351,
      "adaptation_unit_refs_in_shooting_script_count": 6989,
      "source_scene_refs_in_shooting_script_count": 6989,
      "drop_from_script_scene_refs_preserved": 1518,
      "p10_drop_from_script_scene_count": 1518,
      "dependency_queue_item_count": 7,
      "future_executable_after_p11_closeout_count": 1,
      "validator_failure_count": 0,
      "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
      "p10_deepseek_overall_verdict": "supports_p10_shooting_script_reentry_planning",
      "old_b7_reference_only": true,
      "old_b7_active_source_ref_count": 0,
      "shooting_script_execution_count": 1,
      "shot_context_generation_count": 0,
      "prompt_packet_generation_count": 0,
      "adapter_render_count": 0,
      "provider_job_execution_count": 0,
      "media_generation_count": 0,
      "feedback_intake_count": 0,
      "accepted_overlay_write_count": 0,
      "operator_overlay_write_count": 0,
      "canonical_kg_writeback_count": 0,
      "raw_kg_writeback_count": 0,
      "replay_action_count": 0,
      "outputs_index_mutation_count": 0,
      "outputs_run_deletion_count": 0,
      "outputs_run_cold_archive_count": 0,
      "runtime_branching_by_entity_name_rule_count": 0,
      "runtime_branching_by_work_title_rule_count": 0,
      "runtime_branching_by_block_title_rule_count": 0,
      "runtime_branching_by_sample_text_rule_count": 0
    }
  },
  "p11_deepseek_raw_meta": {
    "id": "c815eeed-a156-4d50-b105-4a629a3f9b5d",
    "object": "chat.completion",
    "model": "deepseek-v4-pro",
    "usage": {
      "prompt_tokens": 63119,
      "completion_tokens": 2476,
      "total_tokens": 65595,
      "prompt_tokens_details": {
        "cached_tokens": 0
      },
      "completion_tokens_details": {
        "reasoning_tokens": 2194
      },
      "prompt_cache_hit_tokens": 0,
      "prompt_cache_miss_tokens": 63119
    },
    "finish_reason": "stop",
    "content_chars": 918,
    "reasoning_content_present": true,
    "reasoning_content_chars": 8900
  },
  "p11_shooting_script_surface": {
    "shooting_script_row_count": 5002,
    "sequence_row_count": 5002,
    "dependency_queue_item_count": 7,
    "future_executable_after_p11_closeout_count": 1,
    "first_future_execution_contract_candidate": "P12_shot_context_reentry_planning_contract"
  },
  "active_route": {
    "current_stage": "Now-32",
    "current_substage": "Prompt-Readiness-Manual-Execution-Log-Contract",
    "next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract"
  },
  "old_b7_policy": {
    "reference_only": true,
    "active_authority": false,
    "old_b7_active_source_ref_count": 0
  },
  "validator_matrix": [
    {
      "validator_id": "p11_authority",
      "purpose": "P12 consumes explicit P11 execution/advisory/retrospective paths and verifies pass gates",
      "blocks_p12_pass": true
    },
    {
      "validator_id": "shooting_script_traceability",
      "purpose": "Every readiness row maps to a P11 shot id, shot number, P10 row, and P9 unit",
      "blocks_p12_pass": true
    },
    {
      "validator_id": "shot_context_readiness_schema",
      "purpose": "Readiness rows expose future shot context prerequisites without generating shot context rows",
      "blocks_p12_pass": true
    },
    {
      "validator_id": "source_provenance_guard",
      "purpose": "Source scene ids, adaptation ids, chronology refs, transition refs, continuity refs, and merge/drop provenance remain visible",
      "blocks_p12_pass": true
    },
    {
      "validator_id": "shot_context_scope_guard",
      "purpose": "P12 generates planning/readiness artifacts only",
      "blocks_p12_pass": true
    },
    {
      "validator_id": "dependency_queue_ordering",
      "purpose": "Queue opens only the next shot context execution contract candidate after P12 advisory/retrospective",
      "blocks_p12_pass": true
    },
    {
      "validator_id": "downstream_leakage_guard",
      "purpose": "Prompt/provider/media counters remain zero",
      "blocks_p12_pass": true
    },
    {
      "validator_id": "kg_overlay_replay_guard",
      "purpose": "KG/overlay/replay counters remain zero",
      "blocks_p12_pass": true
    },
    {
      "validator_id": "old_b7_exclusion",
      "purpose": "Old B7 remains reference-only and is not active authority",
      "blocks_p12_pass": true
    },
    {
      "validator_id": "active_route_guard",
      "purpose": "execution_state.next_entrypoint remains Now-32",
      "blocks_p12_pass": true
    }
  ],
  "policy": {
    "stage": "P12_shot_context_reentry_planning_contract",
    "fresh_run_required": true,
    "shot_context_reentry_planning_allowed_in_p12": true,
    "shot_context_execution_allowed_in_p12": false,
    "provider_neutral_only": true,
    "deepseek_v4_pro_thinking_audit_required": true,
    "advisory_only": true,
    "prompt_packet_generation_allowed": false,
    "adapter_render_allowed": false,
    "provider_job_execution_allowed": false,
    "media_generation_allowed": false,
    "feedback_intake_allowed": false,
    "accepted_overlay_writeback_allowed": false,
    "operator_overlay_writeback_allowed": false,
    "canonical_kg_writeback_allowed": false,
    "raw_kg_writeback_allowed": false,
    "replay_execution_allowed": false,
    "outputs_index_mutation_allowed": false,
    "outputs_run_deletion_allowed": false,
    "outputs_run_cold_archive_allowed": false,
    "old_b7_reference_only": true,
    "execution_state_next_entrypoint_unchanged": true,
    "runtime_branching_by_entity_name_allowed": false,
    "runtime_branching_by_work_title_allowed": false,
    "runtime_branching_by_block_title_allowed": false,
    "runtime_branching_by_sample_text_allowed": false
  },
  "input_fingerprint": "d7f5fcc30ea3b1d12890bca5152d0c56df2d29f413e6a7b53107663b751aba42"
}