Repository navigation
feat(gate): the orchestrator's OK at the round cap - #340
Open
bfcarrasco wants to merge 1 commit into
Open
bfcarrasco wants to merge 1 commit into
bfcarrasco wants to merge 1 commit into
Conversation
The cap-ok script posts the orchestrator's OK for a PR head only when the rounds reached the cap, the checks are green, no policy file changes, a revert undoes the change and every open finding has a follow-up issue, and refuses to run in a checkout of the PR's branch. The merge gate lets that head through at the cap and posts an orchestrator-ok status; the guard refuses the line by hand or through an MCP tool.
Owner
Author
|
bstack-judge: PASS+NOTES tier=2 sha=9f78995f17d77ece433d4fe6dff4ecd737067612 PR 340 (bfcarrasco/bstack), head 9f78995, checked out detached and confirmed. Contract: issue #327. GitHub Actions checks (ubuntu, windows, validate) are green on the head. No bstack/checks status is posted on it, so I ran only the tests my proofs needed. Criteria, each proved with the real
Findings (none blocking):
Dropped hypotheses:
|
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.
Request
#327 (behaviours 9 and 10 of #318). Acceptance criteria:
cappedwith its open findings, and does not ask the owner.internaland the diff holds no schema change and no deletion of data; every open blocking finding has a follow-up issue; and the script is not running in a checkout of the PR's branch. Each refusal names the condition that failed.Closes #327
Why
At three blocking rounds every stuck ticket went to the owner. With the orchestrator, it decides at the cap and the owner is asked only when a revert could not undo the merge.
What changed
scripts/cap-ok.mjs <pr> -R owner/repo --follow-up F2=341 ...checks the six conditions (plus: the PR is open, the findings can be read) and posts a tagged comment with the OK line for the head; else exit 1 with onerefused: <condition>: <found>line per failure. A follow-up is an open issue in the PR's repo whose body names the PR URL and the finding id.orchestrator-ok judge=<result>onbstack/judgewith the judge's comment as target. Not at the cap, or on UNPROVEN, it counts for nothing.cappedand its open findings and ask no one.lane.mjs result:cappedneeds the PR, the head and at least one open finding.Scope
Not changed: the number of rounds; no way for a builder to clear its own PR beyond the checkout check the ticket names.
Blast radius
Every repo's merge gate (guard + lib). Owner-OK statuses read as before (
owner-okandorchestrator-okshare one parser).Verification
node --test "tests/*.test.mjs": 928 tests, 902 pass, 0 fail (rest skipped as before). Newtests/cap-ok.test.mjs(10 tests): each refusal, success, gate pass/refusals, status text and target, guard refusals by hand and MCP, lane result, skill text. Mutations (gate re-check removed; MCP rule removed) each fail a test.node tools/check-plugin.mjs: ok.