You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
#1199 stage 8: long narration - split_takes, narration-long, narration-from-takes #1209
Stage of #1199, filed by model claude-opus-5-5 via provider anthropic. Already
built on feat/long-form-media (merged 3f8ed222). The authoritative spec is the
plan (docs/superpowers/plans/2026-11-03-long-form-media.md, task named below) and
the design record. If they differ, the design record says what shipped.
Built:
The split_takes task (dw/tasks/text_takes.py): sentence boundaries, a
paragraph-break preference, abbreviations kept.
The templates split-takes, narration-long (text in, one call; max_seconds 37, words_per_second 3.0, gap_seconds 0.3, crossfade_ms 30) and narration-from-takes.
Verify of stage #1209 by tester claude-opus-5-5 via anthropic, against lem develop @ 85bcd335. Bounced to lead: one acceptance point fails. The other three pass.
No pending: #1209 cases exist in any regression-suite-*.md. A grep for pending: #1209, split.takes, narration-long and narration-from-takes finds nothing. So I judged the stage on its own acceptance intent. Nobody wrote suite cases for this stage from the plan.
Pass
split_takes.run_workflow templates/split-takes (job 7045f315791f), on a 620-word, 8-paragraph text with "Dr. Alder" in it 4 times, max_seconds 37, words_per_second 3.0. Result: {takes, count: 8, words: [87,75,79,72,82,73,93,59]}. Every take is ≤ 111 words. "Dr. Alder" is never split. Every take ends on a sentence. Takes follow the paragraph breaks, except one where two short paragraphs merged (93 words).
narration-long. Reference was asset:qa-cast/priya-voice.wav (7.45 s), with reference_text taken from a Whisper transcript of it. Text: 3 paragraphs, about 200 words, seed 1209. Job 1a065152925d succeeded in 88 s. It made 3 speak@ entries and one file, NarrationLong-narrate.1-0.0.wav: 72.27 s, 44.1 kHz mono. A transcribe_audio (whisper-large-v3) of it has every sentence of the text, in order, with nothing dropped or repeated. The only differences are ASR spelling: gray/grey, 112, hand/hands.
narration-from-takes.takes = 3 sentences in a deliberately unnatural order, run as job f087306b5d0b. The transcript reads them back in exactly that order.
Fail: "A missing reference_audio is refused at validate"
validate_workflow(name="templates/narration-long", arguments={"text":"A short line to say.","reference_audio":null,"reference_text":"Some words."}) returns valid: true, estimate 1.4 min. Running it fails 2 s in (job 76943dbb0c12): Workflow execution error: Asset 'voice.wav' not found in the asset library .... The explicit null was replaced by the template default asset:voice.wav somewhere on the way down to the speak steps, and validate never checked that.
reference_audio: "" on narration-long also gives valid: true.
validate_workflow(name="templates/narration-from-takes", arguments={"takes":["One line."],"reference_audio":null,"reference_text":"Some words."}) returns valid: true. The run fails at the speak step (job 02d3aeb47fa7): generate_speech: 'reference_text' needs 'reference_audio' - Edge0/Audio8-TTS-Realistic-0.6b clones a voice ....
Omitting reference_audiois refused at validate (variables.reference_audio: Asset 'voice.wav' not found). That only holds because no voice.wav exists on lem. If one were added, an omitted reference would quietly clone whatever voice that file holds. It is not a check that the reference was supplied.
Expected: a null, empty or omitted reference_audio on narration-long and narration-from-takes is refused by validate_workflow and names reference_audio. Also, narration-long should not turn an explicit null back into the sub-workflow's default.
Minor point, not a failure: get_gallery_metadata on the narration-long wav reports role: "intermediate", while the job manifest lists the same file as subfolder: final, role: final.
I wrote no regression case. All test outputs were deleted.
unstrand: Don — this is a stage of #1199 (its body says "Stage of #1199"), but GitHub has no sub-issue parent link on it, so lib/classify.jq reads "stage with no parent" and no queue picks it up. Labels alone can't fix that: the link needs a sub-issue write, which this loop can't make. Separately, the tester bounced it to the lead with a failed acceptance point, and the parent #1199 sits with owner:tester + status:fixed-pending-verify, so even linked it would wait on #1199 rather than reach a lead build.
B, the bounce is a plain bug for the fix loop: drop stage, add bug, and set owner:implementer with no status (the target:lem claim stays; add a backend: label).
Unstranded by model claude-opus-5-5 via provider anthropic.
Decision for Don: do the bounced #1199 stages go back to the lead (link them under #1199) or to the implementer loop as bugs? Kind: record Default: reading A: link each as a sub-issue of #1199, return #1199 and the stages to owner:lead If otherwise: reading B: relabel each bug + owner:implementer, no status, with a backend: label Reversible: yes
Don's ruling on the unstrand question: reading B. The bounce goes to the fix loop as a plain bug, not stage rework. Relabelled bug + owner:implementer + backend:shared, with no status and no stage. The target:lem claim stays. The tester's bounce comment above is the spec. If it hides a spec question (whether the threshold or the acceptance claim is wrong, or whether an effect is intended), settle it from the design record and the bench records, and escalate only if those don't answer it.
— recorded from Don's Claude Code session (model claude-opus-5-5 via provider anthropic)
triage: work — an explicit null reference_audio passes validate on narration-long and narration-from-takes (the null is replaced by the sub-workflow default asset:voice.wav). Make validate refuse a null, empty or omitted reference, naming reference_audio. If the fix needs to change how a null argument overrides a sub-workflow default engine-wide (not just these templates), that is engine semantics: park it for Don rather than build it. Triaged by model claude-opus-5-5 via provider anthropic.
Fix for the bounce, by model claude-sonnet-5-5 via provider anthropic. Commit 1ee08ea0 on develop, deployed to lem (health OK, the server restarted just now).
What a consumer now observes
validate_workflow on templates/narration-long and templates/narration-from-takes now refuses an explicit reference_audio: null or "". It was valid: true before.
The refusal is reported at arguments.reference_audio. It says the value "must not be empty", names reference_audio, and adds that there is no default voice and an asset: reference is needed.
reference_text null or empty gets the same refusal, reported at arguments.reference_text.
Both templates declare this as a variable_constraintsmin_length: 1 rule. It is the existing mechanism Music 3 lyrics uses. No engine semantics changed, so nothing is parked for Don.
The refusal fires at the parent, so narration-long is refused before its child is reached.
Not changed: an omitted reference_audio. The default stays asset:voice.wav, so an omitted reference is still refused only as "Asset 'voice.wav' not found". That still names variables.reference_audio. It will not be refused if a voice.wav asset is ever added to the library. Changing the default to null would break the engine's rule that a stored default satisfies its own constraint, so I left it. I know that leaves the tester's last point (omitted) only partly closed, and I'm saying so.
Tests: tests/test_text_takes.py covers null and empty on both templates. The catalog compact-listing token budget went from 13,900 to 13,950, because the new rules add about 10 tokens.
Verified by tester claude-opus-5-5 via anthropic, against lem develop @ 093952b5. All calls were validate_workflow in workspace default.
Repro from the bounce, now refused
templates/narration-long, reference_audio: null → valid: false at arguments.reference_audio: "'reference_audio' is None, which this workflow does not accept: must not be empty ... there is no default voice: give an asset: reference ...".
templates/narration-long, reference_audio: "" → valid: false, same path and message.
templates/narration-from-takes, reference_audio: null and "" → valid: false, same path and message.
Omitted reference_audio on both templates → valid: false at variables.reference_audio ("Asset 'voice.wav' not found"). That still names reference_audio.
Because the null is refused at the parent, narration-long can no longer pass an explicit null down for the child's default to fill in.
Adjacent cases
narration-long with a real reference (asset:qa-cast/priya-voice.wav) and reference_text: null → refused at arguments.reference_text ("must not be empty").
No over-refusal: both templates with asset:qa-cast/priya-voice.wav + "Some words." → valid: true (narration-long 1.4 min catalog, narration-from-takes 0.5 min per_entry).
Every case in the bounce's expected: now holds, so I'm closing this. One caveat, which the implementer also disclosed: an omitted reference is refused only because no voice.wav asset exists. The new message says "there is no default voice", but the stored default is still asset:voice.wav. I'm filing that as a separate follow-up so it doesn't hold this issue open.
Activity
dkackman commentedon Nov 7, 2026
Verify of stage #1209 by tester
claude-opus-5-5viaanthropic, against lemdevelop @ 85bcd335. Bounced to lead: one acceptance point fails. The other three pass.No
pending: #1209cases exist in anyregression-suite-*.md. A grep forpending: #1209,split.takes,narration-longandnarration-from-takesfinds nothing. So I judged the stage on its own acceptance intent. Nobody wrote suite cases for this stage from the plan.Pass
run_workflow templates/split-takes(job7045f315791f), on a 620-word, 8-paragraph text with "Dr. Alder" in it 4 times,max_seconds 37,words_per_second 3.0. Result:{takes, count: 8, words: [87,75,79,72,82,73,93,59]}. Every take is ≤ 111 words. "Dr. Alder" is never split. Every take ends on a sentence. Takes follow the paragraph breaks, except one where two short paragraphs merged (93 words).asset:qa-cast/priya-voice.wav(7.45 s), withreference_texttaken from a Whisper transcript of it. Text: 3 paragraphs, about 200 words,seed 1209. Job1a065152925dsucceeded in 88 s. It made 3speak@entries and one file,NarrationLong-narrate.1-0.0.wav: 72.27 s, 44.1 kHz mono. Atranscribe_audio(whisper-large-v3) of it has every sentence of the text, in order, with nothing dropped or repeated. The only differences are ASR spelling: gray/grey, 112, hand/hands.takes= 3 sentences in a deliberately unnatural order, run as jobf087306b5d0b. The transcript reads them back in exactly that order.Fail: "A missing
reference_audiois refused at validate"validate_workflow(name="templates/narration-long", arguments={"text":"A short line to say.","reference_audio":null,"reference_text":"Some words."})returnsvalid: true, estimate 1.4 min. Running it fails 2 s in (job76943dbb0c12):Workflow execution error: Asset 'voice.wav' not found in the asset library .... The explicit null was replaced by the template defaultasset:voice.wavsomewhere on the way down to the speak steps, and validate never checked that.reference_audio: ""on narration-long also givesvalid: true.validate_workflow(name="templates/narration-from-takes", arguments={"takes":["One line."],"reference_audio":null,"reference_text":"Some words."})returnsvalid: true. The run fails at the speak step (job02d3aeb47fa7):generate_speech: 'reference_text' needs 'reference_audio' - Edge0/Audio8-TTS-Realistic-0.6b clones a voice ....reference_audiois refused at validate (variables.reference_audio: Asset 'voice.wav' not found). That only holds because novoice.wavexists on lem. If one were added, an omitted reference would quietly clone whatever voice that file holds. It is not a check that the reference was supplied.Expected: a null, empty or omitted
reference_audioonnarration-longandnarration-from-takesis refused byvalidate_workflowand namesreference_audio. Also, narration-long should not turn an explicit null back into the sub-workflow's default.Minor point, not a failure:
get_gallery_metadataon the narration-long wav reportsrole: "intermediate", while the job manifest lists the same file assubfolder: final,role: final.I wrote no regression case. All test outputs were deleted.
dkackman commentedon Nov 7, 2026
unstrand: Don — this is a stage of #1199 (its body says "Stage of #1199"), but GitHub has no sub-issue parent link on it, so lib/classify.jq reads "stage with no parent" and no queue picks it up. Labels alone can't fix that: the link needs a sub-issue write, which this loop can't make. Separately, the tester bounced it to the lead with a failed acceptance point, and the parent #1199 sits with
owner:tester+status:fixed-pending-verify, so even linked it would wait on #1199 rather than reach a lead build.Readings:
owner:lead, and keep thisowner:lead+stage.stage, addbug, and setowner:implementerwith no status (thetarget:lemclaim stays; add abackend:label).Same call for #1205, #1206, #1207, #1208, #1209, #1211 and #1214.
Unstranded by model
claude-opus-5-5via provideranthropic.Decision for Don: do the bounced #1199 stages go back to the lead (link them under #1199) or to the implementer loop as bugs?
Kind: record Default: reading A: link each as a sub-issue of #1199, return #1199 and the stages to
owner:leadIf otherwise: reading B: relabel each
bug+owner:implementer, no status, with abackend:label Reversible: yesdkackman commentedon Nov 7, 2026
Don's ruling on the unstrand question: reading B. The bounce goes to the fix loop as a plain bug, not stage rework. Relabelled
bug+owner:implementer+backend:shared, with no status and nostage. Thetarget:lemclaim stays. The tester's bounce comment above is the spec. If it hides a spec question (whether the threshold or the acceptance claim is wrong, or whether an effect is intended), settle it from the design record and the bench records, and escalate only if those don't answer it.— recorded from Don's Claude Code session (model
claude-opus-5-5via provideranthropic)dkackman commentedon Nov 7, 2026
triage: work — an explicit null
reference_audiopasses validate on narration-long and narration-from-takes (the null is replaced by the sub-workflow defaultasset:voice.wav). Make validate refuse a null, empty or omitted reference, namingreference_audio. If the fix needs to change how a null argument overrides a sub-workflow default engine-wide (not just these templates), that is engine semantics: park it for Don rather than build it. Triaged by modelclaude-opus-5-5via provideranthropic.fix(narration): #1209 - narration-long and narration-from-takes refus…
dkackman commentedon Nov 7, 2026
Fix for the bounce, by model
claude-sonnet-5-5via provideranthropic. Commit1ee08ea0ondevelop, deployed to lem (health OK, the server restarted just now).What a consumer now observes
validate_workflowontemplates/narration-longandtemplates/narration-from-takesnow refuses an explicitreference_audio: nullor"". It wasvalid: truebefore.arguments.reference_audio. It says the value "must not be empty", namesreference_audio, and adds that there is no default voice and anasset:reference is needed.reference_textnull or empty gets the same refusal, reported atarguments.reference_text.variable_constraintsmin_length: 1rule. It is the existing mechanism Music 3lyricsuses. No engine semantics changed, so nothing is parked for Don.narration-longis refused before its child is reached.Not changed: an omitted
reference_audio. The default staysasset:voice.wav, so an omitted reference is still refused only as "Asset 'voice.wav' not found". That still namesvariables.reference_audio. It will not be refused if avoice.wavasset is ever added to the library. Changing the default to null would break the engine's rule that a stored default satisfies its own constraint, so I left it. I know that leaves the tester's last point (omitted) only partly closed, and I'm saying so.Tests:
tests/test_text_takes.pycovers null and empty on both templates. The catalog compact-listing token budget went from 13,900 to 13,950, because the new rules add about 10 tokens.No regression case proposed.
dkackman commentedon Nov 7, 2026
Verified by tester
claude-opus-5-5viaanthropic, against lemdevelop @ 093952b5. All calls werevalidate_workflowin workspacedefault.Repro from the bounce, now refused
templates/narration-long,reference_audio: null→valid: falseatarguments.reference_audio: "'reference_audio' is None, which this workflow does not accept: must not be empty ... there is no default voice: give an asset: reference ...".templates/narration-long,reference_audio: ""→valid: false, same path and message.templates/narration-from-takes,reference_audio: nulland""→valid: false, same path and message.reference_audioon both templates →valid: falseatvariables.reference_audio("Asset 'voice.wav' not found"). That still namesreference_audio.Because the null is refused at the parent, narration-long can no longer pass an explicit null down for the child's default to fill in.
Adjacent cases
narration-longwith a real reference (asset:qa-cast/priya-voice.wav) andreference_text: null→ refused atarguments.reference_text("must not be empty").asset:qa-cast/priya-voice.wav+"Some words."→valid: true(narration-long 1.4 min catalog, narration-from-takes 0.5 min per_entry).Every case in the bounce's
expected:now holds, so I'm closing this. One caveat, which the implementer also disclosed: an omitted reference is refused only because novoice.wavasset exists. The new message says "there is no default voice", but the stored default is stillasset:voice.wav. I'm filing that as a separate follow-up so it doesn't hold this issue open.