// blog · tag
Posts tagged “json-schema”
All CommitBrief blog posts tagged “json-schema”.
2 posts ·all posts
When the model won't return valid JSON: a recovery ladder, not a blind retry.
Prompt-only models break the JSON contract in three predictable ways — fenced JSON, prose, and truncation. How CommitBrief v1.13.0 recovers each one with fence salvage, a failure-mode-specific repair prompt, and a graceful degrade.
How a single JSON schema survives four very different LLM providers.
Anthropic tools mode, OpenAI strict response_format, Gemini ResponseSchema, Ollama format:json — four mechanisms, one contract. How CommitBrief's findings schema v1 stays stable across them, and the retry-once-then-degrade fallback for when it doesn't.