Skip to content

The checker knows a pull request that needs another - #19

Closed
jeremy wants to merge 2 commits into
slot-holdfrom
checker-needs
Closed

jeremy wants to merge 2 commits into
slot-holdfrom
checker-needs

Conversation

@jeremy

@jeremy jeremy commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

The checker plays the planner through every interleaving of a small world and judges the charter's invariants. Its worlds knew two ways a tree fails: a pull request that breaks by itself, and a pair that fails together. None had a pull request that needs another, so a planner that built #1 and #3 without the #2 that #3 needs, and took #3 out, passed it. That happened: the change d431614 removed got through the checker and was caught by a hand-written test.

Based on #16 (slot-hold), which adds spare. Eval only: nothing under internal/ changes.

What changes

What it shows

Checked

  • gofmt, go vet ./eval/, go test ./eval/ -run TestChecker (28 s before, about 55 s after on a busy machine). The whole suite runs here in CI.
  • Each new test failed first without the change it tests.

Not checked: the needing-each-other world with builds free to begin at any time (105,071 states whole at head; left out of the tables for its size).

Its oracle knew a pull request that breaks by itself and a pair that
fails together, so a planner that built #1 and #3 without the #2 that #3
needs, and ejected #3, passed it. A pull request may now need another: a
tree that holds it without that one fails, and ejecting it is a culprit's
unless the one it needs has landed, or is queued ahead of it with its own
checks passed and nothing holding it.

Worlds of three pull requests on two slots, batches of two and probes,
where #2 and #3 need each other and where #3 needs #2, join both tables.
The planner of eaf9498 fails the first with spare on invariant 3, #3. A
mutant that goes on beside a candidate stacked on a red one is killed
there. Of the worlds with probes and no such need it passes all but one,
most of them stopped at the cap: a world with keep kills it on keep
inertness, which compares any planner with queue.Plan itself.

Today's planner ejects #3 where #1 breaks and #3 needs #2: both
candidates fail, the chain goes on with #3 alone while #2 is a suspect,
#2 is cleared and lands, and #3 leaves on its own build's fair test. The
world stays out of the tables, and a test holds the counterexample.
@jeremy
jeremy marked this pull request as ready for review November 25, 2026 13:51
Copilot AI balanced review requested due to automatic review settings November 25, 2026 13:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The readiness projection ignores prerequisite merge conflicts, allowing unavailable prerequisites to be treated as ready and causing false invariant-3 failures.

1 open issue
What changed in this PR

Extends the evaluation checker to model pull requests that depend on others, covering failures that standalone breaks and pairwise clashes could not detect. The production planner is unchanged.

Changes:

  • Adds dependency-aware build outcomes and ejection checks, plus three dependency worlds.
  • Adds a planner mutant and regression tests, including a known current-planner counterexample outside the passing tables.
  • Documents the checker’s expanded model.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File Description
eval/​check.go Models dependencies, queue readiness, and dependency worlds.
eval/​check_test.go Tests dependency judgments, mutant detection, and the known counterexample.
eval/​check_mutants.go Adds a mutant that proceeds beside a pending stacked candidate.
.agents/​skills/​hillclimb/​SKILL.md Documents dependency modeling in the checker.

Review effort: Balanced

Comment thread eval/check.go Resolved
An ejection was judged against pull requests whose waits left out a
conflict with the trunk, so a pull request that needs one that can join no
candidate read as innocent. It is judged against the same reading the
drain uses, where such a pull request waits.
@jeremy

jeremy commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

🤖 Held with #16, which it is stacked on (see the note there). An outside read of this diff left four notes on the checker, none yet acted on:

  1. A held, later pull request that clashes can excuse a wrong take-out. A pushed head waits for every admitting check of its own #2 needs Score the stale-head repair and after-merge iPhone tests of hey-native-apps in the eval #1, The head branch settles a pull ref that fell behind #3 is held and clashes with A pushed head waits for every admitting check of its own #2. Score the stale-head repair and after-merge iPhone tests of hey-native-apps in the eval #1 lands while A pushed head waits for every admitting check of its own #2's last evidence build is pending, A pushed head waits for every admitting check of its own #2 is taken out on the old evidence, and culpritPR accepts it because the clashing The head branch settles a pull ref that fell behind #3 is queued.
  2. "Ahead" is read as ready and queued ahead. The charter's invariant 3 says "the pull requests ahead of it" without that. With Score the stale-head repair and after-merge iPhone tests of hey-native-apps in the eval #1 held and A pushed head waits for every admitting check of its own #2 needing it, [2] fails alone and the checker calls A pushed head waits for every admitting check of its own #2 a culprit.
  3. The world where today's planner breaks invariant 3 is in neither normal list, and its test can pass for another reason: it gets the same error if The head branch settles a pull ref that fell behind #3's test finishes before A pushed head waits for every admitting check of its own #2 lands.
  4. The mutant's test leaves out keep worlds and accepts capped searches, so "killed only where a pull request needs another" is more than it shows.

@jeremy
jeremy marked this pull request as draft November 26, 2026 09:45
@jeremy

jeremy commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

🤖 Closed in favour of #33, which carries this pull request's checker work on main, without the planner setting it was stacked on (#16, closed unmerged).

The branch stays.

@jeremy jeremy closed this Nov 27, 2026
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.

2 participants