{
  "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. 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. Shot schema: {shot_id,description,camera,actions,dialogue,narration,on_screen_text}. dialogue is a list of {speaker,line}. 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\": \"E000120\", \"name\": \"雷猴\", \"type\": \"生物种族\", \"subtype\": \"妖兽\", \"matched_terms\": [\"雷猴\", \"猴子\", \"猴群\"], \"score\": 9.3}, {\"entity_id\": \"E000121\", \"name\": \"归尘剑炁\", \"type\": \"术法神通\", \"subtype\": \"\", \"matched_terms\": [\"归尘剑炁\", \"归尘真炁\", \"气剑\"], \"score\": 9.1}, {\"entity_id\": \"E000088\", \"name\": \"剑炁\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"剑炁\", \"剑气\"], \"score\": 7.1}, {\"entity_id\": \"E000001\", \"name\": \"老道\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"老头\", \"金丹老头\", \"帅老头\"], \"score\": 6.8}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}, {\"entity_id\": \"E000066\", \"name\": \"玄天剑意\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"玄天剑意\"], \"score\": 5.8}, {\"entity_id\": \"E000122\", \"name\": \"雷灵晶\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"雷灵晶\"], \"score\": 5.1}, {\"entity_id\": \"E000123\", \"name\": \"竹林\", \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"matched_terms\": [\"竹林\"], \"score\": 5.0}, {\"entity_id\": \"E000047\", \"name\": \"竹山\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"宗门\"], \"score\": 2.8}, {\"entity_id\": \"E000080\", \"name\": \"道息\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"真炁\"], \"score\": 2.6}], \"heuristic_types\": [\"对话\", \"动作\", \"内心独白\"], \"heuristic_tones\": [\"庄严\", \"悬疑\"], \"heuristic_presentation\": [\"对白驱动\", \"直接画面\", \"旁白+画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0076\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0076\", \"narrative_order\": 76, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -11, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0074\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0074\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}\n\nENTITY CONTEXT:\n[{\"entity_id\": \"E000066\", \"name\": \"玄天剑意\", \"type\": \"概念法则\", \"subtype\": \"\", \"aliases\": [\"玄天兄弟\"], \"attributes\": {}, \"descriptions\": [\"发泄完装死\", \"传北辰剑宗秘要\", \"要求拜玄女\", \"表示五仙汤可以\", \"钻出李凡口中\", \"传授剑招\", \"被打击无语\", \"在经脉中运行\"], \"evidence\": [\"剑意发泄完了就装死\", \"‘玄天剑意表示，宿主拜过玄女，就传你北辰剑宗秘要’\", \"玄天剑意表示这个还可以的\", \"玄天剑意自己钻出来了\", \"玄天剑意表示宿主汤喝的太多了\", \"玄天剑意在传授自己剑招\", \"剑意又又又被打击到无语\", \"玄天剑意一时不做声，就在李凡右手两条经脉各走了一遍。\"], \"mentions\": [{\"chunk_id\": \"C0013\", \"summary\": \"提醒宿主\", \"evidence\": [\"玄天剑意表示宿主要把持住啊\"], \"attributes\": {}}, {\"chunk_id\": \"C0014\", \"summary\": \"指点李凡行炁\", \"evidence\": [\"立刻明白是玄天剑意指点\"], \"attributes\": {}}, {\"chunk_id\": \"C0016\", \"summary\": \"指导李凡转化真炁\", \"evidence\": [\"玄天剑意表示宿主天赋惊人\"], \"attributes\": {}}, {\"chunk_id\": \"C0018\", \"summary\": \"建议选择机关\", \"evidence\": [\"玄天剑意强烈建议宿主选择机关\"], \"attributes\": {}}, {\"chunk_id\": \"C0019\", \"summary\": \"对北辰剑宗有感情\", \"evidence\": [\"玄天剑意暂时不想说话\"], \"attributes\": {}}, {\"chunk_id\": \"C0021\", \"summary\": \"要买酒吊念\", \"evidence\": [\"玄天剑意要宿主买一坛酒\"], \"attributes\": {}}, {\"chunk_id\": \"C0022\", \"summary\": \"发泄完装死\", \"evidence\": [\"剑意发泄完了就装死\"], \"attributes\": {}}, {\"chunk_id\": \"C0023\", \"summary\": \"要求李凡拜玄女\", \"evidence\": [\"拜过玄女了玄天剑意就不闹了\"], \"attributes\": {}}, {\"chunk_id\": \"C0024\", \"summary\": \"赞同五仙汤\", \"evidence\": [\"玄天剑意表示这个还可以的\"], \"attributes\": {}}, {\"chunk_id\": \"C0025\", \"summary\": \"指导李凡剑法\", \"evidence\": [\"玄天剑意表示宿主汤喝的太多了\"], \"attributes\": {}}, {\"chunk_id\": \"C0026\", \"summary\": \"传授剑招\", \"evidence\": [\"玄天剑意在传授自己剑招\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"在李凡经脉中运行\", \"evidence\": [\"玄天剑意一时不做声，就在李凡右手两条经脉各走了一遍。\"], \"attributes\": {}}], \"mention_count\": 15, \"observation_count\": 15, \"first_seen\": \"C0011\", \"last_seen\": \"C0027\"}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"穿越者\", \"小童\", \"小友\", \"小相公\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"童子\"], \"attributes\": {}, \"descriptions\": [\"内山门传道弟子\", \"喝五仙汤\", \"内景气旋加速\", \"体内炁息暴走\", \"不会御气\", \"修炼剑法\", \"跟随望舒修行\", \"练习乾坤飞龙剑\"], \"evidence\": [\"李凡从幻境中醒来，发现自己站在可山斋门厅里，劈头盖脸浇了一身臭墨\", \"李凡依言取了三柱香，正要下拜。\", \"李凡也看到了，那边阁楼好似是墨竹山外门的食堂\", \"李凡也如额外生出的竹叶似的\", \"李凡咽了口唾沫\", \"小子跟着望舒仙子修行\", \"李凡立刻知道\", \"李凡也就耸耸肩，用不远处雷猴的尸体作靶子开始瞄准练习。\"], \"mentions\": [{\"chunk_id\": \"C0016\", \"summary\": \"修炼剑气消耗真炁\", \"evidence\": [\"李凡吓了一跳，随手就把紫霞剑气朝墙外一甩\"], \"attributes\": {}}, {\"chunk_id\": \"C0017\", \"summary\": \"自称清月\", \"evidence\": [\"李凡的心情大幅提升了1点\"], \"attributes\": {}}, {\"chunk_id\": \"C0018\", \"summary\": \"被问想学什么\", \"evidence\": [\"望舒仙子又问李凡\"], \"attributes\": {}}, {\"chunk_id\": \"C0019\", \"summary\": \"询问竹山货币\", \"evidence\": [\"李凡在一旁听得傻眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0020\", \"summary\": \"被茯苓束发戴冠\", \"evidence\": [\"茯苓招招手，把李凡半搂到怀里帮他束发戴冠\"], \"attributes\": {}}, {\"chunk_id\": \"C0021\", \"summary\": \"戴着不知面逛街\", \"evidence\": [\"李凡还注意到一点，他戴着不知面走来走去\"], \"attributes\": {}}, {\"chunk_id\": \"C0022\", \"summary\": \"被墨喷醒偷画\", \"evidence\": [\"李凡从幻境中醒来，发现自己站在可山斋门厅里，劈头盖脸浇了一身臭墨\"], \"attributes\": {}}, {\"chunk_id\": \"C0023\", \"summary\": \"拜玄女得剑宗秘要\", \"evidence\": [\"李凡干脆利落得折过身子，对着玄女三拜\"], \"attributes\": {}}, {\"chunk_id\": \"C0024\", \"summary\": \"喝五仙汤修炼\", \"evidence\": [\"李凡也看到了，那边阁楼好似是墨竹山外门的食堂\"], \"attributes\": {}}, {\"chunk_id\": \"C0025\", \"summary\": \"被帅老头带至竹林\", \"evidence\": [\"李凡也有数了\"], \"attributes\": {}}, {\"chunk_id\": \"C0026\", \"summary\": \"修炼剑法杀猴\", \"evidence\": [\"李凡立刻知道，是玄天剑意在传授自己剑招\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"练习乾坤飞龙剑\", \"evidence\": [\"李凡也就耸耸肩，用不远处雷猴的尸体作靶子开始瞄准练习。\"], \"attributes\": {}}], \"mention_count\": 29, \"observation_count\": 29, \"first_seen\": \"C0001\", \"last_seen\": \"C0027\"}, {\"entity_id\": \"E000120\", \"name\": \"雷猴\", \"type\": \"生物种族\", \"subtype\": \"妖兽\", \"aliases\": [\"猴子\", \"猴群\"], \"attributes\": {}, \"descriptions\": [\"体大如牛\", \"偷吃宗门资源\", \"被剑气斩杀\", \"被李凡用作靶子\"], \"evidence\": [\"雷猴们扭头看着李凡\", \"这群雷猴打杀了\", \"十二头猴子脑袋掉落\", \"雷猴的皮毛\", \"用不远处雷猴的尸体作靶子开始瞄准练习\"], \"mentions\": [{\"chunk_id\": \"C0025\", \"summary\": \"竹林中的妖兽\", \"evidence\": [\"看到林子底下那群雷猴了么\"], \"attributes\": {}}, {\"chunk_id\": \"C0026\", \"summary\": \"被李凡剑气斩杀\", \"evidence\": [\"十二头猴子，脑袋已经一个个滴溜溜得掉落下来\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"被李凡用作靶子\", \"evidence\": [\"用不远处雷猴的尸体作靶子开始瞄准练习\"], \"attributes\": {}}], \"mention_count\": 3, \"observation_count\": 3, \"first_seen\": \"C0025\", \"last_seen\": \"C0027\"}, {\"entity_id\": \"E000123\", \"name\": \"竹林\", \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"aliases\": [], \"attributes\": {}, \"descriptions\": [], \"evidence\": [], \"mentions\": [], \"mention_count\": 0, \"observation_count\": 0, \"first_seen\": \"\", \"last_seen\": \"\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0076\", \"scene_notes\": \"李凡被推入猴群，玄天剑意引导他施展剑法。 李凡在玄天剑意引导下，首次成功御使归尘剑气，以精妙剑法斩杀猴群。；重要性：主线；呈现：对白驱动 / 直接画面 / 旁白+画面 / 心理旁白；时间顺序：叙事76->故事65\", \"audio_notes\": \"保留对白节奏；环境音先行；动作点补音效\", \"chronology\": {\"scene_id\": \"S0076\", \"narrative_order\": 76, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -11, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0074\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0074\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"shots\": [{\"shot_id\": \"S0076_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\": 76, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -11, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}, {\"shot_id\": \"S0076_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\": 76, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -11, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}, {\"shot_id\": \"S0076_SH03\", \"camera\": \"正反打\", \"description\": \"对白推进核心信息\", \"actions\": [\"玄天剑意指导剑法\", \"首次施展归尘剑炁\"], \"dialogue\": [{\"speaker\": \"李凡\", \"line\": \"吼吼？\"}, {\"speaker\": \"玄天剑意\", \"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\": 76, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -11, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}, {\"shot_id\": \"S0076_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\": 76, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -11, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}], \"candidate_meta\": {\"scene_id\": \"S0076\", \"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\": 76, \"story_chronology_order\": 65, \"story_chronology_group\": \"CG0064\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -11, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}"
    }
  ]
}