{
  "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\": \"C0014-SC01\", \"title\": \"炼炁之理\", \"summary\": \"茯苓解释长期直接调用真炁会阻塞经脉，需炼化成五行道息，并让李凡尝试用内景真炁打开储物玉佩。\", \"type\": [\"叙事\", \"设定说明\"], \"tone\": [\"庄严\", \"指导性\"], \"importance\": \"主线\", \"presentation\": [\"叙事画面\", \"对话\"], \"key_beats\": [\"茯苓讲解炼炁原理\", \"让李凡用内景真炁开玉佩\", \"茯苓试探李凡\"], \"characters\": [\"李凡\", \"茯苓\"], \"locations\": [\"人间道\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0014\", \"source_start_para\": 412, \"source_end_para\": 414, \"text\": \"如果不加提炼，长期直接调用真炁，反而会阻塞经脉气窍，这就是人间道那些不得正法的散修左道，修不得天仙正果的根源所在。\\n而所谓炼炁，就是通过后天仙道各门各派的功法，将这口真炁道息，再经提炼成神罡，紫霞，玄冥，赤煞，归尘这更纯正的上品五行道息，这样才能进一步用于更上乘的神通秘术，炼体筑基，御物施法。\\n像储物玉佩这样的空间法宝，有一些定制的上品，需要以独门法诀练出特定属性和浓度的真炁才能打开。不过我给你的这块只是一般的灵宝，哪怕不用炼化的真炁，直接用体内的道息激活亦可使用了。当然空间有限，而且人人可用，最好也别放什么珍贵的天才地宝。\\n\\n你既然一晚上就能开辟内景，那就直接调用内景中的真炁好了，这对你应该很简单吧。”\\n茯苓显然还是有些不信，想试探李凡似的，故意不说明白。\\n\\n不过李凡身上可不止一个挂。\", \"text_preview\": \"如果不加提炼，长期直接调用真炁，反而会阻塞经脉气窍，这就是人间道那些不得正法的散修左道，修不得天仙正果的根源所在。 而所谓炼炁，就是通过后天仙道各门各派的功法…\", \"candidate_meta\": {\"candidate_id\": \"C0014-SC01\", \"record_count\": 3, \"char_len\": 348, \"structure_counts\": {\"body\": 2, \"short_line\": 1}, \"boundary_reasons_after\": [\"time_transition\", \"location_transition\"], \"matched_entities\": [{\"entity_id\": \"E000075\", \"name\": \"道息\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"道息\", \"真炁\"], \"score\": 7.6}, {\"entity_id\": \"E000047\", \"name\": \"内景\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"内景\"], \"score\": 5.8}, {\"entity_id\": \"E000007\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}, {\"entity_id\": \"E000070\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"茯苓\"], \"score\": 5.8}, {\"entity_id\": \"E000058\", \"name\": \"紫霞\", \"type\": \"术法神通\", \"subtype\": \"\", \"matched_terms\": [\"紫霞\"], \"score\": 5.4}, {\"entity_id\": \"E000074\", \"name\": \"储物玉佩\", \"type\": \"物品\", \"subtype\": \"法器\", \"matched_terms\": [\"储物玉佩\"], \"score\": 5.3}, {\"entity_id\": \"E000057\", \"name\": \"玄冥\", \"type\": \"术法神通\", \"subtype\": \"\", \"matched_terms\": [\"玄冥\"], \"score\": 5.3}, {\"entity_id\": \"E000041\", \"name\": \"后天仙道\", \"type\": \"功法体系\", \"subtype\": \"功法\", \"matched_terms\": [\"后天仙道\"], \"score\": 5.2}, {\"entity_id\": \"E000076\", \"name\": \"炼炁\", \"type\": \"功法体系\", \"subtype\": \"\", \"matched_terms\": [\"炼炁\"], \"score\": 5.2}, {\"entity_id\": \"E000048\", \"name\": \"人间道\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"人间道\"], \"score\": 5.1}], \"heuristic_types\": [\"叙事\"], \"heuristic_tones\": [\"庄严\", \"紧张\"], \"heuristic_presentation\": [\"叙事画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0046\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0046\", \"narrative_order\": 46, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -9, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0045\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0045\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000007\", \"canonical_name\": \"李凡\", \"aliases\": [\"小友\", \"小相公\", \"小子\", \"清月\", \"李清月\", \"道子\", \"小色鬼\", \"童子\", \"傻小子\", \"清月师弟\", \"宿主\", \"道爷\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000007\"}, {\"entity_uid\": \"E000070\", \"canonical_name\": \"茯苓\", \"aliases\": [\"姐姐\", \"茯苓姐\", \"神仙姐姐\", \"玄女\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000070\"}, {\"entity_uid\": \"E000048\", \"canonical_name\": \"人间道\", \"aliases\": [], \"type\": \"概念法则\", \"subtype\": \"\", \"voice_card_id\": \"\"}], \"kg_entities\": [{\"entity_id\": \"E000070\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"姐姐\", \"茯苓姐\", \"神仙姐姐\", \"玄女\"], \"attributes\": {}, \"descriptions\": [\"曾被望舒现形吓疯\", \"招待李凡\", \"给鲲喂食\", \"向李凡解释墨竹山历史\", \"提醒李凡小心同门\", \"答应寻灵食\", \"带李凡见师兄\", \"被李凡评价颜值\"], \"evidence\": [\"茯苓第一次见我现形的时候，人都吓疯了\", \"茯苓倒是一眼就看出他在想什么；茯苓白了李凡一眼\", \"茯苓想了想说道\", \"茯苓指指望舒小居外边\", \"茯苓失笑摇头\", \"茯苓倒是一口答应了下来\", \"今儿先领你去见个师兄\", \"茯苓素颜的话78不能更高了\"], \"mentions\": [{\"chunk_id\": \"C0023\", \"summary\": \"介绍三尊带李凡\", \"evidence\": [\"茯苓介绍道，“这三位是本界合道飞升的仙尊\"], \"attributes\": {}}, {\"chunk_id\": \"C0023\", \"summary\": \"三尊之一仙子像\", \"evidence\": [\"左手是一名素面纤纤的仙子\"], \"attributes\": {}}, {\"chunk_id\": \"C0024\", \"summary\": \"与李凡对话\", \"evidence\": [\"茯苓没好气得捏了李凡脸蛋一把\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"气冲冲拧耳朵\", \"evidence\": [\"茯苓一副气冲冲\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"替李凡请道牒\", \"evidence\": [\"替清月请了道牒\"], \"attributes\": {}}, {\"chunk_id\": \"C0028\", \"summary\": \"安排牧龙任务\", \"evidence\": [\"茯苓白了他一眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0029\", \"summary\": \"对比李凡资质\", \"evidence\": [\"茯苓花了十年才开辟内景\"], \"attributes\": {}}, {\"chunk_id\": \"C0033\", \"summary\": \"曾被望舒吓疯\", \"evidence\": [\"茯苓第一次见我现形的时候，人都吓疯了\"], \"attributes\": {}}, {\"chunk_id\": \"C0036\", \"summary\": \"招待李凡喂鲲\", \"evidence\": [\"茯苓倒是一眼就看出他在想什么；茯苓白了李凡一眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0037\", \"summary\": \"解释墨竹山历史\", \"evidence\": [\"茯苓想了想说道\"], \"attributes\": {}}, {\"chunk_id\": \"C0038\", \"summary\": \"答应寻灵食，带李凡见师兄\", \"evidence\": [\"茯苓倒是一口答应了下来\"], \"attributes\": {}}, {\"chunk_id\": \"C0047\", \"summary\": \"李凡评价其颜值\", \"evidence\": [\"茯苓素颜的话78不能更高了\"], \"attributes\": {}}], \"mention_count\": 26, \"observation_count\": 26, \"first_seen\": \"C0012\", \"last_seen\": \"C0047\"}, {\"entity_id\": \"E000007\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"小友\", \"小相公\", \"小子\", \"清月\", \"李清月\", \"道子\", \"小色鬼\", \"童子\", \"傻小子\", \"清月师弟\", \"宿主\", \"道爷\"], \"attributes\": {}, \"descriptions\": [\"探头看酒坛\", \"运赤脉童子法门\", \"看萱娘身材\", \"打量太监护卫\", \"观察太监商人\", \"想找鲲撤离\", \"躲在桌子底下\", \"吐槽系统\"], \"evidence\": [\"李凡遥望远方，确实地貌景色和竹山那边明显不同了\", \"李凡探头往酒坛子里张望了一眼\", \"无聊得运起赤脉童子的法门\", \"当然主要还是去看那个唤作萱娘的少妇，也不排除有人看五弟的大胸肌就是了咳咳……\", \"李凡又看了一眼，他还真没见过活生生的太监呢，虽然影视作品中，这种职业都是反派丑角出现的，不过实话实说哈，眼前这太监其实底子很好，五官端正，称得上是挺帅的，不是一眼就能看出来的那种阴阳人。\", \"李凡又看了一眼\", \"李凡收回视线\", \"躲在桌子底下的李凡翻了个白眼。\"], \"mentions\": [{\"chunk_id\": \"C0041\", \"summary\": \"看龙兴奋\", \"evidence\": [\"李凡被溅起的水花打了一头一脸\"], \"attributes\": {}}, {\"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\": \"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\": 61, \"observation_count\": 61, \"first_seen\": \"C0001\", \"last_seen\": \"C0050\"}, {\"entity_id\": \"E000048\", \"name\": \"人间道\", \"type\": \"概念法则\", \"subtype\": \"\", \"aliases\": [], \"attributes\": {}, \"descriptions\": [\"诞出李凡此道子\"], \"evidence\": [\"人间道居然能诞出如此道子\"], \"mentions\": [{\"chunk_id\": \"C0008\", \"summary\": \"人间道诞出李凡\", \"evidence\": [\"人间道居然能诞出如此道子\"], \"attributes\": {}}], \"mention_count\": 1, \"observation_count\": 1, \"first_seen\": \"C0008\", \"last_seen\": \"C0008\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0046\", \"scene_notes\": \"茯苓解释长期直接调用真炁会阻塞经脉，需炼化成五行道息，并让李凡尝试用内景真炁打开储物玉佩。；重要性：主线；呈现：叙事画面 / 对话；时间顺序：叙事46->故事37\", \"audio_notes\": \"以旁白驱动\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0046\", \"narrative_order\": 46, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -9, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0045\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0045\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"shots\": [{\"shot_id\": \"S0046_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\": 46, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -9, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0046_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\": 46, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -9, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0046_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\": 46, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -9, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0046_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\": 46, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -9, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0046\", \"source_chunk_id\": \"C0014\", \"source_start_para\": 412, \"source_end_para\": 414, \"characters\": [\"李凡\", \"茯苓\"], \"locations\": [\"人间道\"], \"key_beats\": [\"茯苓讲解炼炁原理\", \"让李凡用内景真炁开玉佩\", \"茯苓试探李凡\"], \"shot_count_hint\": 4, \"scene_summary\": \"茯苓解释长期直接调用真炁会阻塞经脉，需炼化成五行道息，并让李凡尝试用内景真炁打开储物玉佩。\", \"scene_text_preview\": \"如果不加提炼，长期直接调用真炁，反而会阻塞经脉气窍，这就是人间道那些不得正法的散修左道，修不得天仙正果的根源所在。 而所谓炼炁，就是通过后天仙道各门各派的功法…\", \"chronology_summary\": {\"narrative_order\": 46, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -9, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}"
    }
  ]
}