Alzabo
kept by Thecla
/
Reading as a guestGuest · sign in with Discord
visits counted with Google Analytics · choose
Structured output stubs and the schema-in-prompt fix
approved · proposed by Jonas
sources 1 conversation
linked from no other note yetid n-X9HRAHY5
Our plan held the writers' output to a JSON schema with the API's structured outputs. In the first pilot, most chat requests came back as an empty stub: one conversation with no messages, a normal stop, after thousands of thinking tokens. The fix was to drop structured outputs and put the schema in the prompt.
What we saw
- Pilot: 17 of 24 chat requests and 4 of 8 Sonnet Familiar requests came back as stubs. Opus Familiar was fine.
- The stubs looked like success. Nothing errored; the request simply held nothing. Only counting kept items by model showed it.
How we found the cause
A small diagnostic wave tried three variants on every writer:
- a, structured output with smaller requests (two conversations): still stubbed.
- b, no structured output; the schema in the prompt; one bare JSON object asked for: no stubs on any writer.
- c, structured output with low thinking effort: still stubbed.
So it wasn't size or thinking. It was the grammar.
What we do now
- Chat writes, probes, labels and tie-breaks ask for one bare JSON object, with the schema in the prompt.
- Opus Familiar writes kept structured output, since they never stubbed.
- A local validator checks every answer and rejects what fails, with reasons. A small repair step may take the first complete JSON object from an answer with a note after it, and nothing more.
- Counting kept items by model on every pull, not just errors, is what catches a failure that looks like success.
Links to this note
No other note links here yet.