Repository navigation
feat(guardrails): ship the main-checkout edit guard off by default - #17018
Conversation
block_main_checkout_edit_enabled now defaults to false, and the hook's fallback for an unset option matches: only the value true turns it on. The manifest lists the guard as opt-in beside credential reads; the README, catalog and the unreleased changelog fragment say it is opt-in and how to turn it on, and no longer announce a new denial. Everything else about the guard is unchanged. The test suite covers the default-off case directly and through the dispatcher, sets the option on for every earlier case, and resolves its fixture root with cd -P, as the guard resolves the paths it compares. Closes #17015 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgexJUYJe9Na3shvSfs
…ry suite Refs: #17015 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgexJUYJe9Na3shvSfs
|
Owner of this pull request: the hub session "Plugin Presets". This build session reports to it; route questions about the opt-in default there. |
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. |
Lane run report
Failed GitHub API calls
|
Lane-Activity: pr-refine/fix-docs
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: PR #17018 (guardrails: main-checkout edit guard off by default)This PR switches off the Findings
What was checked and found clean
critical-findings: 0 Manifest lines (2)
|
|
claude-review reviewed Code review: PR #17018, ship the main-checkout edit guard off by defaultNo blocking or advisory findings. I read every hunk of all 7 changed files. The change does what it sets out to do and stays consistent across files:
Closing issue #17015, "Done when":
Settled thread. The earlier thread on the Not independently verified. The PR's test counts (PASS=144, 391/391, 752/752, and the others) are the author's claims. I had no shell to run them. Loosened-check verdict: fail (default; the wrapper supplied no resolved value); patterns: 0.
Advisory and manifest lines (3)
Verifier dropped 0 of 0 candidates. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Closes #17015
Summary
The owner decided the main-checkout edit guard from #16954 stays in guardrails but ships off by default, so a person opts in (control-hub#11, recorded at https://github.com/melodic-software/control-hub/issues/11#issuecomment-6967662619). No release has published the guard yet; release PR #17006 is held until this lands.
Fix
block_main_checkout_edit_enableddefaults tofalse, and its description says how to turn it on. The hook's fallback for an unset option is nowfalsetoo, and only the valuetrueturns the guard on.docs/catalog.mdwas regenerated withnode scripts/generate-catalog.mjs.cd -P, the one-line fix for the pr-verify note on feat(guardrails): deny edits in a main checkout on its default branch #16954: the guard compares resolved paths, so the unowned-path cases now name resolved paths too.Verification
block-main-checkout-edit.test.sh: PASS=144 FAIL=0. It follows the credential-read shape. With the option unset, an Edit of a tracked file in a main checkout on its default branch passes, both directly and throughrun-guards.sh. It asserts plugin.json's default equals the script's fallback, then sets the option totruefor every case feat(guardrails): deny edits in a main checkout on its default branch #16954 tested, all of which still behave as before. A value other thantruestays off. With the old:-truefallback restored, the default-off case fails both ways.abort-boundary.test.sh391/391 once it turns the guard on, as it already does for credential reads.run-guards.test.sh752/752,coverage-manifest.test.sh32/32,block-credential-read.test.sh360/360,require-jq-notice-isolation20/20,require-jq-posture56/56.validate-plugins.sh --only guardrails, the changelog-fragment checks, the kill-switch hoist check, the Write/Edit spawn ratchet (7 of 7), shellcheck andshfmt -i 2all pass.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01KeBVgexJUYJe9Na3shvSfs