Repository navigation
quest(m1): an arrival read serves buffered and re-offered groups in Group Order, in Rust and JS - #9522
Conversation
…t's Group Order Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound. The quest is scoped to widening re-offers, and it defers the separate plain-buffered-order question to the maintainer.
Reviewed changes: the single new quest plan file.
quest/m1/js-reoffer-order.md: plans JS parity with Rust'snext_owednewest-first order for groups a widening takes back, and restores order assertions in both test twins. The referenced symbols (#reoffer,#tryRecvGroup,#tryResumed,next_owed, the Rust test) and the/quest/m3/buffered-ascending.mdlink all exist.
claude-sonnet-5-5 | 𝕏
|
Maintainer decision (via /quest-run, 2026-11-24): buffered groups (arrived, unread, no widening): ✅ (c) serve them in Group Order in both languages, newest first unless the subscription is ascending (rejected: (a) keep both orders and document; (b) move JS to Rust's arrival order). This changes Rust's tested arrival order too, so fold it into this quest and resize it if needed. (Written by Claude Opus 5.5) |
|
quest land watch: ended this pull request's pick, taking it out of the queue, since its head db6ef2b is held by decision by kixelated: Maintainer decision (via /quest-run, 2026-11-24): buffered groups (arrived, unread, no widening): ✅ (c) serve them in Gr (#9522 (comment)). Push a fix, or answer each by a thread reply or a comment linking its review or decision, then land it again. (written by quest land watch) |
…val-order quest Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Applied in 0d725ce: the quest (renamed to (Written by Claude Opus 5.5 with high) |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior pullfrog review (db6ef2b): the quest plan was widened to cover buffered groups.
- Renamed and rescoped the quest to
quest/m1/arrival-group-order.md([L]), folding in the 2026-11-24 maintainer decision to serve buffered groups in Group Order in both languages. - Extended the plan with updated test expectations, the Rust owed-set pick, the JS buffer walk, resume readers and the verify-resume model, doc updates, a caller audit, and the Impact migration note.
claude-sonnet-5-5 | 𝕏

Plans one quest,
quest/m1/arrival-group-order.md. It came out of the moq-dev/moq#9509 review thread, where the Rust and JS twins of the widened-read test pinned opposite orders.Summary
recv_group/recvGroup, and the lite publishers serving from one) serves everything it holds unread in the subscription's Group Order: newest first unless ascending. That covers buffered groups (arrived, unread, a replay included), which Rust walks in arrival order and JS returns lowest first, and re-offered groups a widening takes back, which Rust already serves in Group Order (next_owed) and JS lowest first.poll_lowest/#lowest, lowest first today) for arrival reads, the verify-resume TLA+ model, the docs that state the arrival order, and callers that drain a replay expecting oldest first.Group Ordersection already says a publisher SHOULD transmit pending Groups in Group Order.[2, 1, 3, 4, 0], ascending[1, 2, 3, 0, 4]), and the cursor-independence and replay tests move to Group Order.Decisions
Decided 2026-11-23 by the maintainer, via /quest-run: plan it, in m1.
Decided 2026-11-24 by the maintainer (comment): buffered groups (arrived, unread, no widening): ✅ (c) serve them in Group Order in both languages, newest first unless ascending (rejected: (a) keep each language's order and document the difference; (b) move JS to Rust's arrival order). This newer decision replaces the earlier scope, which covered only JS's re-offers and left buffered groups as a
Waitingitem. So the quest grew from M to L, was renamed fromjs-reoffer-order.md, and lost itsWaitingsection.Choices I made while planning, for review:
## Caused byculprit. JS's key-sorted buffer dates to moq-dev/moq#2772, and moq-dev/moq#6717 knowingly kept JS lowest-first when it added Rust's newest-first re-offer.Overlap
I searched the quest tree, deleted quests, and the quest files every open PR adds or changes, and found no overlap. moq-dev/moq#9437 (
widened-front-reader-asks-stale-again) also deals with widened readers, but it is about stale give-ups, not order. Buffered playback subscribes in ascending order is related: it makes buffered<moq-watch>media ask ascending.Validation
This PR only changes a quest file, so there is no behavior to exercise.
quest checkpasses. I checked the orders it describes against the source: Rustpoll_recv_group,next_owed, andReader::poll_lowest; JS#tryRecvGroup,bufferInsert, andResumeReader.tryGroup; the twin tests it names; and the draft'sGroup Ordersection.Models
Size: L
Implementer: Claude, claude-opus-5-5, high effort
Implementer: Claude Code, claude-opus-5-5, high effort (iterate, L)
🤖 Generated with Claude Code
(Written by Claude Opus 5.5 with high)
Review
Rewritten by
quest reviewafter each round.Head: 0d725ce
Base: origin/main at 8e2ae08
Risk: low,
The change only adds one new quest plan file (quest/m1/arrival-group-order.md, 42 lines) and touches no code, API, wire format, release script, or high-risk path; nothing a consumer or peer relies on reads it, and reverting the file fully undoes it, which RISK.md classes as low.Classified: low by Claude Code, claude-haiku-5-5, low effort, session
ebdd4d71-ca13-42c8-99a2-09d4bffa0053Reviewer: Codex, gpt-6.1-sol, xhigh effort
Session:
01a20bbc-9248-7493-bcf4-a451fe6db47c, round 1Score: 10/10,
The plan covers ordering, consumer migration, documentation, and model updates without introducing a blocking defect.Rounds: 2; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none