{
  "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. 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, 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, and ordering hints. 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\": \"C0005-SC02\", \"title\": \"飞山仙府\", \"summary\": \"山主带李凡飞越巨妖对峙的山梁，抵达悬空飞山中的仙家庭院，李凡心情略有恢复。 山主离去后，三名侍婢现身拜见李凡，令他心情大好。\", \"type\": [\"对话\", \"动作\", \"内心独白\", \"登场\"], \"tone\": [\"庄严\", \"悬疑\", \"轻松\"], \"importance\": \"主线\", \"presentation\": [\"对白驱动\", \"直接画面\", \"旁白+画面\"], \"key_beats\": [\"目睹金丹巨妖现形\", \"抵达悬空飞山仙府\", \"山主离开准备酒宴\", \"侍婢现身拜见\", \"李凡心情提升\"], \"characters\": [\"李凡\", \"山主\", \"侍婢\"], \"locations\": [\"悬空飞山\", \"仙家庭院\", \"庭院溪边\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0005\", \"source_start_para\": 141, \"source_end_para\": 154, \"text\": \"山主牵着李凡御风疾飞，身边金光环绕，只瞬息间就飞出十数里开外，远远得，李凡就看见一座山梁之上，有两头巨兽对峙。就像那页游广告上似的。\\n一头是高达百尺的金目褐猿，生着鳄甲蝎子尾，另一边，是身长四十丈的独角青蛇，脊骨上长出四对鸟翼。\\n一边如阳阳烈日，炽热逼空，一边则寒冰滚滚，冰雨扑面。两股妖风卷到一起，腥风阵阵，妖光冲天。\\n\\n但那两头巨妖似乎也不是单纯的野兽，反而颇有些人性，并不争斗厮打，反而纷纷扭头朝这边天际的金光看来，颔首行礼。\\n\\n“你看看，就算有金丹期的修为，虚夜还要双修，也难免把持不住现形，”山主微笑，“可惜了，我本想杀了他夫妻俩下酒，那下次吧。”\\n\\n李凡汗一个，咱能不能别老想着杀人下酒，而且……\\n\\n“山主，仙人，贵派，都是妖……妖仙么？”\\n\\n“哈哈哈哈哈！”山主朗声大笑，“是我的错，小友是人间道出世，对修行之事还一无所知呢，不急，先吃酒！”\\n\\n山主把右手往天外一指，金剑明显加速，周围的山光树影如腾挪一般往后飞退，可李凡居然丝毫没有大风拂面的感觉，只是呼吸之间，眼前突兀得一晃，突然柳暗花明，仿佛突然从阴间跳到了阳间，虚夜跳到了白昼，一下拉开了窗帘似的，眼前都亮堂了许多。\\n李凡睁开眼，一座葱葱郁郁的悬空飞山映入眼帘，仙气袅袅，云霞彩霧，袅绕峰间，宫阙楼阁，荟聚其中，水榭亭台，琳琅满目，青鸾飞鹤，扶风起落。\\n\\n乍一看看去，倒是正正经经的仙家，光明正大的道宗。全不像外面那么妖风阵阵，阴间得很。\\n\\n‘李凡的心情上升了1点。’\\n\\n李凡抬起头，没看见什么月亮，天幕中云霞倒卷，如悬盖倒扣，也不能望见什么星辰，大概此间，就是这山主所居的洞天福地，某种封闭空间之类的吧。\\n破入这层空间后，环绕两人的金圈也逐渐散开，那两把金剑缓缓减速，游鱼似得钻入山主袖子里。\\n而山主则张开袍子，大鹏般御风滑翔，牵着李凡落入这云海仙山顶峰，一间曲觞流水，满园桃花的院落里。扑鼻有芬芳香气，庭中亦有徐徐轻风，园景也颇为雅致，只是身入居中，便觉得气体舒畅，怡然自得。\\n\\n‘李凡的心情上升了1点。’\\n\\n“小友稍坐，我去去就回。”\\n\\n山主松开李凡手腕，请他在席间落座，转身冲着院外喝道，“来伺候！”\\n\\n随即山主的人影一下子化作虹光远遁。\", \"text_preview\": \"山主牵着李凡御风疾飞，身边金光环绕，只瞬息间就飞出十数里开外，远远得，李凡就看见一座山梁之上，有两头巨兽对峙。就像那页游广告上似的。 一头是高达百尺的金目褐猿…\", \"candidate_meta\": {\"candidate_id\": \"C0005-SC02\", \"record_count\": 14, \"char_len\": 909, \"structure_counts\": {\"body\": 7, \"dialogue\": 6, \"short_line\": 1}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000028\", \"name\": \"金目褐猿\", \"type\": \"生物种族\", \"subtype\": \"妖兽\", \"matched_terms\": [\"金目褐猿\", \"巨兽\", \"巨妖\", \"独角青蛇\"], \"score\": 11.2}, {\"entity_id\": \"E000029\", \"name\": \"悬空飞山\", \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"matched_terms\": [\"悬空飞山\", \"洞天福地\", \"云海仙山\"], \"score\": 9.1}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"小友\"], \"score\": 7.8}, {\"entity_id\": \"E000010\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.7}, {\"entity_id\": \"E000026\", \"name\": \"金光\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"金光\"], \"score\": 5.1}, {\"entity_id\": \"E000027\", \"name\": \"金蛟白星\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"金剑\"], \"score\": 2.1}], \"heuristic_types\": [\"对话\", \"动作\", \"内心独白\"], \"heuristic_tones\": [\"庄严\", \"悬疑\"], \"heuristic_presentation\": [\"对白驱动\", \"直接画面\", \"旁白+画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0021\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0021\", \"narrative_order\": 21, \"story_chronology_order\": 16, \"story_chronology_group\": \"CG0013\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -5, \"temporal_anchor\": {\"label\": \"另一边\", \"normalized_label\": \"same_time\", \"anchor_type\": \"parallel_marker\", \"relative_direction\": \"same_time\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0017\"}, \"constraints\": [{\"relation\": \"parallel_with\", \"target_scene_id\": \"S0017\", \"confidence\": 0.84, \"reason\": \"parallel_marker\"}, {\"relation\": \"same_time\", \"target_scene_id\": \"S0017\", \"confidence\": 0.78, \"reason\": \"parallel_same_time\"}], \"evidence\": [{\"kind\": \"parallel\", \"field\": \"text\", \"text\": \"另一边\", \"snippet\": \"头是高达百尺的金目褐猿，生着鳄甲蝎子尾，另一边，是身长四十丈的独角青蛇，脊骨上长出四对\"}]}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000002\", \"canonical_name\": \"李凡\", \"aliases\": [\"穿越者\", \"小童\", \"小友\", \"小相公\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000002\"}, {\"entity_uid\": \"E000010\", \"canonical_name\": \"山主\", \"aliases\": [], \"type\": \"职位称号\", \"subtype\": \"\", \"voice_card_id\": \"VO000010\"}, {\"entity_uid\": \"E000030\", \"canonical_name\": \"侍婢\", \"aliases\": [\"少女\", \"三个二八芳华的少女\", \"粉黛须眉\", \"红颜娇娥\", \"婵娟仙殊\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000030\"}, {\"entity_uid\": \"E000029\", \"canonical_name\": \"悬空飞山\", \"aliases\": [\"洞天福地\", \"云海仙山\"], \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"voice_card_id\": \"\"}], \"kg_entities\": [{\"entity_id\": \"E000029\", \"name\": \"悬空飞山\", \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"aliases\": [\"洞天福地\", \"云海仙山\"], \"attributes\": {}, \"descriptions\": [\"山主所居的仙山\"], \"evidence\": [\"一座葱葱郁郁的悬空飞山映入眼帘\"], \"mentions\": [{\"chunk_id\": \"C0005\", \"summary\": \"李凡看到悬空飞山\", \"evidence\": [\"一座葱葱郁郁的悬空飞山映入眼帘\"], \"attributes\": {}}], \"mention_count\": 1, \"observation_count\": 1, \"first_seen\": \"C0005\", \"last_seen\": \"C0005\"}, {\"entity_id\": \"E000030\", \"name\": \"侍婢\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"少女\", \"三个二八芳华的少女\", \"粉黛须眉\", \"红颜娇娥\", \"婵娟仙殊\"], \"attributes\": {}, \"descriptions\": [\"三个二八芳华的少女\", \"山主的侍女\"], \"evidence\": [\"现出三个二八芳华的少女\", \"院外的溪水边，一阵清风拂过，卷起片片桃花，现出三个二八芳华的少女\"], \"mentions\": [{\"chunk_id\": \"C0006\", \"summary\": \"拜见李凡\", \"evidence\": [\"侍婢见过小相公\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"散作飞花消失\", \"evidence\": [\"统统散作飞花\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"三个少女现身拜见李凡\", \"evidence\": [\"侍婢见过小相公\"], \"attributes\": {}}], \"mention_count\": 3, \"observation_count\": 3, \"first_seen\": \"C0006\", \"last_seen\": \"C0006\"}, {\"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\": \"C0003\", \"summary\": \"置身风暴中\", \"evidence\": [\"李凡仿佛整个人置身于暴风雨之中\"], \"attributes\": {}}, {\"chunk_id\": \"C0004\", \"summary\": \"被山主和老道观察\", \"evidence\": [\"李凡缩着脖子扭头望去\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"李凡捧剑不敢作死\", \"evidence\": [\"李凡可不敢作死\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"李凡看飞剑\", \"evidence\": [\"李凡眨眨眼睛仔细一看\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"被侍婢簇拥喂酒\", \"evidence\": [\"李凡正被莺莺燕燕簇拥着喂酒\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"吃青团喝仙酒\", \"evidence\": [\"取了个青团嚼嚼，浅杯里仙酒一啜\"], \"attributes\": {}}], \"mention_count\": 8, \"observation_count\": 8, \"first_seen\": \"C0001\", \"last_seen\": \"C0006\"}, {\"entity_id\": \"E000010\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"aliases\": [], \"attributes\": {}, \"descriptions\": [\"墨竹山的首领\"], \"evidence\": [\"和山主弈棋输了\", \"送去给山主下酒\", \"山主？\", \"大概就是那什么山主了\", \"山主站起身\", \"山主也不瞧他们\", \"山主抱着一卷画轴，回到庭院中\"], \"mentions\": [{\"chunk_id\": \"C0001\", \"summary\": \"墨竹山首领\", \"evidence\": [\"和山主弈棋输了\"], \"attributes\": {}}, {\"chunk_id\": \"C0003\", \"summary\": \"老道叩拜山主\", \"evidence\": [\"双手掐诀作辑，弯腰叩首拜倒，“山主。”\"], \"attributes\": {}}, {\"chunk_id\": \"C0004\", \"summary\": \"询问老道并观察李凡\", \"evidence\": [\"大概就是那什么山主了\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"山主起身请李凡吃酒\", \"evidence\": [\"山主站起身\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"山主吩咐修士\", \"evidence\": [\"山主也不瞧他们\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"化作虹光远遁\", \"evidence\": [\"山主的人影一下子化作虹光远遁\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"展示画卷讲道\", \"evidence\": [\"山主看李凡玩得开心，也展颜一笑\"], \"attributes\": {}}], \"mention_count\": 7, \"observation_count\": 7, \"first_seen\": \"C0001\", \"last_seen\": \"C0006\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0021\", \"scene_notes\": \"山主带李凡飞越巨妖对峙的山梁，抵达悬空飞山中的仙家庭院，李凡心情略有恢复。 山主离去后，三名侍婢现身拜见李凡，令他心情大好。；重要性：主线；呈现：对白驱动 / 直接画面 / 旁白+画面；时间模式：parallel；时间顺序：叙事21->故事16；时间锚点：另一边\", \"audio_notes\": \"保留对白节奏；环境音先行；动作点补音效；并行线切换需明确提示\", \"narrator_profile_id\": \"narrator_parallel_cn\", \"chronology\": {\"scene_id\": \"S0021\", \"narrative_order\": 21, \"story_chronology_order\": 16, \"story_chronology_group\": \"CG0013\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -5, \"temporal_anchor\": {\"label\": \"另一边\", \"normalized_label\": \"same_time\", \"anchor_type\": \"parallel_marker\", \"relative_direction\": \"same_time\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0017\"}, \"constraints\": [{\"relation\": \"parallel_with\", \"target_scene_id\": \"S0017\", \"confidence\": 0.84, \"reason\": \"parallel_marker\"}, {\"relation\": \"same_time\", \"target_scene_id\": \"S0017\", \"confidence\": 0.78, \"reason\": \"parallel_same_time\"}], \"evidence\": [{\"kind\": \"parallel\", \"field\": \"text\", \"text\": \"另一边\", \"snippet\": \"头是高达百尺的金目褐猿，生着鳄甲蝎子尾，另一边，是身长四十丈的独角青蛇，脊骨上长出四对\"}]}, \"shots\": [{\"shot_id\": \"S0021_SH01\", \"camera\": \"切线中景\", \"description\": \"并行线切入，悬空飞山带出目睹金丹巨妖现形\", \"actions\": [\"目睹金丹巨妖现形\"], \"dialogue\": [], \"narration\": \"\", \"on_screen_text\": \"\", \"focus_characters\": [\"李凡\"], \"focus_locations\": [\"悬空飞山\"], \"candidate_meta\": {\"shot_role\": \"opening\", \"description_hint\": \"并行线切入，悬空飞山带出目睹金丹巨妖现形\", \"camera_hint\": \"切线中景\", \"shot_index\": 1, \"chronology_summary\": {\"narrative_order\": 21, \"story_chronology_order\": 16, \"story_chronology_group\": \"CG0013\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_parallel_cn\"}, {\"shot_id\": \"S0021_SH02\", \"camera\": \"双人中景\", \"description\": \"李凡的反应镜头，推进抵达悬空飞山仙府\", \"actions\": [\"抵达悬空飞山仙府\"], \"dialogue\": [], \"narration\": \"山主带李凡飞越巨妖对峙的山梁，抵达悬空飞山中的仙家庭院，李凡心情略有恢复。 山主离去后，三名侍婢现身拜见李凡，令他心情大好。\", \"on_screen_text\": \"\", \"focus_characters\": [\"李凡\", \"山主\"], \"focus_locations\": [\"悬空飞山\"], \"candidate_meta\": {\"shot_role\": \"character\", \"description_hint\": \"李凡的反应镜头，推进抵达悬空飞山仙府\", \"camera_hint\": \"双人中景\", \"shot_index\": 2, \"chronology_summary\": {\"narrative_order\": 21, \"story_chronology_order\": 16, \"story_chronology_group\": \"CG0013\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_parallel_cn\", \"narration_delivery_hint\": \"并行线语气\"}, {\"shot_id\": \"S0021_SH03\", \"camera\": \"正反打\", \"description\": \"对白推进核心信息\", \"actions\": [\"抵达悬空飞山仙府\", \"山主离开准备酒宴\"], \"dialogue\": [{\"speaker\": \"李凡\", \"speaker_entity_uid\": \"\", \"delivery_hint\": \"平稳陈述\", \"line\": \"你看看，就算有金丹期的修为，虚夜还要双修，也难免把持不住现形，\"}, {\"speaker\": \"山主\", \"speaker_entity_uid\": \"\", \"delivery_hint\": \"平稳陈述\", \"line\": \"可惜了，我本想杀了他夫妻俩下酒，那下次吧。\"}, {\"speaker\": \"\", \"speaker_entity_uid\": \"\", \"delivery_hint\": \"带疑问感；带停顿\", \"line\": \"山主，仙人，贵派，都是妖……妖仙么？\"}, {\"speaker\": \"\", \"speaker_entity_uid\": \"\", \"delivery_hint\": \"情绪更强\", \"line\": \"哈哈哈哈哈！\"}], \"narration\": \"\", \"on_screen_text\": \"\", \"focus_characters\": [\"李凡\", \"山主\"], \"focus_locations\": [\"悬空飞山\"], \"candidate_meta\": {\"shot_role\": \"dialogue_or_action\", \"description_hint\": \"对白推进核心信息\", \"camera_hint\": \"正反打\", \"shot_index\": 3, \"chronology_summary\": {\"narrative_order\": 21, \"story_chronology_order\": 16, \"story_chronology_group\": \"CG0013\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_parallel_cn\"}, {\"shot_id\": \"S0021_SH04\", \"camera\": \"特写\", \"description\": \"李凡收束镜头，停在侍婢现身拜见\", \"actions\": [\"侍婢现身拜见\"], \"dialogue\": [], \"narration\": \"\", \"on_screen_text\": \"\", \"focus_characters\": [\"李凡\"], \"focus_locations\": [\"悬空飞山\"], \"candidate_meta\": {\"shot_role\": \"closing\", \"description_hint\": \"李凡收束镜头，停在侍婢现身拜见\", \"camera_hint\": \"特写\", \"shot_index\": 4, \"chronology_summary\": {\"narrative_order\": 21, \"story_chronology_order\": 16, \"story_chronology_group\": \"CG0013\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_parallel_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0021\", \"source_chunk_id\": \"C0005\", \"source_start_para\": 141, \"source_end_para\": 154, \"characters\": [\"李凡\", \"山主\", \"侍婢\"], \"locations\": [\"悬空飞山\", \"仙家庭院\", \"庭院溪边\"], \"key_beats\": [\"目睹金丹巨妖现形\", \"抵达悬空飞山仙府\", \"山主离开准备酒宴\", \"侍婢现身拜见\"], \"shot_count_hint\": 4, \"scene_summary\": \"山主带李凡飞越巨妖对峙的山梁，抵达悬空飞山中的仙家庭院，李凡心情略有恢复。 山主离去后，三名侍婢现身拜见李凡，令他心情大好。\", \"scene_text_preview\": \"山主牵着李凡御风疾飞，身边金光环绕，只瞬息间就飞出十数里开外，远远得，李凡就看见一座山梁之上，有两头巨兽对峙。就像那页游广告上似的。 一头是高达百尺的金目褐猿…\", \"chronology_summary\": {\"narrative_order\": 21, \"story_chronology_order\": 16, \"story_chronology_group\": \"CG0013\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}}"
    }
  ]
}