TL;DR: It depends on which of three kinds of failure it is, and each has an owner. Transient failures on idempotent calls are the harness's: it retries with backoff, jitter and a budget, and the model never hears about it. Failures the model caused and can fix come back as a structured observation saying what was wrong and whether retrying with different input can work. Failures nobody in the run can fix end the run or escalate. A write whose outcome is unknown is retried only with its idempotency key, or not at all.
How to approach it
Split the question in two, because interviewers are testing whether you see that "what to return" and "who retries" have different answers for different failures. Ask whether the tool reads or writes, and whether writes carry idempotency keys, since that decides whether a retry is safe at all.
A strong answer
Classify first, then assign an owner:
| Failure | Example | Owner | What the model sees |
|---|---|---|---|
| Transient, call is idempotent | 503 from the order service on orders_get | Dispatcher retries, up to 3 times, with jittered backoff | Nothing, unless retries run out |
| Transient, call is a write | Timeout on payments_refund | Dispatcher retries only with the same idempotency key | Nothing if the key dedupes; otherwise an "outcome unknown" result and reconciliation |
| Correctable | book_meeting with a time in the past | The model | invalid_argument, the field, what valid looks like, retryable: true |
| Precondition | orders_cancel on a shipped order | The model, by choosing another path | precondition_failed, and which tool to use instead |
| Terminal | Dependency down past its retry budget; policy refusal | The harness: stop, escalate or degrade | The reason, retryable: false |
The observation format for the cases the model sees:
{
"error": "invalid_argument",
"field": "start_time",
"message": "start_time must be in the future; now is 2026-11-23T10:05+05:30",
"retryable": true
}
Why the harness, not the model, owns transient retries: each model retry costs a full turn over a growing context, lets the model change arguments it should not change, and leaves noise in the history. Code does it better, faster and within a budget.
Why the model owns correctable failures: only it knows what it was trying to do. The harness's job is to tell it precisely what was wrong, including any fact it lacked (the current time, the valid range), so it can correct itself in one turn.
Why writes are special: a timeout on a write means the effect may have happened. Retrying without the same intent-derived idempotency key risks doing it twice; the safe default is to retry with the key or, without one, to check the downstream system before anything else.
What interviewers probe next
"Why not let the model see every error and decide?" It decides badly about transient errors (it either gives up or improvises) and pays a full turn to do it. It decides well about its own mistakes when told what they were.
"What stops a model from retrying a correctable error forever?" The retryable flag, a per-tool consecutive-failure limit in the harness, and the run's step budget. After a few failures the harness opens the tool's circuit for the run.
"What does the user see when a terminal failure ends the run?" A partial answer that says what could not be done and why ("the order system is unavailable; I could not confirm the refund"), never an invented success.
What if?
What if · interview follow-ups
Hold your answer as the constraints change
Your dispatcher retries every tool failure three times, then passes the last error string to the model.
Start here
What if one of the tools is payments_refund?
What does a timeout tell you about the refund?
A timeout does not mean the refund failed, so three blind retries can issue up to four refunds. Retry writes only with an idempotency key derived from the intent, or check the payment system before any retry.
Carry it forwardA retry is only safe if repeating the call is harmless.
Weak answerLowering the retry count for writes and calling it fixed.
Constraint changes
What if the failure is 'unknown order id'?
Can retrying the same call ever succeed?
No. Retrying a correctable error wastes three calls and delays the useful response. Return it to the model at once with what to do ('ask the customer for the order number, formatted ord_ plus six digits').
Carry it forwardRetry only what time can fix.
Weak answerRetrying everything because classification seems like extra work.
Constraint changes
What if the order service is down for twenty minutes during peak?
Think about every run at once, not one.
Per-run retries multiply into a storm against a service that is already struggling. A fleet-wide circuit breaker should fail fast for that dependency, the runs should degrade honestly, and an alert should fire.
Carry it forwardRetry budgets are a fleet property as well as a per-call one.
Weak answerRaising the retry count to ride out the outage.
Now defend it
State the policy in one line.
The harness retries transient failures on idempotent calls within a budget, the model fixes its own mistakes from precise observations, writes with unknown outcomes are retried only by key or reconciled, and terminal failures end the run honestly.
How it's scored
Weak: Returns raw error strings or stack traces to the model, and either retries everything or nothing.
Hire: Separates transient from correctable errors, retries the transient ones in the dispatcher with backoff, and returns structured observations with a retryable flag.
Strong Hire: Assigns an owner per failure class, treats write timeouts as unknown outcomes handled by idempotency keys or reconciliation, bounds retries per call, per run and across the fleet, and makes terminal failures end the run with an honest partial result.
Common mistakes
- Treating "error" as one category with one handling rule.
- Retrying a timed-out write as if a timeout meant it failed.
- Leaving out the fact the model needed (the current date, the valid range), so the observation is accurate and useless.
- Letting the model own transient retries, then wondering why runs are slow and expensive during incidents.