{
  "version": "p8_adaptation_planning_deepseek_audit.v1",
  "created_at": "2026-05-30T23:47:06.290486Z",
  "phase": "P8_adaptation_planning_deepseek_audit",
  "status": "pass",
  "gate_status": "deepseek_advisory_supports_p8_adaptation_planning_fresh_execution",
  "input_fingerprint": "d6c5c2ced1de7de4a9e5d97580464373009de15a6f6f7e096968a08e84ceb321",
  "source_artifacts": {
    "p8_contract": {
      "path": "docs/p8_adaptation_planning_fresh_execution_contract_20260531.md",
      "sha256": "cd1e701c15806d03d2556c904f777c38bd203a02dc593c665091225753023eb2",
      "size_bytes": 7655,
      "exists": true
    },
    "p7_closeout_retrospective": {
      "path": "docs/p7_closeout_retrospective_20260531.md",
      "sha256": "8bdacffce7223b42f0116a718a1537a9572cf58f1b5e1f0d3e0fe2f37699df63",
      "size_bytes": 12027,
      "exists": true
    },
    "p8_gate": {
      "artifact": "P8_adaptation_gate.json",
      "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_gate.json",
      "exists": true,
      "size_bytes": 11157,
      "sha256": "9839073d2035a5146bf2fbf7b60c3c10da9d0d999bc93e08859527c6e51d94de"
    },
    "p8_validator": {
      "artifact": "P8_adaptation_validator_report.json",
      "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_validator_report.json",
      "exists": true,
      "size_bytes": 6262,
      "sha256": "6a9403ef42b5fb7a8bf0b36cbcb3dc4e1fd83162a63705c5ec5a555e567f031f"
    },
    "p8_readiness_matrix": {
      "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_scene_readiness_matrix.jsonl",
      "exists": true,
      "sha256": "917e596c9894112654dca20de24194e23acfc3e53ab791c6a206ccebbfc79be7",
      "size_bytes": 9554137
    },
    "p8_units": {
      "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_units.jsonl",
      "exists": true,
      "sha256": "51d549edfc74de50962e802d6f048094b11654b10c110c7257aba883bd07fe20",
      "size_bytes": 46735345
    },
    "p8_queue": {
      "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_dependency_queue.jsonl",
      "exists": true,
      "sha256": "4eee78ba3707aa6f0f0440a81bb599d2a9cf9306eb04f9b1778fa6b9271e8744",
      "size_bytes": 4737
    },
    "p8_report": {
      "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_report.md",
      "sha256": "6a39403335083ac807fda8cf71f955986f2b63a422c83b8109d83e97efd256ef",
      "size_bytes": 774,
      "exists": true
    },
    "execution_state": {
      "artifact": "execution_state.json",
      "path": "execution_state.json",
      "exists": true,
      "size_bytes": 57461,
      "sha256": "ba66c3e9f7baa2b540c9da5854eeb91b76eb601ea30ada2e6d20aeccf2640396"
    }
  },
  "program_validation": {
    "version": "p8_adaptation_planning_program_validation.v1",
    "created_at": "2026-05-30T23:47:04.415071Z",
    "stage": "P8_adaptation_planning_fresh_execution_contract",
    "status": "pass",
    "failure_count": 0,
    "failures": [],
    "checks": {
      "p8_gate_pass": true,
      "p8_validator_pass": true,
      "p8_required_files_exist": true,
      "p8_manifest_lists_required_files": true,
      "readiness_rows_complete": true,
      "adaptation_units_complete": true,
      "dependency_queue_complete": true,
      "single_future_executable": true,
      "adaptation_planning_executed": true,
      "groups_and_beats_present": true,
      "p5e_scene_count_6989": true,
      "p6_chronology_scene_count_6989": true,
      "p6_join_failure_zero": true,
      "no_downstream_or_writeback_side_effects": true,
      "next_entrypoint_unchanged": true
    },
    "summary": {
      "p5e_scene_count": 6989,
      "p6_chronology_scene_count": 6989,
      "p6_chronology_group_count": 5158,
      "p6_chronology_edge_count": 8951,
      "p6_chronology_conflict_count": 0,
      "p6_join_validation_failure_count": 0,
      "p7_planning_matrix_row_count": 8,
      "p7_dependency_queue_item_count": 8,
      "p8_readiness_matrix_row_count": 6989,
      "adaptation_unit_count": 6989,
      "retained_scene_group_count": 5002,
      "beat_count": 5002,
      "retain_scene_count": 5814,
      "compress_scene_count": 1140,
      "bridge_scene_count": 35,
      "drop_from_script_scene_count": 1518,
      "hard_merge_group_count": 1046,
      "dependency_queue_item_count": 7,
      "future_executable_after_p8_closeout_count": 1,
      "validator_failure_count": 0,
      "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
      "p7_deepseek_overall_verdict": "supports_p7_adaptation_screenplay_reentry_planning",
      "old_b7_reference_only": true,
      "old_b7_active_source_ref_count": 0,
      "adaptation_planning_execution_count": 1,
      "llm_enrichment_call_count": 0,
      "screenplay_execution_count": 0,
      "shooting_script_execution_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,
      "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
    },
    "source_artifacts": {
      "p8_gate": {
        "artifact": "P8_adaptation_gate.json",
        "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_gate.json",
        "exists": true,
        "size_bytes": 11157,
        "sha256": "9839073d2035a5146bf2fbf7b60c3c10da9d0d999bc93e08859527c6e51d94de"
      },
      "p8_validator": {
        "artifact": "P8_adaptation_validator_report.json",
        "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_validator_report.json",
        "exists": true,
        "size_bytes": 6262,
        "sha256": "6a9403ef42b5fb7a8bf0b36cbcb3dc4e1fd83162a63705c5ec5a555e567f031f"
      },
      "p8_manifest": {
        "artifact": "manifest.json",
        "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/manifest.json",
        "exists": true,
        "size_bytes": 5335,
        "sha256": "883262703f547b5d6338f39210311ef047ace9b3e7366a18f137de6503a64406"
      },
      "p8_readiness_matrix": {
        "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_scene_readiness_matrix.jsonl",
        "exists": true,
        "sha256": "917e596c9894112654dca20de24194e23acfc3e53ab791c6a206ccebbfc79be7",
        "size_bytes": 9554137
      },
      "p8_units": {
        "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_units.jsonl",
        "exists": true,
        "sha256": "51d549edfc74de50962e802d6f048094b11654b10c110c7257aba883bd07fe20",
        "size_bytes": 46735345
      },
      "p8_queue": {
        "path": "outputs/p8_adaptation_planning_fresh_execution_20260531_074542/P8_adaptation_dependency_queue.jsonl",
        "exists": true,
        "sha256": "4eee78ba3707aa6f0f0440a81bb599d2a9cf9306eb04f9b1778fa6b9271e8744",
        "size_bytes": 4737
      },
      "execution_state": {
        "artifact": "execution_state.json",
        "path": "execution_state.json",
        "exists": true,
        "size_bytes": 57461,
        "sha256": "ba66c3e9f7baa2b540c9da5854eeb91b76eb601ea30ada2e6d20aeccf2640396"
      }
    },
    "policy": {
      "stage": "P8_adaptation_planning_fresh_execution_contract",
      "fresh_run_required": true,
      "adaptation_planning_execution_allowed_in_p8": true,
      "deterministic_adaptation_builder": true,
      "llm_enrichment_allowed_in_p8": false,
      "deepseek_v4_pro_thinking_audit_required": true,
      "advisory_only": true,
      "screenplay_execution_allowed_in_p8": false,
      "shooting_script_execution_allowed_in_p8": false,
      "shot_context_execution_allowed_in_p8": false,
      "prompt_packet_execution_allowed_in_p8": false,
      "adapter_render_allowed_in_p8": false,
      "provider_job_execution_allowed": false,
      "media_generation_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
    }
  },
  "summary": {
    "program_validation_status": "pass",
    "program_validation_failure_count": 0,
    "deepseek_call_status": "success",
    "deepseek_parse_status": "pass",
    "deepseek_overall_verdict": "supports_p8_adaptation_planning_fresh_execution",
    "recommended_next_candidate": "P9_ai_executable_screenplay_fresh_execution_contract",
    "pipeline_finding_count": 0,
    "pipeline_blocker_count": 0,
    "pipeline_high_count": 0,
    "false_required_confirmation_count": 0,
    "p5e_scene_count": 6989,
    "p6_chronology_scene_count": 6989,
    "p6_chronology_group_count": 5158,
    "p6_chronology_edge_count": 8951,
    "p6_chronology_conflict_count": 0,
    "p6_join_validation_failure_count": 0,
    "p7_planning_matrix_row_count": 8,
    "p7_dependency_queue_item_count": 8,
    "p8_readiness_matrix_row_count": 6989,
    "adaptation_unit_count": 6989,
    "retained_scene_group_count": 5002,
    "beat_count": 5002,
    "retain_scene_count": 5814,
    "compress_scene_count": 1140,
    "bridge_scene_count": 35,
    "drop_from_script_scene_count": 1518,
    "hard_merge_group_count": 1046,
    "dependency_queue_item_count": 7,
    "future_executable_after_p8_closeout_count": 1,
    "validator_failure_count": 0,
    "active_route_next_entrypoint_id": "platform_neutral_prompt_readiness_manual_execution_log_contract",
    "p7_deepseek_overall_verdict": "supports_p7_adaptation_screenplay_reentry_planning",
    "old_b7_reference_only": true,
    "old_b7_active_source_ref_count": 0,
    "adaptation_planning_execution_count": 1,
    "llm_enrichment_call_count": 0,
    "screenplay_execution_count": 0,
    "shooting_script_execution_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,
    "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
  },
  "false_required_confirmations": [],
  "deepseek_advisory": {
    "parse_status": "pass",
    "overall_verdict": "supports_p8_adaptation_planning_fresh_execution",
    "adaptation_audit": {
      "adaptation_planning_completed": true,
      "adaptation_units_traceable": true,
      "kg_overlay_replay_blocked": true,
      "next_entrypoint_unchanged": true,
      "old_b7_reference_only": true,
      "outputs_index_unchanged": true,
      "p5e_fresh_scenes_used": true,
      "p6_fresh_chronology_used": true,
      "p7_authority_passed": true,
      "p8_contract_artifact_backed": true,
      "p9_requires_separate_contract": true,
      "program_validation_passed": true,
      "runtime_branching_by_names_absent": true,
      "scene_chronology_join_passed": true,
      "screenplay_execution_not_performed": true,
      "shooting_script_prompt_provider_media_not_performed": true
    },
    "recommended_next_candidate": "P9_ai_executable_screenplay_fresh_execution_contract",
    "pipeline_findings": [],
    "recommended_next_action": "P8_closeout_retrospective_then_P9_ai_executable_screenplay_fresh_execution_contract",
    "raw_parsed": {
      "adaptation_audit": {
        "adaptation_planning_completed": true,
        "adaptation_units_traceable": true,
        "kg_overlay_replay_blocked": true,
        "next_entrypoint_unchanged": true,
        "old_b7_reference_only": true,
        "outputs_index_unchanged": true,
        "p5e_fresh_scenes_used": true,
        "p6_fresh_chronology_used": true,
        "p7_authority_passed": true,
        "p8_contract_artifact_backed": true,
        "p9_requires_separate_contract": true,
        "program_validation_passed": true,
        "runtime_branching_by_names_absent": true,
        "scene_chronology_join_passed": true,
        "screenplay_execution_not_performed": true,
        "shooting_script_prompt_provider_media_not_performed": true
      },
      "overall_verdict": "supports_p8_adaptation_planning_fresh_execution",
      "pipeline_findings": [],
      "recommended_next_action": "P8_closeout_retrospective_then_P9_ai_executable_screenplay_fresh_execution_contract",
      "recommended_next_candidate": "P9_ai_executable_screenplay_fresh_execution_contract"
    }
  },
  "deepseek_validation": {
    "deepseek_available": true,
    "deepseek_parsed": true,
    "raw_response_meta": {
      "id": "36c8aa05-008c-4300-b9c5-e5cdb3d4e085",
      "object": "chat.completion",
      "model": "deepseek-v4-pro",
      "usage": {
        "prompt_tokens": 55119,
        "completion_tokens": 2234,
        "total_tokens": 57353,
        "prompt_tokens_details": {
          "cached_tokens": 0
        },
        "completion_tokens_details": {
          "reasoning_tokens": 1926
        },
        "prompt_cache_hit_tokens": 0,
        "prompt_cache_miss_tokens": 55119
      },
      "finish_reason": "stop",
      "content_chars": 997,
      "reasoning_content_present": true,
      "reasoning_content_chars": 7704
    },
    "message_fingerprint": "59763e92a17e31550ae6a73224111e72c4b9821a10a4ad4ac43cebb1cf0d6dea"
  },
  "policy": {
    "stage": "P8_adaptation_planning_fresh_execution_contract",
    "fresh_run_required": true,
    "adaptation_planning_execution_allowed_in_p8": true,
    "deterministic_adaptation_builder": true,
    "llm_enrichment_allowed_in_p8": false,
    "deepseek_v4_pro_thinking_audit_required": true,
    "advisory_only": true,
    "screenplay_execution_allowed_in_p8": false,
    "shooting_script_execution_allowed_in_p8": false,
    "shot_context_execution_allowed_in_p8": false,
    "prompt_packet_execution_allowed_in_p8": false,
    "adapter_render_allowed_in_p8": false,
    "provider_job_execution_allowed": false,
    "media_generation_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
  },
  "next_required_action": "P8_closeout_retrospective_then_P9_ai_executable_screenplay_fresh_execution_contract"
}