Repository navigation
Refuse branch outcomes that claim passing checks the forge does not confirm - #291
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
… confirm A worker's ready line says a PR is open, not that its checks pass, yet a recorded branch outcome told the main session a PR was ready with all checks passing while required checks had not reported, and the guarded merge refused. fm-branch-report.sh now verifies a passing-checks claim against the PR before recording it, through the new read-only fm-pr-ready-check.sh. The readiness judgment moves unchanged from fm-pr-merge.sh into fm-pr-github-ready-lib.sh so the merge and the check share one implementation. The branch prompt tells the branch to report a ready PR without claiming green checks unless confirmed.
The report surface now refuses a summary that claims green checks the forge does not confirm, and this fixture's example PR cannot be read from the forge.
trillium
force-pushed
the
fm/outcome-green-verify
branch
from
November 4, 2026 03:10
06adb87 to
fe41069
Compare
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.
What changes for a human
A recorded supervision-branch outcome can no longer say a PR's checks are passing unless the forge confirms it. Before, a worker's "PR ready" line (which only says the PR is open) was turned into "ready, all checks passing" even while required checks had not reported, and the guarded merge then refused.
Affected output: the outcome the branch records through
bin/fm-branch-report.sh(what the main session and captain read). A passing-checks claim now needs the new read-onlybin/fm-pr-ready-check.shto confirm it; otherwise the report is refused with the missing required check named, and the branch reports what it actually verified.bin/fm-pr-merge.shbehaves exactly as before.Evidence
flowchart LR subgraph Before W1[worker: PR ready] --> B1[branch summary: all checks passing] --> S1[(outcome store)] --> M1[main: merge refused, required checks unreported] end subgraph After W2[worker: PR ready] --> B2[branch summary] --> G{claims passing checks?} G -- no --> S2[(outcome store)] G -- yes --> C[fm-pr-ready-check.sh: same judgment as the merge] C -- confirmed --> S2 C -- not confirmed --> R[report refused, names the unreported required check] endRegression test (
tests/fm-supervision-host-drain.test.sh) with a stubbed PR whose requiredcicheck never reported:Disabling the guard makes this test fail ("a green claim with an unreported required check must be refused: expected exit 3, got 0").
Notes
fm-pr-merge.shintofm-pr-github-ready-lib.sh, so the merge and the new check share one implementation. The fullfm-pr-merge.test.shsuite passes (123 ok, 0 failing).