have a line like ESCALATION_THRESHOLD = 0.90. Above it, the agent acts. Under it, a human will get pinged.
It’s easy. It’s tunable. It lets everybody really feel like autonomy is beneath management.
But it surely’s not the appropriate resolution.
The repair isn’t a greater quantity. The repair is noticing that the escalation threshold was by no means a proportion within the first place. It’s a worth.
Begin with the incorrect query
Most groups ask a functionality query. Can the agent write the SQL? Can it situation the refund? If sure, let it run.
However with the ability to do one thing and deciding to do it alone are completely different points. The second is absolutely in regards to the choice itself: What does a mistake price, and what does it price to contain a human as an alternative?
That’s the true selection. If the agent acts, you danger the price of a mistake. In case you escalate, you pay for a human’s time, whether or not the agent was proper or not.
Put numbers on it and the comparability is sort of embarrassingly easy. One assumption first: the human will get escalated tickets proper. We’ll chill out that later. For now, act alone when:
(1 - p) * cost_of_error < cost_of_escalation
the place p is the chance the agent is appropriate. Rearranged, escalate every time:
p < 1 - (cost_of_escalation / cost_of_error)
That worth on the appropriate is the true threshold. Discover what it is dependent upon. Not the mannequin. Not a coverage from a workshop. Only a ratio between two prices. If errors are low-cost, the edge is decrease and the agent can act extra usually. If errors are costly, the edge is increased, and even a assured agent ought to ask for assist.
A set cutoff assumes that ratio is identical for each choice the agent will ever face. That’s uncommon.
This strategy is predicated on Chow’s rejection rule from 1970, which is the inspiration of in the present day’s learning-to-defer analysis. Outdated concepts age properly once they’re proper.

Two tickets
The best strategy to present it: support-ticket triage. An agent reads incoming tickets and both resolves them or routes them to an individual. The numbers listed here are invented for the argument, however they cling collectively.
A routine refund request. Small quantity, clear coverage. If the agent botches it, the cleanup is a follow-up ticket and a goodwill credit score. Name it £15. Escalating burns about three minutes of a specialist’s time. Name that £4.
The edge comes out at 1 minus 4/15. About 0.73.
So if the agent is 90% assured, it ought to clearly act. Escalating would spend £4 to keep away from solely £1.50 of anticipated error. While you say it out loud, nobody would make that commerce, however a hard and fast cutoff does it routinely all day.
Now a doable account takeover. A buyer experiences a password change they didn’t make. If the agent treats this as routine, the draw back isn’t a credit score. It’s fraud loss, remediation, regulatory publicity, a buyer who by no means comes again. Put a conservative £2,000 on it. Escalation nonetheless prices £4.
The brand new threshold is 1 minus 4/2000, or 0.998. In follow, this implies you need to all the time escalate. At 90% confidence, letting the agent act alone dangers £200 in anticipated price, in comparison with simply £4 to escalate. It’s fifty instances cheaper handy it over.
Similar agent. Similar 90%. Reverse appropriate solutions. The 90% rule says act in each instances, and in the second it quietly burns £196 per ticket to avoid wasting somebody three minutes.

That commentary normally lands in dialog.
One sincere wrinkle. The instance assumes the agent is aware of which ticket it’s holding. In actual triage, that’s the uncertainty. If the agent is 90% positive a ticket is a routine refund, a part of the remaining 10% could possibly be a takeover in disguise. So weight the error price throughout what the ticket is likely to be, not what it most likely is. When unsure, worth it because the worst believable class. Low-cost-looking tickets are precisely the place costly errors conceal.
The catch
All of that arithmetic leans on one assumption. When the agent says 90%, it’s proper about 90% of the time.
That’s calibration, and it’s not the identical factor as confidence. Confidence is a quantity the mannequin emits. Calibration is whether or not the quantity means something.
Feed that into the rule and watch it break. If acknowledged 0.95 actually means 0.70, your anticipated error price is six instances what the arithmetic claims. The edge you priced so rigorously is fiction. You’re not managing danger anymore. You’re laundering it by a quantity that appears like a chance however isn’t one.

So earlier than any of this, examine the quantity. Log each choice with its acknowledged confidence. Bucket by confidence band, per choice class. Examine acknowledged towards realised accuracy in every bucket. If the agent says 90% and hits 78%, you’ve discovered your correction: map one to the opposite earlier than something touches the edge. Isotonic regression or Platt scaling will do the becoming.
Two particulars chunk right here. Brokers are sometimes worst calibrated on the uncommon, high-stakes class, exactly as a result of it’s uncommon. That’s the category carrying your excessive threshold, so a world common hides the failure that issues. And the map drifts as ticket combine shifts, so re-measure it on a schedule. The approach issues lower than the behavior. Till you’ve measured the hole, no threshold has earned your belief.
The rule in code
Right here it’s as a instructing toy. A couple of traces to make the construction seen, not one thing I’ve constructed or shipped.
def should_act_autonomously(stated_confidence: float,
cost_of_error: float,
cost_of_escalation: float,
calibrate) -> bool:
"""
Instructing toy: act alone or escalate, by anticipated price.
`calibrate` maps acknowledged confidence to a measured
chance of being appropriate, constructed from logged
choices and realised outcomes.
"""
p_correct = calibrate(stated_confidence)
expected_cost_of_acting = (1 - p_correct) * cost_of_error
expected_cost_of_asking = cost_of_escalation
return expected_cost_of_acting < expected_cost_of_asking
There’s nothing fancy contained in the perform. What actually issues is the way you select the three inputs. That’s the place your effort ought to go, moderately than arguing about whether or not the magic quantity ought to be 0.85 or 0.92.
The place the numbers get messy
Two elements make the inputs extra sophisticated.
Escalation price isn’t simply minutes instances wage. Escalations pile right into a queue, and queues congest. Worse, over-escalation trains reviewers to rubber-stamp. Ship somebody forty routine refunds an hour and inside every week they’ve stopped studying them. A human who approves every part isn’t a management. It’s a ritual. So the marginal escalation prices greater than it seems to be, and the hole widens with quantity.
And bear in mind the idea we parked earlier: the human will get it proper. Typically they don’t. Give the specialist an error charge h and the rule turns into act when (1 − p) × error price is lower than escalation price plus h × error price. Normally h is sufficiently small to disregard. On genuinely ambiguous tickets it isn’t, and it tilts the edge again in the direction of the agent. That surprises individuals.
Neither of those points modifications the general strategy; they simply have an effect on the numbers. That’s the advantage of utilizing a numerical methodology.
Doing this to your personal agent
The process is brief.
First, group the agent’s choices into lessons the place the price of a mistake is about the identical. For instance, put refunds in a single class and safety incidents in one other. In case you can’t estimate the price of a mistake for a category, it’s not prepared for autonomy but. The truth is, figuring this out is a helpful a part of the method.
Then worth every class. Speak to the individuals who clear up the mess, not simply the individuals who constructed the agent. Finance and help ops know these numbers higher than engineering does, and so they’re normally delighted somebody lastly requested.
Additionally, estimate the price of escalation, together with the consequences of congestion and rubber-stamping.
Use the corrected chance in your rule, not the uncooked rating.
Final step: derive the edge per class from the fee ratio, and let it transfer when prices transfer. A brand new fraud sample raises the value of a safety mistake, in order that threshold rises with it. No assembly required, as a result of it’s derived moderately than decreed.
Ultimately, your agent can have a number of thresholds, not only one. It’ll have extra autonomy the place errors are low-cost, and far much less the place errors are pricey. The mannequin and the comparability keep the identical.
And that’s the sincere reply to the query everybody begins with. “How assured ought to my agent be earlier than it acts alone?” can’t be answered, as a result of it’s underspecified. “What does a incorrect name price right here, and what does asking price?” can. Set the edge as a worth. The proportion types itself out.















