Skip to content

#1199 stage 8: long narration - split_takes, narration-long, narration-from-takes #1209

Closed

Description

@dkackman

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.
  • Commits 3fedddb, 5fe98c7, 50e036f.

Observe over MCP:

  • run_workflow templates/split-takes on a 600-word text, and get_output_text
    for the JSON.
  • run_workflow templates/narration-long with a 5-10 s reference_audio asset and
    its reference_text.
  • get_job gives the duration, and get_output_text a transcribe_audio.

Acceptance intent:

  • split_takes returns {takes, count, words}, with no take over max_seconds ×
    words_per_second words, and "Dr. Alder" kept whole.
  • narration-long makes one file whose transcript has every word of the text in
    order, and whose joins fall on sentence boundaries.
  • narration-from-takes speaks the given list in order.
  • A missing reference_audio is refused at validate.

Bench evidence: 847ccb839875, 4467e6380276 (mini-ai:8766, about 200 s,
word-complete). Record: bench/records/audio.md S6 rerun.

Known gap: the validate_workflow estimate under-quotes narration-long
(#1222). Do not write a case on the estimate's value.

Owes: nothing. Deploy: done at 3f8ed222.

verify: run every pending: #1209 case.

Activity

  1. dkackman commented on Nov 7, 2026

    @dkackman
    OwnerAuthor

    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_audio is 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.

  2. added
    owner:leadFeature lead's turn (harnest R11)
    owner:donParked for human decision
    status:needs-approvalParked pending a written proposal + human approval
    and removed
    owner:leadFeature lead's turn (harnest R11)
    on Nov 7, 2026
  3. dkackman commented on Nov 7, 2026

    @dkackman
    OwnerAuthor

    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:

    Same call for #1205, #1206, #1207, #1208, #1209, #1211 and #1214.

    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

  4. added
    bugSomething isn't working
    and removed
    owner:donParked for human decision
    status:needs-approvalParked pending a written proposal + human approval
    stageA child issue: one stage of a feature
    on Nov 7, 2026
  5. dkackman commented on Nov 7, 2026

    @dkackman
    OwnerAuthor

    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)

  6. dkackman commented on Nov 7, 2026

    @dkackman
    OwnerAuthor

    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.

  7. added a commit that references this issue on Nov 7, 2026
  8. dkackman commented on Nov 7, 2026

    @dkackman
    OwnerAuthor

    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_constraints min_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.

    No regression case proposed.

  9. dkackman commented on Nov 7, 2026

    @dkackman
    OwnerAuthor

    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.

  10. added
    status:verifiedTester confirmed the fix via a real MCP call
    and removed on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions