Fork-only. Appends a Fork Workflow section to AGENTS.md and adds GEMINI.md, per-tool permission files and docs/ pages for agent driven development. Not for upstream. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
21 lines
1.4 KiB
Plaintext
21 lines
1.4 KiB
Plaintext
# Rendered from docs/PERMISSIONS.md - change both in the same commit.
|
|
# Deny
|
|
prefix_rule(pattern = ["git", "push", ["--force", "-f", "--force-with-lease"]], decision = "forbidden",
|
|
justification = "Force-push rewrites shared history.")
|
|
prefix_rule(pattern = ["git", "reset", "--hard"], decision = "forbidden", justification = "Discards work.")
|
|
prefix_rule(pattern = ["git", "clean"], decision = "forbidden", justification = "Deletes untracked files.")
|
|
prefix_rule(pattern = ["git", "add", ["-f", "--force"]], decision = "forbidden",
|
|
justification = "Stages ignored files, e.g. secrets.")
|
|
prefix_rule(pattern = ["git", "commit", ["--no-verify", "-n"]], decision = "forbidden", justification = "Skips hooks.")
|
|
prefix_rule(pattern = ["rm", ["-r", "-R", "-rf", "-fr", "-Rf", "-fR", "--recursive"]], decision = "forbidden",
|
|
justification = "Recursive delete.")
|
|
prefix_rule(pattern = ["sudo"], decision = "forbidden", justification = "No privilege escalation.")
|
|
# Ask
|
|
prefix_rule(pattern = ["git", ["push", "merge", "rebase", "switch", "restore"]], decision = "prompt")
|
|
prefix_rule(pattern = ["git", "commit", "--amend"], decision = "prompt")
|
|
prefix_rule(pattern = ["rm"], decision = "prompt")
|
|
prefix_rule(pattern = ["go", ["get", "install"]], decision = "prompt")
|
|
prefix_rule(pattern = ["go", "mod", "tidy"], decision = "prompt")
|
|
prefix_rule(pattern = ["make"], decision = "prompt")
|
|
prefix_rule(pattern = ["docker"], decision = "prompt")
|