{
  "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\": \"C0028-SC04\", \"title\": \"拜月机制讲解\", \"summary\": \"望舒讲解拜月风险、尊天魔预警机制及李凡的特殊性。 望舒向李凡解释拜月入魔的风险和先天大道的修行特点，提及魔胎和道心的重要性。\", \"type\": [\"对话\", \"环境描写\", \"说明\", \"氛围\"], \"tone\": [\"庄严\", \"紧张\", \"神秘\"], \"importance\": \"主线\", \"presentation\": [\"对白驱动\", \"氛围镜头\", \"直接画面\"], \"key_beats\": [\"尊天魔作为入魔预警机制\", \"拜月的高风险与修士冒险\", \"李凡作为道子的特殊性\", \"望舒解释拜月入魔风险\", \"提及魔胎和道心\", \"李凡心情上升1点\"], \"characters\": [\"望舒\", \"李凡\", \"修士\"], \"locations\": [\"法坛\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0028\", \"source_start_para\": 780, \"source_end_para\": 783, \"text\": \"一旦有人拜月出了岔子，临渊入梦见着了脏东西，就会激起虚空中的煞气。平常入定很难看出来，但尊天魔被煞气感染就会复活，那个时候我就知道该把你唤醒了。”\\n李凡似懂非懂得点头，有这么种闹钟似的预警机制在，多少放心一点。想来之前秦剑师也是这样把他拉出来的，但想象眼前的这玩意居然会活过来，实在是……\\n\\n望舒仙子看着那尊天魔出神说道，\\n\\n“拜虚月，本来要金丹的底子，用神藏法修成神光护体再修行才算保险，但金丹本就难求。为了突破门槛，不知有多少修士冒险一试，化身成魔的，甚至有练气期就开始偷偷冒险的，其实也不算少见了。\\n\\n只是清月，你拜过月也该知道，天道可不是常人能把持住的，万一心生执念，就有魔形显化的危机。更何况你这种第一眼就能看到道祖的幸运儿呢？\\n所以哪怕法坛上都有一座尊天魔，与一名元婴真人守着。拜月入魔的人，其实依然多的很。就连你们那一批童子，本来也没有人教你们入定，不过是走个过场，叫尊天魔感应一下有没有暗藏煞气，伺机潜入我山门捣鬼的魔胎罢了。\\n想不到，反倒是查出来你这个道子，还正好碰上虚月当空，呵呵，时也命也……”\", \"text_preview\": \"一旦有人拜月出了岔子，临渊入梦见着了脏东西，就会激起虚空中的煞气。平常入定很难看出来，但尊天魔被煞气感染就会复活，那个时候我就知道该把你唤醒了。” 李凡似懂非…\", \"candidate_meta\": {\"candidate_id\": \"C0028-SC04\", \"record_count\": 4, \"char_len\": 458, \"structure_counts\": {\"body\": 2, \"short_line\": 1, \"dialogue\": 1}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"清月\", \"道子\", \"童子\"], \"score\": 11.8}, {\"entity_id\": \"E000041\", \"name\": \"望舒\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"望舒\", \"望舒仙子\", \"仙子\"], \"score\": 9.8}, {\"entity_id\": \"E000045\", \"name\": \"魔胎\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"魔胎\", \"魔形\"], \"score\": 7.6}, {\"entity_id\": \"E000018\", \"name\": \"虚月\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"虚月\"], \"score\": 5.7}, {\"entity_id\": \"E000013\", \"name\": \"童子\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"童子\"], \"score\": 5.4}, {\"entity_id\": \"E000114\", \"name\": \"尊天魔\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"尊天魔\"], \"score\": 5.3}, {\"entity_id\": \"E000011\", \"name\": \"修士\", \"type\": \"人物\", \"subtype\": \"角色姓名\", \"matched_terms\": [\"修士\"], \"score\": 5.1}, {\"entity_id\": \"E000025\", \"name\": \"尊天魔\", \"type\": \"生物种族\", \"subtype\": \"妖兽\", \"matched_terms\": [\"尊天魔\"], \"score\": 5.1}, {\"entity_id\": \"E000118\", \"name\": \"道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"道祖\"], \"score\": 5.1}, {\"entity_id\": \"E000116\", \"name\": \"尊天魔\", \"type\": \"生物种族\", \"subtype\": \"妖兽\", \"matched_terms\": [\"尊天魔\"], \"score\": 5.0}], \"heuristic_types\": [\"环境描写\"], \"heuristic_tones\": [\"庄严\", \"紧张\"], \"heuristic_presentation\": [\"氛围镜头\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0083\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0083\", \"narrative_order\": 83, \"story_chronology_order\": 68, \"story_chronology_group\": \"CG0066\", \"time_mode\": \"dream\", \"confidence\": 0.99, \"order_delta\": -15, \"temporal_anchor\": {\"label\": \"梦见\", \"normalized_label\": \"dream\", \"anchor_type\": \"dream_marker\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0081\"}, \"constraints\": [{\"relation\": \"same_time\", \"target_scene_id\": \"S0081\", \"confidence\": 0.45, \"reason\": \"dream_attached_to_frame\"}], \"evidence\": [{\"kind\": \"dream\", \"field\": \"preview\", \"text\": \"梦见\", \"snippet\": \"一旦有人拜月出了岔子，临渊入梦见着了脏东西，就会激起虚空中的煞气。平常入\"}, {\"kind\": \"dream\", \"field\": \"text\", \"text\": \"梦见\", \"snippet\": \"一旦有人拜月出了岔子，临渊入梦见着了脏东西，就会激起虚空中的煞气。平常入\"}]}\n\nENTITY CONTEXT:\n[{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"穿越者\", \"小相公\", \"小友\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"小色鬼\", \"童子\"], \"attributes\": {}, \"descriptions\": [\"修炼剑法\", \"墨竹山内山道传弟子\", \"喝五仙汤\", \"心情上升\", \"体内炁息暴走\", \"不会御气\", \"施展归尘剑气\", \"跟随望舒修行\"], \"evidence\": [\"李凡立刻知道\", \"小子跟着望舒仙子修行\", \"李凡就先自己试了一下\", \"李凡一阵傻眼\", \"只是清月，你拜过月也该知道\", \"李凡也不由得默认\", \"李凡若有所悟\", \"李凡艰难得咽了口唾沫\"], \"mentions\": [{\"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\": \"C0025\", \"summary\": \"面对雷猴犹豫\", \"evidence\": [\"李凡咽了口唾沫\"], \"attributes\": {}}, {\"chunk_id\": \"C0026\", \"summary\": \"施展剑气杀猴\", \"evidence\": [\"李凡居然感觉到明显的气机牵引\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"练习乾坤飞龙剑\", \"evidence\": [\"李凡发现左手也可以\"], \"attributes\": {}}, {\"chunk_id\": \"C0028\", \"summary\": \"对牧龙任务傻眼\", \"evidence\": [\"李凡一阵傻眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0029\", \"summary\": \"被望舒教导修行\", \"evidence\": [\"李凡也不由得默认\"], \"attributes\": {}}, {\"chunk_id\": \"C0030\", \"summary\": \"李凡陷入灰色沼泽\", \"evidence\": [\"李凡睁开眼，看到自己坐在一片广阔的，充斥着灰色淤泥的海洋里\"], \"attributes\": {}}], \"mention_count\": 33, \"observation_count\": 33, \"first_seen\": \"C0001\", \"last_seen\": \"C0030\"}, {\"entity_id\": \"E000115\", \"name\": \"法坛\", \"type\": \"地点\", \"subtype\": \"场地/空地\", \"aliases\": [], \"attributes\": {}, \"descriptions\": [], \"evidence\": [], \"mentions\": [], \"mention_count\": 0, \"observation_count\": 0, \"first_seen\": \"\", \"last_seen\": \"\"}, {\"entity_id\": \"E000041\", \"name\": \"望舒\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"女冠\", \"姜望舒\", \"望舒真人\", \"望舒仙子\", \"仙子\", \"小姐\"], \"attributes\": {}, \"descriptions\": [\"教导李凡修行\", \"代山主指点修行\", \"对李凡资质惊叹\", \"教导李凡\", \"池中仰泳\", \"率性而为不拘小节\", \"李凡跟随修行\", \"被称妖物\"], \"evidence\": [\"小子跟着望舒仙子修行\", \"居然是那个妖物\", \"望舒真人不知何时落到他身边\", \"望舒真人看看天色\", \"望舒仙子摇摇头\", \"望舒仙子点点头\", \"望舒仙子朗声一笑\", \"望舒仙子收起笑音捂着嘴含笑\"], \"mentions\": [{\"chunk_id\": \"C0009\", \"summary\": \"带李凡选功法\", \"evidence\": [\"望舒也莞尔一笑，把双掌翻飞似得掐诀\"], \"attributes\": {}}, {\"chunk_id\": \"C0010\", \"summary\": \"指点李凡修行\", \"evidence\": [\"望舒真人冲自己流口水的模样\"], \"attributes\": {}}, {\"chunk_id\": \"C0012\", \"summary\": \"询问武人身份\", \"evidence\": [\"你是哪里的山神，竟敢威压本座的童子\"], \"attributes\": {}}, {\"chunk_id\": \"C0013\", \"summary\": \"茯苓谈论其脾性\", \"evidence\": [\"小姐的脾性都意识不到\"], \"attributes\": {}}, {\"chunk_id\": \"C0017\", \"summary\": \"元婴真人，欲与李凡双修\", \"evidence\": [\"望舒仙子冲女婢撒娇\"], \"attributes\": {}}, {\"chunk_id\": \"C0018\", \"summary\": \"询问李凡想学什么\", \"evidence\": [\"望舒仙子又问李凡\"], \"attributes\": {}}, {\"chunk_id\": \"C0020\", \"summary\": \"姜记商行后台\", \"evidence\": [\"更别说后台还是元婴期的真人罩着，这商行肯定也是日常供奉着望舒仙子的用度的\"], \"attributes\": {}}, {\"chunk_id\": \"C0026\", \"summary\": \"李凡提及师从\", \"evidence\": [\"小子跟着望舒仙子修行\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"寻回李凡\", \"evidence\": [\"望舒真人牵着李凡飞天\"], \"attributes\": {}}, {\"chunk_id\": \"C0028\", \"summary\": \"带李凡拜月修行\", \"evidence\": [\"望舒真人看看天色\"], \"attributes\": {}}, {\"chunk_id\": \"C0029\", \"summary\": \"讲解先天大道优势\", \"evidence\": [\"望舒仙子朗声一笑\"], \"attributes\": {}}, {\"chunk_id\": \"C0030\", \"summary\": \"望舒仙子绕到李凡身后\", \"evidence\": [\"望舒仙子收起笑音捂着嘴含笑，就背着手绕到李凡的身后\"], \"attributes\": {}}], \"mention_count\": 14, \"observation_count\": 14, \"first_seen\": \"C0007\", \"last_seen\": \"C0030\"}, {\"entity_id\": \"E000011\", \"name\": \"修士\", \"type\": \"人物\", \"subtype\": \"角色姓名\", \"aliases\": [\"蒙面修士\"], \"attributes\": {}, \"descriptions\": [\"三个蒙面修士\", \"从墨林跑出\"], \"evidence\": [\"三个蒙面的修士从墨林中跑出来\", \"三个修士一齐拜服\"], \"mentions\": [{\"chunk_id\": \"C0005\", \"summary\": \"拜见山主领命\", \"evidence\": [\"三个修士一齐拜服\"], \"attributes\": {}}], \"mention_count\": 1, \"observation_count\": 1, \"first_seen\": \"C0005\", \"last_seen\": \"C0005\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0083\", \"scene_notes\": \"望舒讲解拜月风险、尊天魔预警机制及李凡的特殊性。 望舒向李凡解释拜月入魔的风险和先天大道的修行特点，提及魔胎和道心的重要性。；重要性：主线；呈现：对白驱动 / 氛围镜头 / 直接画面；时间模式：dream；时间顺序：叙事83->故事68；时间锚点：梦见\", \"audio_notes\": \"环境音先行；梦境段强调朦胧氛围\", \"chronology\": {\"scene_id\": \"S0083\", \"narrative_order\": 83, \"story_chronology_order\": 68, \"story_chronology_group\": \"CG0066\", \"time_mode\": \"dream\", \"confidence\": 0.99, \"order_delta\": -15, \"temporal_anchor\": {\"label\": \"梦见\", \"normalized_label\": \"dream\", \"anchor_type\": \"dream_marker\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0081\"}, \"constraints\": [{\"relation\": \"same_time\", \"target_scene_id\": \"S0081\", \"confidence\": 0.45, \"reason\": \"dream_attached_to_frame\"}], \"evidence\": [{\"kind\": \"dream\", \"field\": \"preview\", \"text\": \"梦见\", \"snippet\": \"一旦有人拜月出了岔子，临渊入梦见着了脏东西，就会激起虚空中的煞气。平常入\"}, {\"kind\": \"dream\", \"field\": \"text\", \"text\": \"梦见\", \"snippet\": \"一旦有人拜月出了岔子，临渊入梦见着了脏东西，就会激起虚空中的煞气。平常入\"}]}, \"shots\": [{\"shot_id\": \"S0083_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\": 83, \"story_chronology_order\": 68, \"story_chronology_group\": \"CG0066\", \"time_mode\": \"dream\", \"confidence\": 0.99, \"order_delta\": -15, \"anchor_label\": \"梦见\", \"anchor_type\": \"dream_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}, {\"shot_id\": \"S0083_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\": 83, \"story_chronology_order\": 68, \"story_chronology_group\": \"CG0066\", \"time_mode\": \"dream\", \"confidence\": 0.99, \"order_delta\": -15, \"anchor_label\": \"梦见\", \"anchor_type\": \"dream_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}, {\"shot_id\": \"S0083_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\": 83, \"story_chronology_order\": 68, \"story_chronology_group\": \"CG0066\", \"time_mode\": \"dream\", \"confidence\": 0.99, \"order_delta\": -15, \"anchor_label\": \"梦见\", \"anchor_type\": \"dream_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}, {\"shot_id\": \"S0083_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\": 83, \"story_chronology_order\": 68, \"story_chronology_group\": \"CG0066\", \"time_mode\": \"dream\", \"confidence\": 0.99, \"order_delta\": -15, \"anchor_label\": \"梦见\", \"anchor_type\": \"dream_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}], \"candidate_meta\": {\"scene_id\": \"S0083\", \"source_chunk_id\": \"C0028\", \"source_start_para\": 780, \"source_end_para\": 783, \"characters\": [\"望舒\", \"李凡\", \"修士\"], \"locations\": [\"法坛\"], \"key_beats\": [\"尊天魔作为入魔预警机制\", \"拜月的高风险与修士冒险\", \"李凡作为道子的特殊性\", \"望舒解释拜月入魔风险\"], \"shot_count_hint\": 4, \"scene_summary\": \"望舒讲解拜月风险、尊天魔预警机制及李凡的特殊性。 望舒向李凡解释拜月入魔的风险和先天大道的修行特点，提及魔胎和道心的重要性。\", \"scene_text_preview\": \"一旦有人拜月出了岔子，临渊入梦见着了脏东西，就会激起虚空中的煞气。平常入定很难看出来，但尊天魔被煞气感染就会复活，那个时候我就知道该把你唤醒了。” 李凡似懂非…\", \"chronology_summary\": {\"narrative_order\": 83, \"story_chronology_order\": 68, \"story_chronology_group\": \"CG0066\", \"time_mode\": \"dream\", \"confidence\": 0.99, \"order_delta\": -15, \"anchor_label\": \"梦见\", \"anchor_type\": \"dream_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}"
    }
  ]
}