← All questionsToo earlyCode review and quality
How do we verify AI-generated code before we sign it off?
You are not the only one. Asked 8 times since June 2026, 3 of them in the last 4 weeks.
Times asked per week
9 Sept – 1 Dec
Week of 9 SeptTimes asked0Week of 16 SeptTimes asked01Week of 23 SeptTimes asked11Week of 30 SeptTimes asked1Week of 7 OctTimes asked01Week of 14 OctTimes asked1Week of 21 OctTimes asked0Week of 28 OctTimes asked0Week of 4 NovTimes asked0Week of 11 NovTimes asked01Week of 18 NovTimes asked12Week of 25 NovTimes asked2
Week of 9 SeptWeek of 25 Nov
Coloured columns are the last 4 weeks.
What people answer
- One saysWrite the expected behavior, including edge cases like a missing versus zero value, as acceptance criteria before the agent implements, so reviewers check against a spec rather than reconstructing intent.
- One saysPassing builds and CI are not enough; confirm the stated claim matches what the code actually proves, and keep the human-readable surface (the spec or statement) small enough to read.
- One saysUse deterministic checks rather than another model to judge the agent: scan for tampering, keep the public API intact, run for regressions, and require new tests that fail before the fix.
- One saysMeasure the gate in both directions, counting correct fixes it wrongly rejects as well as unverifiable claims it catches, since repeated rejection is not proof that the gate is right.
- One saysPlace human review checkpoints early, such as plan review before edits, with a separate verifier checking the pull request against the spec and people handling key approvals.
Claude Code Plan ModeAWS Kiro SpecsGitHub Spec KitOpenAI CodexGeekyAnts AntFlow AILean and Mathlib
A language model summarised 3 public replies and posts. They mostly agree. These are other people's views, not advice from Navigara.
What people asked
Each line is our one-sentence summary. The link opens the original discussion.
- How can you measure the false-rejection rate of an automated gate that rejects AI agent pull requests, not just the ones it correctly catches?Open thread →
- How can you verify a very large machine-checked Lean proof without reading all of its code, by checking the formal specification instead?Open thread →
- How should reviewers check AI-generated code against a written spec, and at which point in the development workflow should that review happen?Open thread →
Where it is asked
- dev.to3
- A private community3
- Hacker News2
Private messages are counted, never shown. That is why you can read 5 of them.