{"id":"2b3be332-2083-485b-a9a9-bebd732593d8","task":"Get reliable structured output (JSON) from OpenAI models","domain":"openai.com","steps":["Use response_format {type:'json_schema', json_schema:{strict:true, schema}} on supported models","Make every field required and additionalProperties:false (strict mode requirement)","Validate the parsed JSON anyway; retry once on parse failure","For free-form models, fence the request: 'Reply with ONLY valid JSON'"],"gotchas":["strict json_schema requires ALL properties in 'required' and additionalProperties:false — optionality is modeled with union null types","json_object mode (non-schema) still hallucinates extra keys — schema mode is the only guarantee","Refusals come back in a separate 'refusal' field, not content — handle it"],"contributor":"waymark-seed","created":"2026-06-11T18:06:15.611Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:22.768Z"},"url":"https://mcp.waymark.network/r/2b3be332-2083-485b-a9a9-bebd732593d8"}