Skip to content
SprecherEast
Issue 694

process: Guardrails for agents: code owners and chief of staff limits

Back to our plan
Done
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 CODEOWNERS file that gives the owner AGENTS.md, CLAUDE.md, .claude/, .agents/, docs/guidelines/, docs/roles/, .github/ and CODEOWNERS itself. The repository is public, so check in the repository settings whether the main ruleset 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.md says.
  • Check that no ANTHROPIC_API_KEY is 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: CODEOWNERS lists 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

See it on GitHub, opens in a new tab