{
  "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\": \"C0018-SC03\", \"title\": \"望舒 · 礼仪与金钱\", \"summary\": \"茯苓在飞舟上教导李凡作为童子的礼仪，并解释仙人为何也需要金钱。 茯苓向李凡介绍三种修仙界货币，并谈及竹山教的地位。李凡询问北辰剑宗，得知其已被灭门五百年。\", \"type\": [\"系统/设定\", \"对话\", \"内心独白\", \"设定说明\"], \"tone\": [\"庄严\", \"说明性\", \"轻松\"], \"importance\": \"主线\", \"presentation\": [\"文字卡片\", \"旁白+画面\", \"对白驱动\"], \"key_beats\": [\"茯苓教导童子礼仪\", \"解释仙人需要金钱\", \"展示修仙界的货币\", \"茯苓讲解三种货币\", \"李凡询问竹山地位\", \"得知北辰剑宗灭门\"], \"characters\": [\"茯苓\", \"李凡\"], \"locations\": [], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0018\", \"source_start_para\": 522, \"source_end_para\": 531, \"text\": \"这机关术的原理，老实说李凡是看不大懂的，只是猜测大抵哪个零部件也和炁有着密切的关联，否则这种装饰用的翅膀，一眼望去连推进系统都没有的木舟，怎么可能上天入地得穿梭自如？\\n\\n“清月你需知道，本教山中的真人，可不是人人都和小姐那样率性而为，不守礼数的，”茯苓透过镜子瞅瞅李凡道，“你以后出去行走，就是望舒真人座下的童子，有的礼仪小姐不在乎，你可得从旁盯着点。”\\n\\n“请茯苓姐姐教诲。”李凡听出对方的意思，回身来坐好。\\n\\n茯苓点点头道，“我们等会儿先去外门，替你讨个缺，真人座下的童子要代着真人管理山外事务，一则历练交往，二则也能赚些孝敬补贴日用。”\\n\\n李凡真的楞了，“赚钱？仙人也花钱？”\\n\\n茯苓抿了口胭脂，“怎么仙人就不花钱，你以为这些真的都是凭空里变化出来的吗？”\\n那倒不至于，不过一般修仙小说不都是动辄几百万几百万灵石啥的吗，还有点石成金，五鬼搬运这种‘借’钱的手段，外门那么多褐衣弟子在洞天里修行，供奉应该不少吧？\\n\\n“那是给山主的，给真人的，竹山给你的才是你的。天材地宝当然都是以物易物的，可衣食住行，胭脂水粉的，总得备两个钱从人间道买吧。这种事等你修成了真人，也有侍婢童子伺候，宗门世家供奉的时候，才能抛之脑后肆意逍遥呢。”\\n\\n茯苓手腕一抖，摸出个绣着金鱼的红口袋，倒出一串金钱铜币来。\\n\\n李凡凑过来看了看。\\n\\n这钱都是天圆地方，有的用红绳串着，有的散着，略有金，银，赤三色，重量大小差别倒不是很大。大概就是铜币银币金币的设定吧……\\n结果茯苓用食指分别扒拉出三色的钱币来。\", \"text_preview\": \"这机关术的原理，老实说李凡是看不大懂的，只是猜测大抵哪个零部件也和炁有着密切的关联，否则这种装饰用的翅膀，一眼望去连推进系统都没有的木舟，怎么可能上天入地得穿…\", \"candidate_meta\": {\"candidate_id\": \"C0018-SC03\", \"record_count\": 10, \"char_len\": 639, \"structure_counts\": {\"body\": 5, \"dialogue\": 3, \"short_line\": 2}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000042\", \"name\": \"望舒\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"望舒\", \"望舒真人\", \"小姐\", \"真人\"], \"score\": 11.8}, {\"entity_id\": \"E000070\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"茯苓\", \"茯苓姐姐\", \"姐姐\", \"茯苓姐\"], \"score\": 11.8}, {\"entity_id\": \"E000008\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"清月\", \"童子\"], \"score\": 9.8}, {\"entity_id\": \"E000044\", \"name\": \"竹山\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"竹山\", \"本教\", \"宗门\"], \"score\": 9.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\": \"E000032\", \"name\": \"侍婢\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"侍婢\"], \"score\": 5.3}, {\"entity_id\": \"E000010\", \"name\": \"童子\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"童子\"], \"score\": 5.3}, {\"entity_id\": \"E000083\", \"name\": \"机关术\", \"type\": \"术法神通\", \"subtype\": \"\", \"matched_terms\": [\"机关术\"], \"score\": 5.2}, {\"entity_id\": \"E000052\", \"name\": \"人间道\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"人间道\"], \"score\": 5.1}], \"heuristic_types\": [\"系统/设定\", \"对话\", \"内心独白\"], \"heuristic_tones\": [\"庄严\"], \"heuristic_presentation\": [\"文字卡片\", \"旁白+画面\", \"对白驱动\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0057\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0057\", \"narrative_order\": 57, \"story_chronology_order\": 49, \"story_chronology_group\": \"CG0048\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -8, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0055\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0055\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000070\", \"canonical_name\": \"茯苓\", \"aliases\": [\"茯苓姐姐\", \"美妇\", \"姐姐\", \"女婢\", \"茯苓姐\", \"神仙姐姐\", \"玄女\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000070\"}, {\"entity_uid\": \"E000008\", \"canonical_name\": \"李凡\", \"aliases\": [\"小友\", \"小相公\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"童子\", \"傻小子\", \"宿主\", \"道友\", \"清月师弟\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000008\"}], \"kg_entities\": [{\"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\": \"E000070\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"茯苓姐姐\", \"美妇\", \"姐姐\", \"女婢\", \"茯苓姐\", \"神仙姐姐\", \"玄女\"], \"attributes\": {}, \"descriptions\": [\"告退离开\", \"招待李凡\", \"提醒宗门事\", \"讲述墨竹山历史\", \"提醒李凡小心\", \"答应寻灵食\", \"带李凡见师兄\", \"被李凡评价颜值\"], \"evidence\": [\"茯苓白了他一眼\", \"茯苓花了十年开辟内景\", \"茯苓倒是一眼就看出他在想什么\", \"茯苓苦笑\", \"茯苓想了想说道\", \"茯苓失笑摇头\", \"茯苓倒是一口答应了下来\", \"茯苓素颜的话78不能更高了\"], \"mentions\": [{\"chunk_id\": \"C0022\", \"summary\": \"在商会处理事务\", \"evidence\": [\"看着她查账点货\"], \"attributes\": {}}, {\"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\": \"C0028\", \"summary\": \"安排牧龙任务\", \"evidence\": [\"茯苓白了他一眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0029\", \"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\": {}}, {\"chunk_id\": \"C0047\", \"summary\": \"李凡评价其颜值\", \"evidence\": [\"茯苓素颜的话78不能更高了\"], \"attributes\": {}}], \"mention_count\": 28, \"observation_count\": 28, \"first_seen\": \"C0012\", \"last_seen\": \"C0047\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0057\", \"scene_notes\": \"茯苓在飞舟上教导李凡作为童子的礼仪，并解释仙人为何也需要金钱。 茯苓向李凡介绍三种修仙界货币，并谈及竹山教的地位。李凡询问北辰剑宗，得知其已被灭门五百年。；重要性：主线；呈现：文字卡片 / 旁白+画面 / 对白驱动；时间顺序：叙事57->故事49\", \"audio_notes\": \"保留对白节奏；环境音先行\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0057\", \"narrative_order\": 57, \"story_chronology_order\": 49, \"story_chronology_group\": \"CG0048\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -8, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0055\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0055\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"shots\": [{\"shot_id\": \"S0057_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\": 57, \"story_chronology_order\": 49, \"story_chronology_group\": \"CG0048\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -8, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0057_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\": 57, \"story_chronology_order\": 49, \"story_chronology_group\": \"CG0048\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -8, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0057_SH03\", \"camera\": \"正反打\", \"description\": \"对白推进核心信息\", \"actions\": [\"解释仙人需要金钱\", \"展示修仙界的货币\"], \"dialogue\": [{\"speaker\": \"茯苓\", \"speaker_entity_uid\": \"\", \"delivery_hint\": \"平稳陈述\", \"line\": \"清月你需知道，本教山中的真人，可不是人人都和小姐那样率性而为，不守礼数的，\"}, {\"speaker\": \"李凡\", \"speaker_entity_uid\": \"\", \"delivery_hint\": \"平稳陈述\", \"line\": \"你以后出去行走，就是望舒真人座下的童子，有的礼仪小姐不在乎，你可得从旁盯着点。\"}, {\"speaker\": \"\", \"speaker_entity_uid\": \"\", \"delivery_hint\": \"平稳陈述\", \"line\": \"请茯苓姐姐教诲。\"}, {\"speaker\": \"\", \"speaker_entity_uid\": \"\", \"delivery_hint\": \"平稳陈述\", \"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\": 57, \"story_chronology_order\": 49, \"story_chronology_group\": \"CG0048\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -8, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0057_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\": 57, \"story_chronology_order\": 49, \"story_chronology_group\": \"CG0048\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -8, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0057\", \"source_chunk_id\": \"C0018\", \"source_start_para\": 522, \"source_end_para\": 531, \"characters\": [\"茯苓\", \"李凡\"], \"locations\": [], \"key_beats\": [\"茯苓教导童子礼仪\", \"解释仙人需要金钱\", \"展示修仙界的货币\", \"茯苓讲解三种货币\"], \"shot_count_hint\": 4, \"scene_summary\": \"茯苓在飞舟上教导李凡作为童子的礼仪，并解释仙人为何也需要金钱。 茯苓向李凡介绍三种修仙界货币，并谈及竹山教的地位。李凡询问北辰剑宗，得知其已被灭门五百年。\", \"scene_text_preview\": \"这机关术的原理，老实说李凡是看不大懂的，只是猜测大抵哪个零部件也和炁有着密切的关联，否则这种装饰用的翅膀，一眼望去连推进系统都没有的木舟，怎么可能上天入地得穿…\", \"chronology_summary\": {\"narrative_order\": 57, \"story_chronology_order\": 49, \"story_chronology_group\": \"CG0048\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -8, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}"
    }
  ]
}