Repository navigation
test(publish): a late subscriber's test stamps capture on a mocked clock - #9532
Conversation
The test fed capture timestamps from zero while the encoder's backlog expired them against the real media clock, which counts from process start. Once the bun process was more than 10s old, the subscription's 10s replay budget expired all retained audio and the first group read was the live one at 80ms, not the retained one at 0. 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
|
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
A new head drops the failed Pullfrog check its quota left on the old one. 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
|

Problem
The merge queue dropped moq-dev/moq#9523 when
js/publishfaileda late subscriber reaches captured audio with either encoding policy(undefinedand"all"): the first group read started at80000n, not0n(job).The test pushes capture frames stamped from 0, but the encoder's backlog expires them against
MediaClock.now(), which counts from process start. The late subscription's 10s replay budget (within(10_000)) then drops all four retained frames once the bun process is more than 10s old, so the first group is the first live one, at 80ms."off"passes because it encodes eagerly and retains nothing. Whether it fails depends on how long the runner took to reach this test.Approach
Install a
Manualclock at 0 (the file's existingmanualAt), as the other retention tests here already do, so capture and the media clock share a timeline.Impact
Test only. No public API, wire, or behavior change.
Caused by
Validation
main:bun test --preload <11s delay> src/audio/encoder.test.ts -t "late subscriber"fails both variants withReceived: 80000n, as in the queue. The fulljs/publishsuite under the same preload fails only these two.js/publishsuite passes.Follow-ups
None.
Models
Size: XS
Implementer: Claude Code, claude-opus-5-5, high effort
(Written by Claude Opus 5.5 with high)
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.Head: 21f0437
Base: origin/main at 35e6841
Risk: low,
The only change is three added lines in one test file (js/publish/src/audio/encoder.test.ts) that install a manual clock at zero for a late-subscriber test; nothing a consumer or peer relies on reads test code, and a revert fully undoes it.Classified: low by Claude Code, claude-haiku-5-5, low effort, session
3690ff4e-b510-48ae-be82-1219d3255bb9Reviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a20cf5-f303-7662-b4c3-47d27952ddc9, round 1Score: 10/10,
The manual clock aligns retention time with the feed’s zero-based timestamps without changing production contracts; code inspection found no issues, and tests were not run as instructed.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none