The 5 percent that ruins the system
Ask a capable model for JSON, give it a schema, add an example, and it will comply most of the time. Most of the time is the problem.
Suppose 5 percent of responses fail to parse. On a demo that is invisible. In a pipeline where the output feeds a function call, it means one request in twenty enters an error path.
The usual patch is a retry loop, and the arithmetic looks reassuring until you read the right statistic. Retrying up to three times drops the total failure rate to about one in eight thousand. Expected calls per success rise only to 1.053, so average cost barely moves.
But latency percentiles move enormously. Ninety-five percent of requests are served in one call, which means the 95th percentile request takes two calls. The p95 latency of your endpoint just doubled, and it doubled because of a formatting problem rather than anything about the task.
And retries are not free of side effects when the call has already invoked a tool.

