{
  "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\": \"C0030-SC03\", \"title\": \"投送失败\", \"summary\": \"系统投送奖品失败，李凡发现自己身处灰色沼泽，心情持续下降。\", \"type\": [\"系统/设定\", \"对话\"], \"tone\": [\"中性\"], \"importance\": \"主线\", \"presentation\": [\"文字卡片\", \"旁白+画面\", \"对白驱动\"], \"key_beats\": [\"奖品投送失败\", \"李凡身处灰色沼泽\", \"心情持续下降\"], \"characters\": [\"李凡\"], \"locations\": [\"灰色沼泽\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0030\", \"source_start_para\": 815, \"source_end_para\": 822, \"text\": \"恩？系统？\\n\\n‘奖品正在投送中，请稍后……投送失败，宿主不在服务区。’\\n\\n哈？\\n\\n于是李凡睁开眼，看到自己坐在一片广阔的，充斥着灰色淤泥的海洋里。\\n于此同时，耳边再一次响起了那之前听到过的，好似男孩声线的，连续的尖鸣声。\\n\\n‘李凡的心情下降了1点。’\\n\\n‘李凡的心情下降了1点。’\\n\\n‘李凡的心情下降了1点。’\\n\\n……\", \"text_preview\": \"恩？系统？ ‘奖品正在投送中，请稍后……投送失败，宿主不在服务区。’ 哈？ 于是李凡睁开眼，看到自己坐在一片广阔的，充斥着灰色淤泥的海洋里。 于此同时，耳边再…\", \"candidate_meta\": {\"candidate_id\": \"C0030-SC03\", \"record_count\": 8, \"char_len\": 159, \"structure_counts\": {\"short_line\": 3, \"dialogue\": 4, \"body\": 1}, \"boundary_reasons_after\": [\"chapter_heading\"], \"matched_entities\": [{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}, {\"entity_id\": \"E000048\", \"name\": \"系统\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"系统\"], \"score\": 5.4}, {\"entity_id\": \"E000117\", \"name\": \"灰色沼泽\", \"type\": \"地点\", \"subtype\": \"\", \"matched_terms\": [\"灰色淤泥的海洋\"], \"score\": 2.2}], \"heuristic_types\": [\"系统/设定\", \"对话\"], \"heuristic_tones\": [\"中性\"], \"heuristic_presentation\": [\"文字卡片\", \"旁白+画面\", \"对白驱动\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0086\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0086\", \"narrative_order\": 86, \"story_chronology_order\": 69, \"story_chronology_group\": \"CG0069\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"temporal_anchor\": {\"label\": \"同时\", \"normalized_label\": \"same_time\", \"anchor_type\": \"parallel_marker\", \"relative_direction\": \"same_time\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0085\"}, \"constraints\": [{\"relation\": \"parallel_with\", \"target_scene_id\": \"S0085\", \"confidence\": 0.84, \"reason\": \"parallel_marker\"}, {\"relation\": \"same_time\", \"target_scene_id\": \"S0085\", \"confidence\": 0.78, \"reason\": \"parallel_same_time\"}], \"evidence\": [{\"kind\": \"same_time\", \"field\": \"preview\", \"text\": \"正在\", \"snippet\": \"恩？系统？ ‘奖品正在投送中，请稍后……投送失败，宿主不在服务\"}, {\"kind\": \"same_time\", \"field\": \"text\", \"text\": \"正在\", \"snippet\": \"恩？系统？ ‘奖品正在投送中，请稍后……投送失败，宿主不在服务\"}, {\"kind\": \"parallel\", \"field\": \"preview\", \"text\": \"同时\", \"snippet\": \"片广阔的，充斥着灰色淤泥的海洋里。 于此同时，耳边再…\"}, {\"kind\": \"parallel\", \"field\": \"text\", \"text\": \"同时\", \"snippet\": \"片广阔的，充斥着灰色淤泥的海洋里。 于此同时，耳边再一次响起了那之前听到过的，好似男\"}]}\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\": \"E000117\", \"name\": \"灰色沼泽\", \"type\": \"地点\", \"subtype\": \"\", \"aliases\": [\"灰色淤泥的海洋\", \"淤泥灰沼\", \"灰色泥沼之海\", \"源泽\"], \"attributes\": {}, \"descriptions\": [\"五行属金的沼泽\", \"灰色淤泥海洋\", \"五行属金\"], \"evidence\": [\"这些淤泥灰沼居然是五行属金的\", \"第十二章源泽\", \"灰色淤泥的海洋\"], \"mentions\": [{\"chunk_id\": \"C0030\", \"summary\": \"李凡陷入灰色沼泽\", \"evidence\": [\"李凡睁开眼，看到自己坐在一片广阔的，充斥着灰色淤泥的海洋里\"], \"attributes\": {}}, {\"chunk_id\": \"C0030\", \"summary\": \"李凡陷入源泽\", \"evidence\": [\"李凡坐在灰色泥沼之海\"], \"attributes\": {}}], \"mention_count\": 2, \"observation_count\": 2, \"first_seen\": \"C0030\", \"last_seen\": \"C0030\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0086\", \"scene_notes\": \"系统投送奖品失败，李凡发现自己身处灰色沼泽，心情持续下降。；重要性：主线；呈现：文字卡片 / 旁白+画面 / 对白驱动；时间模式：parallel；时间顺序：叙事86->故事69；时间锚点：同时\", \"audio_notes\": \"并行线切换需明确提示\", \"chronology\": {\"scene_id\": \"S0086\", \"narrative_order\": 86, \"story_chronology_order\": 69, \"story_chronology_group\": \"CG0069\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"temporal_anchor\": {\"label\": \"同时\", \"normalized_label\": \"same_time\", \"anchor_type\": \"parallel_marker\", \"relative_direction\": \"same_time\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0085\"}, \"constraints\": [{\"relation\": \"parallel_with\", \"target_scene_id\": \"S0085\", \"confidence\": 0.84, \"reason\": \"parallel_marker\"}, {\"relation\": \"same_time\", \"target_scene_id\": \"S0085\", \"confidence\": 0.78, \"reason\": \"parallel_same_time\"}], \"evidence\": [{\"kind\": \"same_time\", \"field\": \"preview\", \"text\": \"正在\", \"snippet\": \"恩？系统？ ‘奖品正在投送中，请稍后……投送失败，宿主不在服务\"}, {\"kind\": \"same_time\", \"field\": \"text\", \"text\": \"正在\", \"snippet\": \"恩？系统？ ‘奖品正在投送中，请稍后……投送失败，宿主不在服务\"}, {\"kind\": \"parallel\", \"field\": \"preview\", \"text\": \"同时\", \"snippet\": \"片广阔的，充斥着灰色淤泥的海洋里。 于此同时，耳边再…\"}, {\"kind\": \"parallel\", \"field\": \"text\", \"text\": \"同时\", \"snippet\": \"片广阔的，充斥着灰色淤泥的海洋里。 于此同时，耳边再一次响起了那之前听到过的，好似男\"}]}, \"shots\": [{\"shot_id\": \"S0086_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\": 86, \"story_chronology_order\": 69, \"story_chronology_group\": \"CG0069\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"anchor_label\": \"同时\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 4}}}, {\"shot_id\": \"S0086_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\": 86, \"story_chronology_order\": 69, \"story_chronology_group\": \"CG0069\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"anchor_label\": \"同时\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 4}}}, {\"shot_id\": \"S0086_SH03\", \"camera\": \"近景\", \"description\": \"动作或状态变化的推进镜头\", \"actions\": [\"李凡身处灰色沼泽\", \"心情持续下降\"], \"dialogue\": [], \"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\": 86, \"story_chronology_order\": 69, \"story_chronology_group\": \"CG0069\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"anchor_label\": \"同时\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 4}}}], \"candidate_meta\": {\"scene_id\": \"S0086\", \"source_chunk_id\": \"C0030\", \"source_start_para\": 815, \"source_end_para\": 822, \"characters\": [\"李凡\"], \"locations\": [\"灰色沼泽\"], \"key_beats\": [\"奖品投送失败\", \"李凡身处灰色沼泽\", \"心情持续下降\"], \"shot_count_hint\": 3, \"scene_summary\": \"系统投送奖品失败，李凡发现自己身处灰色沼泽，心情持续下降。\", \"scene_text_preview\": \"恩？系统？ ‘奖品正在投送中，请稍后……投送失败，宿主不在服务区。’ 哈？ 于是李凡睁开眼，看到自己坐在一片广阔的，充斥着灰色淤泥的海洋里。 于此同时，耳边再…\", \"chronology_summary\": {\"narrative_order\": 86, \"story_chronology_order\": 69, \"story_chronology_group\": \"CG0069\", \"time_mode\": \"parallel\", \"confidence\": 0.99, \"order_delta\": -17, \"anchor_label\": \"同时\", \"anchor_type\": \"parallel_marker\", \"constraint_count\": 2, \"evidence_count\": 4}}}"
    }
  ]
}