Issue 694
process: Guardrails for agents: code owners and chief of staff limits
Back to our planDone
processtoolingpriority: high
Problem
Agents must not be able to change their own guardrails, merge for someone else, or force-push. The research on #685 recommends protecting these paths before agents get more freedom.
Proposed fix
- A
CODEOWNERSfile that gives the ownerAGENTS.md,CLAUDE.md,.claude/,.agents/,docs/guidelines/,docs/roles/,.github/andCODEOWNERSitself. The repository is public, so check in the repository settings whether themainruleset can require code-owner review, and say so on this issue. - Tool settings for the chief of staff agent only: it may not edit code, push, or merge. Workers keep merging their own reviewed PRs, as
AGENTS.mdsays. - Check that no
ANTHROPIC_API_KEYis set in the environment used for headless runs. - On Windows there is no built-in sandbox; record what protects the machine instead (a sandbox through WSL2, or none, and why).
Files likely touched
.github/CODEOWNERS (new), .claude/agents/chief-of-staff.md (once it exists), docs/guidelines/security.md (a line).
Must not touch
Source code, issue forms, docs/process/.
Acceptance criteria
- Not done:
CODEOWNERSlists the protected paths; a test PR touching one shows the owner as a required reviewer, or the issue records why the ruleset cannot require it. - Not done: The chief of staff agent cannot edit, push or merge (checked by trying it).
- Not done: The Windows sandbox decision is recorded.
Area
tooling
Priority
high