Repository navigation
Conversation
The attended GitHub red-check waiver can now be passed more than once in a single fm-pr-merge.sh invocation, each occurrence waiving only checks with that exact name. Every other check must still be green at the live head, and the away-posture and GitLab refusals are unchanged.
|
Speaking as Kun's firstmate: stamped waiting-ci. HEAD contract-class: opt-in — unconfigured merge path unchanged. Extends the existing attended VISION: One captain/interface aligns (clearer multi-check waive UX under explicit instruction); Authority aligns (still requires current explicit captain-named checks; no blanket waiver); Scripts/judgment aligns (helper mechanics + tests); Restart n/a; Delegation aligns (attended merge helper only); Fleet/vendor aligns (GitHub-only waive unchanged); Scope aligns (merge helper / docs). Align. Diff reviewed (AGENTS.md, Security FYI (not a merge gate while CI pending): multi-waiver still exact-name only; does not widen into admin/ |
|
[AGENT] Closing as stale (no activity for more than 5 days) during the backlog cleanup Javi requested on 2026-10-16. The branch is kept; reopen this PR if the work is still needed. |
Intent
Extend bin/fm-pr-merge.sh so the attended --allow-red waiver can be passed REPEATEDLY in one invocation, waiving each exactly-named check, instead of today's single-waiver limit that cannot accumulate. Decision: Jev chose extend_helper (probability 0.78) under the captain's blanket Jev mandate of 2026-09-21, over a one-time admin bypass. Blocking context: PRs 250, 247, 248 and 251 in jaak-terraform-oci all fail only the two structural-gate checks ("JAAK Structural Quality" and "Measure structural quality / Compare structural metrics") on the base snapshot - the failure the gitlink PR 250 itself removes - so none can merge while the helper waives only one check per call.
What Changed
bin/fm-pr-merge.shno longer refuses a second--allow-red: the "may be specified only once" guard is dropped, so each occurrence accumulates intoALLOW_REDand waives only checks with its exact name, while every other check must still be green and the head stays bound by--match-head-commit.--allow-redsentences inAGENTS.mdanddocs/architecture.md, now describe the flag as repeatable ([--allow-red <check-name>]...) with a per-occurrence exact-name waiver, instead of a single waived check.tests/fm-pr-merge.test.shreplaces the duplicate-waiver refusal case withtest_allow_red_accumulates_across_repeated_flags, covering: two named waivers merging two red checks, one of two waivers still refusing on the unwaived red check, a waiver matching no red check not blocking a green merge, and a waiver naming an absent check still refusing while naming the red check.🤖 Generated with Claude Code
Risk Assessment
✅ Low: Removes a single-use guard so --allow-red accumulates, leaving every other safety path (exact-name matching, GitLab refusal, away-posture refusal, head binding) intact, with behavioral tests covering accumulation, partial waiver refusal, and exact-name scoping.
Testing
I stood up an isolated FM state directory with a task meta plus stubgh/gh-axibinaries on PATH and drove the realbin/fm-pr-merge.shCLI the way an operator invokes it, because an actual GitHub merge is irreversible and out of bounds here. The blocking case from the intent now works: a pull request whose only failures are the two structural-gate checks merges when each is named by its own--allow-red, and the helper issues exactly onegh pr merge ... --match-head-commit ... --squash. The same command against the pre-change helper refuses with "--allow-red may be specified only once", so the regression is reproduced before and fixed after. Adversarially, accumulation never widened into a blanket waiver: waiving one of two still refuses and names the other, an extra unwaived red check still refuses, and near-miss names (different case, trailing space) waive nothing. The surrounding guards are untouched — inline--allow-red=<name>, a nameless trailing flag, GitLab, and the away-posture record all still refuse before any forge call. The helper's own test file runs fully green, including the new accumulation test. This change is a shell CLI with no rendered UI surface, so there is no screenshot or visual artifact; the reviewer-visible evidence is the CLI transcript of each drive.error: --allow-red may be specified only once, exit 2, no gh pr mergecheck 'Measure structural quality / Compare structural metrics' is not green, no gh pr mergeunit-tests, no gh pr mergepr merge 252 ... --squashpr merge 253 ... --squashrequires a separate check name argument/requires a check name--allow-red does not apply to GitLab--allow-red is attended-only, no gh pr…bash tests/fm-pr-merge.test.sh→ 94 ok, includingok - fm-pr-merge accumulates repeated --allow-red waivers, each still scoped to its exact name(fm-pr-merge-test-suite.log)Evidence: Live CLI transcript: every --allow-red scenario driven against the real helper, plus the base-commit regression baseline
Source: Live CLI transcript: every --allow-red scenario driven against the real helper, plus the base-commit regression baseline
Evidence: tests/fm-pr-merge.test.sh full run log (94 ok)
Source: tests/fm-pr-merge.test.sh full run log (94 ok)
Evidence: Blocking case before vs after
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
error: --allow-red may be specified only once, exit 2, no gh pr mergecheck 'Measure structural quality / Compare structural metrics' is not green, no gh pr mergeunit-tests, no gh pr mergepr merge 252 ... --squashpr merge 253 ... --squashrequires a separate check name argument/requires a check name--allow-red does not apply to GitLab--allow-red is attended-only, no gh pr…bash tests/fm-pr-merge.test.sh→ 94 ok, includingok - fm-pr-merge accumulates repeated --allow-red waivers, each still scoped to its exact name(fm-pr-merge-test-suite.log)Live CLI drive:fm-pr-merge.sh task-x1 https://github.com/example/jaak-terraform-oci/pull/250 --allow-red 'JAAK Structural Quality' --allow-red 'Measure structural quality / Compare structural metrics'against the target helper (merges, exit 0)Same command driven against the base-commit helper extracted viagit archive 8c1cdb7 bin(refuses witherror: --allow-red may be specified only once, exit 2)Live CLI drive waiving only 1 of 2 red checks (refuses, names the unwaived check, nogh pr merge)Live CLI drive with a third unwaived red checkunit-testsbeside two waivers (refuses naming onlyunit-tests)Live CLI drive with near-miss waiver names (lowercased name, trailing space) — neither matches, both checks stay redLive CLI drive with waivers matching no red check on a green PR (still merges)Live CLI drive repeating the identical name twice (accepted, merges)Live CLI drive of--allow-red=<name>inline form and trailing--allow-redwith no name (both exit 2)Live CLI drive with repeated waivers on a GitLab MR URL (exit 2, GitLab refusal)Live CLI drive with repeated waivers under a confirmed away-posture record viabin/fm-afk-contract.sh propose/confirm(exit 2, attended-only refusal, no merge)bash tests/fm-pr-merge.test.sh(94 ok, includestest_allow_red_accumulates_across_repeated_flags)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.