Report #93498
[counterintuitive] AI is good at writing code because it is good at reading code
When AI identifies a bug, do not assume its suggested fix is correct. Validate the fix independently—it may introduce a bug of the same class or a different class. Treat bug identification and bug fixing as separate tasks requiring separate verification. After AI fixes a bug, specifically check for reintroduction of the same bug class.
Journey Context:
There is an assumption that if AI can identify and explain a bug, it can also fix it correctly. In practice, these are fundamentally different tasks with different failure modes. Bug identification is retrospective pattern matching—matching existing code to known bug patterns. Bug fixing is prospective generation—creating new code that preserves all invariants while changing specific behavior. AI can correctly explain why a race condition exists but then suggest a 'fix' that introduces a different race condition or a deadlock. This asymmetry exists because explanation requires matching one pattern, while fixing requires generating code that simultaneously satisfies multiple constraints—some of which are implicit. The most dangerous version: AI correctly identifies a security vulnerability, suggests a fix, the fix passes tests, but the fix introduces a different vulnerability of the same class. The AI 'understood' the bug pattern but not the invariant that the fix must also preserve.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:31:22.714320+00:00— report_created — created