{
  "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. 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. Shot schema: {shot_id,description,camera,actions,dialogue,narration,on_screen_text}. dialogue is a list of {speaker,line}. 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\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"小友\", \"天生道子\", \"清月\", \"道子\"], \"score\": 13.8}, {\"entity_id\": \"E000034\", \"name\": \"画轴\", \"type\": \"物品\", \"subtype\": \"经卷典籍\", \"matched_terms\": [\"画轴\", \"画卷\", \"水墨画\"], \"score\": 9.4}, {\"entity_id\": \"E000036\", \"name\": \"虚星\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"虚星\", \"道祖虚星\", \"虚星道祖\"], \"score\": 9.4}, {\"entity_id\": \"E000033\", \"name\": \"侍婢\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"侍婢\", \"莺莺燕燕\"], \"score\": 7.3}, {\"entity_id\": \"E000035\", \"name\": \"太素道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素道祖\", \"非物之祖\"], \"score\": 7.2}, {\"entity_id\": \"E000010\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.8}, {\"entity_id\": \"E000037\", \"name\": \"先天五太\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"先天五太\"], \"score\": 5.2}, {\"entity_id\": \"E000102\", \"name\": \"幽泉\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"幽泉\"], \"score\": 5.2}, {\"entity_id\": \"E000041\", \"name\": \"青团\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"青团\"], \"score\": 5.2}, {\"entity_id\": \"E000012\", \"name\": \"修士\", \"type\": \"人物\", \"subtype\": \"角色姓名\", \"matched_terms\": [\"修士\"], \"score\": 5.1}], \"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[{\"entity_id\": \"E000010\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"aliases\": [\"仙尊\", \"师尊\"], \"attributes\": {}, \"descriptions\": [\"墨竹山的主人\", \"曾与玉蟾婆弈棋\", \"披红袍气度不凡\", \"墨竹山主人\", \"红袍修士\", \"即将闭关突破\", \"看重李凡\", \"喂李凡仙灵玉髓\"], \"evidence\": [\"山主\", \"大概就是那什么山主了\", \"山主向老道问话\", \"山主站起身冲李凡微笑\", \"山主的人影一下子化作虹光远遁\", \"山主抱着一卷画轴回到庭院\", \"本座这些年也在化神期停滞徘徊许久了\", \"山主座下的真传弟子\"], \"mentions\": [{\"chunk_id\": \"C0001\", \"summary\": \"墨竹山主人\", \"evidence\": [\"送去给山主下酒\"], \"attributes\": {}}, {\"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\": {}}], \"mention_count\": 8, \"observation_count\": 8, \"first_seen\": \"C0001\", \"last_seen\": \"C0008\"}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"穿越者\", \"小童\", \"小友\", \"小相公\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"童子\"], \"attributes\": {}, \"descriptions\": [\"内山门传道弟子\", \"喝五仙汤\", \"内景气旋加速\", \"体内炁息暴走\", \"不会御气\", \"修炼剑法\", \"跟随望舒修行\", \"练习乾坤飞龙剑\"], \"evidence\": [\"李凡从幻境中醒来，发现自己站在可山斋门厅里，劈头盖脸浇了一身臭墨\", \"李凡依言取了三柱香，正要下拜。\", \"李凡也看到了，那边阁楼好似是墨竹山外门的食堂\", \"李凡也如额外生出的竹叶似的\", \"李凡咽了口唾沫\", \"小子跟着望舒仙子修行\", \"李凡立刻知道\", \"李凡也就耸耸肩，用不远处雷猴的尸体作靶子开始瞄准练习。\"], \"mentions\": [{\"chunk_id\": \"C0016\", \"summary\": \"修炼剑气消耗真炁\", \"evidence\": [\"李凡吓了一跳，随手就把紫霞剑气朝墙外一甩\"], \"attributes\": {}}, {\"chunk_id\": \"C0017\", \"summary\": \"自称清月\", \"evidence\": [\"李凡的心情大幅提升了1点\"], \"attributes\": {}}, {\"chunk_id\": \"C0018\", \"summary\": \"被问想学什么\", \"evidence\": [\"望舒仙子又问李凡\"], \"attributes\": {}}, {\"chunk_id\": \"C0019\", \"summary\": \"询问竹山货币\", \"evidence\": [\"李凡在一旁听得傻眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0020\", \"summary\": \"被茯苓束发戴冠\", \"evidence\": [\"茯苓招招手，把李凡半搂到怀里帮他束发戴冠\"], \"attributes\": {}}, {\"chunk_id\": \"C0021\", \"summary\": \"戴着不知面逛街\", \"evidence\": [\"李凡还注意到一点，他戴着不知面走来走去\"], \"attributes\": {}}, {\"chunk_id\": \"C0022\", \"summary\": \"被墨喷醒偷画\", \"evidence\": [\"李凡从幻境中醒来，发现自己站在可山斋门厅里，劈头盖脸浇了一身臭墨\"], \"attributes\": {}}, {\"chunk_id\": \"C0023\", \"summary\": \"拜玄女得剑宗秘要\", \"evidence\": [\"李凡干脆利落得折过身子，对着玄女三拜\"], \"attributes\": {}}, {\"chunk_id\": \"C0024\", \"summary\": \"喝五仙汤修炼\", \"evidence\": [\"李凡也看到了，那边阁楼好似是墨竹山外门的食堂\"], \"attributes\": {}}, {\"chunk_id\": \"C0025\", \"summary\": \"被帅老头带至竹林\", \"evidence\": [\"李凡也有数了\"], \"attributes\": {}}, {\"chunk_id\": \"C0026\", \"summary\": \"修炼剑法杀猴\", \"evidence\": [\"李凡立刻知道，是玄天剑意在传授自己剑招\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"练习乾坤飞龙剑\", \"evidence\": [\"李凡也就耸耸肩，用不远处雷猴的尸体作靶子开始瞄准练习。\"], \"attributes\": {}}], \"mention_count\": 29, \"observation_count\": 29, \"first_seen\": \"C0001\", \"last_seen\": \"C0027\"}, {\"entity_id\": \"E000033\", \"name\": \"侍婢\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"三个少女\", \"莺莺燕燕\", \"少女\", \"粉黛须眉\", \"红颜娇娥\", \"婵娟仙殊\"], \"attributes\": {}, \"descriptions\": [\"山主的侍女\", \"三个二八芳华少女\", \"服侍山主的婢女\"], \"evidence\": [\"现出三个二八芳华的少女\", \"侍婢见过小相公\", \"院外的溪水边，一阵清风拂过，卷起片片桃花，现出三个二八芳华的少女。\"], \"mentions\": [{\"chunk_id\": \"C0006\", \"summary\": \"三个少女拜见李凡\", \"evidence\": [\"三人嫣然而笑，莺声燕语得一齐拜道\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"散作飞花消失\", \"evidence\": [\"统统散作飞花\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"三个少女现身拜见\", \"evidence\": [\"侍婢见过小相公。\"], \"attributes\": {}}], \"mention_count\": 3, \"observation_count\": 3, \"first_seen\": \"C0006\", \"last_seen\": \"C0006\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0022\", \"scene_notes\": \"山主返回，与李凡饮酒论道，讲解太素六祖与先天五太。；重要性：主线；呈现：对白驱动 / 旁白+画面；时间顺序：叙事22->故事18\", \"audio_notes\": \"保留对白节奏；环境音先行；动作点补音效\", \"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}}}, {\"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}}}, {\"shot_id\": \"S0022_SH03\", \"camera\": \"正反打\", \"description\": \"对白推进核心信息\", \"actions\": [\"讲解太素道祖\", \"李凡心情波动\"], \"dialogue\": [{\"speaker\": \"山主\", \"line\": \"哈哈，小友倒是个纵情洒脱之人。好的很，本座最讨厌伪君子了。\"}, {\"speaker\": \"李凡\", \"line\": \"小友，你看到的可是此景？\"}, {\"speaker\": \"\", \"line\": \"此非物之祖，\"}, {\"speaker\": \"\", \"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}}}, {\"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}}}], \"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}}}"
    }
  ]
}