{
  "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.3}], \"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\": [\"李凡面部表情从烦躁到惊吓的转变\", \"系统界面（如悬浮文字、光晕）的视觉呈现\", \"老道阴沉瞪视的特写与扔饼动作\", \"芝麻饼的抛物线\"], \"audio_focus\": [\"李凡的内心独白/吐槽（可处理为画外音）\", \"系统提示音或空灵音效\", \"环境音（风声、远处法坛声响）\", \"饼被接住或落地的轻微声响\"], \"continuity_requirements\": [\"李凡的现代穿越者思维模式\", \"老道神秘、观察者的角色定位\", \"系统界面风格的统一\"], \"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\": 367, \"quote_count\": 0, \"action_score\": 0, \"exposition_score\": 12, \"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\": {}}], \"mention_count\": 3, \"observation_count\": 3, \"first_seen\": \"C0001\", \"last_seen\": \"C0002\"}, {\"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\": {}}], \"mention_count\": 3, \"observation_count\": 3, \"first_seen\": \"C0001\", \"last_seen\": \"C0002\"}]}\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\": [\"李凡面部表情从烦躁到惊吓的转变\", \"系统界面（如悬浮文字、光晕）的视觉呈现\", \"老道阴沉瞪视的特写与扔饼动作\", \"芝麻饼的抛物线\"], \"audio_focus\": [\"李凡的内心独白/吐槽（可处理为画外音）\", \"系统提示音或空灵音效\", \"环境音（风声、远处法坛声响）\", \"饼被接住或落地的轻微声响\"], \"continuity_requirements\": [\"李凡的现代穿越者思维模式\", \"老道神秘、观察者的角色定位\", \"系统界面风格的统一\"], \"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\": 4, \"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\": 4, \"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\": 4, \"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\": 4, \"audio_focus_count\": 4}}}"
    }
  ]
}