{
  "run_id": "20260328T065923644315Z",
  "generated_at": "2026-03-28T07:08:02.028050Z",
  "stages": [
    {
      "ts_start": "2026-03-28T06:59:28.357450Z",
      "ts_end": "2026-03-28T06:59:29.185626Z",
      "duration_sec": 0.828,
      "stage": "chunks",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Ingestion & Chunking Agent",
      "inputs": [
        {
          "path": "/wwwb/aitools/writer/input/道祖是克苏鲁.txt",
          "kind": "novel_text"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/01_chunks.json",
          "kind": "chunks"
        }
      ],
      "metrics": {
        "chunks": 2,
        "max_chars": 1800,
        "limit_chunks": 2,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T06:59:29.202728Z",
      "ts_end": "2026-03-28T06:59:29.262976Z",
      "duration_sec": 0.06,
      "stage": "ontology",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Ontology & Taxonomy Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/01_chunks.json",
          "kind": "chunks"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/01b_ontology_samples.json",
          "kind": "ontology_samples"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/01c_ontology_candidates.json",
          "kind": "ontology_candidates"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/01d_ontology.json",
          "kind": "ontology_doc"
        }
      ],
      "metrics": {
        "samples": 2,
        "candidate_entity_types": 3,
        "candidate_relation_types": 3,
        "taxonomy_entity_types": 13,
        "taxonomy_relations": 3,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T06:59:29.281591Z",
      "ts_end": "2026-03-28T07:01:40.559432Z",
      "duration_sec": 131.278,
      "stage": "kg",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Knowledge Graph Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/01_chunks.json",
          "kind": "chunks"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/01d_ontology.json",
          "kind": "ontology_doc"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02_kg.json",
          "kind": "kg_summary"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02_kg_store.json",
          "kind": "kg_store"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02_kg_observations.jsonl",
          "kind": "kg_observations"
        }
      ],
      "metrics": {
        "entities": 19,
        "relations": 15,
        "observations": 41,
        "ambiguous_entity_forks": 0,
        "chunks": 2,
        "ontology_loaded": true,
        "high_density_chunks": 1,
        "supplement_chunks": 0,
        "max_entity_limit": 14,
        "max_relation_limit": 14,
        "kg_window_size": 1,
        "kg_window_concurrency": 1,
        "kg_warmup_chunks": 2,
        "kg_window_batches": 0,
        "kg_parallel_chunks": 0,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:01:40.586176Z",
      "ts_end": "2026-03-28T07:01:40.670587Z",
      "duration_sec": 0.084,
      "stage": "closure_fix",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Contextual Closure & Cleanup Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02_kg_store.json",
          "kind": "kg_store"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02_kg_observations.jsonl",
          "kind": "kg_observations"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02a_kg_closure.json",
          "kind": "kg_summary_closure"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02a_kg_store_closure.json",
          "kind": "kg_store_closure"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02a_kg_closure_decisions.json",
          "kind": "kg_closure_decisions"
        }
      ],
      "metrics": {
        "entities": 18,
        "relations": 14,
        "closure_decision_count": 1,
        "closure_drop_count": 1,
        "closure_merge_count": 0,
        "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:01:40.692142Z",
      "ts_end": "2026-03-28T07:01:40.736914Z",
      "duration_sec": 0.045,
      "stage": "type_consolidation",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Ontology & Taxonomy Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02a_kg_store_closure.json",
          "kind": "kg_store_closure"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/01d_ontology.json",
          "kind": "ontology_doc"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02b_type_candidates.json",
          "kind": "type_candidates"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02c_type_consolidation.json",
          "kind": "type_consolidation"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02d_kg_store_consolidated.json",
          "kind": "kg_store_consolidated"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02d_kg_consolidated.json",
          "kind": "kg_summary_consolidated"
        }
      ],
      "metrics": {
        "candidates": 15,
        "apply_type_count": 3,
        "apply_subtype_count": 7,
        "review_type_count": 1,
        "review_subtype_count": 3,
        "other_before": 4,
        "other_after": 1,
        "ontology_loaded": true,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:01:40.758130Z",
      "ts_end": "2026-03-28T07:01:40.783210Z",
      "duration_sec": 0.025,
      "stage": "kg_lite",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Knowledge Graph Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02d_kg_consolidated.json",
          "kind": "kg_summary_consolidated"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02d_kg_store_consolidated.json",
          "kind": "kg_store_consolidated"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02i_kg_lite.json",
          "kind": "kg_lite"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02i_kg_lite_store.json",
          "kind": "kg_lite_store"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02i_kg_lite_decisions.json",
          "kind": "kg_lite_decisions"
        }
      ],
      "metrics": {
        "input_entities": 18,
        "input_relations": 14,
        "kept_entities": 17,
        "kept_relations": 14,
        "dropped_entities": 1,
        "dropped_relations": 0,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:01:40.803125Z",
      "ts_end": "2026-03-28T07:01:40.826827Z",
      "duration_sec": 0.024,
      "stage": "entity_registry",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Entity Registry & Asset Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02i_kg_lite_store.json",
          "kind": "kg_lite_store"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02i_kg_lite.json",
          "kind": "kg_lite"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02e_entity_registry.json",
          "kind": "entity_registry"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02f_entity_visual_cards.json",
          "kind": "entity_visual_cards"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02g_entity_voice_cards.json",
          "kind": "entity_voice_cards"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02h_entity_assets.json",
          "kind": "entity_assets"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/logs/stage_artifacts/entity_registry/20260328T065923644315Z__02e_entity_registry.json",
          "kind": "entity_registry_snapshot"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/logs/stage_artifacts/entity_registry/20260328T065923644315Z__02f_entity_visual_cards.json",
          "kind": "entity_visual_cards_snapshot"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/logs/stage_artifacts/entity_registry/20260328T065923644315Z__02g_entity_voice_cards.json",
          "kind": "entity_voice_cards_snapshot"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/logs/stage_artifacts/entity_registry/20260328T065923644315Z__02h_entity_assets.json",
          "kind": "entity_assets_snapshot"
        }
      ],
      "metrics": {
        "entity_registry_entities": 17,
        "entity_visual_cards": 17,
        "entity_voice_cards": 7,
        "entity_asset_bindings": 17,
        "locked_count": 0,
        "needs_review_count": 1,
        "kg_context_layer": "kg_lite",
        "parallel_with_scenes": true,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:01:40.803380Z",
      "ts_end": "2026-03-28T07:02:45.472788Z",
      "duration_sec": 64.669,
      "stage": "scenes",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Scene Segmentation Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/01_chunks.json",
          "kind": "chunks"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02i_kg_lite_store.json",
          "kind": "kg_lite_store"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/logs/stage_artifacts/scenes/20260328T065923644315Z__03_scenes.json",
          "kind": "scenes_snapshot"
        }
      ],
      "metrics": {
        "scenes": 6,
        "chunks": 2,
        "continued_scenes": 0,
        "scene_with_characters": 5,
        "scene_with_locations": 3,
        "kg_context_loaded": true,
        "kg_context_layer": "kg_lite",
        "scenes_concurrency": 1,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:02:45.500716Z",
      "ts_end": "2026-03-28T07:02:45.507316Z",
      "duration_sec": 0.007,
      "stage": "chronology",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Chronology & Narrative Time Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02i_kg_lite_store.json",
          "kind": "kg_lite_store"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03b_chronology.json",
          "kind": "chronology"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/logs/stage_artifacts/chronology/20260328T065923644315Z__03b_chronology.json",
          "kind": "chronology_snapshot"
        }
      ],
      "metrics": {
        "scenes": 6,
        "chronology_groups": 6,
        "chronology_edges": 6,
        "chronology_conflicts": 0,
        "low_confidence_scenes": 1,
        "explicit_anchors": 2,
        "kg_context_layer": "kg_lite",
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:02:45.533489Z",
      "ts_end": "2026-03-28T07:04:21.899496Z",
      "duration_sec": 96.366,
      "stage": "adaptation",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Adaptation & Story Editor Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03b_chronology.json",
          "kind": "chronology"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02i_kg_lite.json",
          "kind": "kg_lite"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03c_adaptation.json",
          "kind": "adaptation"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/logs/stage_artifacts/adaptation/20260328T065923644315Z__03c_adaptation.json",
          "kind": "adaptation_snapshot"
        }
      ],
      "metrics": {
        "scenes": 6,
        "retain_scenes": 5,
        "compress_scenes": 1,
        "bridge_scenes": 0,
        "kg_context_layer": "kg_lite",
        "adaptation_concurrency": 1,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:04:21.919108Z",
      "ts_end": "2026-03-28T07:04:21.937303Z",
      "duration_sec": 0.018,
      "stage": "kg_deep",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Knowledge Graph Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02d_kg_consolidated.json",
          "kind": "kg_summary_consolidated"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02d_kg_store_consolidated.json",
          "kind": "kg_store_consolidated"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03c_adaptation.json",
          "kind": "adaptation"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02j_kg_deep.json",
          "kind": "kg_deep"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02j_kg_deep_store.json",
          "kind": "kg_deep_store"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02j_kg_deep_decisions.json",
          "kind": "kg_deep_decisions"
        }
      ],
      "metrics": {
        "input_entities": 18,
        "input_relations": 14,
        "kept_entities": 18,
        "kept_relations": 12,
        "scene_count": 6,
        "seed_entities": 6,
        "resumed": false
      }
    },
    {
      "ts_start": "2026-03-28T07:04:21.955490Z",
      "ts_end": "2026-03-28T07:08:01.991091Z",
      "duration_sec": 220.036,
      "stage": "script",
      "status": "ok",
      "run_id": "20260328T065923644315Z",
      "agent": "Script & Shot Agent",
      "inputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03_scenes.json",
          "kind": "scenes"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03b_chronology.json",
          "kind": "chronology"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/03c_adaptation.json",
          "kind": "adaptation"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/02j_kg_deep.json",
          "kind": "kg_deep"
        }
      ],
      "outputs": [
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/04_scripts.json",
          "kind": "scripts"
        },
        {
          "path": "outputs/kg_layer_smoke_20260328_v3/logs/stage_artifacts/script/20260328T065923644315Z__04_scripts.json",
          "kind": "scripts_snapshot"
        }
      ],
      "metrics": {
        "scripts": 6,
        "shots": 21,
        "dialogue_lines": 7,
        "narration_shots": 11,
        "chronology_bound_scripts": 6,
        "chronology_non_mainline_scripts": 1,
        "chronology_reordered_scripts": 2,
        "adaptation_bound_scripts": 6,
        "kg_context_layer": "kg_deep",
        "script_concurrency": 1,
        "resumed": false
      }
    }
  ],
  "stage_items": {
    "total": 16,
    "ok": 16,
    "partial": 0,
    "error": 0
  },
  "llm_calls": {
    "total": 16,
    "ok": 16,
    "error": 0
  },
  "run_errors": 0
}