I do not read every line of the code my coding agent writes. It produces most of the diffs for the mobile apps our small team maintains, faster than I can review them carefully. I needed a way to catch mistakes in code I hadn't read.
I now require automated checks before a change counts as done, with standing instructions that the agent must never weaken them. Getting those checks to fail for the right reasons took more work than I expected. So did deciding which changes needed the full process.
Each check has to be a command with an exit code. I ask for its output before accepting the result.
Check why the test failed
For changes to logic, I start with a failing test. A bug fix needs a regression test that fails before the fix and passes after it. Otherwise, I have no evidence that the test covers the bug.…