Repository navigation
feat: merge guard — ≥1 completed check, all green (Heart#343) - #621
Merged
Merged
Conversation
…en (PyAutoHeart#343) For a repo Heart does not gate, the PR's own checks are the only CI evidence, so the merge paths now require at least one completed check on the head, every one green. A PR with none (a repo with no CI, or only skipped checks) is refused for unattended or tiered merge and left to the human. - batch watcher close-out: `pr_health` reads `gh pr checks --json` and judges each check (fail/cancel -> FAILED, pending -> RUNNING, no completed check -> NO-CHECKS, unreadable/unknown bucket -> UNKNOWN). The exit code alone counted a cancelled check as skipped and an all-skipped PR as passing. - close-out template, /prm (prm.md step 3, reference.md tiered merge) and AUTONOMY.md leg 4 state the guard and the gate-deferred reading. - Witness test: a PR with zero completed checks is refused at merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
The Brain half of PyAutoLabs/PyAutoHeart#343, programme M2.
pr_health(batch/_digest.py) judges each check. It needs at least one completed check, all green. A cancelled check, or a PR whose checks were all skipped, no longer passes./prm(prm.mdstep 3 and the tiered-merge refusals) and AUTONOMY leg 4 state the guard.Test plan
test_grouped_organ_consumersfailure remains.Gate
pyauto-heart readiness --dev --repos …). No RED override was needed: this is the first ship through the M2.1 scoped gate.Tier: glance. Merge mode: auto-merge on green if the Witness passes, with a post-merge summary.
🤖 Generated with Claude Code