{
  "version": "screenplay_quality_gate.v1",
  "generated_at": "2026-03-30T11:55:13.481873Z",
  "candidate_run_dir": "outputs/daozu_conflict_downstream_full50_20260330_v1",
  "gate_config": {
    "structure": {
      "require_artifacts": true,
      "require_non_empty_episodes": true,
      "require_non_empty_blocks": true,
      "max_missing_episode_source_refs": 0,
      "max_missing_block_source_refs": 0,
      "max_missing_block_group_refs": 0,
      "max_missing_block_beat_refs": 0,
      "max_missing_time_mode_count": 0,
      "max_empty_block_text_count": 0
    },
    "text_quality": {
      "short_block_char_threshold": 120,
      "max_short_block_ratio": 0.2,
      "summary_like_char_threshold": 180,
      "max_summary_like_ratio": 0.15,
      "max_dialogue_sparse_ratio": 0.35,
      "max_narration_overload_ratio": 0.35
    },
    "dramart": {
      "min_upload_script_chars": 2000,
      "max_missing_character_bio_ratio": 0.05,
      "max_missing_visual_card_ratio": 0.05,
      "max_missing_voice_card_ratio": 0.05,
      "max_missing_asset_binding_ratio": 0.05,
      "max_missing_identity_summary_ratio": 0.05
    }
  },
  "candidate": {
    "run_dir": "daozu_conflict_downstream_full50_20260330_v1",
    "run_id": "20260329T091113689911Z",
    "created_at": "2026-03-30T03:39:05.962999Z",
    "out_dir": "outputs/daozu_conflict_downstream_full50_20260330_v1",
    "input_path": "input/道祖是克苏鲁.txt",
    "input_sha256": "5c05796b90b9a1956f3fe767cd8288965db478acac5dbed44f64419f0fea185d",
    "provider": "deepseek",
    "video_provider": "doubao",
    "enable_video": false,
    "style_preset": "电影化叙事，细节清晰，角色形象一致，光照连续",
    "limits": {
      "max_chars": 1800,
      "limit_chunks": null,
      "limit_scenes": null,
      "limit_shots": null
    },
    "status": "ok",
    "errors": 0,
    "counts": {
      "chunks": 50,
      "ontology_samples": 38,
      "ontology_candidate_entity_types": 7,
      "ontology_candidate_relation_types": 8,
      "ontology_entity_taxonomy": 13,
      "ontology_relation_taxonomy": 8,
      "observations": 1011,
      "entities": 194,
      "relations": 270,
      "type_candidates": 137,
      "type_apply_type_count": 18,
      "type_apply_subtype_count": 36,
      "type_other_before": 18,
      "type_other_after": 0,
      "entity_registry_entities": 176,
      "entity_visual_cards": 176,
      "entity_voice_cards": 54,
      "entity_asset_bindings": 176,
      "scenes": 130,
      "chronology_scenes": 130,
      "chronology_groups": 104,
      "chronology_edges": 164,
      "chronology_conflicts": 0,
      "adaptation_scenes": 130,
      "adaptation_groups": 95,
      "adaptation_beats": 95,
      "adaptation_retain_scenes": 124,
      "adaptation_compress_scenes": 6,
      "adaptation_bridge_scenes": 0,
      "adaptation_drop_scenes": 15,
      "screenplay_episodes": 16,
      "screenplay_blocks": 95,
      "screenplay_source_scene_refs": 115,
      "dramart_package_episodes": 16,
      "dramart_package_character_bios": 45,
      "dramart_package_location_assets": 27,
      "dramart_package_prop_assets": 16,
      "dramart_package_checklist": 144,
      "dramart_package_upload_chars": 37787,
      "dramart_review_checklist_done": 0,
      "dramart_review_checklist_open": 0,
      "dramart_review_upload_parts_done": 0,
      "dramart_review_upload_parts_open": 0,
      "dramart_review_episode_upload_done": 0,
      "dramart_review_episode_upload_open": 0,
      "dramart_review_events": 0,
      "scripts": 0,
      "shots": 0,
      "style_fixed_positive_terms": 0,
      "style_fixed_negative_terms": 0,
      "style_provider_profiles": 0,
      "style_manual_override_slots": 0,
      "style_reference_ready_entities": 0,
      "storyboards": 0,
      "prompt_guard_shots": 0,
      "prompt_guard_pass_shots": 0,
      "prompt_guard_warning_shots": 0,
      "prompt_guard_fail_shots": 0,
      "prompt_guard_issue_count": 0,
      "segments": 0,
      "captions": 0,
      "audio_tasks": 0,
      "audio_results": 0,
      "video_tasks": 0,
      "video_results": 0,
      "manual_video_attempts": 0,
      "manual_video_task_covered_count": 0,
      "manual_video_result_ready_count": 0,
      "manual_video_eval_count": 0,
      "manual_video_selected_count": 0
    },
    "paths": {
      "project": "project.json",
      "manifest": "run_manifest.json",
      "chunks": "01_chunks.json",
      "ontology_samples": "01b_ontology_samples.json",
      "ontology_candidates": "01c_ontology_candidates.json",
      "ontology_doc": "01d_ontology.json",
      "kg": "02_kg.json",
      "kg_store": "02_kg_store.json",
      "kg_observations": "02_kg_observations.jsonl",
      "kg_closure": "02a_kg_closure.json",
      "kg_store_closure": "02a_kg_store_closure.json",
      "kg_closure_decisions": "02a_kg_closure_decisions.json",
      "type_candidates": "02b_type_candidates.json",
      "type_consolidation": "02c_type_consolidation.json",
      "kg_consolidated": "02d_kg_consolidated.json",
      "kg_store_consolidated": "02d_kg_store_consolidated.json",
      "entity_registry": "02e_entity_registry.json",
      "entity_visual_cards": "02f_entity_visual_cards.json",
      "entity_voice_cards": "02g_entity_voice_cards.json",
      "entity_assets": "02h_entity_assets.json",
      "kg_lite": "02i_kg_lite.json",
      "kg_lite_store": "02i_kg_lite_store.json",
      "kg_lite_decisions": "02i_kg_lite_decisions.json",
      "kg_deep": "02j_kg_deep.json",
      "kg_deep_store": "02j_kg_deep_store.json",
      "kg_deep_decisions": "02j_kg_deep_decisions.json",
      "scenes": "03_scenes.json",
      "chronology": "03b_chronology.json",
      "adaptation": "03c_adaptation.json",
      "screenplay": "03d_screenplay.json",
      "dramart_package": "03e_dramart_package.json",
      "dramart_upload_script": "03e_dramart_upload_script.md",
      "dramart_review_state": "03f_dramart_review_state.json",
      "scripts": "04_scripts.json",
      "style_bible": "04b_style_bible.json",
      "storyboard": "05_storyboard.json",
      "prompt_guard": "05b_storyboard_guard.json",
      "timeline": "06_timeline.json",
      "audio_tasks": "06b_audio_tasks.json",
      "audio_results": "06c_audio_results.json",
      "video_tasks": "07_video_tasks.json",
      "video_results": "07_video_results.json",
      "manual_video_runs": "07b_manual_video_runs.json",
      "manual_video_eval": "07c_manual_video_eval.json",
      "events": "logs/run_events.jsonl",
      "errors": "logs/run_errors.jsonl",
      "stage_timings": "logs/stage_timings.jsonl",
      "llm_calls": "logs/llm_calls.jsonl",
      "report_html": "logs/run_report.html",
      "report_md": "logs/run_report.md",
      "metrics": "logs/run_metrics.json"
    },
    "dramart_review_status": "",
    "dramart_review_updated_at": "",
    "updated_at": "2026-03-30T11:55:13.474593Z",
    "run_uid": "20260329T091113689911Z",
    "run_key": "20260329T091113689911Z",
    "trace_scope": "live",
    "is_current_live": true,
    "archive_rel": "",
    "web_paths": {
      "run_root": "",
      "logs_dir": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/logs/",
      "llm_dir": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/logs/llm/",
      "manifest": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/run_manifest.json",
      "project": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/project.json",
      "report_html": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/logs/run_report.html",
      "report_md": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/logs/run_report.md",
      "metrics": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/logs/run_metrics.json",
      "events": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/logs/run_events.jsonl",
      "errors": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/logs/run_errors.jsonl",
      "stage_timings": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/logs/stage_timings.jsonl",
      "llm_calls": "/novel2video/runs/daozu_conflict_downstream_full50_20260330_v1/logs/llm_calls.jsonl"
    }
  },
  "artifacts": {
    "adaptation": "outputs/daozu_conflict_downstream_full50_20260330_v1/03c_adaptation.json",
    "screenplay": "outputs/daozu_conflict_downstream_full50_20260330_v1/03d_screenplay.json",
    "dramart_package": "outputs/daozu_conflict_downstream_full50_20260330_v1/03e_dramart_package.json"
  },
  "metrics": {
    "adaptation_item_count": 130,
    "retained_scene_group_count": 95,
    "beat_count": 95,
    "drop_from_script_count": 15,
    "hard_merge_count": 24,
    "episode_count": 16,
    "block_count": 95,
    "episode_summary_count": 16,
    "source_scene_ref_count": 115,
    "source_group_ref_count": 95,
    "source_beat_ref_count": 95,
    "character_binding_count": 360,
    "location_binding_count": 83,
    "unique_character_entity_count": 46,
    "unique_location_entity_count": 21,
    "missing_episode_source_ref_count": 0,
    "missing_block_source_ref_count": 0,
    "missing_block_group_ref_count": 0,
    "missing_block_beat_ref_count": 0,
    "missing_time_mode_count": 0,
    "empty_block_text_count": 0,
    "avg_block_char_count": 260.4,
    "short_block_count": 3,
    "short_block_ratio": 0.031579,
    "summary_like_block_count": 0,
    "summary_like_block_ratio": 0.0,
    "dialogue_block_count": 93,
    "dialogue_block_ratio": 0.978947,
    "dialogue_eligible_block_count": 62,
    "dialogue_sparse_block_count": 0,
    "dialogue_sparse_block_ratio": 0.0,
    "narration_overload_block_count": 19,
    "narration_overload_block_ratio": 0.2,
    "character_bio_count": 45,
    "missing_character_bio_count": 1,
    "missing_character_bio_ratio": 0.021739,
    "episode_summary_missing_character_bio_count": 1,
    "upload_script_char_count": 37787,
    "asset_suggestion_character_count": 45,
    "asset_suggestion_location_count": 27,
    "asset_suggestion_prop_count": 16,
    "asset_suggestion_voice_count": 45,
    "missing_visual_card_count": 0,
    "missing_visual_card_ratio": 0.0,
    "missing_voice_card_count": 0,
    "missing_voice_card_ratio": 0.0,
    "missing_asset_binding_count": 0,
    "missing_asset_binding_ratio": 0.0,
    "missing_identity_summary_count": 0,
    "missing_identity_summary_ratio": 0.0,
    "time_mode_distribution": {
      "unknown": 1,
      "mainline": 55,
      "flashback": 30,
      "dream": 7,
      "parallel": 4,
      "rumor": 2,
      "insertion": 1
    }
  },
  "checks": [
    {
      "id": "artifacts.adaptation",
      "stage": "screenplay_gate",
      "status": "pass",
      "severity": "error",
      "message": "adaptation artifact is present",
      "actual": "outputs/daozu_conflict_downstream_full50_20260330_v1/03c_adaptation.json",
      "expected": "existing file path"
    },
    {
      "id": "artifacts.screenplay",
      "stage": "screenplay_gate",
      "status": "pass",
      "severity": "error",
      "message": "screenplay artifact is present",
      "actual": "outputs/daozu_conflict_downstream_full50_20260330_v1/03d_screenplay.json",
      "expected": "existing file path"
    },
    {
      "id": "artifacts.dramart_package",
      "stage": "screenplay_gate",
      "status": "pass",
      "severity": "error",
      "message": "dramart_package artifact is present",
      "actual": "outputs/daozu_conflict_downstream_full50_20260330_v1/03e_dramart_package.json",
      "expected": "existing file path"
    },
    {
      "id": "structure.adaptation_items",
      "stage": "adaptation",
      "status": "pass",
      "severity": "error",
      "message": "adaptation items are present",
      "actual": 130,
      "expected": ">= 1"
    },
    {
      "id": "structure.episodes",
      "stage": "screenplay",
      "status": "pass",
      "severity": "error",
      "message": "screenplay episodes are present",
      "actual": 16,
      "expected": ">= 1"
    },
    {
      "id": "structure.blocks",
      "stage": "screenplay",
      "status": "pass",
      "severity": "error",
      "message": "screenplay blocks are present",
      "actual": 95,
      "expected": ">= 1"
    },
    {
      "id": "structure.character_bios",
      "stage": "dramart_package",
      "status": "pass",
      "severity": "warn",
      "message": "dramart character bios are present",
      "actual": 45,
      "expected": ">= 1"
    },
    {
      "id": "structure.episode_summaries",
      "stage": "dramart_package",
      "status": "pass",
      "severity": "warn",
      "message": "dramart episode summaries are present",
      "actual": 16,
      "expected": ">= 1"
    },
    {
      "id": "structure.upload_bundle",
      "stage": "dramart_package",
      "status": "pass",
      "severity": "warn",
      "message": "dramart upload bundle is present",
      "actual": true,
      "expected": true
    },
    {
      "id": "structure.episode_sources",
      "stage": "screenplay",
      "status": "pass",
      "severity": "error",
      "message": "missing episode source refs stay within threshold",
      "actual": 0,
      "expected": {
        "max_missing_episode_source_ref_count": 0
      }
    },
    {
      "id": "structure.block_sources",
      "stage": "screenplay",
      "status": "pass",
      "severity": "error",
      "message": "missing block source refs stay within threshold",
      "actual": 0,
      "expected": {
        "max_missing_block_source_ref_count": 0
      }
    },
    {
      "id": "structure.block_group_sources",
      "stage": "screenplay",
      "status": "pass",
      "severity": "error",
      "message": "missing block group refs stay within threshold",
      "actual": 0,
      "expected": {
        "max_missing_block_group_ref_count": 0
      }
    },
    {
      "id": "structure.block_beat_sources",
      "stage": "screenplay",
      "status": "pass",
      "severity": "error",
      "message": "missing block beat refs stay within threshold",
      "actual": 0,
      "expected": {
        "max_missing_block_beat_ref_count": 0
      }
    },
    {
      "id": "structure.time_modes",
      "stage": "screenplay",
      "status": "pass",
      "severity": "error",
      "message": "missing time modes stay within threshold",
      "actual": 0,
      "expected": {
        "max_missing_time_mode_count": 0
      }
    },
    {
      "id": "structure.empty_block_text",
      "stage": "screenplay",
      "status": "pass",
      "severity": "error",
      "message": "empty block text count stays within threshold",
      "actual": 0,
      "expected": {
        "max_empty_block_text_count": 0
      }
    },
    {
      "id": "text_quality.short_block_ratio",
      "stage": "screenplay",
      "status": "pass",
      "severity": "warn",
      "message": "short block ratio stays within threshold",
      "actual": 0.031579,
      "expected": {
        "max_short_block_ratio": 0.2
      }
    },
    {
      "id": "text_quality.summary_like_ratio",
      "stage": "screenplay",
      "status": "pass",
      "severity": "warn",
      "message": "summary-like block ratio stays within threshold",
      "actual": 0.0,
      "expected": {
        "max_summary_like_block_ratio": 0.15
      }
    },
    {
      "id": "text_quality.dialogue_sparse_ratio",
      "stage": "screenplay",
      "status": "pass",
      "severity": "warn",
      "message": "dialogue-sparse block ratio stays within threshold",
      "actual": 0.0,
      "expected": {
        "max_dialogue_sparse_block_ratio": 0.35
      }
    },
    {
      "id": "text_quality.narration_overload_ratio",
      "stage": "screenplay",
      "status": "pass",
      "severity": "warn",
      "message": "narration-overload block ratio stays within threshold",
      "actual": 0.2,
      "expected": {
        "max_narration_overload_block_ratio": 0.35
      }
    },
    {
      "id": "dramart.upload_script_chars",
      "stage": "dramart_package",
      "status": "pass",
      "severity": "warn",
      "message": "dramart upload script length meets minimum threshold",
      "actual": 37787,
      "expected": {
        "min_upload_script_chars": 2000
      }
    },
    {
      "id": "dramart.missing_character_bio_ratio",
      "stage": "dramart_package",
      "status": "pass",
      "severity": "warn",
      "message": "missing character bio ratio stays within threshold",
      "actual": 0.021739,
      "expected": {
        "max_missing_character_bio_ratio": 0.05
      }
    },
    {
      "id": "dramart.missing_visual_card_ratio",
      "stage": "dramart_package",
      "status": "pass",
      "severity": "warn",
      "message": "missing visual card ratio stays within threshold",
      "actual": 0.0,
      "expected": {
        "max_missing_visual_card_ratio": 0.05
      }
    },
    {
      "id": "dramart.missing_voice_card_ratio",
      "stage": "dramart_package",
      "status": "pass",
      "severity": "warn",
      "message": "missing voice card ratio stays within threshold",
      "actual": 0.0,
      "expected": {
        "max_missing_voice_card_ratio": 0.05
      }
    },
    {
      "id": "dramart.missing_asset_binding_ratio",
      "stage": "dramart_package",
      "status": "pass",
      "severity": "warn",
      "message": "missing asset binding ratio stays within threshold",
      "actual": 0.0,
      "expected": {
        "max_missing_asset_binding_ratio": 0.05
      }
    },
    {
      "id": "dramart.missing_identity_summary_ratio",
      "stage": "dramart_package",
      "status": "pass",
      "severity": "warn",
      "message": "missing identity summary ratio stays within threshold",
      "actual": 0.0,
      "expected": {
        "max_missing_identity_summary_ratio": 0.05
      }
    }
  ],
  "summary": {
    "check_count": 25,
    "failure_count": 0,
    "warning_count": 0
  },
  "top_issues": [],
  "recommendations": [],
  "status": "pass"
}