Skip to content

A created first group reads differently locally and through a relay - #9826

Draft
kixelated wants to merge 2 commits into
mainfrom
quest/m1/created-first-group-relay-parity
Draft

kixelated wants to merge 2 commits into
mainfrom
quest/m1/created-first-group-relay-parity

Conversation

@kixelated

@kixelated kixelated commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Claims quest/m1/created-first-group-relay-parity.md.

Draft checkpoint: reproduced and traced, not fixed. Stopped at a time limit; the user deprioritized it behind the 0.22.0 cut.

Done

  • Regression test rs/moq-net/tests/integration/created_first_group.rs (0, 1, 2 links; warm = a latest reader filled the copy first). It fails on main by design: the 1- and 2-link warm cases read group K where the other four read gap 0..K not found.
  • Decided answer: the gap 0..K NotFound. A created group does not say the producer will not go back, and the publisher puts that gap on the wire in every case. Reading group K everywhere would reopen the created-versus-appended split of fix(net): a track's first appended group skips every key below it #9534.
  • Trace (details in the quest's Plan): the warm oldest reader waits on a one-shot fill for key 0; the fill is answered DROP 0..K NotFound, which req.reject records nowhere; the reader's misses give up 0..K and the wait ends, but the ordered reader never returns that as a gap and hands out cached group K.

Remains

  • Find why the queued miss 0..K is not reported by the reader's find_gap after the read, or record the fill's NotFound on the track (as fill::Inner::drop_groups does) so the drop cursor names it; fix it so the test passes.
  • Run time_keyed_start, range_fill, waiting_time_start, finished_copy_history, late_tail_reader, the track.rs unit tests, and the regression over several KIO_SIM_SEED values; /verify-subscribe if tail accounting changes.
  • Delete the quest file and its link in quest/m4/time-keyed-warmed-relay-test.md; add ## Caused by.
  • Leave local reads alone: quest/m1/relayed-refused-fill-gap.md (another agent) changes how a local reader asks the handler.

Validation

Ran only quest gate cargo nextest run -p moq-net --features async --test integration created_first_group (fails as described). Nothing else ran. No source changes, so no API or wire impact.

Waiting

  • Maintainer: confirm the right answer for a finished track's keys below a created first group.
    • The gap 0..K NotFound everywhere (Recommended) - matches the publisher's wire answer and the local reader; only the warm copy changes
    • group K with no gap everywhere - needs the publisher to stop dropping 0..K and blurs created versus appended
  • Maintainer: keep this quest in m1 or move it back to m3.
    • Move to m3 (Recommended) - a bug in a corner case that does not gate the 0.22.0 cut
    • Keep in m1 - fix before the cut

Models

Size: S
Implementer: Claude Code, claude-sonnet-5-5, unknown (arm B, cohort advisor-2026-11, advisor claude-opus-5-5)

(Written by Claude Sonnet 5.5)

…h a warm relay copy

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant