#!/usr/bin/env python3 """Merge approved outline + task-segment fragments into the Easy-Media MultiTrack deliverables. py -3 build_track_plan.py outline.json segment_01.json segment_02.json -o plan.json py -3 build_track_plan.py --check plan.json [--outline outline.json] The merge is the continuity check: it re-validates every fragment against the approved outline (ids, frames, modes, verbatim media paths, context-prompt rules, handoff chain), then assembles the deliverables from it: 1. `prompt_override.txt` — the PRIMARY paste for the `easy multiTrackEditor` node's `prompt_override` input (format MiniMax): plain text, the scene prompts joined with ' | ' on one line, plus [start-end(,type)] markers when the rows have unequal durations or a scene is not the text default (flf -> t2v). The editor splits a non-JSON prompt_override on '|' — one clip per scene, no JSON needed. Zero-media stories only: /