The fact that an LLM output can be parsed by JSON.parse does not mean a product can use it normally. We see these production practices filling the critical gap between “correctly formatted” and “business-ready.”

What this is

This approach is called an output contract: first validate the model’s returned data against a JSON Schema, a set of rules that describes the result format through fields, types, and required properties. If the structure fails validation, convert the errors into natural-language feedback and send them back to the model so it can generate a response again. If that retry also fails, explicitly mark the result as a degraded output rather than passing anomalous data off as a normal result.

The key principle is not that stricter is always better, but that only critical fields should be required while allowing the model to output additional fields. A contract should also match the actual return structure of each module; otherwise, a uniform set of rules may trigger widespread false rejections. The validator should collect and organize all errors in one pass, avoiding repeated retries that fix only the first issue.

Industry view

We believe this is closer to the real engineering problem than continuing to stack prompts. LLM outputs fluctuate, and enterprise systems need to distinguish clearly between “successful,” “degraded,” and “failed,” while preserving evidence for troubleshooting. In financial reporting, customer service, or operations systems in particular, silently accepting a result that lacks a critical field may carry far greater risk than one retry.

But the risks are equally clear: feeding errors back to the model increases call volume, latency, and inference costs; overly strict rules can reject otherwise usable results; and output patterns vary across models and tasks, so contracts require continuous maintenance. Output contracts provide structural reliability, but they do not guarantee that content is truthful, logically sound, or valuable. They must still work alongside business rules and human review.

Impact on regular people

For enterprise IT: When integrating LLMs, teams need to make field validation, failure feedback, fallbacks, and logging part of standard workflows, rather than merely checking whether an API returns JSON.

For workplace professionals: People who rely on AI-generated reports or spreadsheets will encounter fewer blanks, misalignments, and anomalous values. They should still check sources and key figures, rather than treating “schema-compliant” as “credible.”

For the consumer market: The stability of AI features will increasingly depend on backend quality controls. Users may never see the validation code, but they will clearly feel whether results are complete, whether failures are transparent, and whether the service provides warnings when something goes wrong.