Skip to content

quest: plan generated inputs per differential case - #468

Merged
kixelated merged 2 commits into
mainfrom
quest-plan/stable-case-inputs
Nov 3, 2026
Merged

kixelated merged 2 commits into
mainfrom
quest-plan/stable-case-inputs

Conversation

@kixelated

Copy link
Copy Markdown
Collaborator

Problem

A differential harness picks each case by its leading input bytes modulo its case count, from one seeded stream of random inputs, so adding a case changes which inputs every other case gets. In #436, adding a stock case sent the input 421f00ff... to buf::write_all, which hit the rt.BytesMut reserve refusal on a zero-capacity take that no input had reached before. The fix landed in a PR that had nothing to do with it.

Approach

One quest, quest/m0/checks/case-inputs.md [S], under the checks epic: seed each case's generated inputs from its name, through the ops a harness exports, so adding, removing, or reordering a case leaves the other cases' inputs unchanged. It covers stock, lang, and task, which share ts/tests/differential.ts.

Impact

None: quests only.

Alternatives

  • Fix only stock: the generator and the modulo pick are shared by every differential harness, so each would keep the same problem.

Follow-ups

None.

Review

  • Codex (quest review), gpt-6.1-sol, medium effort, round 1 on 6a108622f454db445a76da3e4ebb300801dbbabc: no findings.
  • just check passes locally.

(written by Claude Opus 5.5)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: ae7066e5-2d78-40ad-a835-a9aaa662e43e
Commits

Reviewing files that changed from the base of the PR and between fc66bbd and c18ae30.

Files selected for processing: 2
  • quest/m0/checks/README.md
  • quest/m0/checks/case-inputs.md
  • 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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@kixelated
kixelated added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 448555e Nov 3, 2026
3 checks passed
@kixelated
kixelated deleted the quest-plan/stable-case-inputs branch November 3, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant