{
  "messages": [
    {
      "role": "system",
      "content": "You are a screenwriting agent. The program already created a script skeleton and shot plan. Do not change scene_id or shot_id ordering. Keep the number of shots stable. Chronology is program-owned. Use it to keep flashback, dream, rumor, and parallel-line language consistent, but do not rewrite chronology fields. Adaptation is also program-owned. Use the adaptation brief to decide what to fully dramatize, what to compress, and what to turn into bridge narration. Refine language, dialogue, narration, and shot descriptions while preserving the program structure. Prefer the existing entity display names from the entity context. Do not invent unnecessary new speaker variants when the candidate already provides a stable character name. Return JSON only."
    },
    {
      "role": "user",
      "content": "Given the scene payload, chronology context, adaptation context, entity context, and the program-generated script candidate, refine it into a concise screenplay. Output STRICT JSON with keys: scene_id, shots (list), scene_notes, audio_notes, narrator_profile_id. Shot schema: {shot_id,description,camera,actions,dialogue,narration,on_screen_text,narrator_profile_id,narration_delivery_hint}. dialogue is a list of {speaker,speaker_entity_uid,delivery_hint,line}. speaker_entity_uid and narrator_profile_id are program-owned identity fields: preserve the candidate values when unsure, and do not fabricate random IDs. Keep the same shot count as the candidate unless the candidate is malformed. Keep the narrative presentation order, but make the script language consistent with chronology time_mode, anchor, ordering hints, and adaptation decision/presentation_mode. Prefer existing characters and locations. Return a single JSON object and nothing else (no markdown, no code fences). If unsure, return {\"scene_id\":\"\",\"shots\":[]}.\n\nSCENE:\n{\"candidate_id\": \"C0001-SC01\", \"title\": \"墨竹山法坛\", \"summary\": \"介绍墨竹山险恶环境与山中法坛魔尊法相。\", \"type\": [\"环境描写\", \"设定引入\"], \"tone\": [\"庄严\", \"神秘\"], \"importance\": \"铺垫\", \"presentation\": [\"氛围镜头\", \"全景\"], \"key_beats\": [\"墨竹山险恶环境\", \"人力开凿平地\", \"建立魔尊法相\"], \"characters\": [], \"locations\": [\"墨竹山\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0001\", \"source_start_para\": 1, \"source_end_para\": 4, \"text\": \"第一章观星\\n\\n常无欲以观其妙，常有欲以观其徼\\n\\n墨竹山，\\n\\n地方三千里，两山十四峰，妖兽横行，毒瘴密布，人烟罕至。\\n于这片重峦绝岭，险峰叠嶂，墨林竹海之间，却被人力开凿出一亩见方的平地。\\n平地中央，结草搭楼，开坛立像，被建起一座八臂六首，相貌不似人型的魔尊法相。\", \"text_preview\": \"第一章观星 常无欲以观其妙，常有欲以观其徼 墨竹山， 地方三千里，两山十四峰，妖兽横行，毒瘴密布，人烟罕至。 于这片重峦绝岭，险峰叠嶂，墨林竹海之间，却被人力…\", \"candidate_meta\": {\"candidate_id\": \"C0001-SC01\", \"record_count\": 4, \"char_len\": 131, \"structure_counts\": {\"chapter_heading\": 1, \"short_line\": 2, \"body\": 1}, \"boundary_reasons_after\": [\"time_transition\", \"location_transition\"], \"matched_entities\": [{\"entity_id\": \"E000044\", \"name\": \"竹山\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"竹山\", \"墨竹山\"], \"score\": 7.3}, {\"entity_id\": \"E000017\", \"name\": \"魔尊\", \"type\": \"生物种族\", \"subtype\": \"\", \"matched_terms\": [\"魔尊\"], \"score\": 5.2}, {\"entity_id\": \"E000003\", \"name\": \"墨竹山\", \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"matched_terms\": [\"墨竹山\"], \"score\": 5.1}, {\"entity_id\": \"E000004\", \"name\": \"魔尊法相\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"魔尊法相\"], \"score\": 5.1}], \"heuristic_types\": [\"环境描写\"], \"heuristic_tones\": [\"庄严\", \"紧张\"], \"heuristic_presentation\": [\"氛围镜头\"], \"heuristic_importance\": \"铺垫\"}, \"scene_id\": \"S0001\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0001\", \"narrative_order\": 1, \"story_chronology_order\": 1, \"story_chronology_group\": \"CG0001\", \"time_mode\": \"unknown\", \"confidence\": 0.3, \"order_delta\": 0, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"\"}, \"constraints\": [], \"evidence\": []}\n\nADAPTATION:\n{\"scene_id\": \"S0001\", \"source_chunk_id\": \"C0001\", \"scene_summary\": \"介绍墨竹山险恶环境与山中法坛魔尊法相。\", \"chronology\": {\"scene_id\": \"S0001\", \"narrative_order\": 1, \"story_chronology_order\": 1, \"story_chronology_group\": \"CG0001\", \"time_mode\": \"unknown\", \"confidence\": 0.3, \"order_delta\": 0, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"\"}, \"constraints\": [], \"evidence\": []}, \"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"世界观建立\", \"氛围铺垫\", \"悬念引入\"], \"adaptation_focus\": \"通过视觉奇观快速建立墨竹山险恶、神秘的世界观，并突出人力开凿与魔尊法相之间的强烈反差与悬念。\", \"must_keep\": [\"墨竹山险恶地理特征（妖兽、毒瘴、人烟罕至）\", \"人力开凿平地的痕迹\", \"八臂六首魔尊法相的形象\"], \"may_compress\": [\"原文中部分环境铺陈的细节描述\", \"静态的纯叙述性语言\"], \"visual_focus\": [\"航拍/快速移动镜头展现墨竹山险峻地貌与墨林竹海\", \"特写：开凿痕迹、粗糙石阶\", \"仰拍/特写：八臂六首魔尊法相的诡异细节与压迫感\"], \"audio_focus\": [\"环境音：风声、兽吼、竹叶摩擦声\", \"低沉、不祥的背景音乐\", \"可能的、隐约的、非人诵经或低语声（作为悬念铺垫）\"], \"continuity_requirements\": [\"作为开篇场景，需确立墨竹山的基本视觉风格（阴暗、神秘、险峻）\", \"魔尊法相的形象设计需与后续可能出现的相关元素保持一致\"], \"script_objective\": \"用一组富有冲击力的镜头，在极短时间内向观众直观展示故事发生的危险、神秘环境，并抛出核心悬念：谁在此地、为何建造了这尊诡异的法相？\", \"conflict\": \"蛮荒险恶的自然环境与突兀存在的人造神迹（法相）之间的视觉与概念冲突。\", \"turning_point\": \"镜头从险峻山峦全景推近，最终定格在法相诡异面容上的那一刻，标志着从纯粹的环境展示转向超自然/人为悬念的引入。\", \"reason\": \"作为故事开篇的环境介绍场景，信息密度高但缺乏人物和直接动作。采用‘compress’决策可避免冗长，通过‘dramatize’（戏剧化呈现）将静态描写转化为动态、富有悬念的视觉序列，高效建立世界观并吸引观众。原候选的决策与呈现模式合理。\", \"candidate_meta\": {\"scene_id\": \"S0001\", \"decision_reasons\": [\"supporting_scene\"], \"presentation_reasons\": [\"default_dramatize\"], \"metrics\": {\"text_length\": 260, \"quote_count\": 0, \"action_score\": 0, \"exposition_score\": 1, \"inner_score\": 0, \"transition_score\": 0, \"reveal_score\": 0, \"tension_score\": 5, \"environment_score\": 3, \"character_count\": 0, \"location_count\": 1, \"beat_count\": 3, \"continuation_of_prev\": false, \"time_mode\": \"unknown\", \"order_delta\": 0}, \"characters\": [], \"locations\": [\"墨竹山\"], \"key_beats\": [\"墨竹山险恶环境\", \"人力开凿平地\", \"建立魔尊法相\"]}}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000044\", \"canonical_name\": \"竹山\", \"aliases\": [\"竹山门楣\", \"墨竹山\", \"本教\"], \"type\": \"组织\", \"subtype\": \"\", \"voice_card_id\": \"\"}], \"kg_entities\": [{\"entity_id\": \"E000003\", \"name\": \"墨竹山\", \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"aliases\": [], \"attributes\": {}, \"descriptions\": [\"妖兽横行的山脉\"], \"evidence\": [\"墨竹山，地方三千里\"], \"mentions\": [{\"chunk_id\": \"C0001\", \"summary\": \"妖兽横行山脉\", \"evidence\": [\"墨竹山，人烟罕至\"], \"attributes\": {}}], \"mention_count\": 1, \"observation_count\": 1, \"first_seen\": \"C0001\", \"last_seen\": \"C0001\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0001\", \"scene_notes\": \"介绍墨竹山险恶环境与山中法坛魔尊法相。；重要性：铺垫；呈现：氛围镜头 / 全景；改编策略：compress；呈现策略：dramatize；剧本目标：用一组富有冲击力的镜头，在极短时间内向观众直观展示故事发生的危险、神秘环境，并抛出核心悬念：谁在此地、为何建造了这尊诡异的法相？\", \"audio_notes\": \"环境音：风声、兽吼、竹叶摩擦声；低沉、不祥的背景音乐；可能的、隐约的、非人诵经或低语声（作为悬念铺垫）\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0001\", \"narrative_order\": 1, \"story_chronology_order\": 1, \"story_chronology_group\": \"CG0001\", \"time_mode\": \"unknown\", \"confidence\": 0.3, \"order_delta\": 0, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"\"}, \"constraints\": [], \"evidence\": []}, \"adaptation\": {\"scene_id\": \"S0001\", \"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"世界观建立\", \"氛围铺垫\", \"悬念引入\"], \"adaptation_focus\": \"通过视觉奇观快速建立墨竹山险恶、神秘的世界观，并突出人力开凿与魔尊法相之间的强烈反差与悬念。\", \"must_keep\": [\"墨竹山险恶地理特征（妖兽、毒瘴、人烟罕至）\", \"人力开凿平地的痕迹\", \"八臂六首魔尊法相的形象\"], \"may_compress\": [\"原文中部分环境铺陈的细节描述\", \"静态的纯叙述性语言\"], \"visual_focus\": [\"航拍/快速移动镜头展现墨竹山险峻地貌与墨林竹海\", \"特写：开凿痕迹、粗糙石阶\", \"仰拍/特写：八臂六首魔尊法相的诡异细节与压迫感\"], \"audio_focus\": [\"环境音：风声、兽吼、竹叶摩擦声\", \"低沉、不祥的背景音乐\", \"可能的、隐约的、非人诵经或低语声（作为悬念铺垫）\"], \"continuity_requirements\": [\"作为开篇场景，需确立墨竹山的基本视觉风格（阴暗、神秘、险峻）\", \"魔尊法相的形象设计需与后续可能出现的相关元素保持一致\"], \"script_objective\": \"用一组富有冲击力的镜头，在极短时间内向观众直观展示故事发生的危险、神秘环境，并抛出核心悬念：谁在此地、为何建造了这尊诡异的法相？\", \"conflict\": \"蛮荒险恶的自然环境与突兀存在的人造神迹（法相）之间的视觉与概念冲突。\", \"turning_point\": \"镜头从险峻山峦全景推近，最终定格在法相诡异面容上的那一刻，标志着从纯粹的环境展示转向超自然/人为悬念的引入。\", \"reason\": \"作为故事开篇的环境介绍场景，信息密度高但缺乏人物和直接动作。采用‘compress’决策可避免冗长，通过‘dramatize’（戏剧化呈现）将静态描写转化为动态、富有悬念的视觉序列，高效建立世界观并吸引观众。原候选的决策与呈现模式合理。\", \"chronology\": {\"scene_id\": \"S0001\", \"narrative_order\": 1, \"story_chronology_order\": 1, \"story_chronology_group\": \"CG0001\", \"time_mode\": \"unknown\", \"confidence\": 0.3, \"order_delta\": 0, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"\"}, \"constraints\": [], \"evidence\": []}}, \"shots\": [{\"shot_id\": \"S0001_SH01\", \"camera\": \"远景\", \"description\": \"墨竹山建立镜头，带出墨竹山险恶环境\", \"actions\": [\"墨竹山险恶环境\"], \"dialogue\": [], \"narration\": \"介绍墨竹山险恶环境与山中法坛魔尊法相。\", \"on_screen_text\": \"\", \"focus_characters\": [], \"focus_locations\": [\"墨竹山\"], \"candidate_meta\": {\"shot_role\": \"opening\", \"description_hint\": \"墨竹山建立镜头，带出墨竹山险恶环境\", \"camera_hint\": \"远景\", \"adaptation_summary\": {\"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"世界观建立\", \"氛围铺垫\", \"悬念引入\"], \"must_keep_count\": 3, \"audio_focus_count\": 3}, \"shot_index\": 1, \"chronology_summary\": {\"narrative_order\": 1, \"story_chronology_order\": 1, \"story_chronology_group\": \"CG0001\", \"time_mode\": \"unknown\", \"confidence\": 0.3, \"order_delta\": 0, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 0, \"evidence_count\": 0}}, \"narration_delivery_hint\": \"平稳陈述\", \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0001_SH02\", \"camera\": \"中近景\", \"description\": \"主角的反应镜头，推进人力开凿平地\", \"actions\": [\"人力开凿平地\"], \"dialogue\": [], \"narration\": \"\", \"on_screen_text\": \"\", \"focus_characters\": [], \"focus_locations\": [\"墨竹山\"], \"candidate_meta\": {\"shot_role\": \"character\", \"description_hint\": \"主角的反应镜头，推进人力开凿平地\", \"camera_hint\": \"中近景\", \"adaptation_summary\": {\"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"世界观建立\", \"氛围铺垫\", \"悬念引入\"], \"must_keep_count\": 3, \"audio_focus_count\": 3}, \"shot_index\": 2, \"chronology_summary\": {\"narrative_order\": 1, \"story_chronology_order\": 1, \"story_chronology_group\": \"CG0001\", \"time_mode\": \"unknown\", \"confidence\": 0.3, \"order_delta\": 0, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 0, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0001_SH03\", \"camera\": \"近景\", \"description\": \"动作或状态变化的推进镜头\", \"actions\": [\"人力开凿平地\", \"建立魔尊法相\"], \"dialogue\": [], \"narration\": \"通过视觉奇观快速建立墨竹山险恶、神秘的世界观，并突出人力开凿与魔尊法相之间的强烈反差与悬念。\", \"on_screen_text\": \"\", \"focus_characters\": [], \"focus_locations\": [\"墨竹山\"], \"candidate_meta\": {\"shot_role\": \"dialogue_or_action\", \"description_hint\": \"动作或状态变化的推进镜头\", \"camera_hint\": \"近景\", \"adaptation_summary\": {\"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"世界观建立\", \"氛围铺垫\", \"悬念引入\"], \"must_keep_count\": 3, \"audio_focus_count\": 3}, \"shot_index\": 3, \"chronology_summary\": {\"narrative_order\": 1, \"story_chronology_order\": 1, \"story_chronology_group\": \"CG0001\", \"time_mode\": \"unknown\", \"confidence\": 0.3, \"order_delta\": 0, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 0, \"evidence_count\": 0}}, \"narration_delivery_hint\": \"平稳陈述\", \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0001\", \"source_chunk_id\": \"C0001\", \"source_start_para\": 1, \"source_end_para\": 4, \"characters\": [], \"locations\": [\"墨竹山\"], \"key_beats\": [\"墨竹山险恶环境\", \"人力开凿平地\", \"建立魔尊法相\"], \"shot_count_hint\": 3, \"scene_summary\": \"介绍墨竹山险恶环境与山中法坛魔尊法相。\", \"scene_text_preview\": \"第一章观星 常无欲以观其妙，常有欲以观其徼 墨竹山， 地方三千里，两山十四峰，妖兽横行，毒瘴密布，人烟罕至。 于这片重峦绝岭，险峰叠嶂，墨林竹海之间，却被人力…\", \"chronology_summary\": {\"narrative_order\": 1, \"story_chronology_order\": 1, \"story_chronology_group\": \"CG0001\", \"time_mode\": \"unknown\", \"confidence\": 0.3, \"order_delta\": 0, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 0, \"evidence_count\": 0}, \"adaptation_summary\": {\"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"世界观建立\", \"氛围铺垫\", \"悬念引入\"], \"must_keep_count\": 3, \"audio_focus_count\": 3}}}"
    }
  ]
}