Skip to content
· 5 min read

Revocation: how to stop an agent mid-flight

Everything in this category talks about what an agent may spend. Very little talks about the two seconds after the user decides it should stop. That gap is where the product lives, and AI agent revocation is a harder engineering problem than the permission system, because the permission system can be wrong in a file and revocation has to be wrong in a network.

Three jobs people call one word


  • Stop. Nothing new starts. Every future request is denied. This is the easy one, and it is what most revoke buttons do.
  • Cancel what is in flight. Requests already submitted, awaiting a response, sitting in a queue or a retry loop. This is the one users actually mean when they say stop, and it is the one that requires the boundary to have a handle on in flight state.
  • Recall what already went out. A payment that has been authorised, or worse, settled. That is a refund, and it belongs to a different industry with different latency and different odds.

Most products implement the first, describe it as the second, and are silent about the third. A user who believes they got the second and got the first will stop trusting the button, and a user who believes they got the third will be right to be angry.

Why latency is the real product number


In Checkout.com's study across six markets, spend caps came first among consumer non negotiables and instant revocation came second, at twenty nine per cent. People do not care about the average latency of a purchase. They care about the worst case of a stop, and they feel it in the gap between pressing the button and knowing.


That number is the one I would publish if I had it, and I do not have it yet, so this article has a limit in it that I would rather state than hide. Our stop is designed and not shipped. Revocation latency is a number I have not measured, and I am not going to estimate it in a paragraph that reads like a product page. The closest verified thing I have is from the prototype, and it is about a different behaviour: an order came back as a request to confirm at 163 euro and it left at 137 after I intervened. One number from a prototype run, and it is labelled as one everywhere it appears.

The design answer: make revocation rare


The best revocation is the one that was never needed, and the way to get there is expiry. Every capability in my system is scoped and expires, and the expiry is set to the smallest value that lets the task complete, which is a rule I took from Google's payment protocol rather than invented. If every capability dies on its own, then the emergency stop is an exception rather than the normal control, and exceptions are where you can spend engineering effort.


That is also the honest answer to the security argument. A long lived credential held by an agent can be used right up to the moment someone notices. A short lived one can only be used inside a window that was already small. You still need revocation, and you should not pretend otherwise, but you have turned an unbounded problem into a bounded one.


One vendor makes the stronger claim in its documentation, that a single revocation invalidates every credential derived from that mandate immediately. That is a statement about their product and I am not measuring it. The design is the part I agree with, because the alternative is a system where you have to enumerate the things you are revoking, and enumeration is where revocation implementations fail.


The stop control is an interface problem before it is an engineering problem, and engineers tend to get this backwards because the engineering is the interesting part. A user who presses stop needs to know one thing in the first two seconds: is it stopped, or is it stopping. A spinner that resolves when the queue is drained is honest. A spinner that resolves when the request was cancelled is a lie that will be discovered later, at the worst possible moment, and it will cost more trust than the feature ever earned.


The second interface decision is what the screen shows afterwards. The list of things that were in flight, what happened to each of them, and, where relevant, that the money has already gone and this is now a refund rather than a cancellation. That last sentence is the one most products omit, and it is the one that converts an annoyed user into a user who can still be trusted with a wider boundary next month.

The four failure modes I design against


  • The retry that outlives the stop. An agent retries aggressively. A stop that denies new requests but does not cancel the queue will be undone by the retry loop, and the user will watch it happen.
  • The cached permission. A boundary read from a cache that has not been invalidated is the classic version of this. The decision reads the cache, so the cache is part of the boundary.
  • The partial stop. Revoking the mandate but not the task authorisations derived from it, or the other way round. If the derivation is explicit, the revocation is a graph walk, and it is testable.
  • The honest report. A stop that returns before it has finished has to say so, in the interface, in words. Otherwise the latency is invisible and the user assumes the worst case every time.

Visa's framing of its own agent credentials contains the constraint in one line: only the consumer can instruct the agent on what to do and when to activate a payment credential. Activation is in the consumer's hands. Deactivation should be in exactly the same hands, at the same speed, and that symmetry is the whole product requirement.


I am building this at Noesia, where it is designed and not yet measured. The expiry model is in least privilege for AI agents, the record that makes a stop reconstructable is in what an agent authorization record should contain, and the argument for limits rather than walls is in what it means to give an AI agent a budget. When I have a measured number I will publish it here, including if it is embarrassing. What an external audit taught me about my own limits is what a security audit taught me.

Building Know Computer, a personal context layer for the AI era. Reply via [email protected].

More

Notes