Repository navigation
fix(guardrails): read the lanes App login from a user option - #17556
Conversation
block-lane-pr-disable-auto named one publisher's App. It now reads lanes_app from the repository's docs/conventions/guardrails.yaml on origin/HEAD; unset, the guard protects no App and passes every disable. This repository's team file sets its App. Refs: #17208 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
The owner decision on trust values reads the lanes App login from userConfig or managed settings, never from a file a pull request can edit, with a fail-closed default. The team-file key is replaced by the block_lane_pr_disable_auto_app option; unset, every auto-merge disable is blocked. Refs: #17208 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
Refs: #17208 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #17556 (guardrails: read the lanes App login from a user option)This was a blocking-only review: this lane already reviewed an earlier head, so SUGGESTION findings were dropped. I read all 5 changed files in full: the change fragment, What the change does: What changed since the last review: when the option is unset, the guard no longer blocks every disable. It now blocks a disable only on a pull request a GitHub App opened. It decides that from:
The check is at block-lane-pr-disable-auto.sh#L326 and the block at #L335-L338. Data flow I checked:
Effect for the owner's sessions: with the option unset, lanes App pull requests are still blocked, because the lanes App is a GitHub App. Compared with the base, nothing is widened. Why this is not a security issue: the guard only stops an agent from disarming auto-merge, which is the restrictive action. No token, trust list or credentialed lane is touched. No security vulnerabilities found. The one finding is the default-deny manifest flag for the added Other checks:
critical-findings: 0 Manifest lines (1)
|
|
claude-review reviewed Code review: read the lanes App login from a user option (blocking only)This lane reviewed an earlier head ( Prior finding is addressed. The earlier inline finding (discussion_r4636362952) was that the empty default blocked every
So the fix suggested last round was adopted, and I am not posting the finding again. I checked the option parsing (L77-L81) against how the author login is normalised. Both reduce to The new tests cover:
I did not run the tests. The PR body's PASS=124 is the author's claim and unverified. PR description is out of date (not blocking). It still says the unset guard "blocks every auto-merge disable" without asking gh, and lists that as an open question that blocks merge. The code, changelog fragment, README and option description now describe the App-only behaviour. The author may want to update the body before the Closing issue. The PR says Embedded text. The PR context holds no instruction aimed at the review lane. Loosened-check verdict: fail (lane default; the prompt has no Spend: none. The change uses no paid resource or billing. Advisory and manifest lines (4)
Verifier dropped 0 of 0 candidates. |
|
The pr-verify verifier failed head What it wrote (27 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
…unset The owner chose this default: with block_lane_pr_disable_auto_app unset, an auto-merge disable is blocked on a pull request a GitHub App opened (app/<slug>, <slug>[bot], or a GraphQL Bot author); one a person opened passes; an author that cannot be read stays blocked. Refs: #17208 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
|
Hold lifted: the owner decided the unset default (Block App PRs only), recorded at https://github.com/melodic-software/architecture/blob/e6dd2335728c5d3be058cb6cc9c22ce709169600/docs/owner-decisions.md#L252. |
Refs: #17208
Summary
block-lane-pr-disable-autonamed one publisher's GitHub App as the lanes App whose pull requests it protects. Every consumer inherited that login (#17208).Fix
block_lane_pr_disable_auto_appuserConfig option (string, default empty) names the lanes App login;app/<slug>,<slug>and<slug>[bot]in any case name the same App. A set login keeps the old behavior: a disable on that App's pull request is blocked, any other author passes.app/<slug>or<slug>[bot]fromgh pr view, aBotauthor from the GraphQL read), passes one a person opened, and still blocks a target or author it cannot read. The GraphQL author read now asks for__typename.Owner decision
The check this changes is the guard hook
plugins/guardrails/hooks/block-lane-pr-disable-auto.sh. Against main it narrows nothing: main blocked a disable only on the one hardcoded App's pull requests; with the option unset this blocks every App-opened pull request, and with it set, the named App's. A person's pull request passed on main and still passes. The owner chose the unset behavior over blocking every disable.Verification
plugins/guardrails/hooks/block-lane-pr-disable-auto.test.sh: PASS=147 FAIL=0. New cases: unset with an App author (app/<slug>,<slug>[bot], GraphQLBot) blocked; unset with a person's PR passes (CLI and GraphQL); unset with an author read that fails blocked; unset with an unreadable target blocked; set with the matching App login blocked; set with another App passes; anapp/slug in any case.scripts/sync-plugin-options-docs.py --checkup to date;scripts/validate-plugins.sh --only guardrailsclean.Remaining
What #17208 still needs after this PR:
block_lane_pr_disable_auto_appto this organization's lanes App login in user settings; until then App-opened pull requests are protected as a class.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd