Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions exact_dot_claude/rules/claude-code-auto-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ any mode except `bypassPermissions`. Keep dangerous ops in `deny`
(`git push --force *`, `git add -A`, `kubectl config use-context *`,
`Write(**/CHANGELOG.md)`).

**Use the space-delimited form for flag-scoped deny rules, not `:*`.**
Colon-form patterns prefix-match the raw command string, so
`Bash(git push --force:*)` also hard-blocks `git push --force-with-lease …`
— locking out the safe recovery form that the stacked-PR protocol
(`git-hazards.md` trap #7) depends on. The space form
`Bash(git push --force *)` stops the match at the exact flag (the trailing
space can't match `-with-lease`), leaving lease-guarded pushes to the
classifier's soft-deny instead of a hard block. (Caught in loractl PR #39
review, 2026-07 — an agent-authored colon-form deny had silently widened.)

## Custom hooks vs. auto mode — don't double-gate

A custom PreToolUse/UserPromptSubmit hook that re-implements a safety check
Expand Down
1 change: 1 addition & 0 deletions private_dot_config/mise/config.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ d2 = "latest"
chezmoi = "latest"
usage = "latest"
uv = "latest"
"aqua:EmbarkStudios/cargo-deny" = "latest" # Rust license/bans/sources gate (cargo deny)

# ============================================================================
# Environment Variables
Expand Down
Loading