Repository navigation
fix(ci): enforce proof-system lane during lease acquisition - #4179
Merged
Merged
Conversation
This was referenced Nov 17, 2026
This was referenced Nov 17, 2026
This was referenced Nov 17, 2026
This was referenced Nov 17, 2026
schlessera
marked this pull request as ready for review
November 17, 2026 20:21
7 tasks done
This was referenced Nov 17, 2026
Closed
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 #4178
What changed
integrate.ts acquirenow checks the proof-system stability window and off-main qualification before taking a reservation. Fast-lane candidates receive the same refusal as confirmation; product candidates and declared red-main fixes retain their existing behavior. The fast-lane and lane documentation describe this enforcement.Why this shape
The maintainer decision in #4178 requires reuse of
refuseProofSystemLane. Calling it before acquisition closes the bypass without changing classification, qualification policy or the lane window.Proof
bun run test tests/integration-command.test.ts: 27 passed, 0 failed; real executable with fixture Git remotes and offline GitHub responses.bun run test tests/integration-command.test.ts -t 'acquire enforces'failed atACQUIRE_REFUSES_PROOF_SYSTEM_CANDIDATE:acquire-lane-own-busy(expected exit 1, received 0).confirmproduced the same named assertion failure. Restoring the guard passed the focused test (1 passed, 0 failed).Off-main qualification
Exact-head CI after the orchestrator refresh merge: https://github.com/schlessera/brain-kit/actions/runs/44164738347, head
e1f6f5dfded23f04dcf75ca831325e67303933f5, completedsuccess.Exact-head CI after the orchestrator refresh merge: https://github.com/schlessera/brain-kit/actions/runs/44160457069, head
b263072391468494b536aa2873d06828998fc2cb, completedsuccess.Exact-head CI after the orchestrator refresh merge: https://github.com/schlessera/brain-kit/actions/runs/44155023649, head
71b9df51d40ea9eed120d238b50eceaf7bc5c4ce, completedsuccess.Pending the PR's own successful CI run on the final head. Qualification is not yet claimed.
Guard containment
The existing guard triggers only for a proof-system candidate with missing qualification or a closed/unknown lane. It restricts only reservation acquisition for that candidate; product candidates and declared red-main fixes remain usable (proved by the executable test). Acquiring a restricted lease would still occupy the shared reservation without a mergeable candidate, so refusal before acquisition is the narrowest useful containment. Retrying automatically clears it once a qualifying run is linked and the lane opens; no restart or human override is required. The refusal prints the affected paths and qualification/window cause to stderr, available in the command log. It changes no persistent incident state.
Checklist
Anything left open
Merge origin/main after #4173 lands, preserving its successful-run qualification requirement, then refresh local proof and the single receipt. Link the successful PR CI run under Off-main qualification with the final head SHA before landing. The orchestrator owns confirmation and merge.
{"version":1,"kind":"brain-check-pr-receipt","head":"71b9df51d40ea9eed120d238b50eceaf7bc5c4ce","base":"origin/main","mode":"focused","startedAt":"2026-11-17T19:04:13.308Z","finishedAt":"2026-11-17T19:05:46.259Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13041.101474},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":115.52033099999971},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":84.32412200000181},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":21.116257000001497},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":79670.11956400001}]}Collision report
bun scripts/collisions.ts --json --pr 4179at head65eec7dbff35bf0ca6690668cda45a54625dbf54: graph built; no textual conflicts or unknown results. Closure overlaps with #3054, #3056, #3059, #3069, #3581, #3622, #4002, #4036, #4151, #4157, #4166, #4168, #4172, #4173, #4175, #4177. Shared changed paths occur with #4151 (merge reference), #4157 and #4175 (merge reference, CI decision and integration-command tests), and #4173 (CI decision and integrate.ts). These are detection results, not locks; refresh against main after #4173 lands.