{
  "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\": \"C0031-SC03\", \"title\": \"深渊窥秘\", \"summary\": \"李凡在泥沼深处看到无数首级怪物，惊恐中全力施展飞龙剑向上逃窜。 李凡在灰色淤泥海洋中奋力挣扎，拒绝被同化，最终被从泥沼中拉出，回到墨竹林蒲团上，身心俱疲。\", \"type\": [\"揭示\", \"动作\", \"逃亡\", \"环境描写\", \"心理描写\"], \"tone\": [\"紧张\", \"恐怖\", \"急迫\", \"惊悚\", \"绝望\"], \"importance\": \"主线\", \"presentation\": [\"对白驱动\", \"直接画面\", \"环境描写\", \"氛围镜头\"], \"key_beats\": [\"窥见泥沼深处恐怖景象\", \"被无数首级怪物注视\", \"全力施展飞龙剑逃亡\", \"李凡怒吼拒绝同化\", \"剑气反冲打穿泥沼\", \"被拉出泥沼回到现实\"], \"characters\": [\"李凡\"], \"locations\": [\"灰色淤泥海洋\", \"墨竹林\"], \"continuation_of_prev\": true, \"source_chunk_id\": \"C0031\", \"source_start_para\": 867, \"source_end_para\": 875, \"text\": \"被左足的剧痛刺得满腔怒火，李凡猛得睁开眼，迅速扫向身周，看到自己已经深沉入了灰色的泥沼之中，仿佛在一片灰色的海底。他刚才爆发打出了八黑八白，十六道飞龙剑岚此刻还未消散，将周围的泥沼一时逼开一个空间，暂时还未重新聚拢。\\n因此李凡才能看到，那灰色沼泽，泥浆水幕的另一边，有密密麻麻的，水草一般生长着的，数也数不尽的灰‘蛇’，不，当然不是蛇，是一个个的脑袋，奇形怪状，大大小小，不似人型，但都是脑袋，那‘蛇身’就是食道，一段接着首级，另一端深深连着泥沼的底部，某种活动着的，更大的，更恐怖的……\\n\\n‘李凡的心情下降了1点，注意！李凡，心情，42/100，极度危险！’\\n\\n该死的没时间了！\\n\\n李凡猛得一抬头，看见刚才自己被扯下沼泽时，拖出来的一道深痕，正逐渐合拢！\\n\\n而周围的一群脑袋，正一齐扭头看向他！\\n\\n“哇哇，呸！乾坤飞龙剑！！！”李凡也根本顾不得还在飙血的左脚，大吼着把双手双脚朝着反方向猛喷！\\n\\n‘轰’得一声巨响差点震破他的耳膜，但逃命的时候哪还管这些！\\n\\n‘李凡的心情下降了1点，注意！李凡，心情，41/100，极度危险！’\\n\\n“嗷嗷嗷啊啊啊！飞龙剑飞龙剑！”\", \"text_preview\": \"被左足的剧痛刺得满腔怒火，李凡猛得睁开眼，迅速扫向身周，看到自己已经深沉入了灰色的泥沼之中，仿佛在一片灰色的海底。他刚才爆发打出了八黑八白，十六道飞龙剑岚此刻…\", \"candidate_meta\": {\"candidate_id\": \"C0031-SC03\", \"record_count\": 9, \"char_len\": 482, \"structure_counts\": {\"body\": 2, \"dialogue\": 5, \"short_line\": 2}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000117\", \"name\": \"乾坤飞龙剑\", \"type\": \"术法神通\", \"subtype\": \"\", \"matched_terms\": [\"乾坤飞龙剑\", \"飞龙剑\"], \"score\": 7.6}, {\"entity_id\": \"E000008\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}, {\"entity_id\": \"E000131\", \"name\": \"剑岚\", \"type\": \"术法神通\", \"subtype\": \"\", \"matched_terms\": [\"剑岚\"], \"score\": 5.1}, {\"entity_id\": \"E000124\", \"name\": \"灰色淤泥海洋\", \"type\": \"地点\", \"subtype\": \"\", \"matched_terms\": [\"沼泽\", \"泥沼\"], \"score\": 4.6}, {\"entity_id\": \"E000127\", \"name\": \"灰蛇\", \"type\": \"生物种族\", \"subtype\": \"妖兽\", \"matched_terms\": [\"脑袋\"], \"score\": 2.2}], \"heuristic_types\": [\"对话\", \"动作\"], \"heuristic_tones\": [\"紧张\", \"庄严\"], \"heuristic_presentation\": [\"对白驱动\", \"直接画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0092\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0092\", \"narrative_order\": 92, \"story_chronology_order\": 75, \"story_chronology_group\": \"CG0074\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"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\": \"S0091\"}, \"constraints\": [{\"relation\": \"parallel_with\", \"target_scene_id\": \"S0091\", \"confidence\": 0.84, \"reason\": \"parallel_marker\"}, {\"relation\": \"same_time\", \"target_scene_id\": \"S0091\", \"confidence\": 0.78, \"reason\": \"parallel_same_time\"}], \"evidence\": [{\"kind\": \"parallel\", \"field\": \"text\", \"text\": \"另一边\", \"snippet\": \"因此李凡才能看到，那灰色沼泽，泥浆水幕的另一边，有密密麻麻的，水草一般生长着的，数也数\"}]}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000008\", \"canonical_name\": \"李凡\", \"aliases\": [\"小友\", \"小相公\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"童子\", \"傻小子\", \"宿主\", \"道友\", \"清月师弟\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000008\"}, {\"entity_uid\": \"E000124\", \"canonical_name\": \"灰色淤泥海洋\", \"aliases\": [\"灰色泥沼之海\", \"沼泽\", \"源泽\", \"灰色淤泥的海洋\", \"泥沼\", \"九山源泽\"], \"type\": \"地点\", \"subtype\": \"\", \"voice_card_id\": \"\"}, {\"entity_uid\": \"E000132\", \"canonical_name\": \"墨竹林\", \"aliases\": [], \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"voice_card_id\": \"\"}], \"kg_entities\": [{\"entity_id\": \"E000008\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"小友\", \"小相公\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"童子\", \"傻小子\", \"宿主\", \"道友\", \"清月师弟\"], \"attributes\": {}, \"descriptions\": [\"探头看酒坛\", \"运起赤脉童子法门\", \"观察武林中人实力\", \"打量太监\", \"观察太监商人\", \"想找鲲撤离\", \"躲在桌子底下\", \"吐槽龙门客栈\"], \"evidence\": [\"然后李凡探头往酒坛子里张望了一眼\", \"无聊得运起赤脉童子的法门\", \"李凡凝聚目力不是看人家少妇身材的\", \"李凡又看了一眼\", \"李凡收回视线\", \"李凡缩到桌子底下张望\", \"躲在桌子底下的李凡翻了个白眼\", \"李凡也是醉了\"], \"mentions\": [{\"chunk_id\": \"C0042\", \"summary\": \"修炼剑法炼神识\", \"evidence\": [\"李凡当即开始\"], \"attributes\": {}}, {\"chunk_id\": \"C0043\", \"summary\": \"用神识看童子打架\", \"evidence\": [\"李凡用神识一扫\"], \"attributes\": {}}, {\"chunk_id\": \"C0044\", \"summary\": \"尝试赤脉童子剑法\", \"evidence\": [\"李凡尝试不运剑气\"], \"attributes\": {}}, {\"chunk_id\": \"C0044\", \"summary\": \"戒备散修盗龙\", \"evidence\": [\"李凡也估计到这些修行者大部分都是半道打劫起家的\"], \"attributes\": {}}, {\"chunk_id\": \"C0045\", \"summary\": \"抓鲲搂剑取食盒\", \"evidence\": [\"抓起鲲，搂着剑，从玉佩里取出茯苓准备的食盒\"], \"attributes\": {}}, {\"chunk_id\": \"C0046\", \"summary\": \"询问不周山\", \"evidence\": [\"李凡遥望远方\"], \"attributes\": {}}, {\"chunk_id\": \"C0046\", \"summary\": \"购买雷觞酒\", \"evidence\": [\"李凡走进客栈\"], \"attributes\": {}}, {\"chunk_id\": \"C0047\", \"summary\": \"看酒坛中玄天剑意\", \"evidence\": [\"然后李凡探头往酒坛子里张望了一眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0047\", \"summary\": \"运法门观旅人\", \"evidence\": [\"无聊得运起赤脉童子的法门\"], \"attributes\": {}}, {\"chunk_id\": \"C0048\", \"summary\": \"观察萱娘等人\", \"evidence\": [\"李凡凝聚目力不是看人家少妇身材的\"], \"attributes\": {}}, {\"chunk_id\": \"C0049\", \"summary\": \"观察太监商人\", \"evidence\": [\"李凡又看了一眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0050\", \"summary\": \"躲在桌下吐槽\", \"evidence\": [\"躲在桌子底下的李凡翻了个白眼\"], \"attributes\": {}}], \"mention_count\": 66, \"observation_count\": 66, \"first_seen\": \"C0001\", \"last_seen\": \"C0050\"}, {\"entity_id\": \"E000124\", \"name\": \"灰色淤泥海洋\", \"type\": \"地点\", \"subtype\": \"\", \"aliases\": [\"灰色泥沼之海\", \"沼泽\", \"源泽\", \"灰色淤泥的海洋\", \"泥沼\", \"九山源泽\"], \"attributes\": {}, \"descriptions\": [\"充斥着灰色淤泥\", \"五行属金\", \"系统无法到达\", \"灰色泥沼\", \"充满灰蛇\", \"合拢通道\", \"李凡被困\", \"昆仑之北大荒之土\"], \"evidence\": [\"坐在一片广阔的，充斥着灰色淤泥的海洋里\", \"这些淤泥灰沼居然是五行属金的\", \"看到自己坐在一片广阔的，充斥着灰色淤泥的海洋里\", \"顶上的泥沼已经合拢了\", \"曰九山源泽，其地在昆仑之北，大荒之土\"], \"mentions\": [{\"chunk_id\": \"C0030\", \"summary\": \"李凡陷入其中\", \"evidence\": [\"坐在一片广阔的，充斥着灰色淤泥的海洋里\"], \"attributes\": {}}, {\"chunk_id\": \"C0030\", \"summary\": \"属性为金\", \"evidence\": [\"这些淤泥灰沼居然是五行属金的\"], \"attributes\": {}}, {\"chunk_id\": \"C0030\", \"summary\": \"李凡被传送的地点\", \"evidence\": [\"看到自己坐在一片广阔的，充斥着灰色淤泥的海洋里\"], \"attributes\": {}}, {\"chunk_id\": \"C0031\", \"summary\": \"五行属金\", \"evidence\": [\"这些淤泥灰沼居然是五行属金的\"], \"attributes\": {}}, {\"chunk_id\": \"C0032\", \"summary\": \"泥沼合拢困住李凡\", \"evidence\": [\"顶上的泥沼已经合拢了\"], \"attributes\": {}}, {\"chunk_id\": \"C0033\", \"summary\": \"昆仑北的大荒之地\", \"evidence\": [\"曰九山源泽，其地在昆仑之北，大荒之土\"], \"attributes\": {}}], \"mention_count\": 6, \"observation_count\": 6, \"first_seen\": \"C0030\", \"last_seen\": \"C0033\"}, {\"entity_id\": \"E000132\", \"name\": \"墨竹林\", \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"aliases\": [], \"attributes\": {}, \"descriptions\": [\"月光下\", \"李凡返回\"], \"evidence\": [\"再次看到了那片月光下的墨竹林\"], \"mentions\": [{\"chunk_id\": \"C0032\", \"summary\": \"李凡返回的地点\", \"evidence\": [\"再次看到了那片月光下的墨竹林\"], \"attributes\": {}}], \"mention_count\": 1, \"observation_count\": 1, \"first_seen\": \"C0032\", \"last_seen\": \"C0032\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0092\", \"scene_notes\": \"李凡在泥沼深处看到无数首级怪物，惊恐中全力施展飞龙剑向上逃窜。 李凡在灰色淤泥海洋中奋力挣扎，拒绝被同化，最终被从泥沼中拉出，回到墨竹林蒲团上，身心俱疲。；重要性：主线；呈现：对白驱动 / 直接画面 / 环境描写 / 氛围镜头；时间模式：parallel；时间顺序：叙事92->故事75；时间锚点：另一边\", \"audio_notes\": \"保留对白节奏；动作点补音效；并行线切换需明确提示\", \"narrator_profile_id\": \"narrator_parallel_cn\", \"chronology\": {\"scene_id\": \"S0092\", \"narrative_order\": 92, \"story_chronology_order\": 75, \"story_chronology_group\": \"CG0074\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"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\": \"S0091\"}, \"constraints\": [{\"relation\": \"parallel_with\", \"target_scene_id\": \"S0091\", \"confidence\": 0.84, \"reason\": \"parallel_marker\"}, {\"relation\": \"same_time\", \"target_scene_id\": \"S0091\", \"confidence\": 0.78, \"reason\": \"parallel_same_time\"}], \"evidence\": [{\"kind\": \"parallel\", \"field\": \"text\", \"text\": \"另一边\", \"snippet\": \"因此李凡才能看到，那灰色沼泽，泥浆水幕的另一边，有密密麻麻的，水草一般生长着的，数也数\"}]}, \"shots\": [{\"shot_id\": \"S0092_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\": 92, \"story_chronology_order\": 75, \"story_chronology_group\": \"CG0074\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_parallel_cn\", \"narration_delivery_hint\": \"并行线语气\"}, {\"shot_id\": \"S0092_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\": 92, \"story_chronology_order\": 75, \"story_chronology_group\": \"CG0074\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_parallel_cn\"}, {\"shot_id\": \"S0092_SH03\", \"camera\": \"正反打\", \"description\": \"对白推进核心信息\", \"actions\": [\"被无数首级怪物注视\", \"全力施展飞龙剑逃亡\"], \"dialogue\": [{\"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\": 92, \"story_chronology_order\": 75, \"story_chronology_group\": \"CG0074\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_parallel_cn\"}, {\"shot_id\": \"S0092_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\": 92, \"story_chronology_order\": 75, \"story_chronology_group\": \"CG0074\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_parallel_cn\", \"narration_delivery_hint\": \"并行线语气；节奏更紧\"}], \"candidate_meta\": {\"scene_id\": \"S0092\", \"source_chunk_id\": \"C0031\", \"source_start_para\": 867, \"source_end_para\": 875, \"characters\": [\"李凡\"], \"locations\": [\"灰色淤泥海洋\", \"墨竹林\"], \"key_beats\": [\"窥见泥沼深处恐怖景象\", \"被无数首级怪物注视\", \"全力施展飞龙剑逃亡\", \"李凡怒吼拒绝同化\"], \"shot_count_hint\": 4, \"scene_summary\": \"李凡在泥沼深处看到无数首级怪物，惊恐中全力施展飞龙剑向上逃窜。 李凡在灰色淤泥海洋中奋力挣扎，拒绝被同化，最终被从泥沼中拉出，回到墨竹林蒲团上，身心俱疲。\", \"scene_text_preview\": \"被左足的剧痛刺得满腔怒火，李凡猛得睁开眼，迅速扫向身周，看到自己已经深沉入了灰色的泥沼之中，仿佛在一片灰色的海底。他刚才爆发打出了八黑八白，十六道飞龙剑岚此刻…\", \"chronology_summary\": {\"narrative_order\": 92, \"story_chronology_order\": 75, \"story_chronology_group\": \"CG0074\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"anchor_label\": \"另一边\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 1}}}"
    }
  ]
}