{
  "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. Prefer the existing entity display names from the entity context. Do not invent unnecessary new speaker variants when the candidate already provides a stable character name. 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, narrator_profile_id. Shot schema: {shot_id,description,camera,actions,dialogue,narration,on_screen_text,narrator_profile_id,narration_delivery_hint}. dialogue is a list of {speaker,speaker_entity_uid,delivery_hint,line}. speaker_entity_uid and narrator_profile_id are program-owned identity fields: preserve the candidate values when unsure, and do not fabricate random IDs. 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\": \"E000008\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"小友\", \"小子\"], \"score\": 9.8}, {\"entity_id\": \"E000043\", \"name\": \"后天仙道\", \"type\": \"功法体系\", \"subtype\": \"功法\", \"matched_terms\": [\"后天仙道\", \"左术\"], \"score\": 7.8}, {\"entity_id\": \"E000022\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.8}, {\"entity_id\": \"E000064\", \"name\": \"系统\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"系统\"], \"score\": 5.8}, {\"entity_id\": \"E000040\", \"name\": \"先天大道\", \"type\": \"功法体系\", \"subtype\": \"\", \"matched_terms\": [\"先天大道\"], \"score\": 5.6}, {\"entity_id\": \"E000014\", \"name\": \"虚月\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"虚月\"], \"score\": 5.6}, {\"entity_id\": \"E000034\", \"name\": \"太素道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素道祖\"], \"score\": 5.3}, {\"entity_id\": \"E000125\", \"name\": \"道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"道祖\"], \"score\": 5.3}, {\"entity_id\": \"E000036\", \"name\": \"太素六祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素六祖\"], \"score\": 5.2}, {\"entity_id\": \"E000126\", \"name\": \"系统\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"系统\"], \"score\": 5.0}], \"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{\"registry_entities\": [{\"entity_uid\": \"E000008\", \"canonical_name\": \"李凡\", \"aliases\": [\"小友\", \"小相公\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"童子\", \"傻小子\", \"宿主\", \"道友\", \"清月师弟\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000008\"}, {\"entity_uid\": \"E000022\", \"canonical_name\": \"山主\", \"aliases\": [\"仙尊\", \"师尊\"], \"type\": \"职位称号\", \"subtype\": \"\", \"voice_card_id\": \"VO000022\"}, {\"entity_uid\": \"E000041\", \"canonical_name\": \"庭院\", \"aliases\": [], \"type\": \"地点\", \"subtype\": \"场地/空地\", \"voice_card_id\": \"\"}], \"kg_entities\": [{\"entity_id\": \"E000041\", \"name\": \"庭院\", \"type\": \"地点\", \"subtype\": \"场地/空地\", \"aliases\": [], \"attributes\": {}, \"descriptions\": [], \"evidence\": [], \"mentions\": [], \"mention_count\": 0, \"observation_count\": 0, \"first_seen\": \"\", \"last_seen\": \"\"}, {\"entity_id\": \"E000008\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"小友\", \"小相公\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"童子\", \"傻小子\", \"宿主\", \"道友\", \"清月师弟\"], \"attributes\": {}, \"descriptions\": [\"探头看酒坛\", \"运起赤脉童子法门\", \"观察武林中人实力\", \"打量太监\", \"观察太监商人\", \"想找鲲撤离\", \"躲在桌子底下\", \"吐槽龙门客栈\"], \"evidence\": [\"然后李凡探头往酒坛子里张望了一眼\", \"无聊得运起赤脉童子的法门\", \"李凡凝聚目力不是看人家少妇身材的\", \"李凡又看了一眼\", \"李凡收回视线\", \"李凡缩到桌子底下张望\", \"躲在桌子底下的李凡翻了个白眼\", \"李凡也是醉了\"], \"mentions\": [{\"chunk_id\": \"C0042\", \"summary\": \"修炼剑法炼神识\", \"evidence\": [\"李凡当即开始\"], \"attributes\": {}}, {\"chunk_id\": \"C0043\", \"summary\": \"用神识看童子打架\", \"evidence\": [\"李凡用神识一扫\"], \"attributes\": {}}, {\"chunk_id\": \"C0044\", \"summary\": \"尝试赤脉童子剑法\", \"evidence\": [\"李凡尝试不运剑气\"], \"attributes\": {}}, {\"chunk_id\": \"C0044\", \"summary\": \"戒备散修盗龙\", \"evidence\": [\"李凡也估计到这些修行者大部分都是半道打劫起家的\"], \"attributes\": {}}, {\"chunk_id\": \"C0045\", \"summary\": \"抓鲲搂剑取食盒\", \"evidence\": [\"抓起鲲，搂着剑，从玉佩里取出茯苓准备的食盒\"], \"attributes\": {}}, {\"chunk_id\": \"C0046\", \"summary\": \"询问不周山\", \"evidence\": [\"李凡遥望远方\"], \"attributes\": {}}, {\"chunk_id\": \"C0046\", \"summary\": \"购买雷觞酒\", \"evidence\": [\"李凡走进客栈\"], \"attributes\": {}}, {\"chunk_id\": \"C0047\", \"summary\": \"看酒坛中玄天剑意\", \"evidence\": [\"然后李凡探头往酒坛子里张望了一眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0047\", \"summary\": \"运法门观旅人\", \"evidence\": [\"无聊得运起赤脉童子的法门\"], \"attributes\": {}}, {\"chunk_id\": \"C0048\", \"summary\": \"观察萱娘等人\", \"evidence\": [\"李凡凝聚目力不是看人家少妇身材的\"], \"attributes\": {}}, {\"chunk_id\": \"C0049\", \"summary\": \"观察太监商人\", \"evidence\": [\"李凡又看了一眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0050\", \"summary\": \"躲在桌下吐槽\", \"evidence\": [\"躲在桌子底下的李凡翻了个白眼\"], \"attributes\": {}}], \"mention_count\": 66, \"observation_count\": 66, \"first_seen\": \"C0001\", \"last_seen\": \"C0050\"}, {\"entity_id\": \"E000022\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"aliases\": [\"仙尊\", \"师尊\"], \"attributes\": {}, \"descriptions\": [\"即将闭关\", \"看重李凡\", \"不拘礼节\", \"给李凡眼泪\", \"闭关\", \"内门一系领袖\", \"主张拜月修行\", \"元婴可拜入门下\"], \"evidence\": [\"本座这些年也在化神期停滞徘徊\", \"山主说得满面红光\", \"山主座下的真传弟子\", \"山主给的眼泪\", \"山主闭关\", \"内门山主一系\", \"山主一派都是走的太素道捷径\", \"也有拜入山主座下的机缘\"], \"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\": [\"难怪师尊请你吃酒\"], \"attributes\": {}}, {\"chunk_id\": \"C0009\", \"summary\": \"曾给李凡眼泪\", \"evidence\": [\"山主给的眼泪\"], \"attributes\": {}}, {\"chunk_id\": \"C0036\", \"summary\": \"闭关\", \"evidence\": [\"山主闭关\"], \"attributes\": {}}, {\"chunk_id\": \"C0037\", \"summary\": \"内门山主一系\", \"evidence\": [\"一派是我们内门山主一系\"], \"attributes\": {}}, {\"chunk_id\": \"C0037\", \"summary\": \"主张拜月修行\", \"evidence\": [\"山主一派都是走的太素道捷径\"], \"attributes\": {}}, {\"chunk_id\": \"C0038\", \"summary\": \"元婴可拜入\", \"evidence\": [\"也有拜入山主座下的机缘\"], \"attributes\": {}}], \"mention_count\": 13, \"observation_count\": 13, \"first_seen\": \"C0003\", \"last_seen\": \"C0038\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0024\", \"scene_notes\": \"山主继续阐述先天大道与后天仙道的区别，以及虚月带来的修行变革。 山主向李凡阐述后天仙道与先天大道的区别，并因李凡的启发而顿悟突破，兴奋地要报答李凡。李凡趁机提出拜师请求。；重要性：主线；呈现：对白驱动 / 旁白+画面；时间模式：flashback；时间顺序：叙事24->故事19；时间锚点：过去\", \"audio_notes\": \"动作点补音效；回忆段用清晰转场提示\", \"narrator_profile_id\": \"narrator_flashback_cn\", \"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}}, \"narrator_profile_id\": \"narrator_flashback_cn\"}, {\"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}}, \"narrator_profile_id\": \"narrator_flashback_cn\", \"narration_delivery_hint\": \"带回忆感\"}, {\"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}}, \"narrator_profile_id\": \"narrator_flashback_cn\"}, {\"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}}, \"narrator_profile_id\": \"narrator_flashback_cn\"}], \"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}}}"
    }
  ]
}