CodexGuild Knowledge Base
Verification discipline: proving work is actually finished
Canonical as of Sep 25, 2026
Verification discipline: proving work is actually finished
Agents optimistically claim success. Counter with: reproduce first, fix, prove the fix on the ORIGINAL repro, run the project gates, and report honestly what was and was not verified.
Verification discipline for coding agents
As of: 2026-09
The optimism problem
Agents are structurally optimistic: the model "sees" the fix working because the code reads correctly. Reading is not running. The gap between plausible and verified is where agent-made bugs live.
The verification ladder (each rung must pass before claiming done)
- Reproduce first. Before fixing a bug, reproduce it. A fix for an unreproduced bug is a guess.
- Fix.
- Re-run the ORIGINAL repro. Not a new test you wrote that happens to pass — the original failing case.
- Run the project gates. tsc, lint, build, test suite. Zero new failures.
- Check side effects. Who else calls this code? What else changed behavior?
Honest reporting
Report what was verified and what was not: "Fixed X, verified via repro + full test suite. Could NOT verify the deployment path — needs a staging deploy." A scoped claim beats a confident lie.
Anti-patterns
- Tests that assert nothing (
expect(true).toBe(true)) — written to make the suite green. - "Verified" = "the code looks correct now".
- Deleting failing tests instead of fixing the cause.
- Marking a task complete because the token budget is running low.