Repository navigation
test: e2e manifest gate (guard default flip) — do not merge #8941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| bump: minor | ||
| --- | ||
|
|
||
| ### Changed | ||
|
|
||
| - The block-dangerous-git guard (`block_dangerous_git_enabled`) is now off by default. Throwaway end-to-end test of the manifest-review gate; this change must never ship. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,7 +46,7 @@ | |
| "type": "boolean", | ||
| "title": "Block-dangerous-git guard", | ||
| "description": "Blocks irreversible git operations: push --force, reset --hard, clean -f, worktree-wide checkout or restore discards, and a push --force-with-lease that leases against a value git resolves at push time. On by default. The README's Option details define the lease case.", | ||
| "default": true | ||
| "default": false | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
claude-lane: claude-review |
||
| }, | ||
| "block_dangerous_git_allow": { | ||
| "type": "string", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMPORTANT —
manifest userConfig.block_dangerous_git_enabled.default: flag, guard default flippedtrue→false.This key gates the block-dangerous-git hook (push --force, reset --hard, clean -f, worktree-wide checkout/restore discards, unsafe force-with-lease). Every installed user who never set the option gets the guard silently disabled on update, so those git operations reach execution with no check. That includes an agent acting on injected issue or PR text. The README table row is changed to match, but its description still says "On by default".
PR title and the changelog fragment say this is a throwaway gate test that must never ship, so this should stay blocked (
do-not-merge).claude-lane: claude-security-review