Skip to content

chore(quest): drop js-kept-out-start-placement, which no longer reproduces - #9470

Merged
kixelated merged 2 commits into
mainfrom
quest/m1/js-kept-out-start-placement
Nov 23, 2026
Merged

kixelated merged 2 commits into
mainfrom
quest/m1/js-kept-out-start-placement

Conversation

@kixelated

@kixelated kixelated commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

quest/m1/js-kept-out-start-placement.md says that when the local floor keeps out the group holding a window's time start, the JS resumed reader judges the window from group 0 (window.floor() ?? 0n) and asks the serving route for [0,10) where Rust asks for [9,10).

That divergence does not reproduce on main, nor at moq-dev/moq#9435's merge, where the quest was filed. The suspected cause can't fire either. Reader.exhausted, #asking and #accounts all return early unless window.end() is defined. Window.end() is defined only once the window is settled, and a settled window's floor() is never undefined. So the ?? 0n fallback is unreachable, in JS and in the Rust mirror (unwrap_or(0)).

Approach

This PR deletes the quest. There is nothing to fix.

Validation

I ran the quest's scenario as throwaway tests in both js/net/src/resume.test.ts and rs/moq-net/src/model/resume.rs, which are not committed. Route a holds 10 and 11. A reader asks time 10..=13 with an hour's budget and reads both. The front switches to b, the local range becomes [10,13), and the reader reads 12. Then the window moves to time 9..=13. Both languages place the window and ask b the same way in every ordering I tried:

b's groups below 10 JS window floor and ask Rust window floor and backfill copy
0 to 9, held before the switch (the quest's literal steps) floor 9, asks [9,10) floor 9, copy [9,10)
written after the window moved (0 to 9, or 9 only) floor 0, asks [0,10) floor 0, copy [0,10)
written before each move, from 9 down to 0 (the existing "a window moved down under the cursor keeps one ask") asks [start,10) each move (existing Rust mirror)
as row 2, on a received_copy() route (no JS analogue) floor 0, copy [0,10)

Row 2's floor of 0 is what one cursor does too. When the route holds no group at or before time 9 at the time of the ask, a time start reaches back to the oldest group, and the groups that arrive later are in the window. So the ask from 0 is owed, not a bug.

I reran rows 1 and 2 against the code at moq-dev/moq#9435's merge commit 7c77ec1daa, in both languages, and got the same results. The divergence the quest records was most likely seen on an intermediate head of that PR.

Impact

  • No public API, wire, or behavior change: this PR deletes one quest file.

Alternatives

  • Keep the quest and rewrite it around another trigger. I found none in the orderings above. A Rust received_copy() route behaves the same way. A future divergence would show up in the differential model checks, so an open-ended quest isn't worth keeping.
  • Land the throwaway tests as a JS and Rust pair. Rejected: the existing "a window moved down under the cursor keeps one ask" test already covers placement under a kept-out start, and row 2 only pins the reach-back to the oldest group, which window tests cover.

Decisions

  • Maintainer (decision, 2026-11-23): ✅ delete the quest (rejected: rewrite it around another trigger), because the bug doesn't reproduce on main. The PR was then picked for /quest-merge.

Models

Size: M
Implementer: Claude Code, claude-opus-5-5, unknown effort
Implementer: Claude Code, claude-opus-5-5, unknown effort (iterate, M)

Review

Rewritten by quest review after each round.

  • Head: 2b28c2f

  • Base: origin/main at 1767f6d

  • Risk: low, Nothing a consumer or peer relies on can break: the change deletes one quest plan document (`quest/m1/js-kept-out-start-placement.md`), which RISK.md lists as low, and a revert restores it fully.

  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session dd6cca85-72ec-4de6-929e-11d4a1313964

  • Reviewer: Codex, gpt-6.1-sol, high effort

  • Session: 01a208c7-c550-7d21-9cdf-81988fc5e23b, round 1

  • Score: 10/10, The change only deletes a quest plan, with no contract changes or remaining references, and no actionable regression was identified; no builds or tests were run.

  • Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

kixelated and others added 2 commits November 23, 2026 06:09
…duces

JS and Rust place a time start the local floor keeps out identically on
main, and the suspected `window.floor() ?? 0n` fallback is unreachable
once the window has an end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title A JS resumed reader owes nothing below a time start the local floor keeps out chore(quest): drop js-kept-out-start-placement, which no longer reproduces Nov 23, 2026
@kixelated

Copy link
Copy Markdown
Collaborator Author

Maintainer decision (/quest-run, 2026-11-23): ✅ delete js-kept-out-start-placement and /quest-merge (rejected: rewrite the quest). The bug doesn't reproduce on main.

(Written by Claude Opus 5.5)

@kixelated
kixelated marked this pull request as ready for review November 23, 2026 17:43
@kixelated

Copy link
Copy Markdown
Collaborator Author

Applied the maintainer decision on head 2b28c2f. The head deletes quest/m1/js-kept-out-start-placement.md and nothing links to it anymore (quest check --base origin/main passes). The decision is recorded under ## Decisions and the ## Waiting item is gone. The diff didn't change, so the earlier clean review still covers this head. Marked ready for /quest-merge.

(Written by Claude Opus 5.5)

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Quest deletion — removes quest/m1/js-kept-out-start-placement.md, a plan for a JS/Rust divergence the author shows no longer reproduces. A repo-wide grep finds no remaining references to the file.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request deletes a document describing a proposed JS resumed-reader placement issue. The document included a reproduction, a comparison with Rust behavior, and recommended fixes and tests. No implementation changes are reported.

Merge Risk: Minimal · up to 2b28c

This PR removes a documentation-only quest file and changes no runtime behavior. It carries no meaningful merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: deleting the quest document js-kept-out-start-placement, which no longer reproduces. It matches the single deleted file and the stated reason. It uses the conventiona…
Description check Passed The description explains the problem, the reproduction attempts in JS and Rust, the reasoning that the fallback is unreachable, the approach (deleting the quest), validation results, alternatives cons…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: deleting the quest document js-kept-out-start-placement, which no longer reproduces. It matches the single deleted file and the stated reason. It uses the conventional chore(quest) prefix and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description explains the problem, the reproduction attempts in JS and Rust, the reasoning that the fallback is unreachable, the approach (deleting the quest), validation results, alternatives considered, and the maintainer decision. It directly describes the changeset, which deletes one quest file.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2069da5f-4cfc-4fa4-a624-de2b5ac13904
Commits

Reviewing files that changed from the base of the PR and between 1767f6d and 2b28c2f.

Files selected for processing: 1

  • quest/m1/js-kept-out-start-placement.md
Files with no reviewable changes: 1

  • quest/m1/js-kept-out-start-placement.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Merged via the queue into main with commit ad6d55b Nov 23, 2026
12 checks passed
@kixelated
kixelated deleted the quest/m1/js-kept-out-start-placement branch November 23, 2026 17:48
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