[role] name = "edit-local" display-name = "code-implementer (local edit scope)" description = "Write code within whitelisted files, run cargo check/test, emit structured report. No git, no workspace-level touches, no dep bumps." spawnable = true [capabilities] # Ordered list — text.md fragments concatenated in this order required = [ "policy::no-git-ops", "scope::files-whitelist", "scope::files-denylist", "quality::constructor-pattern", "quality::cargo-check-green", "quality::tests-green", "safety::no-dep-bump", "output::report-format", ] [tools] # Tool allowlist — anything not in this list is denied allowed = ["Read", "Write", "Edit", "Glob", "Grep", "Bash"] # Bash further restricted by tools::cargo-only-bash-adjacent patterns bash-patterns-allowed = ['^cargo( |$)', '^mkdir( |$)', '^rm -rf /tmp/'] [escalation] policy = "ask-via-return"