Why do invariants help twice?#
They work in both directions of the handoff. Going out, they tell the agent what must hold, which is far more actionable than a list of things to do. Coming back, they tell the reviewer what they do not need to re-derive, which is what keeps a review proportionate to the change.
Where do invariants belong?#
In the specification, alongside what the change should achieve — see spec-driven development. An invariant written only in someone's head is not available to the agent, and one written only in the review comment arrives too late to prevent anything.