{
  "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-SC05\", \"title\": \"选择气运\", \"summary\": \"李凡吐槽系统名称，系统提示选择先天气运，并列出三个选项。 李凡因系统提示而咆哮，被老道瞪视后获赠芝麻饼。\", \"type\": [\"系统/设定\", \"内心独白\", \"对话\", \"动作\"], \"tone\": [\"轻松\", \"紧张\", \"庄严\"], \"importance\": \"主线\", \"presentation\": [\"文字卡片\", \"旁白+画面\", \"对白驱动\"], \"key_beats\": [\"李凡吐槽系统\", \"系统提示选择先天气运\", \"列出三个气运选项\", \"李凡对系统吐槽咆哮\", \"老道瞪视并赠饼\", \"李凡紧张道歉\"], \"characters\": [\"李凡\", \"老道\"], \"locations\": [], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0001\", \"source_start_para\": 26, \"source_end_para\": 31, \"text\": \"不是！心理健康维护系统是咩啊！\\n\\n任务流？练级流？点数强化？召唤抽奖？签到打卡？自动托管？\\n\\n‘请宿主选择先天气运’\\n\\n哦哦哦，还好还好吓老子一跳，李凡擦着冷汗，先天气运，这听起来就是仙侠风的词汇嘛，俺就说呢，现在已经不流行系统搞宿主了……\\n\\n‘天塌不惊，大幅降低心情发生低落的几率，\\n\\n乐天知命，心情最大上限提升，心情提升时的数值翻倍，\\n镇静一点，心情发生波动时只变化一点，’\", \"text_preview\": \"不是！心理健康维护系统是咩啊！ 任务流？练级流？点数强化？召唤抽奖？签到打卡？自动托管？ ‘请宿主选择先天气运’ 哦哦哦，还好还好吓老子一跳，李凡擦着冷汗，先…\", \"candidate_meta\": {\"candidate_id\": \"C0001-SC05\", \"record_count\": 6, \"char_len\": 189, \"structure_counts\": {\"short_line\": 1, \"body\": 3, \"dialogue\": 2}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}], \"heuristic_types\": [\"系统/设定\", \"对话\"], \"heuristic_tones\": [\"紧张\", \"轻松\"], \"heuristic_presentation\": [\"文字卡片\", \"旁白+画面\", \"对白驱动\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0005\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0005\", \"narrative_order\": 5, \"story_chronology_order\": 5, \"story_chronology_group\": \"CG0005\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"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\": \"S0004\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0004\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}\n\nADAPTATION:\n{\"scene_id\": \"S0005\", \"source_chunk_id\": \"C0001\", \"scene_summary\": \"李凡吐槽系统名称，系统提示选择先天气运，并列出三个选项。 李凡因系统提示而咆哮，被老道瞪视后获赠芝麻饼。\", \"chronology\": {\"scene_id\": \"S0005\", \"narrative_order\": 5, \"story_chronology_order\": 5, \"story_chronology_group\": \"CG0005\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"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\": \"S0004\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0004\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"decision\": \"retain\", \"presentation_mode\": \"exposition\", \"story_function\": [\"信息揭示\", \"角色塑造\", \"世界观建立\"], \"adaptation_focus\": \"通过李凡对系统的吐槽和选择，揭示其穿越者身份、性格及系统规则，并与老道建立初步互动。\", \"must_keep\": [\"李凡对‘心理健康维护系统’的吐槽\", \"系统提示‘选择先天气运’\", \"三个气运选项的文字内容\", \"李凡因系统咆哮被老道瞪视\", \"老道赠饼及李凡紧张道歉\"], \"may_compress\": [\"李凡内心对系统类型的列举（任务流、练级流等）可快速带过\"], \"visual_focus\": [\"李凡的表情变化（从吐槽到紧张）\", \"老道瞪视的眼神\", \"芝麻饼的特写\", \"系统UI（如文字卡片）的视觉呈现\"], \"audio_focus\": [\"李凡的内心独白/吐槽\", \"系统提示音或旁白\", \"环境音（法坛背景）\", \"李凡咆哮与老道沉默的对比\"], \"continuity_requirements\": [\"李凡的穿越者口吻\", \"老道的观察者姿态\", \"系统UI的视觉风格一致性\"], \"script_objective\": \"清晰交代系统核心机制（先天气运），同时通过李凡的过度反应与老道的观察，塑造李凡的喜剧性角色特质，并暗示老道的不凡。\", \"conflict\": \"李凡（现代吐槽魂）与系统（庄严仙侠风）的认知冲突；李凡的失态与老道（仙侠世界代表）的静默观察之间的张力。\", \"turning_point\": \"老道瞪视并赠饼，李凡从吐槽咆哮转为紧张道歉，标志着他开始意识到所处环境的‘真实’与危险。\", \"reason\": \"关键系统信息揭示（先天气运）必须保留；exposition模式适合清晰交代选项；场景包含重要角色互动（赠饼）和喜剧转折。\", \"candidate_meta\": {\"scene_id\": \"S0005\", \"decision_reasons\": [\"main_conflict_or_dialogue_dense\"], \"presentation_reasons\": [\"exposition_priority\"], \"metrics\": {\"text_length\": 380, \"quote_count\": 0, \"action_score\": 0, \"exposition_score\": 14, \"inner_score\": 0, \"transition_score\": 0, \"reveal_score\": 0, \"tension_score\": 2, \"environment_score\": 0, \"character_count\": 2, \"location_count\": 0, \"beat_count\": 6, \"continuation_of_prev\": false, \"time_mode\": \"mainline\", \"order_delta\": 0}, \"characters\": [\"李凡\", \"老道\"], \"locations\": [], \"key_beats\": [\"李凡吐槽系统\", \"系统提示选择先天气运\", \"列出三个气运选项\", \"李凡对系统吐槽咆哮\", \"老道瞪视并赠饼\", \"李凡紧张道歉\"]}}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000002\", \"canonical_name\": \"李凡\", \"aliases\": [\"穿越者\", \"小童\", \"道种\", \"道子\", \"小友\", \"小相公\", \"天生道子\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000002\"}, {\"entity_uid\": \"E000001\", \"canonical_name\": \"老道\", \"aliases\": [\"老道士\", \"老头\", \"秦剑师\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000001\"}], \"kg_entities\": [{\"entity_id\": \"E000001\", \"name\": \"老道\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"老道士\", \"老头\", \"秦剑师\"], \"attributes\": {}, \"descriptions\": [\"墨竹山法坛前的老道士\", \"负责挑选童子\", \"揪起李凡\", \"手持赤剑\", \"坐忘功夫不到家\", \"封闭六识\"], \"evidence\": [\"法坛前只有个墨帻法褐的老道\", \"老道士看看这些或坐或卧\", \"老道士已经阴沉着脸走过来\", \"老道士突然爆发出一声怪笑\", \"有人伸出手，揪着李凡的衣领\", \"老道把脸直凑到李凡的面前\", \"老道士告状似得\", \"老道坐在竹叶上封闭六识\"], \"mentions\": [{\"chunk_id\": \"C0001\", \"summary\": \"法坛前打盹的老道\", \"evidence\": [\"法坛前只有个墨帻法褐的老道\"], \"attributes\": {}}, {\"chunk_id\": \"C0002\", \"summary\": \"给李凡芝麻饼\", \"evidence\": [\"老道士也瞪了李凡一会儿\"], \"attributes\": {}}, {\"chunk_id\": \"C0002\", \"summary\": \"警告不要抬头看月亮\", \"evidence\": [\"老道士突然爆发出一声怪笑\"], \"attributes\": {}}, {\"chunk_id\": \"C0003\", \"summary\": \"老道揪起李凡\", \"evidence\": [\"有人伸出手，揪着李凡的衣领\"], \"attributes\": {}}, {\"chunk_id\": \"C0003\", \"summary\": \"老道质问李凡\", \"evidence\": [\"老道把脸直凑到李凡的面前\"], \"attributes\": {}}, {\"chunk_id\": \"C0004\", \"summary\": \"指出李凡是道种\", \"evidence\": [\"老道士突然放声大吼\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"封闭六识可能现形\", \"evidence\": [\"老道坐在竹叶上封闭六识\"], \"attributes\": {}}], \"mention_count\": 7, \"observation_count\": 7, \"first_seen\": \"C0001\", \"last_seen\": \"C0005\"}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"穿越者\", \"小童\", \"道种\", \"道子\", \"小友\", \"小相公\", \"天生道子\"], \"attributes\": {}, \"descriptions\": [\"二十一名童子之一\", \"来自现代的穿越者\", \"置身于暴风雨中\", \"独自坐在紫色天幕\", \"拜月入道\", \"天生道子\", \"被侍婢簇拥喂酒\", \"吃青团喝仙酒\"], \"evidence\": [\"李凡实在是忍不住了\", \"李凡流着冷汗\", \"李凡仿佛整个人置身于暴风雨之中\", \"只剩下李凡一个人\", \"李凡缩着脖子扭头望去。\", \"山主冲李凡微笑点头\", \"李凡正被莺莺燕燕簇拥着喂酒\", \"李凡也不客气，取了个青团嚼嚼\"], \"mentions\": [{\"chunk_id\": \"C0001\", \"summary\": \"穿越者童子李凡\", \"evidence\": [\"李凡普普通通的打工人\"], \"attributes\": {}}, {\"chunk_id\": \"C0002\", \"summary\": \"抱怨系统选择镇静一点\", \"evidence\": [\"李凡实在是忍不住了\"], \"attributes\": {}}, {\"chunk_id\": \"C0002\", \"summary\": \"研究系统充能机制\", \"evidence\": [\"李凡正愁眉苦脸得研究\"], \"attributes\": {}}, {\"chunk_id\": \"C0003\", \"summary\": \"置身暴风雨中\", \"evidence\": [\"李凡仿佛整个人置身于暴风雨之中\"], \"attributes\": {}}, {\"chunk_id\": \"C0003\", \"summary\": \"独自坐在紫色天幕\", \"evidence\": [\"只剩下李凡一个人\"], \"attributes\": {}}, {\"chunk_id\": \"C0004\", \"summary\": \"被山主和老道关注\", \"evidence\": [\"李凡皱眉，偷偷往一边移了一下\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"山主称其天生道子\", \"evidence\": [\"山主冲李凡微笑点头\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"被侍婢簇拥\", \"evidence\": [\"李凡正被莺莺燕燕簇拥着喂酒\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"吃青团喝仙酒\", \"evidence\": [\"李凡也不客气，取了个青团嚼嚼\"], \"attributes\": {}}], \"mention_count\": 9, \"observation_count\": 9, \"first_seen\": \"C0001\", \"last_seen\": \"C0006\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0005\", \"scene_notes\": \"李凡吐槽系统名称，系统提示选择先天气运，并列出三个选项。 李凡因系统提示而咆哮，被老道瞪视后获赠芝麻饼。；重要性：主线；呈现：文字卡片 / 旁白+画面 / 对白驱动；改编策略：retain；呈现策略：exposition；剧本目标：清晰交代系统核心机制（先天气运），同时通过李凡的过度反应与老道的观察，塑造李凡的喜剧性角色特质，并暗示老道的不凡。\", \"audio_notes\": \"李凡的内心独白/吐槽；系统提示音或旁白；环境音（法坛背景）\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0005\", \"narrative_order\": 5, \"story_chronology_order\": 5, \"story_chronology_group\": \"CG0005\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"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\": \"S0004\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0004\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"adaptation\": {\"scene_id\": \"S0005\", \"decision\": \"retain\", \"presentation_mode\": \"exposition\", \"story_function\": [\"信息揭示\", \"角色塑造\", \"世界观建立\"], \"adaptation_focus\": \"通过李凡对系统的吐槽和选择，揭示其穿越者身份、性格及系统规则，并与老道建立初步互动。\", \"must_keep\": [\"李凡对‘心理健康维护系统’的吐槽\", \"系统提示‘选择先天气运’\", \"三个气运选项的文字内容\", \"李凡因系统咆哮被老道瞪视\", \"老道赠饼及李凡紧张道歉\"], \"may_compress\": [\"李凡内心对系统类型的列举（任务流、练级流等）可快速带过\"], \"visual_focus\": [\"李凡的表情变化（从吐槽到紧张）\", \"老道瞪视的眼神\", \"芝麻饼的特写\", \"系统UI（如文字卡片）的视觉呈现\"], \"audio_focus\": [\"李凡的内心独白/吐槽\", \"系统提示音或旁白\", \"环境音（法坛背景）\", \"李凡咆哮与老道沉默的对比\"], \"continuity_requirements\": [\"李凡的穿越者口吻\", \"老道的观察者姿态\", \"系统UI的视觉风格一致性\"], \"script_objective\": \"清晰交代系统核心机制（先天气运），同时通过李凡的过度反应与老道的观察，塑造李凡的喜剧性角色特质，并暗示老道的不凡。\", \"conflict\": \"李凡（现代吐槽魂）与系统（庄严仙侠风）的认知冲突；李凡的失态与老道（仙侠世界代表）的静默观察之间的张力。\", \"turning_point\": \"老道瞪视并赠饼，李凡从吐槽咆哮转为紧张道歉，标志着他开始意识到所处环境的‘真实’与危险。\", \"reason\": \"关键系统信息揭示（先天气运）必须保留；exposition模式适合清晰交代选项；场景包含重要角色互动（赠饼）和喜剧转折。\", \"chronology\": {\"scene_id\": \"S0005\", \"narrative_order\": 5, \"story_chronology_order\": 5, \"story_chronology_group\": \"CG0005\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"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\": \"S0004\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0004\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}}, \"shots\": [{\"shot_id\": \"S0005_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\": \"retain\", \"presentation_mode\": \"exposition\", \"story_function\": [\"信息揭示\", \"角色塑造\", \"世界观建立\"], \"must_keep_count\": 5, \"audio_focus_count\": 4}, \"shot_index\": 1, \"chronology_summary\": {\"narrative_order\": 5, \"story_chronology_order\": 5, \"story_chronology_group\": \"CG0005\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": 0, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0005_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\": \"retain\", \"presentation_mode\": \"exposition\", \"story_function\": [\"信息揭示\", \"角色塑造\", \"世界观建立\"], \"must_keep_count\": 5, \"audio_focus_count\": 4}, \"shot_index\": 2, \"chronology_summary\": {\"narrative_order\": 5, \"story_chronology_order\": 5, \"story_chronology_group\": \"CG0005\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": 0, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0005_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\": \"retain\", \"presentation_mode\": \"exposition\", \"story_function\": [\"信息揭示\", \"角色塑造\", \"世界观建立\"], \"must_keep_count\": 5, \"audio_focus_count\": 4}, \"shot_index\": 3, \"chronology_summary\": {\"narrative_order\": 5, \"story_chronology_order\": 5, \"story_chronology_group\": \"CG0005\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": 0, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0005\", \"source_chunk_id\": \"C0001\", \"source_start_para\": 26, \"source_end_para\": 31, \"characters\": [\"李凡\", \"老道\"], \"locations\": [], \"key_beats\": [\"李凡吐槽系统\", \"系统提示选择先天气运\", \"列出三个气运选项\", \"李凡对系统吐槽咆哮\"], \"shot_count_hint\": 3, \"scene_summary\": \"李凡吐槽系统名称，系统提示选择先天气运，并列出三个选项。 李凡因系统提示而咆哮，被老道瞪视后获赠芝麻饼。\", \"scene_text_preview\": \"不是！心理健康维护系统是咩啊！ 任务流？练级流？点数强化？召唤抽奖？签到打卡？自动托管？ ‘请宿主选择先天气运’ 哦哦哦，还好还好吓老子一跳，李凡擦着冷汗，先…\", \"chronology_summary\": {\"narrative_order\": 5, \"story_chronology_order\": 5, \"story_chronology_group\": \"CG0005\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": 0, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}, \"adaptation_summary\": {\"decision\": \"retain\", \"presentation_mode\": \"exposition\", \"story_function\": [\"信息揭示\", \"角色塑造\", \"世界观建立\"], \"must_keep_count\": 5, \"audio_focus_count\": 4}}}"
    }
  ]
}