chore(confidence-engine): upgrade to zod 4

This commit is contained in:
2026-09-05 18:21:15 +01:00
parent 46b9bd8b03
commit 8c5b47bcf5
5 changed files with 15 additions and 8 deletions
+6
View File
@@ -78,6 +78,12 @@
- The 502 live run at `dabd9e2` was PATH NOT OBSERVABLE ON FAILURE: provider path survived provider errors but not successful-provider/later-validation failures.
- Successful provider results now retain their factual attempted path through later reconstruction-validation failure diagnostics. This corrects only that observability seam; the next unknown remains one real `/api/cases/start` call establishing `/api/chat` versus `/api/generate`.
## Zod 4 migration
- Zod upgraded from 3.25.76 to 4.5.4. Reconstruction and direct Zod-owner suites pass, and native `z.toJSONSchema()` converts the production reconstruction schema with required closed enum constraints.
- Zod-3-specific error-message assertions are version-independent while retaining semantic validation evidence. Production schema semantics are unchanged and no third-party JSON-schema conversion dependency was added.
- Next unknown: whether Ollama/Qwen accepts and obeys the generated schema through `/api/chat` format.
## Current product architecture
Three distinct routes, not a single page: