{
  "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\": \"C0025-SC02\", \"title\": \"初试剑法\", \"summary\": \"李凡被推入猴群，在玄天剑意指导下首次尝试御剑。 李凡在玄天剑意引导下，首次成功御使归尘剑气，以精妙剑招斩杀一窝雷猴。\", \"type\": [\"动作\", \"内心独白\", \"技能展示\", \"修炼\"], \"tone\": [\"紧张\", \"庄严\", \"悬疑\", \"专注\"], \"importance\": \"主线\", \"presentation\": [\"对白驱动\", \"直接画面\", \"旁白+画面\"], \"key_beats\": [\"李凡落入猴群\", \"玄天剑意指导剑诀\", \"首次凝聚气剑\", \"玄天剑意引导御剑\", \"剑气随心操纵斩猴\", \"心情上升\"], \"characters\": [\"李凡\", \"玄天剑意\", \"雷猴\"], \"locations\": [\"竹林\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0025\", \"source_start_para\": 704, \"source_end_para\": 714, \"text\": \"你只管下去打杀，那些雷灵晶也算是稀有的灵材，可以炼丹制器，就算你用不着，也可以拿出去交易，或者献给宗门作贡献。\\n不用担心，有我在这里看着，猴王不敢露面报复你的。只管去。”\\n兴许说的烦了，帅老头直接一手按到李凡肩上一推，一阵清风拂背就把他从树梢卷下来，轻飘飘落在底下林子里猴群面前。\\n\\n“吼吼？”雷猴们扭头看着李凡。\\n\\n李凡咽了口唾沫，扭头看看，竹林里枝叶茂密练成一片，好像一片翠天，根本看不到金丹老头的影子，也不知道他是不是还在旁边守着。\\n这咋办？他李凡与人为善，可从来没和猴子打过架啊，更何况这哪是猴啊，一个个铁臂熊腰，肱二头肌暴走，简直和金刚似的……\\n\\n‘玄天剑意表示宿主汤喝的太多了，拿这些猴泻泻火也好，正好练练剑法，还能扩展经脉，不亏。’\\n\\n哦，不亏……个鬼啊！而且他会个毛的剑法！？\\n\\n‘玄天剑意表示，宿主剑诀掐住少冲，用归尘剑炁，息走右手少阴心逆经，跟着剑意御剑即可’\\n\\n少阴心……\\n\\n‘就是昨晚最先打通的那条脉，张嘴。’\\n\\n哦哦哦……啊？\\n\\n李凡一愣，就感觉喉头一凉，只见嘴里喷出一道闪烁的白光，如一点冰星白芒，在面前闪闪烁烁，忽左忽右，竟是玄天剑意自己钻出来了！\\n李凡反应过来，把右手掐了个剑诀，即把无名指小指弯曲，用拇指扣住，食中二指并拢伸直，把体内转化的归尘真炁烙成剑观，手朝着玄天剑意一点。\\n\\n“哧”得一声，就有道三尺长的青冥气剑自掌中喷出，顺着食指的引导直追着玄天剑意戳出去，而气剑的剑茎，则隐隐有一条气丝在少冲穴被扣住，试着牵拉拨引，居然能随心所欲操纵剑气盘旋回转。\", \"text_preview\": \"你只管下去打杀，那些雷灵晶也算是稀有的灵材，可以炼丹制器，就算你用不着，也可以拿出去交易，或者献给宗门作贡献。 不用担心，有我在这里看着，猴王不敢露面报复你的…\", \"candidate_meta\": {\"candidate_id\": \"C0025-SC02\", \"record_count\": 11, \"char_len\": 646, \"structure_counts\": {\"body\": 4, \"dialogue\": 5, \"short_line\": 2}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000112\", \"name\": \"老头\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"老头\", \"帅老头\", \"金丹老头\"], \"score\": 9.4}, {\"entity_id\": \"E000115\", \"name\": \"归尘剑炁\", \"type\": \"术法神通\", \"subtype\": \"\", \"matched_terms\": [\"归尘剑炁\", \"气剑\", \"剑气\"], \"score\": 9.3}, {\"entity_id\": \"E000114\", \"name\": \"雷猴\", \"type\": \"生物种族\", \"subtype\": \"妖兽\", \"matched_terms\": [\"雷猴\", \"猴子\", \"猴群\"], \"score\": 9.1}, {\"entity_id\": \"E000008\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"宿主\"], \"score\": 7.8}, {\"entity_id\": \"E000063\", \"name\": \"玄天剑意\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"玄天剑意\", \"白光\"], \"score\": 7.8}, {\"entity_id\": \"E000078\", \"name\": \"剑炁\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"剑炁\", \"剑气\"], \"score\": 7.2}, {\"entity_id\": \"E000116\", \"name\": \"雷灵晶\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"雷灵晶\"], \"score\": 5.1}, {\"entity_id\": \"E000075\", \"name\": \"道息\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"真炁\", \"归尘真炁\"], \"score\": 4.7}, {\"entity_id\": \"E000117\", \"name\": \"乾坤飞龙剑\", \"type\": \"术法神通\", \"subtype\": \"\", \"matched_terms\": [\"剑法\", \"剑诀\"], \"score\": 4.6}, {\"entity_id\": \"E000044\", \"name\": \"竹山\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"宗门\"], \"score\": 2.8}], \"heuristic_types\": [\"对话\", \"动作\", \"内心独白\"], \"heuristic_tones\": [\"庄严\", \"悬疑\"], \"heuristic_presentation\": [\"对白驱动\", \"直接画面\", \"旁白+画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0075\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0075\", \"narrative_order\": 75, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -10, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0073\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0073\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000008\", \"canonical_name\": \"李凡\", \"aliases\": [\"小友\", \"小相公\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"童子\", \"傻小子\", \"宿主\", \"道友\", \"清月师弟\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000008\"}, {\"entity_uid\": \"E000063\", \"canonical_name\": \"玄天剑意\", \"aliases\": [\"小剑\", \"奖品\", \"系统\", \"白光\", \"签约道具\", \"玄天剑祖\"], \"type\": \"系统面板\", \"subtype\": \"系统\", \"voice_card_id\": \"VO000063\"}, {\"entity_uid\": \"E000114\", \"canonical_name\": \"雷猴\", \"aliases\": [\"猴子\", \"猴群\"], \"type\": \"生物种族\", \"subtype\": \"妖兽\", \"voice_card_id\": \"VO000114\"}], \"kg_entities\": [{\"entity_id\": \"E000114\", \"name\": \"雷猴\", \"type\": \"生物种族\", \"subtype\": \"妖兽\", \"aliases\": [\"猴子\", \"猴群\"], \"attributes\": {}, \"descriptions\": [\"体大如牛青毛赤发\", \"头上有三目三角\"], \"evidence\": [\"个个体大如牛，青毛赤发\", \"头上有三目三角\"], \"mentions\": [{\"chunk_id\": \"C0025\", \"summary\": \"竹林里的妖兽\", \"evidence\": [\"雷猴们扭头看着李凡\"], \"attributes\": {}}], \"mention_count\": 1, \"observation_count\": 1, \"first_seen\": \"C0025\", \"last_seen\": \"C0025\"}, {\"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\": \"E000063\", \"name\": \"玄天剑意\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"aliases\": [\"小剑\", \"奖品\", \"系统\", \"白光\", \"签约道具\", \"玄天剑祖\"], \"attributes\": {}, \"descriptions\": [\"传授绝招\", \"评论霸体功法\", \"建议见神杀神剑法\", \"警告宿主勿拔术剑\", \"建议购买雷觞酒\", \"回忆北辰剑宗\", \"在酒中遨游\", \"回忆过往\"], \"evidence\": [\"玄天剑意表示宿主不必妄自菲薄\", \"玄天剑意表示，那还用说吗\", \"玄天剑意表示画不出来\", \"玄天剑意明白李凡\", \"玄天剑意表示，就是叫见神杀神\", \"玄天剑意表示，宿主不要作死\", \"玄天剑意就仿佛真的喝醉了似的\", \"就只是单纯在回忆\"], \"mentions\": [{\"chunk_id\": \"C0035\", \"summary\": \"保护肉身评论鲲\", \"evidence\": [\"玄天剑意表示...主动留在人间道保护宿主肉身；玄天剑意表示，鲲还就是这样的\"], \"attributes\": {}}, {\"chunk_id\": \"C0036\", \"summary\": \"解释鲲能力\", \"evidence\": [\"玄天剑意表示不是鲶鱼是鲲\"], \"attributes\": {}}, {\"chunk_id\": \"C0037\", \"summary\": \"反驳茯苓观点\", \"evidence\": [\"玄天剑意表示，这女娃资质愚钝\"], \"attributes\": {}}, {\"chunk_id\": \"C0038\", \"summary\": \"建议筑基\", \"evidence\": [\"玄天剑意表示\"], \"attributes\": {}}, {\"chunk_id\": \"C0040\", \"summary\": \"与李凡对话\", \"evidence\": [\"玄天剑意表示宿主\"], \"attributes\": {}}, {\"chunk_id\": \"C0041\", \"summary\": \"评价资质与蟠龙\", \"evidence\": [\"玄天剑意表示宿主不必妄自菲薄\"], \"attributes\": {}}, {\"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\": \"C0046\", \"summary\": \"建议购买雷觞酒\", \"evidence\": [\"玄天剑意表示\"], \"attributes\": {}}, {\"chunk_id\": \"C0047\", \"summary\": \"在酒坛中游动\", \"evidence\": [\"玄天剑意就仿佛真的喝醉了似的\"], \"attributes\": {}}], \"mention_count\": 36, \"observation_count\": 36, \"first_seen\": \"C0011\", \"last_seen\": \"C0047\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0075\", \"scene_notes\": \"李凡被推入猴群，在玄天剑意指导下首次尝试御剑。 李凡在玄天剑意引导下，首次成功御使归尘剑气，以精妙剑招斩杀一窝雷猴。；重要性：主线；呈现：对白驱动 / 直接画面 / 旁白+画面；时间顺序：叙事75->故事65\", \"audio_notes\": \"保留对白节奏；环境音先行；动作点补音效\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0075\", \"narrative_order\": 75, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -10, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0073\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0073\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"shots\": [{\"shot_id\": \"S0075_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\": 75, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -10, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0075_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\": 75, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -10, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0075_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\": 75, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -10, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0075_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\": 75, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -10, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0075\", \"source_chunk_id\": \"C0025\", \"source_start_para\": 704, \"source_end_para\": 714, \"characters\": [\"李凡\", \"玄天剑意\", \"雷猴\"], \"locations\": [\"竹林\"], \"key_beats\": [\"李凡落入猴群\", \"玄天剑意指导剑诀\", \"首次凝聚气剑\", \"玄天剑意引导御剑\"], \"shot_count_hint\": 4, \"scene_summary\": \"李凡被推入猴群，在玄天剑意指导下首次尝试御剑。 李凡在玄天剑意引导下，首次成功御使归尘剑气，以精妙剑招斩杀一窝雷猴。\", \"scene_text_preview\": \"你只管下去打杀，那些雷灵晶也算是稀有的灵材，可以炼丹制器，就算你用不着，也可以拿出去交易，或者献给宗门作贡献。 不用担心，有我在这里看着，猴王不敢露面报复你的…\", \"chronology_summary\": {\"narrative_order\": 75, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -10, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}"
    }
  ]
}