docs: add critical patterns learned from ATB-12 PR review cycles
Elevates lessons from ATB-12 (two review cycles) to shared team knowledge.
Added to "TypeScript / Hono Gotchas":
- Type guards for API endpoint parameters (prevent runtime crashes)
- JSON parsing safety pattern (malformed JSON → 400, not 500)
Added to "Testing Standards":
- Pre-review checklist (run before requesting review)
- Dependencies verification (runtime imports must be in dependencies)
- Error test coverage requirements (write during implementation, not after review)
Added to "Error Handling Standards":
- Error classification testing patterns with examples
- Test cases for 400/404/503/500 status codes
- Emphasis on testing user-facing error messages, not just catching
Why these matter:
- Type guards prevent TypeError crashes from missing/wrong-type fields
- Pre-review checklist prevents two-cycle review pattern (implement → review → fix → review)
- Error classification tests verify user experience (actionable feedback), not just error handling
These patterns caught 5 critical issues in ATB-12 review that would have caused:
- Production crashes (TypeError from missing type guards)
- Deployment failures (drizzle-orm in devDependencies)
- Poor UX (network errors returning 500 instead of 503)