{
  "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\": \"E000032\", \"name\": \"画轴\", \"type\": \"物品\", \"subtype\": \"经卷典籍\", \"matched_terms\": [\"画轴\", \"画卷\", \"水墨画\"], \"score\": 9.5}, {\"entity_id\": \"E000033\", \"name\": \"太素道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素道祖\", \"非物之祖\", \"虚星道祖\"], \"score\": 9.3}, {\"entity_id\": \"E000034\", \"name\": \"太素六祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素六祖\", \"太素道祖\"], \"score\": 7.4}, {\"entity_id\": \"E000031\", \"name\": \"侍婢\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"侍婢\", \"三个侍婢\"], \"score\": 7.3}, {\"entity_id\": \"E000014\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.8}, {\"entity_id\": \"E000095\", \"name\": \"幽泉\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"幽泉\"], \"score\": 5.3}, {\"entity_id\": \"E000035\", \"name\": \"先天五太\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"先天五太\"], \"score\": 5.2}, {\"entity_id\": \"E000011\", \"name\": \"修士\", \"type\": \"人物\", \"subtype\": \"角色姓名\", \"matched_terms\": [\"修士\"], \"score\": 5.1}, {\"entity_id\": \"E000052\", \"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\": 17, \"story_chronology_group\": \"CG0017\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -5, \"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\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"穿越者\", \"小相公\", \"小友\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"小色鬼\", \"童子\"], \"attributes\": {}, \"descriptions\": [\"修炼剑法\", \"墨竹山内山道传弟子\", \"喝五仙汤\", \"心情上升\", \"体内炁息暴走\", \"不会御气\", \"施展归尘剑气\", \"跟随望舒修行\"], \"evidence\": [\"李凡立刻知道\", \"小子跟着望舒仙子修行\", \"李凡就先自己试了一下\", \"李凡一阵傻眼\", \"只是清月，你拜过月也该知道\", \"李凡也不由得默认\", \"李凡若有所悟\", \"李凡艰难得咽了口唾沫\"], \"mentions\": [{\"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\": \"C0025\", \"summary\": \"面对雷猴犹豫\", \"evidence\": [\"李凡咽了口唾沫\"], \"attributes\": {}}, {\"chunk_id\": \"C0026\", \"summary\": \"施展剑气杀猴\", \"evidence\": [\"李凡居然感觉到明显的气机牵引\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"练习乾坤飞龙剑\", \"evidence\": [\"李凡发现左手也可以\"], \"attributes\": {}}, {\"chunk_id\": \"C0028\", \"summary\": \"对牧龙任务傻眼\", \"evidence\": [\"李凡一阵傻眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0029\", \"summary\": \"被望舒教导修行\", \"evidence\": [\"李凡也不由得默认\"], \"attributes\": {}}, {\"chunk_id\": \"C0030\", \"summary\": \"李凡陷入灰色沼泽\", \"evidence\": [\"李凡睁开眼，看到自己坐在一片广阔的，充斥着灰色淤泥的海洋里\"], \"attributes\": {}}], \"mention_count\": 33, \"observation_count\": 33, \"first_seen\": \"C0001\", \"last_seen\": \"C0030\"}, {\"entity_id\": \"E000014\", \"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\": \"C0030\", \"summary\": \"历代山主整理法门\", \"evidence\": [\"有历代山主整理的先天大道修行法门\"], \"attributes\": {}}], \"mention_count\": 8, \"observation_count\": 8, \"first_seen\": \"C0003\", \"last_seen\": \"C0030\"}, {\"entity_id\": \"E000040\", \"name\": \"庭院\", \"type\": \"地点\", \"subtype\": \"场地/空地\", \"aliases\": [], \"attributes\": {}, \"descriptions\": [], \"evidence\": [], \"mentions\": [], \"mention_count\": 0, \"observation_count\": 0, \"first_seen\": \"\", \"last_seen\": \"\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0022\", \"scene_notes\": \"山主归来，与李凡饮酒论道，讲解太素道祖与先天五太的玄理。；重要性：主线；呈现：对白驱动 / 旁白+画面 / 文字卡片；时间顺序：叙事22->故事17\", \"audio_notes\": \"保留对白节奏；环境音先行；动作点补音效\", \"chronology\": {\"scene_id\": \"S0022\", \"narrative_order\": 22, \"story_chronology_order\": 17, \"story_chronology_group\": \"CG0017\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -5, \"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\": 17, \"story_chronology_group\": \"CG0017\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -5, \"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\": 17, \"story_chronology_group\": \"CG0017\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -5, \"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\": 17, \"story_chronology_group\": \"CG0017\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -5, \"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\": 17, \"story_chronology_group\": \"CG0017\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -5, \"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\": 17, \"story_chronology_group\": \"CG0017\", \"time_mode\": \"mainline\", \"confidence\": 0.86, \"order_delta\": -5, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}"
    }
  ]
}