How to distinguish model reply errors from integration errors
Label the stage where an operation failed. A valid model reply can still be rejected by your application, and a failed application update can occur after the model has already been billed.
Example
A response contains valid JSON, but the work item cannot update because a required internal reference is missing. Switching models would leave that integration problem in place.
What to do
- Record separate outcomes for the provider call, response parsing, validation and downstream action.
- Keep a sanitized example for each failing stage. Use retained metadata to reconcile usage without copying full model output into logs.
- Give each stage its own retry or review rule. Retry the downstream operation only when the model result can safely be reused.
How to verify
A simulated validation error and a simulated downstream update error produce different classifications and the correct follow-up action.
Limits
A single provider status message can be ambiguous. Use the response contract and workflow event records together.