#!/usr/bin/env python3 """Validator for mm-prompter skill outputs. Checks the output contract described in SKILL.md: - segments.txt: n segments, n-1 "|" separators - ref2va mode (default): six sections per segment in order, global gapless Subject numbering, paired with , summary prefixes, audio template / lip-sync phrase / fully_copy retention line, [Shot 1] timestamp rules - fl2va mode (opt-in): exact instruction line (final shot index + two-decimal duration), the three fields in order, no reference labels, no ref2va section labels, shot rules, fixed song sentences when a song is reused - image-map.txt manifest covers every subject; Image-N.json valid (two keys, 16:9, four-panel photorealistic sheet language) - Segment-img-N.json per segment (both modes) and Segment-img-N-last.json per segment (fl2va only): two keys, 16:9, single-frame photorealistic language, no banned vocabulary - no