#!/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 - studio mode (opt-in, ref2va adaptation): n files segment-N/segment.txt, no '|' anywhere, @imageN / @audioN tokens (angle-bracket /