{
  "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\": \"C0015-SC03\", \"title\": \"茯苓询问\", \"summary\": \"茯苓听到动静，从隔壁出声询问。\", \"type\": [\"对话\"], \"tone\": [\"中性\", \"关切\"], \"importance\": \"支线\", \"presentation\": [\"直接画面\"], \"key_beats\": [\"茯苓出声询问\"], \"characters\": [\"茯苓\"], \"locations\": [\"隔壁\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0015\", \"source_start_para\": 444, \"source_end_para\": 444, \"text\": \"“怎么了？”这时茯苓的声音从隔壁传来。\", \"text_preview\": \"“怎么了？”这时茯苓的声音从隔壁传来\", \"candidate_meta\": {\"candidate_id\": \"C0015-SC03\", \"record_count\": 1, \"char_len\": 19, \"structure_counts\": {\"dialogue\": 1}, \"boundary_reasons_after\": [], \"matched_entities\": [{\"entity_id\": \"E000075\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"茯苓\"], \"score\": 5.8}], \"heuristic_types\": [\"内心独白\"], \"heuristic_tones\": [\"中性\"], \"heuristic_presentation\": [\"旁白+画面\"], \"heuristic_importance\": \"支线\"}, \"scene_id\": \"S0052\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0052\", \"narrative_order\": 52, \"story_chronology_order\": 42, \"story_chronology_group\": \"CG0042\", \"time_mode\": \"mainline\", \"confidence\": 0.88, \"order_delta\": -10, \"temporal_anchor\": {\"label\": \"这时\", \"normalized_label\": \"same_time\", \"anchor_type\": \"same_time_marker\", \"relative_direction\": \"same_time\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0050\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0050\", \"confidence\": 0.78, \"reason\": \"narrative_forward\"}], \"evidence\": [{\"kind\": \"same_time\", \"field\": \"preview\", \"text\": \"这时\", \"snippet\": \"“怎么了？”这时茯苓的声音从隔壁传来\"}, {\"kind\": \"same_time\", \"field\": \"text\", \"text\": \"这时\", \"snippet\": \"“怎么了？”这时茯苓的声音从隔壁传来。\"}]}\n\nENTITY CONTEXT:\n[{\"entity_id\": \"E000075\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"茯苓姐姐\", \"姐姐\", \"女婢\", \"茯苓姐\", \"仙子\", \"神仙姐姐\", \"玄女\"], \"attributes\": {}, \"descriptions\": [\"查账点货\", \"金丹门槛修士\", \"提醒李凡持身慎行\", \"合道飞升仙尊\", \"仙宫玄门创教始祖\", \"捏李凡脸蛋\", \"替李凡打探差事\", \"为李凡着急\"], \"evidence\": [\"结果茯苓用食指分别扒拉出三色的钱币来\", \"茯苓招招手；茯苓嗔怒着啐了一口\", \"扭头见茯苓还在查账\", \"茯苓也是无可奈何，手里变出个莲蓬朝李凡一洒\", \"茯苓介绍道，“这三位是本界合道飞升的仙尊\", \"左手是一名素面纤纤的仙子\", \"“油嘴滑舌。”茯苓没好气得捏了李凡脸蛋一把\", \"可把茯苓急坏了\"], \"mentions\": [{\"chunk_id\": \"C0014\", \"summary\": \"试探李凡后气走\", \"evidence\": [\"茯苓显然还是有些不信，想试探李凡似的\"], \"attributes\": {}}, {\"chunk_id\": \"C0016\", \"summary\": \"茯苓住隔壁\", \"evidence\": [\"茯苓的声音从隔壁传来\"], \"attributes\": {}}, {\"chunk_id\": \"C0017\", \"summary\": \"提醒望舒穿衣\", \"evidence\": [\"茯苓就用眼斜着这小色鬼\"], \"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\": \"C0023\", \"summary\": \"李凡拜玄女\", \"evidence\": [\"对着玄女三拜，把三柱香给她面前插上\"], \"attributes\": {}}, {\"chunk_id\": \"C0024\", \"summary\": \"捏李凡脸并建议\", \"evidence\": [\"“油嘴滑舌。”茯苓没好气得捏了李凡脸蛋一把\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"为李凡着急\", \"evidence\": [\"可把茯苓急坏了\"], \"attributes\": {}}], \"mention_count\": 15, \"observation_count\": 15, \"first_seen\": \"C0012\", \"last_seen\": \"C0027\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0052\", \"scene_notes\": \"茯苓听到动静，从隔壁出声询问。；重要性：支线；呈现：直接画面；时间顺序：叙事52->故事42；时间锚点：这时\", \"audio_notes\": \"保留对白节奏\", \"chronology\": {\"scene_id\": \"S0052\", \"narrative_order\": 52, \"story_chronology_order\": 42, \"story_chronology_group\": \"CG0042\", \"time_mode\": \"mainline\", \"confidence\": 0.88, \"order_delta\": -10, \"temporal_anchor\": {\"label\": \"这时\", \"normalized_label\": \"same_time\", \"anchor_type\": \"same_time_marker\", \"relative_direction\": \"same_time\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0050\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0050\", \"confidence\": 0.78, \"reason\": \"narrative_forward\"}], \"evidence\": [{\"kind\": \"same_time\", \"field\": \"preview\", \"text\": \"这时\", \"snippet\": \"“怎么了？”这时茯苓的声音从隔壁传来\"}, {\"kind\": \"same_time\", \"field\": \"text\", \"text\": \"这时\", \"snippet\": \"“怎么了？”这时茯苓的声音从隔壁传来。\"}]}, \"shots\": [{\"shot_id\": \"S0052_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\": 52, \"story_chronology_order\": 42, \"story_chronology_group\": \"CG0042\", \"time_mode\": \"mainline\", \"confidence\": 0.88, \"order_delta\": -10, \"anchor_label\": \"这时\", \"anchor_type\": \"same_time_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}, {\"shot_id\": \"S0052_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\": 52, \"story_chronology_order\": 42, \"story_chronology_group\": \"CG0042\", \"time_mode\": \"mainline\", \"confidence\": 0.88, \"order_delta\": -10, \"anchor_label\": \"这时\", \"anchor_type\": \"same_time_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}, {\"shot_id\": \"S0052_SH03\", \"camera\": \"正反打\", \"description\": \"对白推进核心信息\", \"actions\": [\"茯苓出声询问\"], \"dialogue\": [{\"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\": 52, \"story_chronology_order\": 42, \"story_chronology_group\": \"CG0042\", \"time_mode\": \"mainline\", \"confidence\": 0.88, \"order_delta\": -10, \"anchor_label\": \"这时\", \"anchor_type\": \"same_time_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}], \"candidate_meta\": {\"scene_id\": \"S0052\", \"source_chunk_id\": \"C0015\", \"source_start_para\": 444, \"source_end_para\": 444, \"characters\": [\"茯苓\"], \"locations\": [\"隔壁\"], \"key_beats\": [\"茯苓出声询问\"], \"shot_count_hint\": 3, \"scene_summary\": \"茯苓听到动静，从隔壁出声询问。\", \"scene_text_preview\": \"“怎么了？”这时茯苓的声音从隔壁传来\", \"chronology_summary\": {\"narrative_order\": 52, \"story_chronology_order\": 42, \"story_chronology_group\": \"CG0042\", \"time_mode\": \"mainline\", \"confidence\": 0.88, \"order_delta\": -10, \"anchor_label\": \"这时\", \"anchor_type\": \"same_time_marker\", \"constraint_count\": 1, \"evidence_count\": 2}}}"
    }
  ]
}