Skip to content

test(net): pin the JS resume seed-9 short continuation as a regression - #9450

Merged
kixelated merged 2 commits into
mainfrom
quest/m0/nightly/js-resume-short-continuation
Nov 23, 2026
Merged

kixelated merged 2 commits into
mainfrom
quest/m0/nightly/js-resume-short-continuation

Conversation

@kixelated

@kixelated kixelated commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m0/nightly/js-resume-short-continuation.md and deletes it.

The quest's bug is already fixed on main, by moq-dev/moq#9391's js/net/src/group.ts change ("a short close below the frames read fails a resumed group"). This PR pins the quest's shrunk seed-9 case in the JS model's regressions, which nothing else covered: #9391 noted that its own JS model case passed even without its fix.

Changes

  • JS regressions gets the seed-9 case (js/net/src/resume.model.test.ts), next to fix(net): a short close below the frames read fails a resumed group #9391's seed-19 case. In that case a read reaches frame 2 of group 2, then moves onto a failed copy that holds only 1 frame and closed the group short there. It used to end the group cleanly at frame 2. Now the group fails with no route holds more of the group, and the reader ends with the route failure.
  • The quest is deleted, along with the sibling quest's Related link to it.

The quest also asked for a unit test. It already exists as #9391's a short close below the frames read fails the group in js/net/src/resume.test.ts, which pins the same #readOn step, so this PR adds none.

Public API: none. Wire: none.

Seeds reported on #9389

JS sweep at 4096 cases on main at 1fd8509de7:

Decisions

Choices I made without asking, for review:

  • Pin the regression and finish the quest, with no code change. The goal (seed 9 passes) already holds on main. A second fix would duplicate fix(net): a short close below the frames read fails a resumed group #9391.
  • Seed 10 stays in its own quest. It is not the same defect, so it gets its own PR.
  • No Rust mirror case. Rust always passed seed 9, and the quest asked only for the JS regressions.

Validation

  • Before: with js/net/src/group.ts taken from 394d054f4c^ (main just before fix(net): a short close below the frames read fails a resumed group #9391), the new regression case fails with the quest's exact error, reader 0: group 2 ended cleanly after 2 frames.
  • After, on this branch: it passes. A temporary debug print in conclude, since removed, showed group 2 ending at 2 frames with no route holds more of the group, and the reader ending with the route's SessionClosed.
  • bun test src/resume.model.test.ts in js/net: 3 pass, including regressions.
  • The JS sweep at 4096 cases, seeds 2, 4, 7, 9 and 10: results as listed above.
  • quest check: ok.

Follow-ups

None.

Models

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

(Written by Claude Opus 5.5)

🤖 Generated with Claude Code

Review

Rewritten by quest review after each round.

  • Head: d6652e8

  • Base: origin/main at 1fd8509

  • Risk: low, Nothing consumers or peers rely on can break: the change adds one regression case to the JS resume model test (js/net/src/resume.model.test.ts) and deletes two quest plan markdown files, and a revert fully restores them.

  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session 5dce013b-08f7-4181-b199-a7f8c8ef64b2

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

  • Session: 01a20611-b558-73d0-8352-a9d0961a6ee8, round 1

  • Score: 9/10, The source review found no actionable defects, but builds and tests were not run as instructed, leaving execution unverified.

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

  • Findings: none

kixelated and others added 2 commits November 22, 2026 17:24
The shrunk seed-9 case ended group 2 cleanly at a frame no copy closed it
at. #9391's group.ts fix already makes it fail instead; this
pins it in the JS model's regressions and finishes the quest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title A JS group continued onto a shorter failed copy never ends clean where no copy closed it test(net): pin the JS resume seed-9 short continuation as a regression Nov 23, 2026
@kixelated
kixelated marked this pull request as ready for review November 23, 2026 01:43
@kixelated
kixelated enabled auto-merge November 23, 2026 01:44

@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.

Approach: sound. The bug already landed on main via #9391, so pinning the shrunk case in the JS model's regressions with no code change is the right scope.

Reviewed changes

  • Seed-9 regression case (js/net/src/resume.model.test.ts): the ops match the quest's shrunk case step for step, and it sits next to the seed-19 case it relates to.
  • Quest cleanup: deletes js-resume-short-continuation.md and removes the now-dangling Related link from js-resume-fetched-short-close.md.

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 change adds a regression scenario for a reader that has consumed more frames than a failed route copy contains. It also removes the issue note about the JS resume regression and the link to that note.

Merge Risk: Minimal · up to d6652

This change adds regression coverage for a short-close resume case and tidies completed documentation. It does not touch production behavior, so there is no merge risk beyond normal checks.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the test-only change: it pins the JS resume seed-9 short-continuation case as a regression. The changeset adds that regression case to js/net/src/resume.model.test.ts and deletes the c…
Description check Passed The description matches the changeset. It explains that the regression case goes into the JS resume model's regressions test in js/net/src/resume.model.test.ts, that the quest note is deleted, and tha…
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 names the test-only change: it pins the JS resume seed-9 short-continuation case as a regression. The changeset adds that regression case to js/net/src/resume.model.test.ts and deletes the completed quest note. The title is specific and matches the main change.

Full details: Description check

Explanation

The description matches the changeset. It explains that the regression case goes into the JS resume model's regressions test in js/net/src/resume.model.test.ts, that the quest note is deleted, and that the sibling quest link is removed. It also gives validation steps and the reasoning for not adding code changes.

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: 02972d64-ada9-47c8-9c2c-edbf0483d075
Commits

Reviewing files that changed from the base of the PR and between 1fd8509 and d6652e8.

Files selected for processing: 3

  • js/net/src/resume.model.test.ts
  • quest/m0/nightly/js-resume-fetched-short-close.md
  • quest/m0/nightly/js-resume-short-continuation.md
Files with no reviewable changes: 2

  • quest/m0/nightly/js-resume-fetched-short-close.md
  • quest/m0/nightly/js-resume-short-continuation.md

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

Merged via the queue into main with commit a5345c7 Nov 23, 2026
10 checks passed
@kixelated
kixelated deleted the quest/m0/nightly/js-resume-short-continuation branch November 23, 2026 05:57
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