Scope a PR to One Clean Revert

Rule

Scope a PR to what one reviewer can hold in their head and what one revert can cleanly undo. Branches are still named by intent: feat/<slug>, fix/<slug>, chore/<slug>, doc/<slug>, clean/<slug>.

Batch freely when the changes share a surface, a subsystem, or a reason to exist. Split when — and only when — a split buys something specific:

If none of those apply, bundling is correct. Superseded 2026-08-25: the previous rule mandated one concern per PR unconditionally. It was withdrawn as impractical — see Why.

Why

The original rule optimized one variable — reviewability — and ignored what it cost. In this codebase every PR pays for a serialized, contended, expensive gate: a single local-CI slot, a lease other sessions queue behind, and a full cloud run. Splitting an N-part change into N PRs multiplies that cost by N, and each run is an independent chance to hit contention, flake, or an expired record.

That cost is not theoretical. One two-file docs-and-fix effort in August 2026 took seven gate attempts across two PRs — a peer’s hand-run build holding the shared runner, a wait that blocked on already-dead PIDs, a gate that passed and then expired before it could be spent, a contended slot released with no reason, a CI checkout that hung for five minutes, and an unrelated route timing out in the UX sweep. None of the seven was a finding against the code. Splitting further would have bought more of them.

The genuine value of the old rule survives, and it is narrower than “one concern”: you want a diff a reviewer can attribute, and a revert that does not force a choice. Those are properties of a PR, not a count of concerns. A five-file change across one subsystem usually has them. Two unrelated changes to two subsystems usually do not.

Reviewers should reject a PR they cannot attribute or cleanly revert — not one that merely does more than one thing.

Applies To

In-platform coworkers, external coding agents, and humans. Symmetric. Applies to every branch and every PR. A prerequisite refactor still lands with the feature it unblocks and gets called out in the PR description’s “Refactor budget retired” section.

How To Apply

Before opening, ask the two questions that matter: can a reviewer tell which lines did which job? and would a revert force a choice I do not want to make? If both answers are good, open one PR. If either is bad, split along the line that fixes it — usually risk, or subsystem, not “concern”.

When the operator asks for related work in one PR, that is a legitimate instruction, not a rule violation. Say what is bundled and why in the description so the reviewer starts oriented.

Decision Dimensions

Examples

Sources

(Rendered from the sources: frontmatter by WikiSourceCitations.)