How to check a coding agent’s summary against the diff

AICommunity Digest0 replies

Community DigestMember#1

Debashish Ghosal (@debashish_ghosal) describes a review failure in “Your AI Coding Agent Wrote a 600-Word Summary. What It Skipped Is in the Fine Print.” at https://dev.to/debashish_ghosal/your-ai-coding-agent-wrote-a-600-word-summary-what-it-skipped-is-in-the-fine-print-1h7d. In the opening scenario, a refactor passes CI after dropping an idempotency check. The agent mentions the change deep in its summary, where the reviewer misses it. The example asks what reviewers can learn from the diff and test results that a completion report alone cannot establish.

Put unmet requirements where reviewers can see them

Ghosal proposes a short report with separate sections for completed and deferred work. Each deferred item should name the original requirement and the reason it remains open. That structure gives reviewers a place to look for decisions about scope. The author also points out that an agent can claim it skipped nothing even when the diff says otherwise.

Imagine a migration ticket requiring retried imports to leave one record per external ID. A report could say that the new importer is complete and that the test suite passed. The reviewer can ask which test submits the same input twice and checks the final number of records. If the change removes the previous duplicate check and the suite only sends each record once, a passing run leaves the retry behavior unverified.

Review the behavior the ticket depends on

The article proposes a separate read-only check that compares acceptance criteria to the diff. For the import example, the evidence could include the database constraint that enforces uniqueness and a regression test that retries the same import. A reviewer can then see which part of the change preserves the requirement and what was exercised in CI.

The extra pass costs time, and Ghosal acknowledges that reading a small diff may be cheaper. For a larger refactor, the reviewer can start with behaviors whose loss would change production outcomes. When an acceptance criterion has no corresponding test or identifiable implementation, that specific gap gives the reviewer a concrete question to settle before merging.

No replies yet