Appearance
0015: Move a file in the same pull request as the files that name it
Status: accepted
Date: 2026-12-05
PR: #36
Context
The mixed-effect rule of the risk scan counts a file that moves with no change as none. So a pull request that moves files and also changes other files must split. docs-check needs each file that names a moved file to change in the same pull request, or a link breaks. When both checks block a merge, a move of an instruction file cannot pass both. Decision 0014 moved the agent instructions, and it was the first change to meet this conflict.
Options considered
docs-checkchecks a whole stack: the result of each pull request would depend on other pull requests.- A trailer says that the next pull request of a split closes the gaps: a person could waive a gap by hand.
Decision
The mixed-effect rule skips a file that moves with no change to its content. It skips the move only when the file is not on a Surface that ships: code, config, deps, schema or contract. The risk scan still scores the moved file, and the changes around it count as usual.
Consequences
A move of instruction, build, test or docs files lands in one pull request with the updates to the files that name it. That pull request can pass the risk scan and docs-check when both block a merge. A move of a file that ships still splits from other changes, so a rename cannot hide a fix.