{
  "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\": \"C0006-SC03\", \"title\": \"品尝仙膳\", \"summary\": \"李凡品尝山主准备的青团与仙酒，感受其非凡功效。\", \"type\": [\"叙事\", \"体验\"], \"tone\": [\"轻松\", \"庄严\"], \"importance\": \"支线\", \"presentation\": [\"叙事画面\"], \"key_beats\": [\"品尝青团仙酒\", \"身心舒畅\"], \"characters\": [\"李凡\"], \"locations\": [\"庭院\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0006\", \"source_start_para\": 193, \"source_end_para\": 194, \"text\": \"好吧，至少不是拿某某的人头来下酒……\\n\\n李凡也不客气，取了个青团嚼嚼，还真是仙家上膳，咬一口，唇齿留香，浅杯里仙酒一啜，只感到自喉头一道冰线滑落，肺腑中都说不尽的清爽充盈。好东西啊！\", \"text_preview\": \"好吧，至少不是拿某某的人头来下酒…… 李凡也不客气，取了个青团嚼嚼，还真是仙家上膳，咬一口，唇齿留香，浅杯里仙酒一啜，只感到自喉头一道冰线滑落，肺腑中都说不尽…\", \"candidate_meta\": {\"candidate_id\": \"C0006-SC03\", \"record_count\": 2, \"char_len\": 91, \"structure_counts\": {\"short_line\": 1, \"body\": 1}, \"boundary_reasons_after\": [\"system_switch\"], \"matched_entities\": [{\"entity_id\": \"E000039\", \"name\": \"青团\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"青团\", \"仙家上膳\"], \"score\": 7.1}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}, {\"entity_id\": \"E000040\", \"name\": \"仙酒\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"仙酒\"], \"score\": 5.1}], \"heuristic_types\": [\"叙事\"], \"heuristic_tones\": [\"庄严\"], \"heuristic_presentation\": [\"叙事画面\"], \"heuristic_importance\": \"支线\"}, \"scene_id\": \"S0023\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0023\", \"narrative_order\": 23, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0022\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0022\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}\n\nADAPTATION:\n{\"scene_id\": \"S0023\", \"source_chunk_id\": \"C0006\", \"scene_summary\": \"李凡品尝山主准备的青团与仙酒，感受其非凡功效。\", \"chronology\": {\"scene_id\": \"S0023\", \"narrative_order\": 23, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0022\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0022\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"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\": \"该场景是重要的感官展示和情绪过渡点，但信息密度不高，适合压缩以保持节奏；采用戏剧化呈现能最大化视觉和情感冲击，让观众直观感受‘仙家上膳’的魅力。\", \"candidate_meta\": {\"scene_id\": \"S0023\", \"decision_reasons\": [\"supporting_scene\"], \"presentation_reasons\": [\"default_dramatize\"], \"metrics\": {\"text_length\": 213, \"quote_count\": 0, \"action_score\": 0, \"exposition_score\": 0, \"inner_score\": 0, \"transition_score\": 0, \"reveal_score\": 0, \"tension_score\": 0, \"environment_score\": 0, \"character_count\": 1, \"location_count\": 1, \"beat_count\": 2, \"continuation_of_prev\": false, \"time_mode\": \"mainline\", \"order_delta\": -4}, \"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\": \"S0023\", \"scene_notes\": \"李凡品尝山主准备的青团与仙酒，感受其非凡功效。；重要性：支线；呈现：叙事画面；时间顺序：叙事23->故事19；改编策略：compress；呈现策略：dramatize；剧本目标：用简洁的视觉化动作和反应，高效传达仙膳的神奇功效和李凡的即时感受，为后续情节（如求道）做情绪铺垫。\", \"audio_notes\": \"细微的咀嚼声；吞咽声；可能的环境音（风声、远处水声）\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0023\", \"narrative_order\": 23, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0022\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0022\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"adaptation\": {\"scene_id\": \"S0023\", \"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\": \"该场景是重要的感官展示和情绪过渡点，但信息密度不高，适合压缩以保持节奏；采用戏剧化呈现能最大化视觉和情感冲击，让观众直观感受‘仙家上膳’的魅力。\", \"chronology\": {\"scene_id\": \"S0023\", \"narrative_order\": 23, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0022\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0022\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}}, \"shots\": [{\"shot_id\": \"S0023_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\": 4}, \"shot_index\": 1, \"chronology_summary\": {\"narrative_order\": 23, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0023_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\": 4}, \"shot_index\": 2, \"chronology_summary\": {\"narrative_order\": 23, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narration_delivery_hint\": \"平稳陈述\", \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0023\", \"source_chunk_id\": \"C0006\", \"source_start_para\": 193, \"source_end_para\": 194, \"characters\": [\"李凡\"], \"locations\": [\"庭院\"], \"key_beats\": [\"品尝青团仙酒\", \"身心舒畅\"], \"shot_count_hint\": 2, \"scene_summary\": \"李凡品尝山主准备的青团与仙酒，感受其非凡功效。\", \"scene_text_preview\": \"好吧，至少不是拿某某的人头来下酒…… 李凡也不客气，取了个青团嚼嚼，还真是仙家上膳，咬一口，唇齿留香，浅杯里仙酒一啜，只感到自喉头一道冰线滑落，肺腑中都说不尽…\", \"chronology_summary\": {\"narrative_order\": 23, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}, \"adaptation_summary\": {\"decision\": \"compress\", \"presentation_mode\": \"dramatize\", \"story_function\": [\"世界构建\", \"角色体验\"], \"must_keep_count\": 3, \"audio_focus_count\": 4}}}"
    }
  ]
}