Blast radius and reversibility is the right axis, and I would add one more: whether the change is verifiable before it is irreversible.
A migration that adds a nullable column and backfills in a second pass is reversible in practice. A migration that drops a column and rewrites the table in one step is not, even if the diff is three lines. The risk lives in the ordering, not the size.
My red list, roughly:
Anything that changes what data can leave the system. Permissions, tokens, exports, log payloads, third party destinations. An agent will add a debug log with a full request body and nobody reads 400 lines of logs.
Anything where the test is the thing being changed. If a PR edits the assertion and the implementation in the same commit, it needs a person. Not because agents are malicious, but because "make the test pass" is a valid local objective that produces a wrong global result.
Anything with a delayed failure mode. Cache TTLs, retry counts, pool sizes, cron schedules. These pass CI and fail three hours later under real concurrency, which is the one environment the agent never sees.
Safe to automate here: docs, copy, dependency patch bumps with a green suite, test-only additions, dead code the type checker proves, and small UI changes behind a flag.
One practice that made the manual list affordable: require the agent to state the rollback step and what it would observe to know the change went wrong. When it cannot fill that in, the change was not ready regardless of who approves it.Blast radius and reversibility is the right axis, and I would add one more that gets missed: whether the change is verifiable before it is irreversible.
A migration that only adds a nullable column and backfills in a second pass is reversible in practice. A migration that drops a column and rewrites a table in one step is not, even if the diff is three lines. The risk lives in the ordering, not the size.
My red list, roughly:
Anything that changes what data can leave the system. Permissions, tokens, exports, logging payloads, third party destinations. An agent will happily add a debug log with a full request body and a reviewer will not read 400 lines of logs.
Anything where the tests are the thing being changed. If a PR edits the assertion and the implementation in the same commit, it needs a person. Not because agents are malicious, but because "make the test pass" is a valid local objective that produces a wrong global result.
Anything with a delayed failure mode. Cache TTLs, retry counts, connection pool sizes, cron schedules. These pass CI and fail three hours later under real concurrency, which is the one environment the agent never sees.
Safe to automate here: docs, copy, dependency patch bumps with a green suite, test-only additions, dead code removal that the type checker proves, and small UI changes that sit behind a flag.
One practice that made the manual list affordable: require the agent to state, in the PR body, the rollback step and what it would observe to know the change went wrong. When it cannot fill that in, the change was not ready regardless of who approves it.