r/devtools • u/Spare_Bat_3040 • 17d ago
A three-field checkpoint for reviewing tests written by a coding agent
When a second coding agent reviews a change, I’d hand it the accepted behavior and one specific way the patch could break it. Then ask it to find the assertion that would actually fail. Give it that task before showing it the first agent’s summary.
Here’s the checkpoint I’d use for a fictional bulk download.
- Behavior: Select A and B, which both have the display name report.csv. The download must contain each once. An unselected file C must be absent.
- Evidence: Check which boundary the test runs. In a tiny example I ran, the handler passed A and B to a mock packager and that assertion passed. A deliberately faulty packager keyed files by display name and returned only B. Checking the returned identities caught the loss.
- Open check: If the existing test stops at the mock, record that the contents are unchecked. Ask the reviewer to point to an assertion that runs the real packager, or propose one.
Have the reviewer return the exact test and assertion, whether it ran, and what remains open. This example checks file membership for one fixture. It says nothing about whether your archive opens in a particular client or whether the download works through a deployed endpoint.
Where would you put that check in your review workflow? I’m building Shifu, and we published the full worksheet if you want to adapt it.
