{
  "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\": \"C0021-SC01\", \"title\": \"李凡的观察\", \"summary\": \"李凡戴着不知面在商行走动，发现后天仙道已世俗化，且无人注意到他。玄天剑意突然要求买酒。\", \"type\": [\"叙事\", \"观察\"], \"tone\": [\"悬疑\", \"讽刺\"], \"importance\": \"主线\", \"presentation\": [\"叙事画面\", \"内心独白\"], \"key_beats\": [\"后天仙道逼格下降\", \"不知面使人被忽略\", \"玄天剑意要求买酒\"], \"characters\": [\"李凡\", \"玄天剑意\"], \"locations\": [\"商行街道\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0021\", \"source_start_para\": 582, \"source_end_para\": 584, \"text\": \"但也看得出，后天仙道的逼格是真掉下来了，明码标价的啥都可以拿出来买卖了。\\n而且李凡还注意到一点，他戴着不知面走来走去，周围的掌柜伙计没有一个人朝他行礼。\\n当然不是瞧不起他这小童故意得罪修行者，而是真的没人注意到他的存在。下意识得，视线就从李凡身边掠过了，仿佛刻意忽略一般……\\n\\n啊！原来是这种原理么！物也好，非物也罢，只要假装啥也没看到，就可以当作啥事都没发生是吧！啧啧，这么装鸵鸟也行么，难怪要扣眼珠子呢，也是醉了……\\n\\n‘玄天剑意要宿主买一坛酒’\", \"text_preview\": \"但也看得出，后天仙道的逼格是真掉下来了，明码标价的啥都可以拿出来买卖了。 而且李凡还注意到一点，他戴着不知面走来走去，周围的掌柜伙计没有一个人朝他行礼。 当然…\", \"candidate_meta\": {\"candidate_id\": \"C0021-SC01\", \"record_count\": 3, \"char_len\": 225, \"structure_counts\": {\"body\": 2, \"dialogue\": 1}, \"boundary_reasons_after\": [\"system_switch\"], \"matched_entities\": [{\"entity_id\": \"E000008\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"宿主\"], \"score\": 7.8}, {\"entity_id\": \"E000043\", \"name\": \"后天仙道\", \"type\": \"功法体系\", \"subtype\": \"功法\", \"matched_terms\": [\"后天仙道\"], \"score\": 5.8}, {\"entity_id\": \"E000063\", \"name\": \"玄天剑意\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"玄天剑意\"], \"score\": 5.8}, {\"entity_id\": \"E000095\", \"name\": \"不知面\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"不知面\"], \"score\": 5.3}, {\"entity_id\": \"E000188\", \"name\": \"伙计\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"伙计\"], \"score\": 5.1}, {\"entity_id\": \"E000053\", \"name\": \"魔胎\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"非物\"], \"score\": 2.6}, {\"entity_id\": \"E000182\", \"name\": \"掌柜的\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"掌柜\"], \"score\": 2.3}], \"heuristic_types\": [\"叙事\"], \"heuristic_tones\": [\"悬疑\", \"庄严\"], \"heuristic_presentation\": [\"叙事画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0063\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0063\", \"narrative_order\": 63, \"story_chronology_order\": 54, \"story_chronology_group\": \"CG0054\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"temporal_anchor\": {\"label\": \"过了\", \"normalized_label\": \"过了\", \"anchor_type\": \"forward_marker\", \"relative_direction\": \"after\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0062\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0062\", \"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\": \"E000063\", \"canonical_name\": \"玄天剑意\", \"aliases\": [\"小剑\", \"奖品\", \"系统\", \"白光\", \"签约道具\", \"玄天剑祖\"], \"type\": \"系统面板\", \"subtype\": \"系统\", \"voice_card_id\": \"VO000063\"}], \"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\": \"E000063\", \"name\": \"玄天剑意\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"aliases\": [\"小剑\", \"奖品\", \"系统\", \"白光\", \"签约道具\", \"玄天剑祖\"], \"attributes\": {}, \"descriptions\": [\"传授绝招\", \"评论霸体功法\", \"建议见神杀神剑法\", \"警告宿主勿拔术剑\", \"建议购买雷觞酒\", \"回忆北辰剑宗\", \"在酒中遨游\", \"回忆过往\"], \"evidence\": [\"玄天剑意表示宿主不必妄自菲薄\", \"玄天剑意表示，那还用说吗\", \"玄天剑意表示画不出来\", \"玄天剑意明白李凡\", \"玄天剑意表示，就是叫见神杀神\", \"玄天剑意表示，宿主不要作死\", \"玄天剑意就仿佛真的喝醉了似的\", \"就只是单纯在回忆\"], \"mentions\": [{\"chunk_id\": \"C0035\", \"summary\": \"保护肉身评论鲲\", \"evidence\": [\"玄天剑意表示...主动留在人间道保护宿主肉身；玄天剑意表示，鲲还就是这样的\"], \"attributes\": {}}, {\"chunk_id\": \"C0036\", \"summary\": \"解释鲲能力\", \"evidence\": [\"玄天剑意表示不是鲶鱼是鲲\"], \"attributes\": {}}, {\"chunk_id\": \"C0037\", \"summary\": \"反驳茯苓观点\", \"evidence\": [\"玄天剑意表示，这女娃资质愚钝\"], \"attributes\": {}}, {\"chunk_id\": \"C0038\", \"summary\": \"建议筑基\", \"evidence\": [\"玄天剑意表示\"], \"attributes\": {}}, {\"chunk_id\": \"C0040\", \"summary\": \"与李凡对话\", \"evidence\": [\"玄天剑意表示宿主\"], \"attributes\": {}}, {\"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\": \"C0046\", \"summary\": \"建议购买雷觞酒\", \"evidence\": [\"玄天剑意表示\"], \"attributes\": {}}, {\"chunk_id\": \"C0047\", \"summary\": \"在酒坛中游动\", \"evidence\": [\"玄天剑意就仿佛真的喝醉了似的\"], \"attributes\": {}}], \"mention_count\": 36, \"observation_count\": 36, \"first_seen\": \"C0011\", \"last_seen\": \"C0047\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0063\", \"scene_notes\": \"李凡戴着不知面在商行走动，发现后天仙道已世俗化，且无人注意到他。玄天剑意突然要求买酒。；重要性：主线；呈现：叙事画面 / 内心独白；时间顺序：叙事63->故事54；时间锚点：过了\", \"audio_notes\": \"以旁白驱动\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0063\", \"narrative_order\": 63, \"story_chronology_order\": 54, \"story_chronology_group\": \"CG0054\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"temporal_anchor\": {\"label\": \"过了\", \"normalized_label\": \"过了\", \"anchor_type\": \"forward_marker\", \"relative_direction\": \"after\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0062\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0062\", \"confidence\": 0.78, \"reason\": \"narrative_forward\"}], \"evidence\": [{\"kind\": \"forward\", \"field\": \"text\", \"text\": \"过了\", \"snippet\": \"到他的存在。下意识得，视线就从李凡身边掠过了，仿佛刻意忽略一般…… 啊！原来是这种\"}]}, \"shots\": [{\"shot_id\": \"S0063_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\": 63, \"story_chronology_order\": 54, \"story_chronology_group\": \"CG0054\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"过了\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0063_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\": 63, \"story_chronology_order\": 54, \"story_chronology_group\": \"CG0054\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"过了\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0063_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\": 63, \"story_chronology_order\": 54, \"story_chronology_group\": \"CG0054\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"过了\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0063_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\": 63, \"story_chronology_order\": 54, \"story_chronology_group\": \"CG0054\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"过了\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0063\", \"source_chunk_id\": \"C0021\", \"source_start_para\": 582, \"source_end_para\": 584, \"characters\": [\"李凡\", \"玄天剑意\"], \"locations\": [\"商行街道\"], \"key_beats\": [\"后天仙道逼格下降\", \"不知面使人被忽略\", \"玄天剑意要求买酒\"], \"shot_count_hint\": 4, \"scene_summary\": \"李凡戴着不知面在商行走动，发现后天仙道已世俗化，且无人注意到他。玄天剑意突然要求买酒。\", \"scene_text_preview\": \"但也看得出，后天仙道的逼格是真掉下来了，明码标价的啥都可以拿出来买卖了。 而且李凡还注意到一点，他戴着不知面走来走去，周围的掌柜伙计没有一个人朝他行礼。 当然…\", \"chronology_summary\": {\"narrative_order\": 63, \"story_chronology_order\": 54, \"story_chronology_group\": \"CG0054\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -9, \"anchor_label\": \"过了\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}}"
    }
  ]
}