Shadow Validation
detected 2026-03-02
trigger
"Zod schemas for every simple route. Hand-rolled validation for the critical route."
what it is
A good validation abstraction applied to the easy cases and skipped for the hard one. The most complex, highest-risk route retains hand-rolled validation that bypasses the new system's guarantees.
how to detect
After introducing a validation pattern: check whether the most complex route uses it. If the migration covered the simple routes and left the critical path untouched then shadow validation is operating.
instead
Start the migration with the most complex route, not the simplest.
refs
- wake:lib/api-schemas.ts vs wake:lib/bout-engine.ts
← all patterns