{
  "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-SC02\", \"title\": \"山主论道\", \"summary\": \"山主返回，与李凡饮酒论道，讲解太素道祖与先天五太。\", \"type\": [\"对话\", \"设定阐述\"], \"tone\": [\"庄严\", \"诙谐\"], \"importance\": \"主线\", \"presentation\": [\"对白驱动\", \"旁白+画面\"], \"key_beats\": [\"山主展示画卷\", \"讲解太素道祖\", \"李凡困惑\"], \"characters\": [\"李凡\", \"山主\"], \"locations\": [\"庭院\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0006\", \"source_start_para\": 163, \"source_end_para\": 192, \"text\": \"第三章下酒\\n\\n历历素榆飘玉叶，涓涓清月溼冰轮\\n\\n山主抱着一卷画轴，回到庭院中的时候，李凡正被莺莺燕燕簇拥着喂酒，脸上嘴上脖子上，都叮咛了一层层的胭脂瓣。\\n\\n“哈哈，小友倒是个纵情洒脱之人。好的很，本座最讨厌伪君子了。”\\n\\n那三个侍婢看到主人回来，嫣然笑着一拜，罗裙霞裳，朱颜婵娟，统统散作飞花。\\n只把李凡一个跟头栽倒进一堆花瓣里，爬起来的时候花瓣都被吹散了，好像刚才他只是作了一席春梦。\\n\\n‘李凡的心情大幅提升了1点’\\n\\n‘李凡，心情，100/100’\\n\\n‘抽奖充能100/100，每日抽奖一次，明日可进行抽奖。’\\n\\n嘿你还别说，看来本地的修士对身心健康的重要性也是深有体会嘛，这也不知道是什么幻术，三五分钟的就把李凡的心情‘大幅提升了1点’得加满了。\\n山主看李凡玩得开心，也展颜一笑，把手里的画轴一展，“小友，你看到的可是此景？”\\n那是一卷水墨画，李凡愿称画师为仙界毕加索，就用墨迹乱泼了一团，根本看不出是啥玩意。不过你还别说，那团混沌的墨迹之中，有些轨迹看起来，却有些圆圆的，倒是和那天幕下一连串的泡泡有那么点像。\\n\\n‘李凡的心情下降了1点’\\n\\n“此非物之祖，”山主看他若有所思的神色就明白了，手一挑收起画卷，就在李凡面前茶案边坐下，双手虚抱，朝天上作辑一拜，脸上实无半分礼节得说道，“是太素道祖。”\\n\\n非物之祖？道祖？\\n\\n‘李凡的心情下降了1点’\\n\\n“混沌兽母，大荒虚星，黄天幽泉，此太素六祖，”山主点点手里的画卷，“道祖虚星。”\\n\\n“太素六祖？虚星道祖？”李凡皱眉，根本听不懂对方在说什么。\\n\\n‘李凡的心情下降了1点’\\n\\n山主反倒不嫌弃他愚钝，还兴致颇为高昂得讲述道，\\n\\n“无极而太极者，有先天五太，曰太易，曰太初，曰太始，曰太素，曰太极。\\n\\n太易神之初，太初气之始，太始形之有。\\n\\n太素者，质之始而成形，成形而有质，有质而未成体。\\n太极者，动静之机，阴阳之母，生生之源，万物之始。\\n\\n是曰，\\n\\n生于太极者，物也。\\n\\n生于太素者，非物也。”\\n\\n‘李凡的心情大幅下降了1点’\\n\\n“哦……太极……”\\n\\n李凡表示懂了，可又没完全懂了。\\n\\n这说的好像是道家哲学，对宇宙万物起源的一种认知和猜想吧。\\n山主倒是开怀大笑，“小友不愧是天生道子！如此直言论道，依然坐怀不乱，畅快！畅快！哈哈哈！”\\n\\n李凡就一脸黑人问号尬在那……\\n\\n“哈哈哈，请用。”\\n\\n山主笑了好一会儿才收住，挥挥衣袖，在李凡面前摆上一桌酒宴，却是玉碟里青团两个，青叶似杯盏里浅酒一斟，香气扑鼻，闻着就神清气爽，一看就不是凡品。\", \"text_preview\": \"第三章下酒 历历素榆飘玉叶，涓涓清月溼冰轮 山主抱着一卷画轴，回到庭院中的时候，李凡正被莺莺燕燕簇拥着喂酒，脸上嘴上脖子上，都叮咛了一层层的胭脂瓣。 “哈哈，…\", \"candidate_meta\": {\"candidate_id\": \"C0006-SC02\", \"record_count\": 30, \"char_len\": 1044, \"structure_counts\": {\"chapter_heading\": 1, \"short_line\": 8, \"body\": 7, \"dialogue\": 14}, \"boundary_reasons_after\": [\"structure_break\", \"hard_length_break\"], \"matched_entities\": [{\"entity_id\": \"E000008\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"小友\", \"天生道子\", \"清月\", \"道子\"], \"score\": 13.8}, {\"entity_id\": \"E000033\", \"name\": \"画轴\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"画轴\", \"画卷\", \"水墨画\"], \"score\": 9.5}, {\"entity_id\": \"E000032\", \"name\": \"侍婢\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"侍婢\", \"莺莺燕燕\", \"三个侍婢\"], \"score\": 9.3}, {\"entity_id\": \"E000035\", \"name\": \"虚星\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"虚星\", \"虚星道祖\"], \"score\": 7.5}, {\"entity_id\": \"E000034\", \"name\": \"太素道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素道祖\", \"非物之祖\"], \"score\": 7.3}, {\"entity_id\": \"E000022\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.8}, {\"entity_id\": \"E000125\", \"name\": \"道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"道祖\"], \"score\": 5.3}, {\"entity_id\": \"E000037\", \"name\": \"先天五太\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"先天五太\"], \"score\": 5.2}, {\"entity_id\": \"E000036\", \"name\": \"太素六祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素六祖\"], \"score\": 5.2}, {\"entity_id\": \"E000093\", \"name\": \"幽泉\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"幽泉\"], \"score\": 5.2}], \"heuristic_types\": [\"对话\", \"动作\", \"内心独白\"], \"heuristic_tones\": [\"庄严\", \"轻松\"], \"heuristic_presentation\": [\"对白驱动\", \"直接画面\", \"旁白+画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0022\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0022\", \"narrative_order\": 22, \"story_chronology_order\": 18, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0017\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0017\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}\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\": \"S0022\", \"scene_notes\": \"山主返回，与李凡饮酒论道，讲解太素道祖与先天五太。；重要性：主线；呈现：对白驱动 / 旁白+画面；时间顺序：叙事22->故事18\", \"audio_notes\": \"保留对白节奏；环境音先行；动作点补音效\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0022\", \"narrative_order\": 22, \"story_chronology_order\": 18, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0017\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0017\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"shots\": [{\"shot_id\": \"S0022_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\": 22, \"story_chronology_order\": 18, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0022_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\": 22, \"story_chronology_order\": 18, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0022_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\": 22, \"story_chronology_order\": 18, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0022_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\": 22, \"story_chronology_order\": 18, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}, \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0022\", \"source_chunk_id\": \"C0006\", \"source_start_para\": 163, \"source_end_para\": 192, \"characters\": [\"李凡\", \"山主\"], \"locations\": [\"庭院\"], \"key_beats\": [\"山主展示画卷\", \"讲解太素道祖\", \"李凡困惑\"], \"shot_count_hint\": 4, \"scene_summary\": \"山主返回，与李凡饮酒论道，讲解太素道祖与先天五太。\", \"scene_text_preview\": \"第三章下酒 历历素榆飘玉叶，涓涓清月溼冰轮 山主抱着一卷画轴，回到庭院中的时候，李凡正被莺莺燕燕簇拥着喂酒，脸上嘴上脖子上，都叮咛了一层层的胭脂瓣。 “哈哈，…\", \"chronology_summary\": {\"narrative_order\": 22, \"story_chronology_order\": 18, \"story_chronology_group\": \"CG0018\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -4, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}"
    }
  ]
}