{
  "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\": \"C0012-SC03\", \"title\": \"安顿与戏水\", \"summary\": \"望舒真人将李凡托付给茯苓安顿，随后自己脱衣入寒潭嬉游。\", \"type\": [\"系统/设定\", \"对话\", \"动作\"], \"tone\": [\"庄严\", \"轻松\", \"诙谐\"], \"importance\": \"主线\", \"presentation\": [\"文字卡片\", \"旁白+画面\", \"对白驱动\"], \"key_beats\": [\"玄天剑意与系统提醒修心\", \"望舒托付李凡给茯苓\", \"望舒脱衣入潭嬉游\"], \"characters\": [\"李凡\", \"望舒\", \"茯苓\"], \"locations\": [\"洞府水阁\", \"寒潭\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0012\", \"source_start_para\": 376, \"source_end_para\": 386, \"text\": \"‘玄天剑意表示宿主要注意修心，小小年纪，不要失了童子金身，有碍修行。系统也表示同意。’\\n\\n你们两给老子闭嘴！\\n\\n“这是清月，山主派给我的童子，你替我安顿一下。”\\n\\n“是，小姐。”茯苓遥望了李凡一眼，低眉矮身略行一礼，算是见过了。\\n\\n望舒真人又朝李凡道，“茯苓自小在我身边侍奉，与我情同姐妹，清月不可怠慢了她。”\\n\\n“是，见过茯苓姐姐。”李凡这种颜狗，当然不会怠慢了。\\n\\n“今夜也不早了，你先休息去吧，明日指点你修行。”望舒真人也满意得点头，说着就一边摘下华冠，敞开月袍，把亵衣随手扯了就扔到一边，眨眼间就脱得精光，迈步往寒潭走去。\\n\\n李凡就张着嘴愣在一旁。\\n\\n‘李凡的心情大幅提升了1点。’\\n\\n而茯苓扭着腰走来，拾起被扔了一地的轻袍衣裤，珠玉发簪，“小姐，咱墨竹山教的是非乐，您这可都快成非礼了……”\\n望舒真人仿佛一条白鱼似得在冰潭中遨游，哈哈大笑着欢唱，“呜乎！舞佯佯，黄言孔章，上帝弗常，九有以亡。上帝不顺，降之百殃，其家必坏丧。”\\n\\n“唉，你是参悟大道的，我说不过你。”茯苓把怀中的道衣一抹，就收入腕上的玉镯中不见了踪影。扭头看看眼都直了的李凡，“怎么你也想下去游啊？”\", \"text_preview\": \"‘玄天剑意表示宿主要注意修心，小小年纪，不要失了童子金身，有碍修行。系统也表示同意。’ 你们两给老子闭嘴！ “这是清月，山主派给我的童子，你替我安顿一下。” …\", \"candidate_meta\": {\"candidate_id\": \"C0012-SC03\", \"record_count\": 11, \"char_len\": 488, \"structure_counts\": {\"dialogue\": 7, \"short_line\": 2, \"body\": 2}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"清月\"], \"score\": 7.8}, {\"entity_id\": \"E000045\", \"name\": \"望舒\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"望舒\", \"望舒真人\"], \"score\": 7.7}, {\"entity_id\": \"E000070\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"茯苓\", \"姐姐\"], \"score\": 7.2}, {\"entity_id\": \"E000010\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.8}, {\"entity_id\": \"E000050\", \"name\": \"墨竹山\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"墨竹山\"], \"score\": 5.2}, {\"entity_id\": \"E000053\", \"name\": \"竹山\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"竹山\"], \"score\": 5.2}, {\"entity_id\": \"E000064\", \"name\": \"系统\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"系统\"], \"score\": 5.2}, {\"entity_id\": \"E000003\", \"name\": \"墨竹山\", \"type\": \"地点\", \"subtype\": \"山岳/洞天\", \"matched_terms\": [\"墨竹山\"], \"score\": 5.1}, {\"entity_id\": \"E000023\", \"name\": \"童子\", \"type\": \"人物\", \"subtype\": \"角色姓名\", \"matched_terms\": [\"童子\"], \"score\": 5.1}, {\"entity_id\": \"E000021\", \"name\": \"小剑\", \"type\": \"物品\", \"subtype\": \"兵器\", \"matched_terms\": [\"玄天剑意\"], \"score\": 2.4}], \"heuristic_types\": [\"系统/设定\", \"对话\", \"内心独白\"], \"heuristic_tones\": [\"庄严\", \"轻松\"], \"heuristic_presentation\": [\"文字卡片\", \"旁白+画面\", \"对白驱动\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0044\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0044\", \"narrative_order\": 44, \"story_chronology_order\": 35, \"story_chronology_group\": \"CG0035\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"temporal_anchor\": {\"label\": \"随后\", \"normalized_label\": \"随后\", \"anchor_type\": \"forward_marker\", \"relative_direction\": \"after\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0043\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0043\", \"confidence\": 0.78, \"reason\": \"narrative_forward\"}], \"evidence\": [{\"kind\": \"forward\", \"field\": \"summary\", \"text\": \"随后\", \"snippet\": \"望舒真人将李凡托付给茯苓安顿，随后自己脱衣入寒潭嬉游。\"}, {\"kind\": \"forward\", \"field\": \"text\", \"text\": \"过了\", \"snippet\": \"遥望了李凡一眼，低眉矮身略行一礼，算是见过了。 望舒真人又朝李凡道，“茯苓自小在我\"}]}\n\nENTITY CONTEXT:\n[{\"entity_id\": \"E000070\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"美妇\", \"姐姐\"], \"attributes\": {}, \"descriptions\": [\"望舒真人侍女\", \"美妇\", \"望舒真人的侍女\", \"情同姐妹\"], \"evidence\": [\"从庭阁中掀起珠帘，走出一位髻梳云鬓\", \"从庭阁中掀起珠帘，走出一位髻梳云鬓，发鬟抱面的芳龄美妇\"], \"mentions\": [{\"chunk_id\": \"C0012\", \"summary\": \"安顿李凡\", \"evidence\": [\"你替我安顿一下\"], \"attributes\": {}}, {\"chunk_id\": \"C0012\", \"summary\": \"望舒真人侍女茯苓\", \"evidence\": [\"茯苓自小在我身边侍奉，与我情同姐妹\"], \"attributes\": {}}], \"mention_count\": 2, \"observation_count\": 2, \"first_seen\": \"C0012\", \"last_seen\": \"C0012\"}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"穿越者\", \"小相公\", \"小友\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\"], \"attributes\": {}, \"descriptions\": [\"二十一童子之一\", \"从现代穿越而来\", \"拥有心理健康系统\", \"置身暴风雨中\", \"看到紫色月亮\", \"穿越者\", \"拜山主为师\", \"主角\"], \"evidence\": [\"李凡正被莺莺燕燕簇拥着喂酒\", \"小子李凡，诚心求道，想拜山主为师\", \"李凡的心情大幅提升了1点\", \"李凡强堆起笑脸\", \"李凡点点头\", \"李凡犹豫着看看地上的蒲团\", \"王爷和李凡都傻逼了\", \"李凡的右手不甘示弱得比了个中指\"], \"mentions\": [{\"chunk_id\": \"C0003\", \"summary\": \"置身暴风雨中\", \"evidence\": [\"李凡仿佛整个人置身于暴风雨之中\"], \"attributes\": {}}, {\"chunk_id\": \"C0004\", \"summary\": \"被山主和老道观察\", \"evidence\": [\"李凡缩着脖子扭头望去\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"捧剑不敢作死\", \"evidence\": [\"李凡可不敢作死\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"被侍婢簇拥喂酒\", \"evidence\": [\"李凡正被莺莺燕燕簇拥着喂酒\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"听不懂太素道祖\", \"evidence\": [\"李凡皱眉，根本听不懂对方在说什么\"], \"attributes\": {}}, {\"chunk_id\": \"C0007\", \"summary\": \"求拜山主为师\", \"evidence\": [\"小友天生道种\"], \"attributes\": {}}, {\"chunk_id\": \"C0008\", \"summary\": \"心情提升\", \"evidence\": [\"李凡的心情大幅提升了1点\"], \"attributes\": {}}, {\"chunk_id\": \"C0009\", \"summary\": \"想学法术逃跑\", \"evidence\": [\"李凡强堆起笑脸，心里决定了，等一学会飞，立马找个机会从这妖魔鬼怪盘踞的魔窟逃跑。\"], \"attributes\": {}}, {\"chunk_id\": \"C0010\", \"summary\": \"犹豫选择功法\", \"evidence\": [\"看出李凡还有点犹犹豫豫\"], \"attributes\": {}}, {\"chunk_id\": \"C0010\", \"summary\": \"拜天鬼神龛\", \"evidence\": [\"李凡学着那些修士的样子稽首叩拜\"], \"attributes\": {}}, {\"chunk_id\": \"C0011\", \"summary\": \"被玄天剑意操控\", \"evidence\": [\"李凡张着下巴呆了半天\"], \"attributes\": {}}, {\"chunk_id\": \"C0012\", \"summary\": \"被望舒真人教导\", \"evidence\": [\"望舒真人蹙蹙秀眉，“清月，不可欺压同门\"], \"attributes\": {}}], \"mention_count\": 14, \"observation_count\": 14, \"first_seen\": \"C0001\", \"last_seen\": \"C0012\"}, {\"entity_id\": \"E000045\", \"name\": \"望舒\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"女冠\", \"望舒真人\", \"姜望舒\", \"望舒仙子\", \"仙子\"], \"attributes\": {}, \"descriptions\": [\"山主弟子\", \"教导李凡修行\", \"墨竹山真传弟子\", \"山主座下弟子\"], \"evidence\": [\"望舒，玉蟾吃了你的童子，为师就赔你一个\", \"女冠莞尔一笑\", \"我乃墨竹山带发修行的女冠，山主座下的真传弟子，姜望舒\", \"望舒仙子\", \"望舒真人也不催促\", \"望舒真人冲自己流口水的模样\", \"望舒真人已闪到他身边\"], \"mentions\": [{\"chunk_id\": \"C0007\", \"summary\": \"山主命其教导李凡\", \"evidence\": [\"替我好好教他，光耀我竹山门楣\"], \"attributes\": {}}, {\"chunk_id\": \"C0008\", \"summary\": \"自称姜望舒\", \"evidence\": [\"我乃墨竹山带发修行的女冠，山主座下的真传弟子，姜望舒\"], \"attributes\": {}}, {\"chunk_id\": \"C0009\", \"summary\": \"带李凡选功法\", \"evidence\": [\"望舒真人随口提了一句，却一眼也不扫这群蝼蚁凡胎，牵着李凡就往内院中来。\"], \"attributes\": {}}, {\"chunk_id\": \"C0010\", \"summary\": \"指点李凡修行\", \"evidence\": [\"望舒真人也不催促\"], \"attributes\": {}}, {\"chunk_id\": \"C0010\", \"summary\": \"收起可怖表情\", \"evidence\": [\"望舒真人收起了面上的可怖表情\"], \"attributes\": {}}, {\"chunk_id\": \"C0012\", \"summary\": \"教导李凡并挪移武人\", \"evidence\": [\"望舒真人笑着点点头，然后看向面前两人\"], \"attributes\": {}}], \"mention_count\": 7, \"observation_count\": 7, \"first_seen\": \"C0007\", \"last_seen\": \"C0012\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0044\", \"scene_notes\": \"望舒真人将李凡托付给茯苓安顿，随后自己脱衣入寒潭嬉游。；重要性：主线；呈现：文字卡片 / 旁白+画面 / 对白驱动；时间顺序：叙事44->故事35；时间锚点：随后\", \"audio_notes\": \"保留对白节奏\", \"chronology\": {\"scene_id\": \"S0044\", \"narrative_order\": 44, \"story_chronology_order\": 35, \"story_chronology_group\": \"CG0035\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"temporal_anchor\": {\"label\": \"随后\", \"normalized_label\": \"随后\", \"anchor_type\": \"forward_marker\", \"relative_direction\": \"after\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0043\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0043\", \"confidence\": 0.78, \"reason\": \"narrative_forward\"}], \"evidence\": [{\"kind\": \"forward\", \"field\": \"summary\", \"text\": \"随后\", \"snippet\": \"望舒真人将李凡托付给茯苓安顿，随后自己脱衣入寒潭嬉游。\"}, {\"kind\": \"forward\", \"field\": \"text\", \"text\": \"过了\", \"snippet\": \"遥望了李凡一眼，低眉矮身略行一礼，算是见过了。 望舒真人又朝李凡道，“茯苓自小在我\"}]}, \"shots\": [{\"shot_id\": \"S0044_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\": 44, \"story_chronology_order\": 35, \"story_chronology_group\": \"CG0035\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"随后\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}, {\"shot_id\": \"S0044_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\": 44, \"story_chronology_order\": 35, \"story_chronology_group\": \"CG0035\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"随后\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}, {\"shot_id\": \"S0044_SH03\", \"camera\": \"正反打\", \"description\": \"对白推进核心信息\", \"actions\": [\"望舒托付李凡给茯苓\", \"望舒脱衣入潭嬉游\"], \"dialogue\": [{\"speaker\": \"李凡\", \"line\": \"这是清月，山主派给我的童子，你替我安顿一下。\"}, {\"speaker\": \"望舒\", \"line\": \"是，小姐。\"}, {\"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\": 44, \"story_chronology_order\": 35, \"story_chronology_group\": \"CG0035\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"随后\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}, {\"shot_id\": \"S0044_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\": 44, \"story_chronology_order\": 35, \"story_chronology_group\": \"CG0035\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"随后\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}], \"candidate_meta\": {\"scene_id\": \"S0044\", \"source_chunk_id\": \"C0012\", \"source_start_para\": 376, \"source_end_para\": 386, \"characters\": [\"李凡\", \"望舒\", \"茯苓\"], \"locations\": [\"洞府水阁\", \"寒潭\"], \"key_beats\": [\"玄天剑意与系统提醒修心\", \"望舒托付李凡给茯苓\", \"望舒脱衣入潭嬉游\"], \"shot_count_hint\": 4, \"scene_summary\": \"望舒真人将李凡托付给茯苓安顿，随后自己脱衣入寒潭嬉游。\", \"scene_text_preview\": \"‘玄天剑意表示宿主要注意修心，小小年纪，不要失了童子金身，有碍修行。系统也表示同意。’ 你们两给老子闭嘴！ “这是清月，山主派给我的童子，你替我安顿一下。” …\", \"chronology_summary\": {\"narrative_order\": 44, \"story_chronology_order\": 35, \"story_chronology_group\": \"CG0035\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"随后\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}"
    }
  ]
}