{
  "run_id": "20260328T065601657593Z",
  "generated_at": "2026-03-28T07:16:09.661474Z",
  "stages": [
    {
      "ts_start": "2026-03-28T06:56:06.525147Z",
      "ts_end": "2026-03-28T06:56:07.371508Z",
      "duration_sec": 0.846,
      "stage": "chunks",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Ingestion & Chunking Agent",
      "inputs": [
        {
          "path": "/wwwb/aitools/writer/input/道祖是克苏鲁.txt",
          "kind": "novel_text"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/01_chunks.json",
          "kind": "chunks"
        }
      ],
      "metrics": {
        "chunks": 6,
        "max_chars": 1800,
        "limit_chunks": 6,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T06:56:07.388700Z",
      "ts_end": "2026-03-28T06:56:07.457951Z",
      "duration_sec": 0.069,
      "stage": "ontology",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Ontology & Taxonomy Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/01_chunks.json",
          "kind": "chunks"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/01b_ontology_samples.json",
          "kind": "ontology_samples"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/01c_ontology_candidates.json",
          "kind": "ontology_candidates"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/01d_ontology.json",
          "kind": "ontology_doc"
        }
      ],
      "metrics": {
        "samples": 6,
        "candidate_entity_types": 3,
        "candidate_relation_types": 6,
        "taxonomy_entity_types": 13,
        "taxonomy_relations": 6,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T06:56:07.476203Z",
      "ts_end": "2026-03-28T07:04:57.821200Z",
      "duration_sec": 530.345,
      "stage": "kg",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Knowledge Graph Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/01_chunks.json",
          "kind": "chunks"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/01d_ontology.json",
          "kind": "ontology_doc"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02_kg.json",
          "kind": "kg_summary"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02_kg_store.json",
          "kind": "kg_store"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02_kg_observations.jsonl",
          "kind": "kg_observations"
        }
      ],
      "metrics": {
        "entities": 43,
        "relations": 50,
        "observations": 166,
        "ambiguous_entity_forks": 1,
        "chunks": 6,
        "ontology_loaded": true,
        "high_density_chunks": 3,
        "supplement_chunks": 3,
        "max_entity_limit": 14,
        "max_relation_limit": 14,
        "kg_window_size": 1,
        "kg_window_concurrency": 1,
        "kg_warmup_chunks": 6,
        "kg_window_batches": 0,
        "kg_parallel_chunks": 0,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:04:57.842645Z",
      "ts_end": "2026-03-28T07:04:57.971667Z",
      "duration_sec": 0.129,
      "stage": "closure_fix",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Contextual Closure & Cleanup Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02_kg_store.json",
          "kind": "kg_store"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02_kg_observations.jsonl",
          "kind": "kg_observations"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02a_kg_closure.json",
          "kind": "kg_summary_closure"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02a_kg_store_closure.json",
          "kind": "kg_store_closure"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02a_kg_closure_decisions.json",
          "kind": "kg_closure_decisions"
        }
      ],
      "metrics": {
        "entities": 41,
        "relations": 49,
        "closure_decision_count": 2,
        "closure_drop_count": 1,
        "closure_merge_count": 1,
        "stub_cleanup_dropped_entities": 1,
        "stub_cleanup_dropped_relations": 1,
        "stub_cleanup_merged_duplicate_entities": 0,
        "stub_cleanup_merged_same_name_entities": 0,
        "stub_cleanup_merged_duplicate_relations": 0,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:04:57.993047Z",
      "ts_end": "2026-03-28T07:04:58.063996Z",
      "duration_sec": 0.071,
      "stage": "type_consolidation",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Ontology & Taxonomy Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02a_kg_store_closure.json",
          "kind": "kg_store_closure"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/01d_ontology.json",
          "kind": "ontology_doc"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02b_type_candidates.json",
          "kind": "type_candidates"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02c_type_consolidation.json",
          "kind": "type_consolidation"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02d_kg_store_consolidated.json",
          "kind": "kg_store_consolidated"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02d_kg_consolidated.json",
          "kind": "kg_summary_consolidated"
        }
      ],
      "metrics": {
        "candidates": 33,
        "apply_type_count": 5,
        "apply_subtype_count": 13,
        "review_type_count": 3,
        "review_subtype_count": 9,
        "other_before": 7,
        "other_after": 2,
        "ontology_loaded": true,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:04:58.087756Z",
      "ts_end": "2026-03-28T07:04:58.123897Z",
      "duration_sec": 0.036,
      "stage": "kg_lite",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Knowledge Graph Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02d_kg_consolidated.json",
          "kind": "kg_summary_consolidated"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02d_kg_store_consolidated.json",
          "kind": "kg_store_consolidated"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02i_kg_lite.json",
          "kind": "kg_lite"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02i_kg_lite_store.json",
          "kind": "kg_lite_store"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02i_kg_lite_decisions.json",
          "kind": "kg_lite_decisions"
        }
      ],
      "metrics": {
        "input_entities": 41,
        "input_relations": 49,
        "kept_entities": 40,
        "kept_relations": 49,
        "dropped_entities": 1,
        "dropped_relations": 0,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:04:58.146347Z",
      "ts_end": "2026-03-28T07:04:58.174046Z",
      "duration_sec": 0.028,
      "stage": "entity_registry",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Entity Registry & Asset Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02d_kg_store_consolidated.json",
          "kind": "kg_store_consolidated"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02d_kg_consolidated.json",
          "kind": "kg_summary_consolidated"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02e_entity_registry.json",
          "kind": "entity_registry"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02f_entity_visual_cards.json",
          "kind": "entity_visual_cards"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02g_entity_voice_cards.json",
          "kind": "entity_voice_cards"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02h_entity_assets.json",
          "kind": "entity_assets"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/logs/stage_artifacts/entity_registry/20260328T065601657593Z__02e_entity_registry.json",
          "kind": "entity_registry_snapshot"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/logs/stage_artifacts/entity_registry/20260328T065601657593Z__02f_entity_visual_cards.json",
          "kind": "entity_visual_cards_snapshot"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/logs/stage_artifacts/entity_registry/20260328T065601657593Z__02g_entity_voice_cards.json",
          "kind": "entity_voice_cards_snapshot"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/logs/stage_artifacts/entity_registry/20260328T065601657593Z__02h_entity_assets.json",
          "kind": "entity_assets_snapshot"
        }
      ],
      "metrics": {
        "entity_registry_entities": 41,
        "entity_visual_cards": 41,
        "entity_voice_cards": 13,
        "entity_asset_bindings": 41,
        "locked_count": 0,
        "needs_review_count": 5,
        "parallel_with_scenes": true,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:04:58.151478Z",
      "ts_end": "2026-03-28T07:07:16.818476Z",
      "duration_sec": 138.667,
      "stage": "scenes",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Scene Segmentation Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/01_chunks.json",
          "kind": "chunks"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02i_kg_lite_store.json",
          "kind": "kg_lite_store"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/logs/stage_artifacts/scenes/20260328T065601657593Z__03_scenes.json",
          "kind": "scenes_snapshot"
        }
      ],
      "metrics": {
        "scenes": 12,
        "chunks": 6,
        "continued_scenes": 0,
        "scene_with_characters": 11,
        "scene_with_locations": 3,
        "kg_context_loaded": true,
        "kg_context_layer": "kg_lite",
        "scenes_concurrency": 1,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:07:16.836473Z",
      "ts_end": "2026-03-28T07:07:16.842366Z",
      "duration_sec": 0.006,
      "stage": "chronology",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Chronology & Narrative Time Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02i_kg_lite_store.json",
          "kind": "kg_lite_store"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03b_chronology.json",
          "kind": "chronology"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/logs/stage_artifacts/chronology/20260328T065601657593Z__03b_chronology.json",
          "kind": "chronology_snapshot"
        }
      ],
      "metrics": {
        "scenes": 12,
        "chronology_groups": 12,
        "chronology_edges": 12,
        "chronology_conflicts": 0,
        "low_confidence_scenes": 1,
        "explicit_anchors": 2,
        "kg_context_layer": "kg_lite",
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:07:16.859941Z",
      "ts_end": "2026-03-28T07:10:23.905937Z",
      "duration_sec": 187.046,
      "stage": "adaptation",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Adaptation & Story Editor Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03b_chronology.json",
          "kind": "chronology"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02i_kg_lite.json",
          "kind": "kg_lite"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03c_adaptation.json",
          "kind": "adaptation"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/logs/stage_artifacts/adaptation/20260328T065601657593Z__03c_adaptation.json",
          "kind": "adaptation_snapshot"
        }
      ],
      "metrics": {
        "scenes": 12,
        "retain_scenes": 11,
        "compress_scenes": 1,
        "bridge_scenes": 0,
        "kg_context_layer": "kg_lite",
        "adaptation_concurrency": 1,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:10:23.926160Z",
      "ts_end": "2026-03-28T07:10:23.962760Z",
      "duration_sec": 0.037,
      "stage": "kg_deep",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Knowledge Graph Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02d_kg_consolidated.json",
          "kind": "kg_summary_consolidated"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02d_kg_store_consolidated.json",
          "kind": "kg_store_consolidated"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03c_adaptation.json",
          "kind": "adaptation"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02j_kg_deep.json",
          "kind": "kg_deep"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02j_kg_deep_store.json",
          "kind": "kg_deep_store"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02j_kg_deep_decisions.json",
          "kind": "kg_deep_decisions"
        }
      ],
      "metrics": {
        "input_entities": 41,
        "input_relations": 49,
        "kept_entities": 41,
        "kept_relations": 38,
        "scene_count": 12,
        "seed_entities": 5,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:10:23.985917Z",
      "ts_end": "2026-03-28T07:16:09.624344Z",
      "duration_sec": 345.638,
      "stage": "script",
      "status": "ok",
      "run_id": "20260328T065601657593Z",
      "agent": "Script & Shot Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03b_chronology.json",
          "kind": "chronology"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/03c_adaptation.json",
          "kind": "adaptation"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/02j_kg_deep.json",
          "kind": "kg_deep"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/04_scripts.json",
          "kind": "scripts"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v1/logs/stage_artifacts/script/20260328T065601657593Z__04_scripts.json",
          "kind": "scripts_snapshot"
        }
      ],
      "metrics": {
        "scripts": 12,
        "shots": 36,
        "dialogue_lines": 19,
        "narration_shots": 12,
        "chronology_bound_scripts": 12,
        "chronology_non_mainline_scripts": 1,
        "chronology_reordered_scripts": 2,
        "adaptation_bound_scripts": 12,
        "kg_context_layer": "kg_deep",
        "script_concurrency": 1,
        "resumed": false
      }
    }
  ],
  "stage_items": {
    "total": 36,
    "ok": 36,
    "partial": 0,
    "error": 0
  },
  "llm_calls": {
    "total": 39,
    "ok": 39,
    "error": 0
  },
  "run_errors": 0
}