{
  "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\": \"E000035\", \"name\": \"画卷\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"画卷\", \"画轴\", \"水墨画\"], \"score\": 9.2}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\", \"小友\"], \"score\": 7.8}, {\"entity_id\": \"E000031\", \"name\": \"太素道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"太素道祖\", \"非物之祖\"], \"score\": 7.2}, {\"entity_id\": \"E000032\", \"name\": \"虚星道祖\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"虚星道祖\", \"道祖虚星\"], \"score\": 7.2}, {\"entity_id\": \"E000010\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.7}, {\"entity_id\": \"E000030\", \"name\": \"侍婢\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"侍婢\"], \"score\": 5.3}, {\"entity_id\": \"E000036\", \"name\": \"青团\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"青团\"], \"score\": 5.2}, {\"entity_id\": \"E000011\", \"name\": \"修士\", \"type\": \"人物\", \"subtype\": \"角色姓名\", \"matched_terms\": [\"修士\"], \"score\": 5.1}, {\"entity_id\": \"E000034\", \"name\": \"先天五太\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"先天五太\"], \"score\": 5.1}, {\"entity_id\": \"E000033\", \"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{\"registry_entities\": [{\"entity_uid\": \"E000002\", \"canonical_name\": \"李凡\", \"aliases\": [\"穿越者\", \"小童\", \"小友\", \"小相公\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000002\"}, {\"entity_uid\": \"E000010\", \"canonical_name\": \"山主\", \"aliases\": [], \"type\": \"职位称号\", \"subtype\": \"\", \"voice_card_id\": \"VO000010\"}], \"kg_entities\": [{\"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\": \"C0005\", \"summary\": \"山主吩咐修士\", \"evidence\": [\"山主也不瞧他们\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"化作虹光远遁\", \"evidence\": [\"山主的人影一下子化作虹光远遁\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"展示画卷讲道\", \"evidence\": [\"山主看李凡玩得开心，也展颜一笑\"], \"attributes\": {}}], \"mention_count\": 7, \"observation_count\": 7, \"first_seen\": \"C0001\", \"last_seen\": \"C0006\"}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"穿越者\", \"小童\", \"小友\", \"小相公\"], \"attributes\": {}, \"descriptions\": [\"穿越到仙侠世界的普通人\", \"拥有心理健康维护系统\"], \"evidence\": [\"李凡实在是忍不住了\", \"李凡流着冷汗\", \"李凡仿佛整个人置身于暴风雨之中\", \"李凡缩着脖子扭头望去\", \"李凡可不敢作死\", \"李凡眨眨眼睛仔细一看\", \"李凡咽了口唾沫\", \"李凡正被莺莺燕燕簇拥着喂酒\"], \"mentions\": [{\"chunk_id\": \"C0001\", \"summary\": \"穿越者李凡\", \"evidence\": [\"二十一人中有一个穿越者李凡\"], \"attributes\": {}}, {\"chunk_id\": \"C0002\", \"summary\": \"研究系统心情波动\", \"evidence\": [\"李凡实在是忍不住了\"], \"attributes\": {}}, {\"chunk_id\": \"C0003\", \"summary\": \"置身风暴中\", \"evidence\": [\"李凡仿佛整个人置身于暴风雨之中\"], \"attributes\": {}}, {\"chunk_id\": \"C0004\", \"summary\": \"被山主和老道观察\", \"evidence\": [\"李凡缩着脖子扭头望去\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"李凡捧剑不敢作死\", \"evidence\": [\"李凡可不敢作死\"], \"attributes\": {}}, {\"chunk_id\": \"C0005\", \"summary\": \"李凡看飞剑\", \"evidence\": [\"李凡眨眨眼睛仔细一看\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"被侍婢簇拥喂酒\", \"evidence\": [\"李凡正被莺莺燕燕簇拥着喂酒\"], \"attributes\": {}}, {\"chunk_id\": \"C0006\", \"summary\": \"吃青团喝仙酒\", \"evidence\": [\"取了个青团嚼嚼，浅杯里仙酒一啜\"], \"attributes\": {}}], \"mention_count\": 8, \"observation_count\": 8, \"first_seen\": \"C0001\", \"last_seen\": \"C0006\"}]}\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}}}"
    }
  ]
}