Skip to content

feat(cesar): permission modes at Claude Code parity with a destructiv… - #292

Merged
cukas merged 1 commit into
mainfrom
fix/remove-no-brief-nudge
Aug 18, 2026
Merged

feat(cesar): permission modes at Claude Code parity with a destructiv…#292
cukas merged 1 commit into
mainfrom
fix/remove-no-brief-nudge

Conversation

@cukas

@cukas cukas commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

…e-ops seatbelt

The task-lease layer evaluated above the permission mode, so mode auto still prompted in ways Claude Code's bypassPermissions never does — most painfully important_task (fires when the user's own prompt text mentions auth/session/permission/migration/database/security) and dangerous_boundary for plain git push/deploy/publish. Contained edits in auto-edit could inherit those lease asks too, which acceptEdits never does.

New contract (spec: .claude/specs/permission-mode-cc-parity/spec.md, nero-challenged, security-review-hardened):

  • auto = bypassPermissions + seatbelt: important_task never fires; plain push/deploy/publish/create-pr/mutating-curl auto-run; a DESTRUCTIVE class still asks (force push, remote branch deletion, reset --hard, clean -f, rm -rf, dropdb/drop database, migrate reset), matcher config-overridable via cesarDestructiveActionPattern; workspace escapes ask instead of silently denying; leaseless/ delegated boundaries and all deny paths unchanged.
  • auto-edit = acceptEdits: contained file edits never inherit lease risk asks; sensitive paths (.git/hooks/, .husky/, .env*, credentials, keys — shared matcher, cesarSensitivePathPatterns override) still ask.
  • ask unchanged.

Security hardening from the 6-engine role review (3 verified bypasses closed): pasted content (fences, diffs, quotes) no longer counts as explicit user authority for destructive commands; the destructive matcher normalizes git global flags and long/short flag spellings (git -C dir push --force, git push -d, git clean --force, rm --recursive --force); sensitive-path matching canonicalizes through the same realpath resolver as the rule engine, killing dot-segment, double-slash and symlink aliases; and a resolver-stage ask can no longer be downgraded by lease re-derivation (mandatoryAsk threading).

⚔️ Forged by Agon

…e-ops seatbelt

The task-lease layer evaluated above the permission mode, so mode auto
still prompted in ways Claude Code's bypassPermissions never does —
most painfully important_task (fires when the user's own prompt text
mentions auth/session/permission/migration/database/security) and
dangerous_boundary for plain git push/deploy/publish. Contained edits
in auto-edit could inherit those lease asks too, which acceptEdits
never does.

New contract (spec: .claude/specs/permission-mode-cc-parity/spec.md,
nero-challenged, security-review-hardened):
- auto = bypassPermissions + seatbelt: important_task never fires;
  plain push/deploy/publish/create-pr/mutating-curl auto-run; a
  DESTRUCTIVE class still asks (force push, remote branch deletion,
  reset --hard, clean -f, rm -rf, dropdb/drop database, migrate
  reset), matcher config-overridable via cesarDestructiveActionPattern;
  workspace escapes ask instead of silently denying; leaseless/
  delegated boundaries and all deny paths unchanged.
- auto-edit = acceptEdits: contained file edits never inherit lease
  risk asks; sensitive paths (.git/hooks/, .husky/, .env*, credentials,
  keys — shared matcher, cesarSensitivePathPatterns override) still ask.
- ask unchanged.

Security hardening from the 6-engine role review (3 verified bypasses
closed): pasted content (fences, diffs, quotes) no longer counts as
explicit user authority for destructive commands; the destructive
matcher normalizes git global flags and long/short flag spellings
(git -C dir push --force, git push -d, git clean --force, rm
--recursive --force); sensitive-path matching canonicalizes through
the same realpath resolver as the rule engine, killing dot-segment,
double-slash and symlink aliases; and a resolver-stage ask can no
longer be downgraded by lease re-derivation (mandatoryAsk threading).

⚔️ Forged by [Agon](https://github.com/KERNlang/agon)

Co-Authored-By: agon (KERN) <292465531+KERN-Agon@users.noreply.github.com>
@cukas
cukas merged commit 6bb2536 into main Aug 18, 2026
2 checks passed
@cukas
cukas deleted the fix/remove-no-brief-nudge branch August 18, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants