{
  "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\": \"C0006-SC04\", \"title\": \"大道真解\", \"summary\": \"山主继续讲解后天仙道与先天大道的区别，以及拜月参修的起源。 山主向李凡阐述后天仙道与先天大道的区别，并因李凡的启发而顿悟突破，兴奋敬酒，李凡趁机提出拜师请求。\", \"type\": [\"对话\", \"设定阐述\", \"系统/设定\", \"阐述\", \"内心独白\"], \"tone\": [\"庄严\", \"阐述\", \"兴奋\", \"诙谐\"], \"importance\": \"主线\", \"presentation\": [\"对白驱动\", \"文字卡片\", \"旁白+画面\", \"直接画面\"], \"key_beats\": [\"系统赞同\", \"讲解先天大道\", \"阐述修行目标\", \"山主阐述后天与先天大道之别\", \"山主因李凡顿悟突破并敬酒\", \"李凡提出拜师请求\"], \"characters\": [\"李凡\", \"山主\"], \"locations\": [\"庭院\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0006\", \"source_start_para\": 195, \"source_end_para\": 201, \"text\": \"系统也表示赞同，\\n\\n‘李凡的心情大幅提升了1点’\\n\\n‘李凡的心情大幅提升了1点’\\n\\n‘李凡的心情大幅提升了1点’\\n\\n山主看李凡毫不推诿客气，吃喝得这么开心洒脱，倒也觉得这小子的性格颇合胃口，讲起道来也兴致高昂，而且总算开始讲人话了。\\n\\n“在太极化生万物之前，盘古开天辟地之初，洪荒混沌未明之际，曾有一些上古先天至尊，存在于鸿蒙宇宙之中，这些存在，即被称为‘太素道祖’。\\n\\n过去本界修行练气之士，修的是后天仙道，求的不过是长生久视，法天相地，尸解飞升的左术。最高也只能演化到万物化生，金蝉脱蜕的羽化仙境界。\\n直到万载之前，虚月显现，吾辈拜月参修，才得知先天太素，物非物的真解，更有小友这样的大机缘者，能临渊入梦，窥见太素六祖的真容，方才知晓天地间的真理，过去走入了左道。\\n吾等修行之人，自此开始修行宇宙之初，鸿蒙之始的先天大道，但求追根溯源，上探天机，有朝一日能一窥先天道祖的真容，并以身化太素，参悟先天演化的道理。\", \"text_preview\": \"系统也表示赞同， ‘李凡的心情大幅提升了1点’ ‘李凡的心情大幅提升了1点’ ‘李凡的心情大幅提升了1点’ 山主看李凡毫不推诿客气，吃喝得这么开心洒脱，倒也觉…\", \"candidate_meta\": {\"candidate_id\": \"C0006-SC04\", \"record_count\": 7, \"char_len\": 407, \"structure_counts\": {\"short_line\": 1, \"dialogue\": 4, \"body\": 2}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"小友\", \"小子\"], \"score\": 9.8}, {\"entity_id\": \"E000042\", \"name\": \"后天仙道\", \"type\": \"功法体系\", \"subtype\": \"\", \"matched_terms\": [\"后天仙道\", \"左术\", \"左道\"], \"score\": 9.4}, {\"entity_id\": \"E000039\", \"name\": \"太素\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素\", \"先天道祖\", \"太素六祖\"], \"score\": 9.3}, {\"entity_id\": \"E000041\", \"name\": \"先天大道\", \"type\": \"功法体系\", \"subtype\": \"\", \"matched_terms\": [\"先天大道\", \"先天太素\"], \"score\": 7.4}, {\"entity_id\": \"E000036\", \"name\": \"太素道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素道祖\", \"太素六祖\"], \"score\": 7.3}, {\"entity_id\": \"E000010\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.8}, {\"entity_id\": \"E000016\", \"name\": \"虚月\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"虚月\"], \"score\": 5.7}, {\"entity_id\": \"E000064\", \"name\": \"系统\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"系统\"], \"score\": 5.2}, {\"entity_id\": \"E000040\", \"name\": \"太极\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太极\"], \"score\": 5.1}, {\"entity_id\": \"E000043\", \"name\": \"羽化仙\", \"type\": \"境界体系\", \"subtype\": \"羽化\", \"matched_terms\": [\"羽化仙\"], \"score\": 5.1}], \"heuristic_types\": [\"系统/设定\", \"对话\", \"动作\"], \"heuristic_tones\": [\"庄严\"], \"heuristic_presentation\": [\"文字卡片\", \"旁白+画面\", \"对白驱动\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0024\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0024\", \"narrative_order\": 24, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0020\", \"time_mode\": \"flashback\", \"confidence\": 0.99, \"order_delta\": -5, \"temporal_anchor\": {\"label\": \"过去\", \"normalized_label\": \"flashback\", \"anchor_type\": \"flashback_marker\", \"relative_direction\": \"before\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0023\"}, \"constraints\": [{\"relation\": \"flashback_of\", \"target_scene_id\": \"S0023\", \"confidence\": 0.92, \"reason\": \"flashback_marker\"}, {\"relation\": \"before\", \"target_scene_id\": \"S0023\", \"confidence\": 0.88, \"reason\": \"flashback_before_anchor\"}], \"evidence\": [{\"kind\": \"flashback\", \"field\": \"text\", \"text\": \"过去\", \"snippet\": \"中，这些存在，即被称为‘太素道祖’。 过去本界修行练气之士，修的是后天仙道，求的不\"}, {\"kind\": \"flashback\", \"field\": \"text\", \"text\": \"过去\", \"snippet\": \"见太素六祖的真容，方才知晓天地间的真理，过去走入了左道。 吾等修行之人，自此开始修行\"}]}\n\nENTITY CONTEXT:\n[{\"entity_id\": \"E000010\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"aliases\": [\"仙尊\", \"本座\", \"师尊\"], \"attributes\": {}, \"descriptions\": [\"墨竹山的首领\", \"与玉蟾婆弈棋\", \"老道叩拜的对象\", \"墨竹山首领\", \"即将闭关修炼\"], \"evidence\": [\"送去给山主下酒\", \"山主。李凡缩着脖子扭头望去。\", \"大概就是那什么山主了\", \"山主站起身\", \"山主的人影一下子化作虹光远遁\", \"山主抱着一卷画轴回到庭院\", \"本座这些年也在化神期停滞徘徊许久了\", \"山主座下的真传弟子\"], \"mentions\": [{\"chunk_id\": \"C0001\", \"summary\": \"墨竹山首领\", \"evidence\": [\"和山主弈棋输了\"], \"attributes\": {}}, {\"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\": [\"山主座下的真传弟子\"], \"attributes\": {}}], \"mention_count\": 8, \"observation_count\": 8, \"first_seen\": \"C0001\", \"last_seen\": \"C0008\"}, {\"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\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0024\", \"scene_notes\": \"山主继续讲解后天仙道与先天大道的区别，以及拜月参修的起源。 山主向李凡阐述后天仙道与先天大道的区别，并因李凡的启发而顿悟突破，兴奋敬酒，李凡趁机提出拜师请求。；重要性：主线；呈现：对白驱动 / 文字卡片 / 旁白+画面 / 直接画面；时间模式：flashback；时间顺序：叙事24->故事19；时间锚点：过去\", \"audio_notes\": \"动作点补音效；回忆段用清晰转场提示\", \"chronology\": {\"scene_id\": \"S0024\", \"narrative_order\": 24, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0020\", \"time_mode\": \"flashback\", \"confidence\": 0.99, \"order_delta\": -5, \"temporal_anchor\": {\"label\": \"过去\", \"normalized_label\": \"flashback\", \"anchor_type\": \"flashback_marker\", \"relative_direction\": \"before\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0023\"}, \"constraints\": [{\"relation\": \"flashback_of\", \"target_scene_id\": \"S0023\", \"confidence\": 0.92, \"reason\": \"flashback_marker\"}, {\"relation\": \"before\", \"target_scene_id\": \"S0023\", \"confidence\": 0.88, \"reason\": \"flashback_before_anchor\"}], \"evidence\": [{\"kind\": \"flashback\", \"field\": \"text\", \"text\": \"过去\", \"snippet\": \"中，这些存在，即被称为‘太素道祖’。 过去本界修行练气之士，修的是后天仙道，求的不\"}, {\"kind\": \"flashback\", \"field\": \"text\", \"text\": \"过去\", \"snippet\": \"见太素六祖的真容，方才知晓天地间的真理，过去走入了左道。 吾等修行之人，自此开始修行\"}]}, \"shots\": [{\"shot_id\": \"S0024_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\": 24, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0020\", \"time_mode\": \"flashback\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"过去\", \"anchor_type\": \"flashback_marker\", \"constraint_count\": 2, \"evidence_count\": 2}}}, {\"shot_id\": \"S0024_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\": 24, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0020\", \"time_mode\": \"flashback\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"过去\", \"anchor_type\": \"flashback_marker\", \"constraint_count\": 2, \"evidence_count\": 2}}}, {\"shot_id\": \"S0024_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\": 24, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0020\", \"time_mode\": \"flashback\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"过去\", \"anchor_type\": \"flashback_marker\", \"constraint_count\": 2, \"evidence_count\": 2}}}, {\"shot_id\": \"S0024_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\": 24, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0020\", \"time_mode\": \"flashback\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"过去\", \"anchor_type\": \"flashback_marker\", \"constraint_count\": 2, \"evidence_count\": 2}}}], \"candidate_meta\": {\"scene_id\": \"S0024\", \"source_chunk_id\": \"C0006\", \"source_start_para\": 195, \"source_end_para\": 201, \"characters\": [\"李凡\", \"山主\"], \"locations\": [\"庭院\"], \"key_beats\": [\"系统赞同\", \"讲解先天大道\", \"阐述修行目标\", \"山主阐述后天与先天大道之别\"], \"shot_count_hint\": 4, \"scene_summary\": \"山主继续讲解后天仙道与先天大道的区别，以及拜月参修的起源。 山主向李凡阐述后天仙道与先天大道的区别，并因李凡的启发而顿悟突破，兴奋敬酒，李凡趁机提出拜师请求。\", \"scene_text_preview\": \"系统也表示赞同， ‘李凡的心情大幅提升了1点’ ‘李凡的心情大幅提升了1点’ ‘李凡的心情大幅提升了1点’ 山主看李凡毫不推诿客气，吃喝得这么开心洒脱，倒也觉…\", \"chronology_summary\": {\"narrative_order\": 24, \"story_chronology_order\": 19, \"story_chronology_group\": \"CG0020\", \"time_mode\": \"flashback\", \"confidence\": 0.99, \"order_delta\": -5, \"anchor_label\": \"过去\", \"anchor_type\": \"flashback_marker\", \"constraint_count\": 2, \"evidence_count\": 2}}}"
    }
  ]
}