{
  "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\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"小友\", \"清月\", \"道子\"], \"score\": 11.8}, {\"entity_id\": \"E000042\", \"name\": \"道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"道祖\", \"虚星道祖\", \"太素道祖\"], \"score\": 9.7}, {\"entity_id\": \"E000032\", \"name\": \"画轴\", \"type\": \"物品\", \"subtype\": \"经卷典籍\", \"matched_terms\": [\"画轴\", \"画卷\", \"水墨画\"], \"score\": 9.2}, {\"entity_id\": \"E000031\", \"name\": \"侍婢\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"侍婢\", \"莺莺燕燕\"], \"score\": 7.3}, {\"entity_id\": \"E000033\", \"name\": \"太素道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素道祖\", \"非物之祖\"], \"score\": 7.3}, {\"entity_id\": \"E000036\", \"name\": \"酒宴\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"酒宴\", \"青团\"], \"score\": 7.1}, {\"entity_id\": \"E000009\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.8}, {\"entity_id\": \"E000034\", \"name\": \"太素六祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素六祖\"], \"score\": 5.3}, {\"entity_id\": \"E000035\", \"name\": \"先天五太\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"先天五太\"], \"score\": 5.2}, {\"entity_id\": \"E000095\", \"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\": 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{\"registry_entities\": [{\"entity_uid\": \"E000002\", \"canonical_name\": \"李凡\", \"aliases\": [\"小相公\", \"小友\", \"小子\", \"清月\", \"李清月\", \"道子\", \"小色鬼\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000002\"}, {\"entity_uid\": \"E000009\", \"canonical_name\": \"山主\", \"aliases\": [\"仙尊\", \"师尊\"], \"type\": \"职位称号\", \"subtype\": \"\", \"voice_card_id\": \"VO000009\"}, {\"entity_uid\": \"E000039\", \"canonical_name\": \"庭院\", \"aliases\": [], \"type\": \"地点\", \"subtype\": \"场地/空地\", \"voice_card_id\": \"\"}], \"kg_entities\": [{\"entity_id\": \"E000039\", \"name\": \"庭院\", \"type\": \"地点\", \"subtype\": \"场地/空地\", \"aliases\": [], \"attributes\": {}, \"descriptions\": [], \"evidence\": [], \"mentions\": [], \"mention_count\": 0, \"observation_count\": 0, \"first_seen\": \"\", \"last_seen\": \"\"}, {\"entity_id\": \"E000009\", \"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\": \"C0019\", \"summary\": \"询问竹山货币\", \"evidence\": [\"李凡在一旁听得傻眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0020\", \"summary\": \"被茯苓束发戴冠\", \"evidence\": [\"茯苓招招手，把李凡半搂到怀里帮他束发戴冠\"], \"attributes\": {}}, {\"chunk_id\": \"C0021\", \"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\": \"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\"}]}\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0022\", \"scene_notes\": \"山主返回，与李凡饮酒论道，讲解太素道祖与先天五太。；重要性：主线；呈现：对白驱动 / 旁白+画面 / 文字卡片；时间顺序：叙事22->故事17\", \"audio_notes\": \"保留对白节奏；环境音先行；动作点补音效\", \"narrator_profile_id\": \"narrator_main_cn\", \"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}}, \"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\": 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}}, \"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\": 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}}, \"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\": 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}}, \"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\": 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}}}"
    }
  ]
}