Skip to content

quest: plan time-keyed start follow-ups from a relay START trace - #9580

Merged
kixelated merged 1 commit into
mainfrom
quest-plan/time-keyed-start-followups
Nov 25, 2026
Merged

kixelated merged 1 commit into
mainfrom
quest-plan/time-keyed-start-followups

Conversation

@kixelated

@kixelated kixelated commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

kixel-ai/kixel.ai#269 traced a time-keyed reader's hang to moq-net, which moq-dev/moq#9534 fixed. That trace left two follow-ups for this tree, and the maintainer kept both on 2026-11-24:

  • No test covers what made relay path 2 harmless on main. A relay lowers its downstream START to 0 for a speculative fill, but fix(net): a track's first appended group skips every key below it #9534's skip of the keys below the first group always arrives ahead of that lowered START.
  • A finished track whose first group came from create_group reads differently locally and through a relay copy that a latest-group reader filled first.

Approach

This PR adds two quests:

  • [XS] quest/m4/time-keyed-warmed-relay-test.md: a regression test in time_keyed_start.rs for an oldest-group reader behind a relay copy that a latest-group reader filled first. It goes in m4 because it is a test nobody waits on.
  • [S] quest/m3/created-first-group-relay-parity.md: make that reader of a finished, create_group-first track get the same answer locally and through a relay. It goes in m3 because it is a bug fix in shipped code.

I reproduced the m3 bug before planning it, using a scratch integration test (not committed) on main at 2d3bc05f09. With a created first group at key K on a finished track, a late Start::Oldest ascending reader got gap 0..K not found locally and through 1 or 2 relays with no earlier reader. It got group K only through a relay copy that a Start::LATEST reader had filled first. With an appended first group, all 6 combinations read group K, so the m4 test's case passes on main.

Impact

None (quest files only).

Alternatives

  • Fold the test into the m3 fix, or drop both. The maintainer rejected both at the pick.

Follow-ups

None.

Related, not duplicated: moq-dev/moq#9529 adds quest/m1/relayed-refused-fill-gap.md, the converse case (a relayed reader reports a gap that a direct reader does not). moq-dev/moq#9564 adds quest/m1/finished-copy-empty-start.md, about a finished copy's empty START answer. Neither owns these two cases.

Validation

  • quest check passes, apart from pre-existing skill-drift notices from the local quest binary.
  • I ran the scratch repro above with cargo test -p moq-net --features async --test integration.

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown

(Written by Claude Opus 5.5)

🤖 Generated with Claude Code

Review

Rewritten by quest review after each round.

  • Head: a9b32ff
  • Base: origin/main at 2d3bc05
  • Risk: low, The change only adds two quest plan markdown files (quest/m3/created-first-group-relay-parity.md and quest/m4/time-keyed-warmed-relay-test.md); nothing a consumer, peer, or release reads can break, and a revert fully undoes it.
  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session 7dff0e61-4e60-41b0-b01e-bef8d5d714e3
  • Local review: none, since a low-risk head needs only the online reviewer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 25, 2026 04:03
@kixelated
kixelated added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 86305c8 Nov 25, 2026
5 of 6 checks passed
@kixelated
kixelated deleted the quest-plan/time-keyed-start-followups branch November 25, 2026 04:06
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