{
  "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\": \"C0022-SC04\", \"title\": \"前往外门\", \"summary\": \"茯苓带李凡前往竹山外门道塔，准备参加受箓。\", \"type\": [\"叙事\", \"场景转换\"], \"tone\": [\"庄严\", \"过渡\"], \"importance\": \"主线\", \"presentation\": [\"叙事画面\"], \"key_beats\": [\"茯苓带李凡前往外门道塔\", \"道塔周边修士云集\"], \"characters\": [\"李凡\", \"茯苓\", \"竹山外门弟子\", \"散修\"], \"locations\": [\"外门道塔\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0022\", \"source_start_para\": 644, \"source_end_para\": 644, \"text\": \"人脉关系挺广的呵，那行吧，那这贼赃还是得在手里藏一藏。\\n于是茯苓那边把事情收拾完毕，又牵着李凡带到船里细细打理了一番，这才带着他驭起轻舟，往那边高达三十丈的外门道塔边落下。\\n这边就基本都是修士了，除了皂衣褐袍的竹山外门弟子之外，还有些打扮花里胡哨的散修。绝大部分都是练气期的弟子，筑基的也有不少，但像茯苓这样，站在金丹门槛上的修士，还是屈指可数。不过这随便往外门总坛都能见到几个，数量也不少了。\", \"text_preview\": \"人脉关系挺广的呵，那行吧，那这贼赃还是得在手里藏一藏。 于是茯苓那边把事情收拾完毕，又牵着李凡带到船里细细打理了一番，这才带着他驭起轻舟，往那边高达三十丈的外…\", \"candidate_meta\": {\"candidate_id\": \"C0022-SC04\", \"record_count\": 1, \"char_len\": 197, \"structure_counts\": {\"body\": 1}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000114\", \"name\": \"外门道塔\", \"type\": \"地点\", \"subtype\": \"\", \"matched_terms\": [\"外门道塔\", \"外门总坛\"], \"score\": 7.2}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}, {\"entity_id\": \"E000047\", \"name\": \"竹山\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"竹山\"], \"score\": 5.8}, {\"entity_id\": \"E000075\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"茯苓\"], \"score\": 5.8}, {\"entity_id\": \"E000063\", \"name\": \"外门弟子\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"外门弟子\"], \"score\": 5.3}, {\"entity_id\": \"E000096\", \"name\": \"外门\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"外门\"], \"score\": 5.2}, {\"entity_id\": \"E000012\", \"name\": \"修士\", \"type\": \"人物\", \"subtype\": \"角色姓名\", \"matched_terms\": [\"修士\"], \"score\": 5.1}, {\"entity_id\": \"E000087\", \"name\": \"外门弟子\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"外门弟子\"], \"score\": 5.1}, {\"entity_id\": \"E000093\", \"name\": \"筑基\", \"type\": \"境界体系\", \"subtype\": \"筑基\", \"matched_terms\": [\"筑基\"], \"score\": 5.1}, {\"entity_id\": \"E000081\", \"name\": \"炼炁\", \"type\": \"功法体系\", \"subtype\": \"\", \"matched_terms\": [\"练气\"], \"score\": 2.2}], \"heuristic_types\": [\"叙事\"], \"heuristic_tones\": [\"庄严\"], \"heuristic_presentation\": [\"叙事画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0070\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0070\", \"narrative_order\": 70, \"story_chronology_order\": 60, \"story_chronology_group\": \"CG0058\", \"time_mode\": \"mainline\", \"confidence\": 0.727, \"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\": \"S0065\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0065\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}\n\nENTITY CONTEXT:\n[{\"entity_id\": \"E000114\", \"name\": \"外门道塔\", \"type\": \"地点\", \"subtype\": \"\", \"aliases\": [\"外门总坛\"], \"attributes\": {}, \"descriptions\": [\"竹山外门据点\", \"高达三十丈\", \"前殿有三尊仙像\"], \"evidence\": [\"往那边高达三十丈的外门道塔边落下\"], \"mentions\": [{\"chunk_id\": \"C0022\", \"summary\": \"茯苓带李凡前往\", \"evidence\": [\"带着他驭起轻舟，往那边高达三十丈的外门道塔边落下\"], \"attributes\": {}}, {\"chunk_id\": \"C0023\", \"summary\": \"李凡茯苓抵达\", \"evidence\": [\"李凡仰望高塔上《墨竹山娄观道》的牌匾\"], \"attributes\": {}}], \"mention_count\": 2, \"observation_count\": 2, \"first_seen\": \"C0022\", \"last_seen\": \"C0023\"}, {\"entity_id\": \"E000075\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"茯苓姐姐\", \"姐姐\", \"女婢\", \"茯苓姐\", \"仙子\", \"神仙姐姐\", \"玄女\"], \"attributes\": {}, \"descriptions\": [\"查账点货\", \"金丹门槛修士\", \"提醒李凡持身慎行\", \"合道飞升仙尊\", \"仙宫玄门创教始祖\", \"捏李凡脸蛋\", \"替李凡打探差事\", \"为李凡着急\"], \"evidence\": [\"结果茯苓用食指分别扒拉出三色的钱币来\", \"茯苓招招手；茯苓嗔怒着啐了一口\", \"扭头见茯苓还在查账\", \"茯苓也是无可奈何，手里变出个莲蓬朝李凡一洒\", \"茯苓介绍道，“这三位是本界合道飞升的仙尊\", \"左手是一名素面纤纤的仙子\", \"“油嘴滑舌。”茯苓没好气得捏了李凡脸蛋一把\", \"可把茯苓急坏了\"], \"mentions\": [{\"chunk_id\": \"C0014\", \"summary\": \"试探李凡后气走\", \"evidence\": [\"茯苓显然还是有些不信，想试探李凡似的\"], \"attributes\": {}}, {\"chunk_id\": \"C0016\", \"summary\": \"茯苓住隔壁\", \"evidence\": [\"茯苓的声音从隔壁传来\"], \"attributes\": {}}, {\"chunk_id\": \"C0017\", \"summary\": \"提醒望舒穿衣\", \"evidence\": [\"茯苓就用眼斜着这小色鬼\"], \"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\": \"C0023\", \"summary\": \"李凡拜玄女\", \"evidence\": [\"对着玄女三拜，把三柱香给她面前插上\"], \"attributes\": {}}, {\"chunk_id\": \"C0024\", \"summary\": \"捏李凡脸并建议\", \"evidence\": [\"“油嘴滑舌。”茯苓没好气得捏了李凡脸蛋一把\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"为李凡着急\", \"evidence\": [\"可把茯苓急坏了\"], \"attributes\": {}}], \"mention_count\": 15, \"observation_count\": 15, \"first_seen\": \"C0012\", \"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\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0070\", \"scene_notes\": \"茯苓带李凡前往竹山外门道塔，准备参加受箓。；重要性：主线；呈现：叙事画面；时间顺序：叙事70->故事60\", \"audio_notes\": \"以旁白驱动\", \"chronology\": {\"scene_id\": \"S0070\", \"narrative_order\": 70, \"story_chronology_order\": 60, \"story_chronology_group\": \"CG0058\", \"time_mode\": \"mainline\", \"confidence\": 0.727, \"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\": \"S0065\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0065\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"shots\": [{\"shot_id\": \"S0070_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\": 70, \"story_chronology_order\": 60, \"story_chronology_group\": \"CG0058\", \"time_mode\": \"mainline\", \"confidence\": 0.727, \"order_delta\": -10, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}, {\"shot_id\": \"S0070_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\": 70, \"story_chronology_order\": 60, \"story_chronology_group\": \"CG0058\", \"time_mode\": \"mainline\", \"confidence\": 0.727, \"order_delta\": -10, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}, {\"shot_id\": \"S0070_SH03\", \"camera\": \"近景\", \"description\": \"动作或状态变化的推进镜头\", \"actions\": [\"道塔周边修士云集\"], \"dialogue\": [], \"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\": 70, \"story_chronology_order\": 60, \"story_chronology_group\": \"CG0058\", \"time_mode\": \"mainline\", \"confidence\": 0.727, \"order_delta\": -10, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}], \"candidate_meta\": {\"scene_id\": \"S0070\", \"source_chunk_id\": \"C0022\", \"source_start_para\": 644, \"source_end_para\": 644, \"characters\": [\"李凡\", \"茯苓\", \"竹山外门弟子\", \"散修\"], \"locations\": [\"外门道塔\"], \"key_beats\": [\"茯苓带李凡前往外门道塔\", \"道塔周边修士云集\"], \"shot_count_hint\": 3, \"scene_summary\": \"茯苓带李凡前往竹山外门道塔，准备参加受箓。\", \"scene_text_preview\": \"人脉关系挺广的呵，那行吧，那这贼赃还是得在手里藏一藏。 于是茯苓那边把事情收拾完毕，又牵着李凡带到船里细细打理了一番，这才带着他驭起轻舟，往那边高达三十丈的外…\", \"chronology_summary\": {\"narrative_order\": 70, \"story_chronology_order\": 60, \"story_chronology_group\": \"CG0058\", \"time_mode\": \"mainline\", \"confidence\": 0.727, \"order_delta\": -10, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}"
    }
  ]
}