Permission policy DSL (richer than confirm_cmd boolean)
#9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Inspired by Claude Code's permission modes (auto-allow / prompt / deny per tool/pattern).
What: Replace
config.shell.confirm_cmd = true|falsewith a small rule list:First match wins; default =
confirm. Patterns are Lua patterns (or regex if we vendor one).Why: Today
confirm_cmd=trueinterrupts every harmlessls. The bool is too coarse — once Norris mode (Phase 3) lands, the user wants to trust read-only ops while still gating writes/network.Where it lands: Phase 3 or 4. Touches
safety.lua+executor.lua+config.luaschema.Source: https://code.claude.com/docs/en/overview (permission modes; mentioned implicitly throughout)