How it works
Agents call a single proxy, and the proxy calls the providers. From that seat it can send a request on, write a log line, and refuse a call that would break a limit such as a per-team token cap or a rate limit. Teams do not hold provider keys, so the cap has a single home. The log carries a request id, the model, token counts, latency, and whether the limit refused the call.
A gateway can host a routing policy and a fallback list. Those stay separate decisions. The gateway is the proxy, not a catalogue of vendor features: it sits in front, routes, logs and enforces a limit. Direct calls skip the cap and the log. A refusal mid-task with no reply to the person is a limit that dropped the task. The log should name which limit fired.
A worked example
A proxy, a token cap, and a log line
Example, not a measured result.
Internal platform at a bank. Product agents call a single proxy.
The proxy holds the provider keys. Agents do not.
Each call is logged with request id, model, token counts, latency, and allow or refuse.
A per-team token cap is the limit in this example: 2 million tokens a day.
At 1.9 million the next call is still allowed.
The call that would pass 2 million is refused, and the log says refused, cap.
The agent tells the person the task cannot continue, rather than hanging.
A direct provider call skips both the cap and the log.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- Some agents still hold a provider key and call the model directly. The cap never sees those tokens, the log is partial, and a review of the proxy understates both spend and failures.
- The limit refuses the call in the middle of a task and the agent has no behaviour for that refusal. The person gets silence. The proxy did enforce a limit, and the task died without a trace the team reads as a refusal.
- The gateway is treated as proof of a long feature list: caching, safety filters, evals, routing, fallbacks. The only things in place are a log and a cap. Decisions that were never configured get credited to the proxy anyway.
How to measure it
Reconcile token counts and refused calls on the proxy with the calls the agents claim to have made. A gap is direct traffic. Break refusals down by limit, so a rate limit and a spend cap are not one undifferentiated error.
Join the request id to the conversation and read what the person got when a call was refused. Count tasks that stop on a refusal with no reply. Cost per task on the proxied traffic is the spend figure, not the provider invoice alone.
Further reading
How Abracadabra helps
After a change to what the proxy routes or caps, compare task success for that task and cohort with the previous period, and open the conversations behind a drop in that rate.
Experimentation, canary releases and guarded rollouts are in early access. Today, compare task success before and after a change on the same task and cohort, and open the conversations behind a drop.
Request access to read this on your own agent.