{
  "version": "p11_shooting_script_fresh_execution.v1",
  "created_at": "2026-05-31T06:53:47.983998Z",
  "phase": "P11_shooting_script_fresh_execution_contract",
  "project_root": ".",
  "output_run_dir": "outputs/p11_shooting_script_fresh_execution_20260531_145346",
  "source_artifacts": {
    "p11_contract": {
      "path": "docs/p11_shooting_script_fresh_execution_contract_20260531.md",
      "sha256": "2ce99b8704eff0391b4ea973a3f693cb30a75c3d2cd1898959dc2add571cb8e2",
      "size_bytes": 8369,
      "exists": true
    },
    "p10_closeout_retrospective": {
      "path": "docs/p10_closeout_retrospective_20260531.md",
      "sha256": "7051af20437b9c9015b815c68568a8f77cb5c8665aeff2e43590643f3d2da367",
      "size_bytes": 12847,
      "exists": true
    },
    "p10_gate": {
      "artifact": "P10_shooting_script_reentry_gate.json",
      "path": "outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_gate.json",
      "exists": true,
      "size_bytes": 10837,
      "sha256": "554fc0783400ba88040dae9552cd86dea054f034277481d525c6485b4c27da9b"
    },
    "p10_validator": {
      "artifact": "P10_shooting_script_reentry_validator_report.json",
      "path": "outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_validator_report.json",
      "exists": true,
      "size_bytes": 6119,
      "sha256": "a3abf4436278dab37bbc77c952e3551c3d82de30aba34028c413741be87a0847"
    },
    "p10_execution_input": {
      "artifact": "P10_shooting_script_reentry_input.json",
      "path": "outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_input.json",
      "exists": true,
      "size_bytes": 35531,
      "sha256": "6e9fce061c06ad0dbbef2368baa7f286c63a92d24a3f708d015c07f34db5f5f5"
    },
    "p10_readiness_matrix": {
      "path": "outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_readiness_matrix.jsonl",
      "exists": true,
      "sha256": "0f61213adb35aa116d01d926c650c6783948168af9e0ed626a6566a7ea05d3b3",
      "size_bytes": 23406822
    },
    "p10_queue": {
      "path": "outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_dependency_queue.jsonl",
      "exists": true,
      "sha256": "e2ff6bd8e179fc821a733fdf872eabe25035057e23810b52e25026d62c4a41b8",
      "size_bytes": 4856
    },
    "p10_manifest": {
      "artifact": "manifest.json",
      "path": "outputs/p10_shooting_script_reentry_planning_20260531_134122/manifest.json",
      "exists": true,
      "size_bytes": 5246,
      "sha256": "eccf9488e544700721d38c7834c8006c7fc60f201d5df6eb7f30ae0c93c1d41c"
    },
    "p10_program_validation": {
      "artifact": "P10_shooting_script_reentry_program_validation.json",
      "path": "outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_program_validation.json",
      "exists": true,
      "size_bytes": 5717,
      "sha256": "4cb34e237f3e78bd015eb64956269c659c9a802f8ef4ada181b742d746dfcf3a"
    },
    "p10_deepseek_gate": {
      "artifact": "P10_shooting_script_reentry_deepseek_audit_gate.json",
      "path": "outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_deepseek_audit_gate.json",
      "exists": true,
      "size_bytes": 4788,
      "sha256": "dd3610dfdc9e0719362b3229e702b1d691c3b4db2379ccaf19a701c959b51d96"
    },
    "p10_deepseek_raw": {
      "artifact": "P10_shooting_script_reentry_deepseek_audit_raw.json",
      "path": "outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_deepseek_audit_raw.json",
      "exists": true,
      "size_bytes": 173711,
      "sha256": "74ddf8fc795de8ca28bfefa9c13c590af7dcf0e425e38e232169291c5727fb95"
    },
    "p9_units": {
      "path": "outputs/p9_ai_executable_screenplay_fresh_execution_20260531_091953/P9_screenplay_units.jsonl",
      "exists": true,
      "sha256": "c49fe458d92b18fdb26413740723f04a0be4a914ea74b6cd51c614a64efb6107",
      "size_bytes": 32984294
    },
    "p9_sequence_index": {
      "path": "outputs/p9_ai_executable_screenplay_fresh_execution_20260531_091953/P9_screenplay_sequence_index.jsonl",
      "exists": true,
      "sha256": "c8b312817750717d993e46dbd5242bd0b1a58fdd92cdae2e7fef6c85fe4e5baa",
      "size_bytes": 3532041
    },
    "execution_state": {
      "artifact": "execution_state.json",
      "path": "execution_state.json",
      "exists": true,
      "size_bytes": 60613,
      "sha256": "7fd1ca31593e75a7e45eb1cf3a26d05e7a668f818bdd877c42c6564b55c96554"
    }
  },
  "contract_checks": {
    "p11_contract_present": true,
    "p11_contract_shooting_script_only": true,
    "p11_contract_p10_explicit_authority": true,
    "p11_contract_required_outputs": true,
    "p11_contract_validator_matrix_bound": true,
    "p11_contract_shot_context_blocked": true,
    "p11_contract_no_provider_media": true,
    "p11_contract_no_kg_overlay_replay": true,
    "p11_contract_old_b7_reference_only": true,
    "p11_contract_runtime_hardcoding_ban": true
  },
  "p11_contract_excerpt": "# P11 Shooting Script Fresh Execution Contract\n\n更新时间：`2026-05-31T13:43:00+08:00`\n\n本文冻结 P计划 `P11_shooting_script_fresh_execution_contract` 的执行细则。P11 基于 P10 shooting_script reentry planning outputs，执行 provider-neutral shooting_script fresh execution only，不执行 shot context、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`P11_shooting_script_fresh_execution_contract`\n\n## Objective\n\nP11 的目标是在 P10 closeout 之后，执行 fresh provider-neutral shooting_script build：\n\n- consume P10 planning run, P10 program validation/advisory gate, and P10 closeout retrospective by explicit path。\n- consume P10 readiness rows/dependency queue as the only active shooting_script readiness authorities。\n- consume P9 screenplay units only through explicit P10/P9 refs, not generated indexes or old B7。\n- produce shooting_script rows that are traceable to P10 readiness row ids, P9 screenplay unit ids, P8 adaptation unit ids, retained group ids, beat ids, P5E source scene ids, P6 chronology refs, source refs, merge/drop provenance, and dependency ids。\n- generate provider-neutral shooting_script control rows with stable shot ids, shot numbers, shot scale placeholders, camera movement placeholders, staging/action, sound/music placeholders, duration estimates, transition refs, continuity refs, and source refs。\n- identify the first later shot context planning contract candidate, but keep shot context execution blocked in P11。\n- keep old B7 shooting_script outputs as paused reference / diagnostic comparison only。\n- require P11 program validation, DeepSeek v4 pro thinking/max advisory, closeout retrospective, and control-plane sync before any shot context stage opens。\n\nP11 shooting_script output is provider-neutral production control 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/p11_shooting_script_fresh_execution_contract_20260531.md`\n- `docs/p10_closeout_retrospective_20260531.md`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_gate.json`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_validator_report.json`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_input.json`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_readiness_matrix.jsonl`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_dependency_queue.jsonl`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/manifest.json`\n- `outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_program_validation.json`\n- `outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_deepseek_audit_gate.json`\n- `outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_deepseek_audit_raw.json`\n- `outputs/p9_ai_executable_screenplay_fresh_execution_20260531_091953/P9_screenplay_units.jsonl`\n- `outputs/p9_ai_executable_screenplay_fresh_execution_20260531_091953/P9_screenplay_sequence_index.jsonl`\n- `execution_state.json`\n\nP11 must not discover P10/P9 through generated indexes. Use explicit paths unless a later deterministic index-refresh stage is opened.\n\n## Execution Boundary\n\nP11 may execute provider-neutral shooting_script generation only:\n\n- allowed: reading P10 readiness rows and P9 screenplay units by explicit path, deriving shot rows from structured screenplay control data, assigning deterministic stable shot ids and shot numbers, filling provider-neutral placeholders for shot scale/camera movement/staging/sound/duration/transition/continuity, generating validators, gate/report/html, and manifest。\n- not allowed: shot context generation, 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 P11 execution, 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\nP11 must write a fresh output run dir such as:\n\n`outputs/p11_shooting_script_fresh_execution_<timestamp>`\n\nRequired files:\n\n- `P11_shooting_script_execution_input.json`\n- `P11_shooting_script.json`\n- `P11_shooting_script_rows.jsonl`\n- `P11_shooting_script_sequence_index.jsonl`\n- `P11_shooting_script_dependency_queue.jsonl`\n- `P11_shooting_script_validator_report.json`\n- `P11_shooting_script_gate.json`\n- `P11_shooting_script_report.md`\n- `P11_shooting_script.html`\n- `manifest.json`\n\n## P11 Validator Matrix\n\n| Validator | Required check | Blocks pass when |\n| --- | --- | --- |\n| `p10_authority` | P11 consumes explicit P10 execution/advisory/retrospective paths and verifies pass gates | P10 gate/advisory missing, not pass, or P10 retrospective missing |\n| `readiness_traceability` | every generated shooting_script row maps to a P10 readiness row and P9 screenplay unit | orphan shot row, missing readiness ref, missing screenplay unit ref |\n| `shooting_script_schema` | shot rows contain stable shot id, shot number, shot scale placeholder, camera movement placeholder, staging/action, sound/music placeholder, duration estimate, transition refs, continuity refs, and source refs | missing required provider-neutral shooting_script fields |\n| `source_provenance_guard` | source scene ids, adaptation ids, chronology refs, source refs, and merge/drop provenance remain visible | source/adaptation/chronology/merge/drop refs disappear |\n| `shooting_script_scope_guard` | P11 generates shooting_script artifacts only | shot context/prompt/provider/media fields generated in P11 |\n| `dependency_queue_ordering` | queue opens only the next shot context planning contract candidate after P11 advisory/retrospective | shot context execution marked allowed before P11 closeout |\n| `downstream_leakage_guard` | shot context/prompt/provider/media counters remain zero | any downstream artifact is generated in P11 |\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 shooting_script 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\nP11 closeout requires DeepSeek v4 pro thinking/max advisory over:\n\n- P11 contract。\n- P10 closeout retrospective。\n- P11 shooting_script outputs。\n- P11 validator report and gate。\n- active route boundary from `execution_state.json`。\n\nExpected pass verdict:\n\n`supports_p11_shooting_script_fresh_execution`\n\nPass requires:\n\n- DeepSeek call status=`success`。\n- parse status=`pass`。\n- finding/blocker/high=0/0/0。\n- advisory confirms P11 uses P10/P9 fresh artifacts as active authorities。\n- advisory confirms shooting_script rows are traceable and provider-neutral。\n- advisory confirms shot context/prompt/provider/media remain blocked in P11。\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 P11 closeout or records `blocked_unavailable`; it never counts as pass.\n\n## Non-Goals\n\n- P11 does not execute shot context。\n- P11 does not generate prompt packet、adapter render、provider/media。\n- P11 does not write KG/overlay/replay。\n- P11 does not repair generated indexes。\n- P11 does not continue old B7 downstream。\n- P11 does not silently perform unlogged LLM dialogue/rewrite enrichment。\n",
  "p10_retrospective_excerpt": "# P10 Closeout Retrospective\n\n更新时间：`2026-05-31T13:43:00+08:00`\n\n本文是 P计划阶段间复盘门禁下的 `P10_shooting_script_reentry_planning_contract` closeout retrospective。它在 P10 shooting_script reentry planning、程序验证和 DeepSeek advisory 通过后，任何 P11 shooting_script fresh execution 推进前复盘实际落地、证据基础、风险和下一阶段校准。\n\n## Retrospective Summary\n\nP10 已完成 shooting_script reentry planning：基于 P9 AI-executable screenplay control-data outputs，生成 P10 execution input、shooting_script readiness matrix、dependency queue、validator report、gate、report/html 和 manifest。\n\nP10 只执行 deterministic shooting_script reentry planning。P10 没有执行 shooting_script rows，没有生成 shot ids、shot numbers、camera/duration fields、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 支持 P10 closeout，finding/blocker/high=0/0/0。\n\n## Actual Landed\n\n- P10 contract：`docs/p10_shooting_script_reentry_planning_contract_20260531.md`\n- P10 implementation：\n  - `src/novel2video/p10_shooting_script_reentry_planning.py`\n  - `scripts/run_p10_shooting_script_reentry_planning.py`\n  - `scripts/run_p10_shooting_script_reentry_deepseek_audit.py`\n  - `tests/test_p10_shooting_script_reentry_planning.py`\n- Core backup before P10 `src/` / `scripts` edits：`backups/20260531_133140_p10_shooting_script_reentry_planning`\n- P10 focused tests：6 passed。\n- P10 fresh planning run：`outputs/p10_shooting_script_reentry_planning_20260531_134122`\n  - gate=`pass`\n  - gate_status=`p10_shooting_script_reentry_planning_pass`\n  - P9 screenplay units=5002\n  - P9 sequence rows=5002\n  - shooting_script readiness rows=5002\n  - ready / blocked / deferred=5002 / 0 / 0\n  - adaptation unit refs in readiness=6989\n  - source scene refs in readiness=6989\n  - drop-from-script scene refs preserved=1518 / 1518\n  - P10 dependency queue items=7\n  - future executable after P10 closeout candidates=1\n  - validator failures=0\n  - shooting_script row count=0\n  - shot id / shot number / camera / duration generation counts=0 / 0 / 0 / 0\n- P10 advisory run：`outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141`\n  - program validation status=`pass`\n  - program validation failure_count=0\n  - gate=`pass`\n  - gate_status=`deepseek_advisory_supports_p10_shooting_script_reentry_planning`\n  - verdict=`supports_p10_shooting_script_reentry_planning`\n  - finding/blocker/high=0/0/0\n  - false_required_confirmation_count=0\n  - recommended next=`P10_closeout_retrospective_then_P11_shooting_script_fresh_execution_contract`\n  - DeepSeek raw meta model=`deepseek-v4-pro`\n  - prompt_tokens=45312\n  - completion_tokens=3294\n  - reasoning_tokens=3008\n  - reasoning_content_present=true\n\n## Program Validation Summary\n\n- P10 required output files exist and parse。\n- P10 gate status=`pass`。\n- P10 validator status=`pass`。\n- P9 execution/advisory/retrospective paths were consumed explicitly。\n- P9 gate and P9 program validation pass。\n- P9 DeepSeek verdict=`supports_p9_ai_executable_screenplay_fresh_execution`。\n- shooting_script readiness rows=5002。\n- ready readiness rows=5002。\n- blocked/deferred readiness rows=0/0。\n- dependency queue items=7。\n- single future executable after P10 closeout=1。\n- adaptation refs and source scene 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- shooting_script execution、shooting_script rows、shot ids、shot numbers、camera fields、duration fields、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- shooting_script execution 未执行。\n- shooting_script rows / shot ids / shot numbers / camera fields / duration fields 未生成。\n- shot context、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/p10_shooting_script_reentry_planning_contract_20260531.md`\n- `docs/p9_closeout_retrospective_20260531.md`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_input.json`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_readiness_matrix.jsonl`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_dependency_queue.jsonl`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_validator_report.json`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_gate.json`\n- `outputs/p10_shooting_script_reentry_planning_20260531_134122/P10_shooting_script_reentry_report.md`\n- `outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_program_validation.json`\n- `outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_deepseek_audit_input.json`\n- `outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_deepseek_audit_raw.json`\n- `outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_deepseek_audit.json`\n- `outputs/p10_shooting_script_reentry_deepseek_audit_20260531_134141/P10_shooting_script_reentry_deepseek_audit_gate.json`\n- `outputs/p9_ai_executable_screenplay_fresh_execution_20260531_091953/P9_screenplay_gate.json`\n- `outputs/p9_ai_executable_screenplay_deepseek_audit_20260531_092026/P9_screenplay_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_p10_shooting_script_reentry_planning`\n- recommended_next_candidate=`P10_closeout_retrospective_then_P11_shooting_script_fresh_execution_contract`\n- finding/blocker/high=0/0/0\n- false_required_confirmation_count=0\n\nDeepSeek confirmed all required checks:\n\n- P10 contract artifact-backed。\n- program validation passed。\n- P9 authority passed。\n- P9 fresh screenplay units used。\n- readiness rows traceable。\n- merge/drop provenance visible。\n- shooting_script execution not performed。\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- P11 requires a separate contract。\n\n## Conclusive Output Review\n\nP10 is a conclusive shooting_script reentry planning output. It satisfies P计划 parallel review requirement:\n\n- P10 contract is present。\n- P10 deterministic planning gate pass。\n- P10 program validation pass。\n- Focused tests pass。\n- DeepSeek v4 pro thinking/max advisory available and parsed。\n- DeepSeek verdict supports P10。\n- finding/blocker/high=0/0/0。\n- provider/media/KG/overlay/replay/downstream execution/output deletion/output archive/index mutation counters all 0。\n\n## Risk And Debt\n\n- P10 readiness says P9 screenplay control units are structurally ready for a later shooting_script execution contract, but it is not itself a shooting_script quality pass。\n- P10 did not generate shot rows; P11 must decide deterministic shot granularity, shot numbering, duration estimates, camera placeholders, transition refs, and continuity refs without provider syntax or media assumptions。\n- P9/P10 did not perform LLM dialogue/rewrite enrichment. If P11 needs richer dialogue or prose rewrite, that must be opened as a separately logged enrichment lane or kept deterministic/placeholder-based with clear provenance。\n- P10 did not add run dirs to generated indexes. Continue using explicit control-plane paths unless a deterministic index",
  "p10_gate_status": {
    "status": "pass",
    "gate_status": "p10_shooting_script_reentry_planning_pass"
  },
  "p10_gate_summary": {
    "p9_readiness_matrix_row_count": 5002,
    "p9_screenplay_unit_count": 5002,
    "p9_sequence_row_count": 5002,
    "p9_dependency_queue_item_count": 7,
    "shooting_script_readiness_row_count": 5002,
    "ready_for_future_shooting_script_execution_count": 5002,
    "blocked_readiness_row_count": 0,
    "deferred_readiness_row_count": 0,
    "adaptation_unit_refs_in_readiness_count": 6989,
    "source_scene_refs_in_readiness_count": 6989,
    "drop_from_script_scene_refs_preserved": 1518,
    "p9_drop_from_script_scene_count": 1518,
    "dependency_queue_item_count": 7,
    "future_executable_after_p10_closeout_count": 1,
    "validator_failure_count": 0,
    "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
    "p9_deepseek_overall_verdict": "supports_p9_ai_executable_screenplay_fresh_execution",
    "old_b7_reference_only": true,
    "old_b7_active_source_ref_count": 0,
    "shooting_script_reentry_planning_count": 1,
    "shooting_script_execution_count": 0,
    "shooting_script_row_count": 0,
    "shot_number_assignment_count": 0,
    "shot_id_generation_count": 0,
    "camera_field_generation_count": 0,
    "duration_field_generation_count": 0,
    "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
  },
  "p10_validator_summary": {
    "p9_readiness_matrix_row_count": 5002,
    "p9_screenplay_unit_count": 5002,
    "p9_sequence_row_count": 5002,
    "p9_dependency_queue_item_count": 7,
    "shooting_script_readiness_row_count": 5002,
    "ready_for_future_shooting_script_execution_count": 5002,
    "blocked_readiness_row_count": 0,
    "deferred_readiness_row_count": 0,
    "adaptation_unit_refs_in_readiness_count": 6989,
    "source_scene_refs_in_readiness_count": 6989,
    "drop_from_script_scene_refs_preserved": 1518,
    "p9_drop_from_script_scene_count": 1518,
    "dependency_queue_item_count": 7,
    "future_executable_after_p10_closeout_count": 1,
    "validator_failure_count": 0,
    "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
    "p9_deepseek_overall_verdict": "supports_p9_ai_executable_screenplay_fresh_execution",
    "old_b7_reference_only": true,
    "old_b7_active_source_ref_count": 0,
    "shooting_script_reentry_planning_count": 1,
    "shooting_script_execution_count": 0,
    "shooting_script_row_count": 0,
    "shot_number_assignment_count": 0,
    "shot_id_generation_count": 0,
    "camera_field_generation_count": 0,
    "duration_field_generation_count": 0,
    "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
  },
  "p10_manifest_summary": {
    "stage": "P10_shooting_script_reentry_planning_contract",
    "fresh_run_policy": {
      "new_output_run_dir": "outputs/p10_shooting_script_reentry_planning_20260531_134122",
      "no_overwrite": true
    }
  },
  "p10_program_validation": {
    "status": "pass",
    "failure_count": 0,
    "summary": {
      "p9_readiness_matrix_row_count": 5002,
      "p9_screenplay_unit_count": 5002,
      "p9_sequence_row_count": 5002,
      "p9_dependency_queue_item_count": 7,
      "shooting_script_readiness_row_count": 5002,
      "ready_for_future_shooting_script_execution_count": 5002,
      "blocked_readiness_row_count": 0,
      "deferred_readiness_row_count": 0,
      "adaptation_unit_refs_in_readiness_count": 6989,
      "source_scene_refs_in_readiness_count": 6989,
      "drop_from_script_scene_refs_preserved": 1518,
      "p9_drop_from_script_scene_count": 1518,
      "dependency_queue_item_count": 7,
      "future_executable_after_p10_closeout_count": 1,
      "validator_failure_count": 0,
      "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
      "p9_deepseek_overall_verdict": "supports_p9_ai_executable_screenplay_fresh_execution",
      "old_b7_reference_only": true,
      "old_b7_active_source_ref_count": 0,
      "shooting_script_reentry_planning_count": 1,
      "shooting_script_execution_count": 0,
      "shooting_script_row_count": 0,
      "shot_number_assignment_count": 0,
      "shot_id_generation_count": 0,
      "camera_field_generation_count": 0,
      "duration_field_generation_count": 0,
      "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
    }
  },
  "p10_deepseek_gate": {
    "status": "pass",
    "gate_status": "deepseek_advisory_supports_p10_shooting_script_reentry_planning",
    "summary": {
      "program_validation_status": "pass",
      "program_validation_failure_count": 0,
      "deepseek_call_status": "success",
      "deepseek_parse_status": "pass",
      "deepseek_overall_verdict": "supports_p10_shooting_script_reentry_planning",
      "recommended_next_candidate": "P10_closeout_retrospective_then_P11_shooting_script_fresh_execution_contract",
      "pipeline_finding_count": 0,
      "pipeline_blocker_count": 0,
      "pipeline_high_count": 0,
      "false_required_confirmation_count": 0,
      "p9_readiness_matrix_row_count": 5002,
      "p9_screenplay_unit_count": 5002,
      "p9_sequence_row_count": 5002,
      "p9_dependency_queue_item_count": 7,
      "shooting_script_readiness_row_count": 5002,
      "ready_for_future_shooting_script_execution_count": 5002,
      "blocked_readiness_row_count": 0,
      "deferred_readiness_row_count": 0,
      "adaptation_unit_refs_in_readiness_count": 6989,
      "source_scene_refs_in_readiness_count": 6989,
      "drop_from_script_scene_refs_preserved": 1518,
      "p9_drop_from_script_scene_count": 1518,
      "dependency_queue_item_count": 7,
      "future_executable_after_p10_closeout_count": 1,
      "validator_failure_count": 0,
      "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
      "p9_deepseek_overall_verdict": "supports_p9_ai_executable_screenplay_fresh_execution",
      "old_b7_reference_only": true,
      "old_b7_active_source_ref_count": 0,
      "shooting_script_reentry_planning_count": 1,
      "shooting_script_execution_count": 0,
      "shooting_script_row_count": 0,
      "shot_number_assignment_count": 0,
      "shot_id_generation_count": 0,
      "camera_field_generation_count": 0,
      "duration_field_generation_count": 0,
      "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
    }
  },
  "p10_deepseek_raw_meta": {
    "id": "52242fc5-1572-4f86-a3c4-c805b1ea7df8",
    "object": "chat.completion",
    "model": "deepseek-v4-pro",
    "usage": {
      "prompt_tokens": 45312,
      "completion_tokens": 3294,
      "total_tokens": 48606,
      "prompt_tokens_details": {
        "cached_tokens": 0
      },
      "completion_tokens_details": {
        "reasoning_tokens": 3008
      },
      "prompt_cache_hit_tokens": 0,
      "prompt_cache_miss_tokens": 45312
    },
    "finish_reason": "stop",
    "content_chars": 971,
    "reasoning_content_present": true,
    "reasoning_content_chars": 12468
  },
  "p10_shooting_script_readiness_surface": {
    "readiness_row_count": 5002,
    "ready_row_count": 5002,
    "dependency_queue_item_count": 7,
    "future_executable_after_p10_closeout_count": 1,
    "first_future_execution_contract_candidate": "P11_shooting_script_fresh_execution_contract"
  },
  "p9_screenplay_surface": {
    "screenplay_unit_count": 5002,
    "sequence_row_count": 5002
  },
  "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": "p10_authority",
      "purpose": "P11 consumes explicit P10 execution/advisory/retrospective paths and verifies pass gates",
      "blocks_p11_pass": true
    },
    {
      "validator_id": "readiness_traceability",
      "purpose": "Every shooting_script row maps to a P10 readiness row and P9 screenplay unit",
      "blocks_p11_pass": true
    },
    {
      "validator_id": "shooting_script_schema",
      "purpose": "Shot rows contain stable ids, numbers, placeholders, action, duration, transition, continuity, and source refs",
      "blocks_p11_pass": true
    },
    {
      "validator_id": "source_provenance_guard",
      "purpose": "Source scene ids, adaptation ids, chronology refs, source refs, and merge/drop provenance remain visible",
      "blocks_p11_pass": true
    },
    {
      "validator_id": "shooting_script_scope_guard",
      "purpose": "P11 generates provider-neutral shooting_script artifacts only",
      "blocks_p11_pass": true
    },
    {
      "validator_id": "dependency_queue_ordering",
      "purpose": "Queue opens only the next shot context planning contract candidate after P11 advisory/retrospective",
      "blocks_p11_pass": true
    },
    {
      "validator_id": "downstream_leakage_guard",
      "purpose": "Shot context/prompt/provider/media counters remain zero",
      "blocks_p11_pass": true
    },
    {
      "validator_id": "kg_overlay_replay_guard",
      "purpose": "KG/overlay/replay counters remain zero",
      "blocks_p11_pass": true
    },
    {
      "validator_id": "old_b7_exclusion",
      "purpose": "Old B7 remains reference-only and is not active authority",
      "blocks_p11_pass": true
    },
    {
      "validator_id": "active_route_guard",
      "purpose": "execution_state.next_entrypoint remains Now-32",
      "blocks_p11_pass": true
    }
  ],
  "policy": {
    "stage": "P11_shooting_script_fresh_execution_contract",
    "fresh_run_required": true,
    "provider_neutral_shooting_script_execution_allowed_in_p11": true,
    "provider_neutral_only": true,
    "deepseek_v4_pro_thinking_audit_required": true,
    "advisory_only": true,
    "shot_context_generation_allowed": false,
    "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": "f47985e0c83e3c74d376c2813a687172597128bcf11535853a761757572a3614"
}