{
  "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-SC02\", \"title\": \"激活玉佩\", \"summary\": \"李凡在玄天剑意引导下激活双鱼玉佩，存入取出物品，气走茯苓。\", \"type\": [\"动作\", \"系统/设定\"], \"tone\": [\"庄严\"], \"importance\": \"主线\", \"presentation\": [\"旁白+画面\", \"文字卡片\"], \"key_beats\": [\"玄天剑意引导行炁\", \"成功激活玉佩存取物品\", \"茯苓气走\"], \"characters\": [\"李凡\", \"茯苓\"], \"locations\": [], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0014\", \"source_start_para\": 415, \"source_end_para\": 418, \"text\": \"呼吸之间，他只感到从右臂手腕，大拇指与小臂连接的关窍处，传来一股明显的跳动，仿佛有一条游鱼沿着右臂内的经脉逆走，顺着躯壳里河流一般的间隙，落入小腹中转了一圈，然后又原路返回，返回到手腕里藏着。\\n李凡也不是傻的，立刻明白是玄天剑意指点，而且这可真是字面意义上得理顺经络，直接把行炁的路线都过了一遍。当即他就沿着这条经络，将内景的道息集结起来，伸手握住了双鱼玉佩。\\n\\n随即李凡的脑海中一片清明，仿佛看到了一个系统似的空间，只是心念一动，就把怀里的经卷和山主给的珍珠收入玉佩，又随手拿了一身替换的道衣出来。\\n\\n“还真是蛮简单的。多谢姐姐指点。”\\n\\n又是一个妖孽！茯苓把眼一翻，气得掩面而走。\", \"text_preview\": \"呼吸之间，他只感到从右臂手腕，大拇指与小臂连接的关窍处，传来一股明显的跳动，仿佛有一条游鱼沿着右臂内的经脉逆走，顺着躯壳里河流一般的间隙，落入小腹中转了一圈，…\", \"candidate_meta\": {\"candidate_id\": \"C0014-SC02\", \"record_count\": 4, \"char_len\": 292, \"structure_counts\": {\"body\": 3, \"dialogue\": 1}, \"boundary_reasons_after\": [\"chapter_heading\"], \"matched_entities\": [{\"entity_id\": \"E000063\", \"name\": \"玄天剑意\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"玄天剑意\", \"系统\"], \"score\": 7.8}, {\"entity_id\": \"E000070\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"茯苓\", \"姐姐\"], \"score\": 7.8}, {\"entity_id\": \"E000051\", \"name\": \"内景\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"内景\"], \"score\": 5.8}, {\"entity_id\": \"E000022\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.8}, {\"entity_id\": \"E000008\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}, {\"entity_id\": \"E000064\", \"name\": \"系统\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"系统\"], \"score\": 5.8}, {\"entity_id\": \"E000075\", \"name\": \"道息\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"道息\"], \"score\": 5.7}, {\"entity_id\": \"E000073\", \"name\": \"双鱼玉佩\", \"type\": \"物品\", \"subtype\": \"法器\", \"matched_terms\": [\"双鱼玉佩\"], \"score\": 5.3}, {\"entity_id\": \"E000126\", \"name\": \"系统\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"系统\"], \"score\": 5.0}, {\"entity_id\": \"E000053\", \"name\": \"魔胎\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"妖孽\"], \"score\": 2.6}], \"heuristic_types\": [\"系统/设定\"], \"heuristic_tones\": [\"庄严\"], \"heuristic_presentation\": [\"文字卡片\", \"旁白+画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0046\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0046\", \"narrative_order\": 46, \"story_chronology_order\": 38, \"story_chronology_group\": \"CG0038\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -8, \"temporal_anchor\": {\"label\": \"过了一遍\", \"normalized_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"relative_direction\": \"after\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0045\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0045\", \"confidence\": 0.78, \"reason\": \"narrative_forward\"}], \"evidence\": [{\"kind\": \"forward\", \"field\": \"text\", \"text\": \"过了一遍\", \"snippet\": \"字面意义上得理顺经络，直接把行炁的路线都过了一遍。当即他就沿着这条经络，将内景的道息集结\"}]}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000008\", \"canonical_name\": \"李凡\", \"aliases\": [\"小友\", \"小相公\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"童子\", \"傻小子\", \"宿主\", \"道友\", \"清月师弟\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000008\"}, {\"entity_uid\": \"E000070\", \"canonical_name\": \"茯苓\", \"aliases\": [\"茯苓姐姐\", \"美妇\", \"姐姐\", \"女婢\", \"茯苓姐\", \"神仙姐姐\", \"玄女\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000070\"}], \"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\": \"S0046\", \"scene_notes\": \"李凡在玄天剑意引导下激活双鱼玉佩，存入取出物品，气走茯苓。；重要性：主线；呈现：旁白+画面 / 文字卡片；时间顺序：叙事46->故事38；时间锚点：过了一遍\", \"audio_notes\": \"保留对白节奏；动作点补音效\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0046\", \"narrative_order\": 46, \"story_chronology_order\": 38, \"story_chronology_group\": \"CG0038\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -8, \"temporal_anchor\": {\"label\": \"过了一遍\", \"normalized_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"relative_direction\": \"after\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0045\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0045\", \"confidence\": 0.78, \"reason\": \"narrative_forward\"}], \"evidence\": [{\"kind\": \"forward\", \"field\": \"text\", \"text\": \"过了一遍\", \"snippet\": \"字面意义上得理顺经络，直接把行炁的路线都过了一遍。当即他就沿着这条经络，将内景的道息集结\"}]}, \"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\": 38, \"story_chronology_group\": \"CG0038\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -8, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"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\": 38, \"story_chronology_group\": \"CG0038\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -8, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0046_SH03\", \"camera\": \"正反打\", \"description\": \"对白推进核心信息\", \"actions\": [\"成功激活玉佩存取物品\", \"茯苓气走\"], \"dialogue\": [{\"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\": 46, \"story_chronology_order\": 38, \"story_chronology_group\": \"CG0038\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -8, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"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\": 38, \"story_chronology_group\": \"CG0038\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -8, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0046\", \"source_chunk_id\": \"C0014\", \"source_start_para\": 415, \"source_end_para\": 418, \"characters\": [\"李凡\", \"茯苓\"], \"locations\": [], \"key_beats\": [\"玄天剑意引导行炁\", \"成功激活玉佩存取物品\", \"茯苓气走\"], \"shot_count_hint\": 4, \"scene_summary\": \"李凡在玄天剑意引导下激活双鱼玉佩，存入取出物品，气走茯苓。\", \"scene_text_preview\": \"呼吸之间，他只感到从右臂手腕，大拇指与小臂连接的关窍处，传来一股明显的跳动，仿佛有一条游鱼沿着右臂内的经脉逆走，顺着躯壳里河流一般的间隙，落入小腹中转了一圈，…\", \"chronology_summary\": {\"narrative_order\": 46, \"story_chronology_order\": 38, \"story_chronology_group\": \"CG0038\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -8, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}}"
    }
  ]
}