{
  "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\": \"C0008-SC04\", \"title\": \"第四章震惊\", \"summary\": \"章节转换，李凡对之前的对话感到极度震惊。\", \"type\": [\"叙事\"], \"tone\": [\"紧张\"], \"importance\": \"支线\", \"presentation\": [\"叙事画面\"], \"key_beats\": [\"章节标题\", \"李凡震惊\"], \"characters\": [\"李凡\"], \"locations\": [], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0008\", \"source_start_para\": 256, \"source_end_para\": 258, \"text\": \"第四章入门\\n\\n嘶——就嘶——倒吸一口凉气好吗！\\n\\n李凡是真尼玛震惊了！\", \"text_preview\": \"第四章入门 嘶——就嘶——倒吸一口凉气好吗！ 李凡是真尼玛震惊了！\", \"candidate_meta\": {\"candidate_id\": \"C0008-SC04\", \"record_count\": 3, \"char_len\": 35, \"structure_counts\": {\"chapter_heading\": 1, \"short_line\": 2}, \"boundary_reasons_after\": [\"system_switch\"], \"matched_entities\": [{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}], \"heuristic_types\": [\"叙事\"], \"heuristic_tones\": [\"紧张\"], \"heuristic_presentation\": [\"叙事画面\"], \"heuristic_importance\": \"支线\"}, \"scene_id\": \"S0029\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0029\", \"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0028\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0028\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}\n\nADAPTATION:\n{\"scene_id\": \"S0029\", \"source_chunk_id\": \"C0008\", \"scene_summary\": \"章节转换，李凡对之前的对话感到极度震惊。\", \"chronology\": {\"scene_id\": \"S0029\", \"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0028\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0028\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"情绪反应\", \"节奏转换\"], \"adaptation_focus\": \"通过李凡的强烈情绪反应，实现章节间的节奏转换，并强化前一场对话（S0028）带来的冲击力。\", \"must_keep\": [\"章节标题‘第四章入门’的视觉呈现\", \"李凡极度震惊的情绪状态\"], \"may_compress\": [\"‘嘶——就嘶——倒吸一口凉气好吗！’这句叙述性感叹可转化为视觉或听觉表现\"], \"visual_focus\": [\"李凡的面部特写（震惊表情）\", \"章节标题的快速闪现或叠加\", \"可能的前情闪回片段（来自S0028）\"], \"audio_focus\": [\"吸气声\", \"可能的心跳声或紧张音效\", \"背景音乐的突然变化或停顿\"], \"continuity_requirements\": [\"情绪连续性：承接S0028对话的冲击\", \"时间连续性：紧接S0028之后\", \"角色连续性：李凡\"], \"script_objective\": \"用极短的篇幅，通过视听语言而非文字叙述，将李凡的震惊情绪具象化，并完成章节转换，为后续情节铺垫。\", \"conflict\": \"李凡的内心认知与刚刚接收到的惊人信息之间的冲突。\", \"turning_point\": \"李凡从震惊中开始消化信息，为后续行动（如决定学习法术逃跑）做情绪铺垫。\", \"reason\": \"这是一个纯粹的情绪反应和过渡场景，信息密度低，但情绪价值高。‘compress’决策合理，可避免拖沓。‘dramatize’模式能有效通过演员表演和视听手段（特写、音效）传达文字中的夸张情绪，比单纯叙述或旁白更有冲击力。必须保留章节标题的视觉元素以维持原著结构感，并确保李凡的震惊情绪作为前一场对话结果的直接证明。\", \"candidate_meta\": {\"scene_id\": \"S0029\", \"decision_reasons\": [\"supporting_scene\"], \"presentation_reasons\": [\"default_dramatize\"], \"metrics\": {\"text_length\": 106, \"quote_count\": 0, \"action_score\": 0, \"exposition_score\": 0, \"inner_score\": 0, \"transition_score\": 0, \"reveal_score\": 0, \"tension_score\": 5, \"environment_score\": 0, \"character_count\": 1, \"location_count\": 0, \"beat_count\": 2, \"continuation_of_prev\": false, \"time_mode\": \"mainline\", \"order_delta\": -7}, \"characters\": [\"李凡\"], \"locations\": [], \"key_beats\": [\"章节标题\", \"李凡震惊\"]}}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000002\", \"canonical_name\": \"李凡\", \"aliases\": [\"穿越者\", \"小相公\", \"小友\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000002\"}], \"kg_entities\": [{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"穿越者\", \"小相公\", \"小友\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\"], \"attributes\": {}, \"descriptions\": [\"被侍婢簇拥喂酒\", \"吃青团喝仙酒\", \"天生道种\", \"能望到虚星\", \"童子\", \"想学法术逃跑\", \"主角\", \"山主派给望舒的童子\"], \"evidence\": [\"李凡口干舌燥，磕磕绊绊得答道\", \"李凡强堆起笑脸\", \"李凡的心情大幅提升了1点\", \"李凡点点头\", \"李凡侧身避过\", \"王爷和李凡都傻逼了\", \"李凡的右手不甘示弱得比了个中指\", \"谢仙子教诲，清月记下了\"], \"mentions\": [{\"chunk_id\": \"C0004\", \"summary\": \"被山主和老道观察\", \"evidence\": [\"李凡缩着脖子扭头望去\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"山主请李凡吃酒\", \"evidence\": [\"山主站起身冲李凡微笑\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"被侍婢簇拥喂酒\", \"evidence\": [\"李凡正被莺莺燕燕簇拥着喂酒\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"吃青团喝仙酒\", \"evidence\": [\"李凡也不客气，取了个青团嚼嚼\"], \"attributes\": {}}, {\"chunk_id\": \"C0007\", \"summary\": \"求拜山主为师\", \"evidence\": [\"小子李凡，诚心求道，想拜山主为师\"], \"attributes\": {}}, {\"chunk_id\": \"C0008\", \"summary\": \"回答望舒真人问题\", \"evidence\": [\"李凡口干舌燥，磕磕绊绊得答道\"], \"attributes\": {}}, {\"chunk_id\": \"C0009\", \"summary\": \"想学御剑飞天逃跑\", \"evidence\": [\"李凡强堆起笑脸，心里决定了，等一学会飞，立马找个机会从这妖魔鬼怪盘踞的魔窟逃跑。\"], \"attributes\": {}}, {\"chunk_id\": \"C0009\", \"summary\": \"抱住望舒真人小腿\", \"evidence\": [\"李凡可不客气，把山主给的眼泪往兜里一揣，伸手就抱住望舒真人小腿。\"], \"attributes\": {}}, {\"chunk_id\": \"C0010\", \"summary\": \"犹豫选择功法\", \"evidence\": [\"看出李凡还有点犹犹豫豫\"], \"attributes\": {}}, {\"chunk_id\": \"C0010\", \"summary\": \"进入经楼拜天鬼\", \"evidence\": [\"李凡侧身避过门前悬空的宝剑\"], \"attributes\": {}}, {\"chunk_id\": \"C0011\", \"summary\": \"被玄天剑意操控\", \"evidence\": [\"李凡张着下巴呆了半天\"], \"attributes\": {}}, {\"chunk_id\": \"C0012\", \"summary\": \"被望舒真人教导\", \"evidence\": [\"望舒真人蹙蹙秀眉，“清月，不可欺压同门\"], \"attributes\": {}}], \"mention_count\": 16, \"observation_count\": 16, \"first_seen\": \"C0001\", \"last_seen\": \"C0012\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0029\", \"scene_notes\": \"章节转换，李凡对之前的对话感到极度震惊。；重要性：支线；呈现：叙事画面；时间顺序：叙事29->故事22；改编策略：compress；呈现策略：dramatize；剧本目标：用极短的篇幅，通过视听语言而非文字叙述，将李凡的震惊情绪具象化，并完成章节转换，为后续情节铺垫。\", \"audio_notes\": \"吸气声；可能的心跳声或紧张音效；背景音乐的突然变化或停顿\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0029\", \"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0028\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0028\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"adaptation\": {\"scene_id\": \"S0029\", \"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"情绪反应\", \"节奏转换\"], \"adaptation_focus\": \"通过李凡的强烈情绪反应，实现章节间的节奏转换，并强化前一场对话（S0028）带来的冲击力。\", \"must_keep\": [\"章节标题‘第四章入门’的视觉呈现\", \"李凡极度震惊的情绪状态\"], \"may_compress\": [\"‘嘶——就嘶——倒吸一口凉气好吗！’这句叙述性感叹可转化为视觉或听觉表现\"], \"visual_focus\": [\"李凡的面部特写（震惊表情）\", \"章节标题的快速闪现或叠加\", \"可能的前情闪回片段（来自S0028）\"], \"audio_focus\": [\"吸气声\", \"可能的心跳声或紧张音效\", \"背景音乐的突然变化或停顿\"], \"continuity_requirements\": [\"情绪连续性：承接S0028对话的冲击\", \"时间连续性：紧接S0028之后\", \"角色连续性：李凡\"], \"script_objective\": \"用极短的篇幅，通过视听语言而非文字叙述，将李凡的震惊情绪具象化，并完成章节转换，为后续情节铺垫。\", \"conflict\": \"李凡的内心认知与刚刚接收到的惊人信息之间的冲突。\", \"turning_point\": \"李凡从震惊中开始消化信息，为后续行动（如决定学习法术逃跑）做情绪铺垫。\", \"reason\": \"这是一个纯粹的情绪反应和过渡场景，信息密度低，但情绪价值高。‘compress’决策合理，可避免拖沓。‘dramatize’模式能有效通过演员表演和视听手段（特写、音效）传达文字中的夸张情绪，比单纯叙述或旁白更有冲击力。必须保留章节标题的视觉元素以维持原著结构感，并确保李凡的震惊情绪作为前一场对话结果的直接证明。\", \"chronology\": {\"scene_id\": \"S0029\", \"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0028\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0028\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}}, \"shots\": [{\"shot_id\": \"S0029_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\": 2, \"audio_focus_count\": 3}, \"shot_index\": 1, \"chronology_summary\": {\"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0029_SH02\", \"camera\": \"中近景\", \"description\": \"李凡的反应镜头，推进李凡震惊\", \"actions\": [\"李凡震惊\"], \"dialogue\": [], \"narration\": \"通过李凡的强烈情绪反应，实现章节间的节奏转换，并强化前一场对话（S0028）带来的冲击力。\", \"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\": 2, \"audio_focus_count\": 3}, \"shot_index\": 2, \"chronology_summary\": {\"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narration_delivery_hint\": \"平稳陈述\", \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0029\", \"source_chunk_id\": \"C0008\", \"source_start_para\": 256, \"source_end_para\": 258, \"characters\": [\"李凡\"], \"locations\": [], \"key_beats\": [\"章节标题\", \"李凡震惊\"], \"shot_count_hint\": 2, \"scene_summary\": \"章节转换，李凡对之前的对话感到极度震惊。\", \"scene_text_preview\": \"第四章入门 嘶——就嘶——倒吸一口凉气好吗！ 李凡是真尼玛震惊了！\", \"chronology_summary\": {\"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}, \"adaptation_summary\": {\"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"情绪反应\", \"节奏转换\"], \"must_keep_count\": 2, \"audio_focus_count\": 3}}}"
    }
  ]
}