Repository navigation
test(net): pin the JS resume seed-9 short continuation as a regression - #9450
Conversation
Quest-Claim: fab0a38bfb10cc69
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>
There was a problem hiding this comment.
✅ 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.mdand removes the now-danglingRelatedlink fromjs-resume-fetched-short-close.md.
claude-sonnet-5-5 | 𝕏
|
No actionable comments were generated in the recent review. WalkthroughThe 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:
|

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'sjs/net/src/group.tschange ("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'sregressions, which nothing else covered: #9391 noted that its own JS model case passed even without its fix.Changes
regressionsgets 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 withno route holds more of the group, and the reader ends with the route failure.Relatedlink 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 groupinjs/net/src/resume.test.ts, which pins the same#readOnstep, so this PR adds none.Public API: none. Wire: none.
Seeds reported on #9389
JS sweep at 4096 cases on
mainat1fd8509de7:reader 1: group 7 ended after 1 frames where a failed route closed it. That is the sibling quest quest/m0/nightly/js-resume-fetched-short-close.md, which this PR leaves open. It has a different root cause: the read never moves past what any copy holds. The fetched copy closes short at exactly the frames read and then fails, and nothing revisits that close. No fix here would cover it, so I kept this PR narrow, as the brief asked.Decisions
Choices I made without asking, for review:
main. A second fix would duplicate fix(net): a short close below the frames read fails a resumed group #9391.regressions.Validation
js/net/src/group.tstaken from394d054f4c^(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.conclude, since removed, showed group 2 ending at 2 frames withno route holds more of the group, and the reader ending with the route'sSessionClosed.bun test src/resume.model.test.tsinjs/net: 3 pass, includingregressions.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 reviewafter 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-a7f8c8ef64b2Reviewer: Codex, gpt-6.1-sol, high effort
Session:
01a20611-b558-73d0-8352-a9d0961a6ee8, round 1Score: 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