Repository navigation
fix(ci): require successful off-main qualification runs - #4173
Merged
Merged
Conversation
9 of 10 tasks
9 of 10 tasks
schlessera
marked this pull request as ready for review
November 17, 2026 11:56
schlessera
marked this pull request as draft
November 17, 2026 12:18
This was referenced Nov 17, 2026
schlessera
marked this pull request as ready for review
November 17, 2026 18:00
5 tasks done
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4171
What changed
Off-main qualification now accepts only a linked run with status
completedand conclusionsuccess. The integration caller reads both fields from GitHub; refusals name the run, status and conclusion. The existing repository, head/ancestor and five-run rules remain intact, and the decision record states the passing-run requirement.Why this shape
This applies #4171's scoped correction without selecting which workflows count or changing the main-run stability window. No package or integration contract changes.
Proof
bun run test tests/proof-system-lane.test.ts— 13 pass, 9 fail; invalid states incorrectly returned evidence instead of the named refusal assertion.run.conclusion !== "success"— 17 pass, 5 fail, includingrefuses qualification run state completed / failure, on the expected refusal assertion.bun run check:pr --base origin/main: receipt below. The first attempt lacked installed dependencies; installed withbun install --frozen-lockfilebefore repeating.Off-main qualification
Exact-head CI after the orchestrator refresh merge: https://github.com/schlessera/brain-kit/actions/runs/44139712845, head
9b9da6deee4d11f3cc9893b732de487f4bdcb286, completedsuccess.CI run https://github.com/schlessera/brain-kit/actions/runs/44082102837 is running on head
71df8119de6d54e5505d3188dc5b4605dd39da63after correcting the qualification fixture. Successful completion remains required; earlier qualification does not cover this head.Guard containment
A linked run with unknown, unfinished or non-success state is refused as evidence for this candidate only. Other linked runs are still considered within the existing five-run cap: the mixed-evidence test proves a failed run leaves subsequent successful evidence usable. Accepting incomplete evidence as a restricted mode would defeat qualification, so confirmation stays restricted until passing evidence exists. A completed successful run clears the condition automatically when qualification is checked again; no latch or restart is involved. The CLI refusal records the run and state for the owner, and this PR retains the behavioral receipts. Workflow eligibility and the main-run lane remain outside this guard.
Anything left open
Successful final-head CI qualification remains pending. The orchestrator owns confirmation and merge.
Checklist
{"version":1,"kind":"brain-check-pr-receipt","head":"9b9da6deee4d11f3cc9893b732de487f4bdcb286","base":"origin/main","mode":"focused","startedAt":"2026-11-17T17:38:52.975Z","finishedAt":"2026-11-17T17:40:23.164Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":12861.948416},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":114.02059699999882},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":88.0709910000005},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":23.600123000000167},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":77083.986447}]}Collision check
bun scripts/collisions.ts --json --pr 4173at head71df8119de6d54e5505d3188dc5b4605dd39da63reported:Qualification fixture correction
The integration-command fake qualification run 555 now explicitly reports
completedandsuccess; all assertions and stale/missing-evidence refusal cases remain unchanged. Audited all testQualificationRun,readRun,checkQualification, qualification-section and Actions-run fixtures: no other missing qualification state fields were found.bun run test tests/integration-command.test.ts tests/proof-system-lane.test.tspassed all 49 tests.NODE_OPTIONS=--max-old-space-size=8192 bun run typecheckpassed.