R46 Keep instruction files apart from other files in a change

Off by default

Superseded by R280 Keep instruction files apart from other files in a change, and the migration to compiled instructions whole.

Change instruction files in a change of their own, never together with changes to other files.

Reason

A single change that both altered the instructions binding agents and did work they govern would let an agent rewrite the provisions that bind it and so get around them (Art. X §4).

Verification

Instruction files are the files that direct or constrain agents:

  • AGENTS.md in any directory, and the file an agent tool reads in its place there, for example CLAUDE.md;
  • everything under .agents/skills/ and under the skill directories of agent tools, for example .claude/skills/;
  • subagent definitions and slash commands of agent tools, for example everything under .claude/agents/ and .claude/commands/;
  • the hooks and permission settings of agent tools, for example .claude/settings.json, .claude/settings.local.json, .claude/hooks/ and everything under .codex/;
  • the sources that instructions are compiled or generated from, such as the sources of the constitution and of the rules;
  • any other path that a repository declares as instructions in its own AGENTS.md.

CI configuration, git commit hook configuration and tool code are not instruction files. A generated file goes with the side that changed it (rule 47).

A change (a pull request) whose changed files include both instruction files and other files does not comply (Art. X §4); a rename counts as removing the old path and adding the new one. The agent splits it in two (rule 48). The rule holds whether or not the repository has a check for it (rule 49); where it has none, review enforces it.

When unsure whether a file is an instruction file, treat it as one.

Violated when the changed files of a change include both instruction files and other files.

Provisions of the constitution it cites

Relations

Parent
R275 Instruction Changes
Requires
none
Conflicts with
none

Metadata

ID
46
Revision
6
Kind
rule
Status
superseded
Slug
instruction-files-apart
Default level
project
Constitution revisions
>=1
Check
builtin
Default
off
Uses
Instructions instructions, Review review
Original language
English en
Translations
Chinese zh