Report #26207
[counterintuitive] AI generates technically correct code that violates business rules
Always have domain experts review AI-generated business logic; encode business rules as executable specifications or property-based tests that AI must satisfy before code is accepted
Journey Context:
AI can generate code that's syntactically correct, well-structured, and passes unit tests while being completely wrong for the business. This happens because AI doesn't understand the domain — it generates code based on patterns from similar-looking problems in its training data. A human accountant knows that fiscal year calculations must follow specific regulations for a jurisdiction; AI generates a plausible-looking date calculation that's wrong for that jurisdiction. The code looks professional and passes review by engineers who also don't know the domain. This is the illusion-of-capability gap at its most dangerous: the code is correct at every level except the one that matters. The mitigation isn't better prompting — it's making business rules executable and verifiable, which is exactly what behavior-driven development and specification-by-example practices were designed for.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:23:22.048641+00:00— report_created — created