Repository navigation
fix(watch): a hold keeps the pace the audio stretch owes - #9549
Conversation
The stretch reset its owed pace on every hop that held, so a lag flickering across half a hop as clock readings jitter never added up to a splice, and audio rested just past the half hop for most of a minute. A hold now keeps owed; only a reversal resets it. Same change in moq-audio, the reference, and the spec, with a new corpus case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No configured credential can serve this run. Your Claude subscription has hit its usage limit, which resets at 2026-11-25 06:00 UTC. Re-trigger after it resets, or add an API key for this provider, which Pullfrog falls back to automatically. The providers' responses
|
WalkthroughThe change updates the documented, reference, JavaScript, and Rust stretch-pacing behavior so zero-pace holds preserve the current direction and owed pace. It adds a corpus case for alternating behind-the-clock decisions and holds. It also updates replay measurements and budgets for several Opus scenarios. Pre-merge checks:
|
A new head drops the failed check Pullfrog's quota left on the old one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Problem
Nightly 45242597151 failed
chromium-aac-44100-mild: av_lag_ms_p50 5.1 > 5, repeating the aacstep5.1 the 2026-11-19 triage dropped. It is a real controller defect, not measurement quantization:owedclimbed and fell back to ~10 frames over and over: each hop whose jittery lag dipped to ≤ 220 frames (4.99 ms) decided HOLD, andStretch.nextresetowedon any change of sign, HOLD included. A lag hovering at the edge never accumulates the hop of pace a splice needs.acceleratedflat from 6.8 s to the end).Approach
A hold returns no splice and keeps
owed; only a reversal of direction resets it. Changed together injs/watchStretch.next,moq-audioStretch::next, the reference (doc/concept/audio-jitter/stretch/reference.ts), and the spec paragraph indoc/concept/audio-jitter.md. New corpus caseflickers(pace and hold alternating) splices once its pace adds up; the old JS fails it. Every existing corpus case is byte-identical.The 5 ms ceiling stays: it is the half hop the rule leaves alone, and the measurement resolves it.
Validation
bun test(js/watch audio, corpus) andcargo test -p moq-audiopass;just cipasses.Impact
Alternatives
owedduring a hold, or add hysteresis to the half-hop test: more state for the same result.Caused by
Decisions
fixed-250lag (~40 ms behind, 36 underruns/min on one developer host, before and after this change) as host-specific, since the nightly runner measures 0.8 ms (rejected: an m4 quest). Re-check if Nightly shows it.Models
Size: S
Implementer: Claude Code, claude-opus-5-5, unknown effort
🤖 Generated with Claude Code
(Written by Claude Opus 5.5)
Review
Rewritten by
quest reviewafter each round.Head: 115bd96
Base: origin/main at 3136f81
Risk: medium,
The change is a bug fix in shipped code (js/watch/src/audio/stretch.ts and rs/moq-audio/src/stretch.rs) that changes how a hold keeps audio pace, so playback timing for watch users and Rust consumers of moq-audio shifts, but no public API or wire format changes and a revert fully undoes it; the rest is docs, corpus, and test budgets (low).Classified: medium by Claude Code, claude-haiku-5-5, low effort, session
856c8a72-92df-4c59-8c65-ff21ca5eedc2Reviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a20eb3-d063-79d1-9dc1-1d9c9a10a5f7, round 1Score: 9/10,
The hold behavior is updated consistently across implementations, documentation, and conformance vectors with no findings or incompatible dependents identified, though builds and tests were not run as instructed.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none
Reviewer: Codex, gpt-6.1-sol, high effort, shadow
Session:
01a20eb3-d063-7991-983c-9678d03e6ddb, round 1Score: 9/10,
The change coherently preserves splice debt and direction across holds with no actionable defects found by inspection, but runtime validation remains unverified.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none