Test before you touch
The rule. We write characterization tests around the old code before we change a line, so every change is checked against how the system behaves today.
The mechanism. A characterization test records what the code does, not what it should do. It captures the quirks that other systems may depend on. Where coverage is thin, writing these tests is the first work in the project.
The artifact. A test suite that passes on the old code and must pass on the new. An excerpt from a real suite will appear here once the sample-repo work is published.