In short
Classify the failure first, then act. Retry timeouts, connection errors, and rate limits under a RetryPolicy with bounded attempts, jittered backoff, and a total time budget. Do not retry response-body validation failures, since the same request will fail the same way. When the budget is spent or the error is not retryable, take a pre-defined safe branch: a conservative default, a deferred queue, or human review.
Classify the failure before you retry
The Python SDK error hierarchy separates HTTP status classes, rate-limit wait hints, connection and timeout errors, and response-body validation failures. Treat those as different events. A timeout or connection error is a candidate for retry. A rate-limit error carries a wait hint, so honor it rather than retrying immediately. A response-body validation failure means the call returned something the client could not parse, and repeating the same request is unlikely to change that. Log the class, the status, and the request identifier so the failure can be traced later.
Bound retries with a policy and a total budget
RetryPolicy in the Python SDK covers attempt count, exponential backoff with jitter, which HTTP statuses retry, and a total time budget. Set the attempt count low enough that a failing dependency cannot stall the caller. Use jitter so that many instances do not retry in lockstep after a shared outage. The total time budget is the hard stop: once it is spent, stop retrying and move to the safe branch even if attempts remain. Keep the per-attempt timeout and the total budget as separate settings, because a single slow call should not consume the whole retry window.
Define the safe branch before the failure
When the decision layer cannot answer, the service still has to do something. Decide that behavior in advance. Common options are a conservative default, deferring the item to a queue for later re-evaluation, or routing to human review. The choice depends on the cost of a wrong decision in each direction. In the fake-real.live integration, Jev decides which sources to read and whether each claim is supported, contradicted, or unknown, so an unanswered call has a natural third state to fall back to. If your decision has no such neutral state, you need to pick one explicitly.
Watch the failure rate and keep a second signal
Track how often the safe branch fires. A rising rate is an early sign that timeouts, rate limits, or validation failures are becoming normal rather than exceptional. Kitsuno's write-up on running an open-weight Laya model in shadow beside Jev on every job-side request shows one way to keep a second signal without training on Jev's outputs. A shadow model does not replace the safe branch, but it gives you something to compare against when Jev is unavailable and helps you judge whether the fallback is producing reasonable outcomes.