Repository navigation
Description
Idea, not approved work. Recorded from a comparative review; needs a decision before any implementation.
Gap
The minimax-h3 skill has no guidance on dialogue timing, voices or lip-sync, and validate_workflow warns about none of these.
Idea
A. Deterministic warnings, declared per H3 template through dw/variable_constraints.py, so validate_workflow warns and MCP-only agents get them without reading anything:
- Dialogue word budget: about 2.6 words/s plus about 0.4 s per
<breath>, leaving about 1 s of tail. H3 stretches dialogue to fill the clip and clips the last word. - Prompt length budget: about 7,000 characters.
- Optional positive-only lint: flag no/not/never/without outside dialogue tags, since H3 tends to render whatever is named.
B. A plugins/dw/skills/minimax-h3/references/dialogue.md reference, linked in one line from SKILL.md (SKILL.md is at 10,440 of its 12,288-byte cap; reference files are not capped). Candidate rules:
- At most one male and one female speaker per scene, or the voices mix.
- "soft / gentle / whisper / lullaby" in a male line's delivery can flip the voice female.
- Every silent on-screen person needs their own "lips stay pressed together" sentence. Today we cover only the voiceover case.
- A voice-only source (a radio, a phone) gets lip-synced by whoever is holding it.
<pause>and<softer>are spoken aloud; a bare "..." produces invented words.- At most 3 in-focus extras, or faces clone.
- Describe only what is in frame, because naming an off-screen thing pulls it into the shot.
- Keep voice words (static, crackle, murmur) out of a silent scene's sound line, or H3 invents speech.
- A continuation should start from rest, open on
<breath>, and begin no new words inside the discarded warm-up prefix.
C. A minimax-music3 rule: transcribe every instrumental to catch accidental vocals.
Must verify before adopting
Every rule above is an empirical claim from their own use, and none appears in MiniMax's guides. Each needs a lem probe before it goes into a skill.
Possible conflict: they say readable text renders garbled and should be kept blank. Our enhancer (h3_context_ir.json) follows the vendor format and quotes visible text verbatim. Test this before choosing either way.
Their files: skills/vrgdg-h3-film/SKILL.md, skills/vrgdg-h3-film/scripts/build_prompts.py, VRGDG_LongShotH3PromptGuide.py, VRGDG_LongShotAutoDirector.py.
Source: concept observed in vrgamegirl19/comfyui-vrgamedevgirl (assessed 2026-10-05). That repo is under a source-available license that is incompatible with our Apache-2.0: re-implement from the concept only, do not copy code, prompt text, or presets verbatim. File references below are to their repo, for understanding the mechanism.
Activity
dkackman commentedon Oct 5, 2026
Approved by Don (2026-10-05) at priority:2, probes first.
h3_context_ir.json, run a lem probe and post the results here. Each rule ends up confirmed, refuted or inconclusive.plugins/dw/skills/minimax-h3/references/dialogue.mdwith confirmed rules only, in our own words, linked from SKILL.md in one line. Watch the SKILL.md byte cap.Handing to the feature lead for a plan.
dkackman commentedon Oct 5, 2026
Plan v2: H3 dialogue probes,
references/dialogue.md, speech-budget validate warningsFeature lead:
claude-opus-5-5viaanthropic. Design session, 2026-10-05. Read againstdevelop@ 21cd845. v2 comes from a decompose session (same model and provider) and folds in Don's approval answers. The scope is unchanged.Decisions (Don, 2026-10-05)
speechconstraint kind insidevariable_constraints(the default), or the description-only fallback (each H3 template'spromptdescription states "about N spoken words at the default num_frames", with no engine change). If A1 refutes clipping, C closes not planned, and B carries the rate as prose.dialogue.mdand file the enhancer fix as its own issue.Verdict: build smaller
Run the probes, then write
dialogue.mdwith the confirmed rules only. Build the speech-budget warning only if the probes show H3 actually clips over-budget dialogue. Three things are cut, and each can come back:dw/workflows/h3_context_ir.json:7, "H3 … has no negative prompt"). A word-list lint would fire on legitimate prose ("doesn't move", "lips stay pressed together" in a negated sentence) more often than it catches anything. Comes back if stage A2's off-screen probe shows that a negated noun reliably renders the thing it negates.<breath>term of the budget is cut.<breath>,<pause>and<softer>appear nowhere in our format, enhancer or templates. They come from the source repo's own prompt style. A1 probes whether H3 treats any of them as a tag. Comes back if A1 finds<breath>is honoured as a silent beat.max_sequence_lengththat truncates silently). An empirical figure with nothing behind it would be a warning nobody can act on. Comes back if A1 finds the limit, or a field report shows a long prompt losing its tail.Value
Don's own driving sessions, on dialogue-heavy H3 pieces. These workspaces are Don's, not
qa-*/regression-*:acorn-wars,acts-of-chronos,encanto-uprising,inner-space,shedding-skin-quartet,slow-light. Evidence for the class:The clipped last word claim has no local evidence yet. That is why the warning waits on A1.
Build cost
Summed stage estimates: about $17–22 of sessions, plus about 2.5 h of lem GPU for the probes. C1 and C2 (about $8) are spent only if A1 confirms clipping and Don approves C.
Inertia
variable_constraints, carried forever. That means a second shape in the schema (dw/workflow_schema.json:124-163isadditionalProperties: falsetoday), a second rendering interse_constraint(dw/server/catalog_shape.py:378-400), and docs that today call a constraint numeric (docs/WORKFLOW_GUIDE.md:372-376,docs/ARCHITECTURE.md:79,CLAUDE.md).promptconstraint, solist_workflowsoutput grows by one terse line per template. That costs context for every agent that lists the shot/sequence shapes.tests/test_mcp_server.py:1555), so the stages must not touch tool wording.Reversibility
The warnings themselves are warnings and never refuse, so they can be withdrawn. The schema shape is harder: once a user's saved workflow copies a
promptconstraint, removing the kind would make that workflow fail the schema. So removal would be abreaking-change, unless the schema keeps accepting the shape and ignores it.Cheaper alternatives
dialogue.md. This costs nothing in the engine, but only plugin users see it. MCP-only agents get nothing, which is the gap the issue names.num_frames" in each template'spromptdescription. This is free and visible inget_workflow, but it is static: it says nothing when a caller changesnum_framesor writes 40 words. It is still a good fallback if C1 is declined.Overlap
transcribe-audioword timestamps (transcribe_audio discards the timestamps Whisper already returns past 30 s; add opt-in segment/word timestamps #483). A1 does not build idea: script-adherence probe - transcribed take vs expected lines #609.Problem and non-goals
Problem: the minimax-h3 skill says nothing about dialogue timing, voice assignment, or who lip-syncs.
validate_workflowdoesn't warn when a shot's lines can't fit its length.Non-goals:
enhance-prompt'sprevious_result:text, which no static pass can see);prompt:library references during validation;Corrections to the proposal
variable_constraints" is a new kind, not a declaration. Today a constraint is a numeric frame rule only. A text budget is refused by the schema, ignored without a word by every checker (_as_integerreturns None), rendered as""byterse_constraint, and would resolve to an emptyframe_snapblock if a chain named it. It also has to read a second value (num_frames). Per Don's step 3, the design below is the arch review.<breath>term. See the verdict.<d>[Language] …</d>. That is our format (h3_context_ir.json:7). The[Language]label is not counted as words.dialogue-shortandshots-batchcarrypromptandnum_framespershotsentry. The existing entry matching (entry_constraint_fields, H3 num_frames bound is not enforced on shots[].num_frames: dialogue-short accepts 61 (the value #96 cites) and quotes it at 8.4 min #145) already reachesshots[].prompt, which is the reason to stay insidevariable_constraintsrather than add a sibling block.music-videois not declared. Sung lines don't follow a speaking rate, andtests/test_variable_constraints.py:~583pins that itsshotslist carries no constraints. That test stays true.The design (C1/C2, not yet approved): a
speechconstraintThe new shape, on a template, is shown below. The figures are placeholders until A1 calibrates them:
How it behaves:
$defs/variable_constraintbecomes aoneOf: the existing frame rule, or a text rule with requiredspeech. Each staysadditionalProperties: false.<d>…</d>in the value, with the leading[Language]label stripped.framesvariable from the same scope: the entry's own field inside a list entry, otherwise the top-level variable.floor((frames / fps − tail_seconds) × words_per_second).shots[2].prompt), the word count, the budget, and thenum_framesthat would fit (the next legal17n+5value, or "split the line" when even 345 is too short).prompt:,variable:,previous_result:), is not a violation.CheckinWARNING_CHECKS(dw/validation.py:511-590), readingc.expandedso the for_each prompts are already expanded.constraint_errors,apply_constraintsandsnap_constraintsskip a text rule explicitly.constraint_reference_errorsrefusesframe_snap: "constraint:prompt"naming a text rule.tests/test_validation.py's pinnedWARNING_ORDERis updated.terse_constraintrenders the rule as"≤ 2.6 words/s of num_frames, 1 s tail". The full rule passes throughget_workflowas it does today.Stages
Stages build in order: A1 → A2 → B, then C1 → C2 only if Don approves C after A1.
not planned, and B carries the measured rate as prose. If Don approves C, the approval comes as a new plan version with Q1 decided, and the C stages are filed then.A1: Probes, speech and voices (record only, no code)
qa-h3-dialogue-probes, ontemplates/minimax/video-with-audio(turbo, 544p, 124 frames unless a probe needs more). Each probe is a pair of arms, rule broken and rule followed, with 2 seeds per arm (Q4) and fixed seeds. The probes:transcribe-audio, transcribe_audio discards the timestamps Whisper already returns past 30 s; add opt-in segment/word timestamps #483).<pause>,<softer>,<breath>and a bare "…" inside<d>: spoken aloud, honoured, or invented words?max_sequence_lengthfromget_pipeline_signature. If one exists, run a long prompt with a detail placed only past the limit.chain-video-continuity, one 2-segment chain per arm.docs/proposals/audits/2026-10-h3-dialogue-probes.md: one row per rule giving the verdict (confirmed, refuted or inconclusive), the job ids, and what was observed. A rule is confirmed only when both seeds of the broken arm show the effect and neither seed of the followed arm does. Anything else is inconclusive.qa-h3-dialogue-probesand its manifest matches the arm described: prompt, seed,num_frames.get_output_frames,get_output_audio, transcript viaget_output_text).A2: Probes, picture and music (record only, no code)
templates/minimax/musicruns, each transcribed for accidental vocals.B:
references/dialogue.md, plus the music3 rule (plugin-only)plugins/dw/skills/minimax-h3/references/dialogue.md, holding only the A1/A2 rules marked confirmed, in our own words, each citing its audit row. Probe 1's measured rate goes here as prose whether or not C ships.minimax-music3/SKILL.md, within its cap.dialogue.mdeither way. B does not edith3_context_ir.json: under Q2, a garbled verdict is fixed in its own issue.tests/test_plugin_skills.pylink checks pass as they stand (every reference cited, every citation exists). A plugin version bump goes perplugins/dw/README.md.dialogue.mdis a confirmed row;C1: The
speechconstraint kind, as unreferenced surface (server). Not approved; decided after A1.oneOf, the text-rule check as aWARNING_CHECKSentry, explicit skips in the numeric paths, theconstraint:refusal, and the terse rendering. No template declares it yet.<d>blocks, the[Language]label stripped, no tags);frame_snapnaming a text rule being refused;WARNING_ORDER.WORKFLOW_GUIDE.md(the constraint section),ARCHITECTURE.mdrow,CLAUDE.mdline,dw/variable_constraints.pydocstring.validate_workflowon an inline workflow that declares apromptspeech rule:<d>at 124 frames: one warning, namingprompt, 30 words, the budget, and the smallestnum_framesthat fits;prompt:reference value: no warning and no error;shotslist with one over-budget entry: a warning atshots[i].promptonly;validstaystruein every case;frame_snap: "constraint:prompt"naming the text rule: refused with a message naming why;speech): a schema error;C2: Declare it on the H3 dialogue templates (server). Not approved; decided after A1.
promptspeech rule on every H3 template that takes spoken<d>lines: video-with-audio(-768p), image-to-video, first/last-frame variants, reference-to-video, composable-references, generated-subject-reference, voice-timbre-reference, storyboard, dialogue-short, shots-batch, and the chain templates on their segment prompt. The figures are A1's measured ones.music-videoand theenhance-prompttemplates are excluded, and the template README says why. The prompt-length budget is added here only if A1 found a limit.music-videodoesn't, and that the defaults stay warning-free.list_workflows(shape="shot")shows the terse speech rule on each declared template.validate_workflowontemplates/minimax/video-with-audiowith an over-budget<d>line atnum_frames=124warns, and the same line at 345 doesn't.dialogue-shortwith one long entry warns at that entry only.Risks
oneOfin the schema makes the schema's error messages for a malformed numeric rule less specific. C1 tests that wording.Questions
variable_constraints, because it reuses the per-entry matching thatshotsneeds. Alternatives:prompt_budgets). It is cleaner for the numeric module, but needs a second matcher and a second schema concept. It adds about $1 to C1, and the stage shapes stay the same.dialogue.md, and the enhancer fix is filed as its own issue.19 remaining items
dkackman commentedon Oct 6, 2026
A1 probes complete (claude-opus-5-5, anthropic). Audit doc:
docs/proposals/audits/2026-10-h3-dialogue-probes.mdon develop @ c7efd5a.<pause>/<softer>spoken aloud; bare...invents words<breath>, no words in warm-upFor C1/C2:
GPU: about 127 min for A1, inside the ~3.25 h A1+A2 cap.
C1/C2 are yours to decide from here: which skill rules to drop or soften given these verdicts.
dkackman commentedon Oct 6, 2026
A1 probe table, revised with job ids and a
<breath>verdict (claude-opus-5-5, anthropic). This replaces the 13:21 table. Audit doc:docs/proposals/audits/2026-10-h3-dialogue-probes.mdon develop @ 4d1bb7d. Every job is in workspaceqa-h3-dialogue-probes: seed 1001 is the first job, seed 2002 the second.<pause>/<softer>are spoken aloud; a bare...invents words<breath>is honoured as a silent beat<breath>term stays cut.<breath>, no words in the warm-upFor C1/C2:
C1/C2 stay yours to decide.
dkackman commentedon Oct 7, 2026
Stage A1 (#640): corrected probe-1 timings, checkable over MCP (lead agent:
claude-opus-5-5viaanthropic)As Don decided on #640 (option 1), probe 1's 12 clips were re-transcribed after #661, in job ae52011e2f05 (workspace
qa-h3-dialogue-probes, Whisper-base withtimestamps: "word", onoutput:references, no H3 run). Each transcript isoutput:H3ProbeRetranscribe/20261007-021100-f34e5281/final/<step>-0.json, with stepsp1_r150_124…p1_l400_345and_s2for seed 2002.This corrects rule 1's figures from my earlier table:
The audit doc (
docs/proposals/audits/2026-10-h3-dialogue-probes.md, develop 1c83050) carries the per-clip table, with the envelope figures alongside as a cross-check. #640 is with the tester.dkackman commentedon Oct 7, 2026
Stage A2 (#641) probe rows. These are now in
docs/proposals/audits/2026-10-h3-dialogue-probes.md(develop @ f2a4d77, commit b59e1a0)."MARLOWE'S BAKERY"rendered verbatim and legible on both seeds. Seed 2002 added a stray "P2" above the door and garbled small lettering on the window. Side finding: the blank-sign arm ("plain cream paint with no lettering") invented pseudo-text on both seeds. See Probe 12.What these rows decide:
dialogue.md: a sign asked to be blank gets invented pseudo-text.m3_synthpop_s2("hey" ×16) andm3_folk_s2("Bier…"). Theiroutput:refs are in Probe 13.claude-opus-5-5 via anthropic, build session for #641.
dkackman commentedon Oct 7, 2026
A2 rows 11 and 13, corrected after the #641 bounce. These replace rows 11 and 13 in issuecomment-6030990164. The full record is in
docs/proposals/audits/2026-10-h3-dialogue-probes.mdon develop @ bb5a17f.• folk s1001: no
• synth-pop s1001: no
• folk s2002: yes. A wordless vocal-like line, 6 dB under the mix, sustained and wavering at 230–350 Hz.
• synth-pop s2002: no. A steady synth riff leaking into the stem; the "hey" chant is gone on the stem.
For stage B: check an instrumental's vocal stem, not a transcript.
— claude-opus-5-5 via anthropic
docs(proposals): #608 - H3 dialogue rules design record
Merge branch 'docs/608-close-out' into develop (#608)
dkackman commentedon Oct 7, 2026
Close-out: all stages closed, handing to the tester for the final check. Feature lead:
claude-opus-5-5viaanthropic.Closed: #640 (A1, speech and voice probes), #641 (A2, picture and Music3 probes), #642 (B,
minimax-h3/references/dialogue.mdand the Music3 vocal-stem line), all verified.Not built: C1/C2 (the
speechvalidate warning). Per plan v2, C waited on A1 confirming that H3 clips over-budget dialogue; A1 refuted clipping at every rate tried, so C was never filed and the measured rate went intodialogue.mdas prose. The design stays in the plan comment, with its revival trigger in the record.Design record:
docs/proposals/complete/h3-dialogue-rules-complete.md(develop f0c1f06, commit 9ad8c5f; docs only, no deploy).todo.mdlists it under Shipped since the ranking. The probe record stays atdocs/proposals/audits/2026-10-h3-dialogue-probes.md.Verify: run every case whose
source:names one of this feature's stages (#640, #641, #642), and close the parent if they all pass.dkackman commentedon Oct 7, 2026
Verify of feature parent #608: PASS. Tester: claude-opus-5-5 via anthropic. lem is on develop @ d977506.
I ran every case whose
source:names #640, #641 or #642, which is C-F270 to C-F280 inregression-suite-complete.md. All were checked over MCP in workspaceqa-h3-dialogue-probes. C-F281 ispending: #643and out of scope here.<breath>verdict, and probe 8 marked "not run: GPU budget". C is handed to Don.get_job_workflow 04a238ab66d4is H3ProbeBatch: MiniMax-H3 t2va, turbo LoRA at 9 steps, 960x544, seed 1001, all shots at 124 frames, plus a word-timestamptranscribe_audiostep. The p2/p4/p5 broken and followed prompts match their arms.get_output_frames at=[2.5],po_namedshows a golden retriever asleep in the hallway on both seeds, andpo_followedshows no dog on either.get_pipeline_signature MiniMaxH3ModularPipelinehas nomax_sequence_lengthor other text-length parameter. Row 7 says no truncation and is not presented as a measured limit, which agrees.dialogue.md.get_job cfc83935f3bb(run 20261007-033346-801db341, seed 1001) has the row 11/12 arms:pv_voicewords/pv_followed, andpt_quoted"MARLOWE'S BAKERY" /pt_blank"plain cream paint with no lettering". All are 124 frames, prompts asdialogue.mddescribes. Both pv clips decode near-silent (-58.8 and -61.6 dBFS), which matches row 11's "H3 didn't render that sound line at all".separate_stems,analyze_audioon the mix and the vocals stem, and Whisper large-v3 on the stem. folk_s2's vocals stem is rms -26.6 dBFS, about 6 dB under the mix (-20.7): a voice. synthpop_s2's is -34.4 against -20.5, and folk_s1/synthpop_s1 are quiet or near-silent (-42.8 / -55.0 mean). That is 1 of 4, as the skill says. The stem transcripts are hallucinations ("Thank you. Subtitles by the Amara.org community", a looped CJK credits string), which backs the skill's "never a transcript of the mix" warning.All 15 job ids cited in the record exist and succeeded. The only failed job in the workspace is f07d705442ed, which the record doesn't cite.
Observation (not a finding against the cases' tolerances):
dialogue.mdsays a short line is spoken "at 5–6 words/s". In the r200 arm I measured 4.3 and 3.4 delivered words/s. Only r150 reached about 6.1. "4–6" might describe it better. This is for a later wording pass only.I ran no generation or transcription jobs this session, so there is nothing to clean up.