Skip to main content

Overnight your refund agent approved 340 refunds that it should have rejected, worth about ₹6 lakh, before someone noticed in the morning. After it is switched off, how do you decide when and how it may run again?

Agents and tools · Pro 2

Short answer

It returns only when we can explain the failure and a repeat would be caught in minutes, not hours. I would find the cause from traces, add the failed cases to the eval set, and add limits in code: caps per refund and per hour, anomaly alerts and an automatic stop. Then restart in stages, with human approval first.

Deeper answer

Two things failed: the agent made wrong decisions, and nothing stopped it for a whole night. The second is the more serious design gap. An agent that moves money needs limits that do not depend on the model behaving well: a maximum amount per action, a rate and total budget per hour, and a circuit breaker that halts it and pages a person when approvals rise far above the normal rate.

For the restart, use stages with exit criteria agreed with the business owner. First, replay the 340 cases and confirm the fixed agent rejects them. Second, run with human approval for every refund for a week. Third, auto-approve only small refunds, such as under ₹500, and widen as the error rate stays low. Also handle the past: finance decides on recovery, and affected customers are treated fairly. Interviewers listen for hard limits in code, staged autonomy, measurable exit criteria, and shared ownership of the decision.

What a strong answer covers

Answer it out loud in the mock interview about 3 min

Follow-ups to expect

Common mistakes

Learn it

Loop limits, budgets and kill switches

Practice Agents and tools questions

More on this topic

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.