Skip to content

assess_output doesn't flag in-shot dead air: H3 dialogue shots hold 0.5-2 s at -70..-84 dBFS between lines #465

Closed

Description

@dkackman

Problem

assess_output's seam_hole checks only around the joins. MiniMax H3 ref2va dialogue shots contain near-digital-silence gaps inside the shot, between lines, and nothing reports them.

Evidence (lem, 0.5.0-alpha.1, 2026-09-25)

In all 10 shots of Known Issues episodes 7 and 8 there are runs of 0.5–2 s at −70 to −84 dBFS (50 ms RMS) between lines. For example, unknown-job shot 1 is at −75 to −84 from 2.55–4.9 s, and shot 4 at −67 to −78 from 2.0–3.6 s. Hard-cut, these play as dropouts, not as a quiet room. A bare assemble-and-score cut of those shots with no bed would pass assess_output clean.

The fix was a room-tone bed: a slice of the episode's own quietest stretch, looped and mixed about +22 dB. Afterwards the same gap read a steady −58 to −62 dBFS.

Ask

Activity

  1. added
    owner:donParked for human decision
    status:needs-approvalParked pending a written proposal + human approval
    featureWork bigger than a fix: designed with Don, built in stages (harnest R11)
    on Sep 25, 2026
  2. dkackman commented on Sep 26, 2026

    @dkackman
    OwnerAuthor

    Approved as a fix, not a feature: one new measurement in analyze_shots and one new rule in dw/assessment_rules.py.

    Why the threshold holds. A recorded room, even a quiet one, sits around -50 to -60 dBFS; this issue's own bedded reading was -58 to -62. Readings of -70 to -84 are digital near-silence, which no microphone produces. So a floor of about -65 dBFS separates "quiet room" from "the track stopped" on physical grounds, not by fitting one run.

    Fix

    1. Measurement. In analyze_shots, add three fields to each shot's record, from 50 ms RMS windows over the shot's span:

      • dead_air_seconds: the longest run of windows below the floor.
      • dead_air_at: where that run starts, in seconds into the file.
      • dead_air_floor_dbfs: the lowest window in the run.

      Update the docstring's Returns.

    2. Rule. Add shot_dead_air to RULES: dead_air_seconds > 0.4, severity warn (an audible dropout).

      • Put the floor (about -65 dBFS) in a named constant in dw/assessment_rules.py beside HOLE_VOICED_DBFS.
      • Add an unless guard: the shot's own rms_dbfs is at or below HOLE_VOICED_DBFS (-30), so a deliberately quiet shot doesn't fire. The probe applies it, as with seam_hole.
    3. Calibrate before pinning, as #378 stage D: field test on lem and threshold settling #386 did. Run the measurement over the stage D runs, where it should not fire, and over the bare and bedded Known Issues ep 7/8 cuts. Put the readings in the PR, adjust the 0.4 s / -65 dBFS values if they don't hold, then pin them.

    4. Remedy text (the rule's says and the docs' remediation table): lay a room-tone bed with slice_audio → loop_audio → mix_audio, using a slice of the episode's quietest recorded stretch. Don't point at find_loop_bed (idea: find_loop_bed — rank quiet windows for a background loop, encoding the near-programme-material and lap-rate traps #218): it doesn't exist on develop.

    5. Docs and tests. Add the rule to the rules tables in docs/TASKS.md and docs/WORKFLOW_GUIDE.md, and to dw/CLAUDE.md's assessment paragraph if it lists rules. tests/test_assessment_rules.py pins the quotes. In tests/test_assess.py, add synthetic-clip tests:

      • a voiced shot with a 1 s gap at -80 dBFS fires, and at the right position;
      • the same gap at -58 dBFS doesn't fire;
      • a shot quiet throughout doesn't fire.
    6. Skills.

      • minimax-h3: H3 dialogue shots contain gaps of digital silence between lines, inside the shot. Hard-cut, they play as dropouts, and turning bleed off doesn't prevent them. Lay a room-tone bed with the recipe above and check with assess_output.
      • series-episodes: one line in the bed beat pointing at that.

    Out of scope: a room-tone input on assemble-and-score. If it's wanted, it's a follow-up.

    Verification (tester). Run assess_output on a bare cut of the Known Issues shots. It should report shot_dead_air at about the positions in the issue (unknown-job shot 1 near 2.55 s, shot 4 near 2.0 s). The same shots with a room-tone bed should come back with no shot_dead_air, and a normally recorded run should stay clean.

    Reviewed with Claude Opus 5.5 (claude-opus-5-5), anthropic, against origin/develop 91abe3e.

  3. added
    bugSomething isn't working
    target:localFound against a non-lem server (DW_TARGET=local); Don triages
    and removed
    owner:donParked for human decision
    status:needs-approvalParked pending a written proposal + human approval
    featureWork bigger than a fix: designed with Don, built in stages (harnest R11)
    on Sep 26, 2026
  4. dkackman commented on Sep 26, 2026

    @dkackman
    OwnerAuthor

    triage: batch with #465, #466. Both are dw/assessment_rules.py and dw/tasks/assess.py changes, one new analyze_shots measurement and rule, and one seam_frame_jump suppression, each as Don directed above. They share one file set and one deploy. — claude-opus-5-5 via anthropic (implementer, triage)

  5. added
    target:localFound against a non-lem server (DW_TARGET=local); Don triages
    and removed
    target:localFound against a non-lem server (DW_TARGET=local); Don triages
    on Sep 26, 2026
  6. dkackman commented on Sep 26, 2026

    @dkackman
    OwnerAuthor

    Video-side counterpart filed as #488 (VLM frame probe). Same theme: assess_output passes what a viewer catches.

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

    @dkackman
    OwnerAuthor

    Fixed on `develop` at d6100d8 (fix(assess): #465 #466 - shot_dead_air measurement/rule, hard_cut guard wiring).

    For #465 specifically:

    • Added a shot_dead_air rule to dw/assessment_rules.py (field dead_air_seconds, > 0.4s, severity warn), guarded by unless so it does not fire when the shot is quiet throughout (HOLE_VOICED_DBFS) - only an in-shot gap between voiced lines is flagged, not a naturally silent shot.
    • dw/tasks/assess.py's analyze_shots now measures dead_air_seconds/dead_air_at/dead_air_floor_dbfs per shot via 50ms RMS windows (floor DEAD_AIR_FLOOR_DBFS = -65.0), looking for a 0.5-2s gap at -70 to -84 dBFS between H3 dialogue lines, inside a shot rather than at a seam.
    • Remedy points at the room-tone bed recipe (slice_audio -> loop_audio -> mix_audio), not find_loop_bed (idea: find_loop_bed — rank quiet windows for a background loop, encoding the near-programme-material and lap-rate traps #218) which is unrelated.
    • docs/TASKS.md and docs/WORKFLOW_GUIDE.md updated with the new analyze_shots fields and the new rule row.
    • Plugin skills updated with the room-tone bed guidance: plugins/dw/skills/minimax-h3/SKILL.md (step 4 of "Run and judge") and plugins/dw/skills/series-episodes/SKILL.md ("Run and judge"), both under the test_plugin_skills.py byte-size cap.
    • Tests: TestShotDeadAir in tests/test_assess.py, plus the existing full suite (6708 passed, 14 skipped, 1 xfailed) with no regressions.

    This was batched with #466 per the triage: comment on this issue - one branch, one commit, one hand-off.

    Per the "Target: the local server, not lem" role for this loop: I did not deploy myself (no ssh here). The driver deploys develop to the local MPS server via deploy-local.sh before your verification pass.

    Worked as: model claude-sonnet-5, provider anthropic.

  9. dkackman commented on Sep 27, 2026

    @dkackman
    OwnerAuthor

    Verified on the local server (mps on Mac-mini.lan, develop @ 3e8bf8d) — claude-opus-5-5 via anthropic (tester, verify).

    The Known Issues ep 7/8 H3 shots exist only on lem, so I used the same shape from the fixtures here. asset:qa-cast/ep62-episode.mp4 has two manifest shots, and shot@deflect holds a near-silent gap between lines.

    Fires on an in-shot gap

    • assess_output(name="asset:qa-cast/ep62-episode.mp4") returns one finding: shot_dead_air, warn, at: {shot: "shot@deflect", seconds: 8.62}, value: 0.75, threshold: 0.4.
    • Under probe="analyze_shots", that shot reads dead_air_seconds: 0.75, dead_air_at: 8.62, dead_air_floor_dbfs: -77.39, at shot rms_dbfs -20.38.
    • The other shot reads 0.0 / null / null, with no finding.

    Room-tone bed clears it

    • I ran an inline loop_audio(asset:uploads/qa-cast/room-bed.wav, target_frames=248, fps=24) → mix_audio([ep62-episode.mp4, bed]), once with gains [1,1] and once with gains [1,0] as a bare control. Both were saved as wav.
    • Bare: shot_dead_air fires at 8.6 s, 0.75 s.
    • Bedded: dead_air_seconds 0.3, floor -66.55, no findings.

    No false fires

    • ep7-episode.mp4: 0.3 s at -82.6, not flagged.
    • ep8-episode.mp4: 0.4 s at -66.5, not flagged. It sits exactly at the threshold, and the > compare holds.
    • qa-cast/priya-voice.wav (quiet throughout, rms -37.43): 1.6 s at -69.6, suppressed by the unless guard as intended.

    Docs: get_guide("tasks", section="Assessment Probes") serves the three new fields, the shot_dead_air row (> 0.4 s, warn), its guard, and the slice_audio → loop_audio → mix_audio room-tone remedy.

    Minor, not a bounce: the finding's says text doesn't carry the remedy that item 4 of the approval comment asked for. The served docs do. Filed separately.

    I didn't open the minimax-h3 or series-episodes skill text.

    Temporary runs 8eb6f030dfb8 and d848ef01995a are deleted.

  10. dkackman commented on Sep 27, 2026

    @dkackman
    OwnerAuthor

    Follow-up: added C-F131 to regression-suite-complete.md, covering the runs above. The says remedy gap is filed as #491. — claude-opus-5-5 via anthropic (tester)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:sharedbugSomething isn't workingowner:testerTester's turn to actstatus:verifiedTester confirmed the fix via a real MCP calltarget:localFound against a non-lem server (DW_TARGET=local); Don triagesverified-on:mps

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions