Commit c97e1b0
fix: remove confidence from rawWriteInterpretationSchema to fix OpenAI structured output 400
z.record() produces additionalProperties in JSON Schema, which OpenAI's structured
outputs rejects — it requires every key in required to appear in properties.
Confidence was never populated by the LLM in practice; unresolvedFields handles
ambiguity instead. Remove confidence from the raw schema, default it to {} in
the normalizer, and default the ?? lookup to 1 (fully trusted) so existing
commit-policy thresholds are unaffected.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9ede728 commit c97e1b0
3 files changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
1069 | | - | |
1070 | 1069 | | |
1071 | 1070 | | |
1072 | 1071 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
0 commit comments