Approvals that bind — study guide
The concept's fragments, read in order.
For your capstone Run a coding agent you don't have to trust
Your approval is the one input the agent cannot produce, so the controller treats it as a key cut for one lock: bound by a fingerprint to exactly the preview you saw, spent once, and checked against the world again right before the merge it allows. Beneath every setting sits a floor: no click of yours turns a failed required check into a pass.
Say the controller asks you to approve merging task T-52 into main at head 4e1a09, with all three required checks passed, and you approve at 17:40. Immediately before merging it reads the head again and finds b2d7f3: another change landed in between. Your approval is stale, not spent on a world you never saw, and a new decision showing the new head appears in your queue. Approve that one and it merges by compare-and-swap and is marked spent.
An approval is a key; cut it for one lock
A person's approval is the one input an agent cannot produce for itself, which makes it a prime target to stretch, reuse or fake. The basics of putting a person in the loop are a subject of their own: a checkpoint that shows the exact tool call and waits, and an agent's change taking the same road as yours, through a pull request, the checks and a person's review. This concept is about what happens to an approval after the click: what it covers, how long it lasts, and what it can never do. The controller, the program that starts the agent, holds the credentials, runs the checks and performs every effect, is the part that holds and spends approvals, so every rule here is code in the controller, out of the agent's reach.
There are five rules. An approval covers exactly what the person was shown, pinned by a fingerprint of that content. It is used at most once and never passed along to another action. Every precondition is read again immediately before the effect, so an approval that went stale in the meantime is refused. Approving never runs the model again; it spends the result the person actually saw. And some controls sit below every setting, so no approval, autonomy level or risk label can lower them. In particular, no approval turns a failed or missing required check into a pass.
None of this means asking for more approvals. A pipeline where a person approves each change and small releases then ship on passing checks is a good design. The point is that each approval you do ask for means exactly one thing. The rules apply to any agent that needs a person's sign-off, whether it writes code, sends messages or moves money. They also have a limit worth stating up front: binding makes an approval precise, not the person careful, and someone with full access to the controller can still override it.
A fingerprint of what you saw
"Approve" means nothing until you can say approve what. So the controller binds each approval to things that cannot change underneath it: the stored result the person reviewed, the revision that result was about, and a hash of the preview the person was shown. In one real system the preview hash covers the options offered, each effect plan and every value the decision depends on. An approval bound this way works like a signature on a check with the amount and payee already written in, rather than a signed blank check that whoever holds it can fill in later.
A hash is a short fingerprint of exact content. A hash function such as SHA-256 reads any amount of data and produces a fixed-length result, 256 bits, usually written as 64 hexadecimal characters. The same input always gives the same fingerprint. Change a single character and the new fingerprint looks unrelated to the old one. Two different inputs can in principle share a fingerprint, since there are endlessly many inputs and a fixed number of fingerprints, but the function is designed so that finding such a pair is computationally infeasible. For one job, that makes keeping the fingerprint as good as keeping the content: telling whether what you are about to act on is what the person saw.
When the person answers, the controller computes the fingerprint of the current preview again. If it matches the one the person approved, the approval stands. If anything changed in between (the agent revised its plan, an option was added, a value moved), the fingerprints differ and the approval is stale: it does not apply to the new content, and a new decision is raised instead. Remote electronic payments in the EU already work this way. Under the EU's strong customer authentication rules, "dynamic linking" requires that the payer is shown the amount and the payee, that the authentication code corresponds to those details, and that a change to either makes the code invalid.
The fingerprint proves the content matched. It cannot prove the preview showed everything that mattered, so what goes into the hash is a design decision: every value the decision depends on, or the approval quietly covers less than it seems to.
Used once, never passed along
An approval is consumed at most once. When the controller acts on it, it records the approval as spent, and any second attempt to use it is refused. It is also never transferred. An approval for one action does not cover a similar action, the same action on a newer revision, or a second attempt after the first one failed; each of those is a new decision, put in front of the person again. An approval works like a ticket that the gate marks as used the moment it is scanned, so it cannot let a second person in, or the same person in twice.
The reason is that a reusable approval is a standing permission in disguise. Once "yes to this" can be presented again, it has become "yes to things like this", which is the general direction a checkpoint is never supposed to approve. Web authorization has the same rule. OAuth 2.0 (RFC 6749) says a client must not use an authorization code more than once, and an authorization server that sees a code presented a second time must deny the request and should, where it can, revoke any tokens already issued from that code. The second use is treated as a sign that something has gone wrong, not as a convenience.
Single use is not the same as never retrying. If the controller's call to perform the approved effect times out, it does not know whether the effect happened, and finding out is a matter of reading the target and making the step safe to repeat, which belongs to the design of retries and recovery. That is still the one approved effect. What single use forbids is spending the approval on a second, different effect: another merge, another payment, another message, however close it looks to the first.
Read it again just before acting
Between an approval and its effect there is a gap, sometimes seconds, sometimes a day. The world keeps moving in it: another change lands on the target branch, someone edits a policy, the run is retried as a new attempt. An approval checked at the moment of the click and acted on afterwards has the shape of a well-known weakness, time-of-check to time-of-use (TOCTOU). MITRE's CWE-367 describes it as a program checking a resource's state, the state changing before the program uses the resource, and the check's result becoming invalid.
So answering a decision does not trigger the effect directly. It records an effect intent together with its preconditions, the values the person's decision assumed: the branch head they saw, the policy in force, the attempt they were approving. Immediately before the effect, the controller reads every one of those preconditions again. If they all still hold, it proceeds. If any differs, the intent is invalidated and a new decision is raised, so the person sees the new situation instead of having their old answer applied to it. It works like a surgical team pausing just before the first incision to confirm the patient and the site once more, even though both were checked at admission.
Rechecking shrinks the gap without closing it, because something can still change between the recheck and the write; CWE-367 itself notes that minimizing the time between check and use reduces the risk but does not remove the race. Where the target supports it, make the write itself conditional, a compare-and-swap that says "set this to the new value only if it still holds the value I expect". HTTP does this with If-Match and an ETag: if the resource has changed, the server must not apply the update and answers 412 Precondition Failed. git does it with git update-ref, given the expected old value, and with git push --force-with-lease. Either way the target refuses a write based on a stale view instead of silently overwriting what changed.
Approving must not run the model again
Field recordIn one real system, approving a step that was waiting on its budget re-ran the reviewing agent instead of using the result it had already produced. In one test run the same pull request was reviewed three times, using about 138,000, 144,000 and 154,000 input tokens, together about 436,000 (138,000 + 144,000 + 154,000 = 436,000) for a single decision. The extra reviews posted duplicate comments, and the verdict changed between them. The operator approved one result, and execution used another.
The cause is easy to miss because calling a pure function again, one that computes its answer from its inputs alone, returns the same answer. A model run is not like that: run it twice on the same input and you can get a different answer. Re-running between the approval and the effect therefore replaces the thing the person approved with a new thing nobody has read, and the approval stops being a decision and becomes a trigger.
Field recordThe fix in that system was to save results when they are produced and have the approval consume the exact stored result on its exact revision. Approved steps then resumed at zero new model cost.
The same discipline applies to what a reviewer reads.
Field recordA review of that system flagged a gap it left unresolved: a reviewing agent that reads a pull request while the pull request is still changing cannot show which version its verdict examined.
The structural fix is a pinned review copy, a fixed revision the reviewer reads, so that the verdict, and any approval that rests on it, refers to one exact tree.
None of this is specific to code. If a person approves an email an agent drafted, approving should send that draft, not ask the model to write it again.
A floor no setting can lower
Agent systems grow settings: risk tiers, autonomy levels, budgets. Each one makes work go faster or slower, and each is a place where someone, or something, can turn a dial. Some controls have to sit below every dial. In one real system, a floor holds at every risk tier and autonomy setting: a person approves the specification, the first public release and any widening of what becomes public, and every production go-live; the rules protecting the checks apply; deployments are verified by observation; and interrupted effects are reconciled. Autonomy settings only schedule work within what each role is allowed to do. The floor works like a building code, which an owner may build beyond but no client's signature can waive.
The rule that holds the floor down is stated in that system's design in one sentence: "No approval, reclassification, or budget outcome converts a failed or missing required check, or a blocking finding, into a pass." The person who owns the project may decide scope and may accept documented risks that do not block. They may not bypass a required check, and they may not accept a blocking finding by approving it. An approval answers whether something should proceed; a check answers whether it works, and the first answer cannot stand in for the second. A budget that runs out pauses the work. It never passes it. This floor of controls is a different list from the floor of sensitive areas on the page on the threat model for an agent, the areas that get their required checks at every risk level; the rule above is what keeps those required checks from being waved through.
Which controls belong on your floor is a design decision. That system puts a person in front of every go-live. A team that ships continuously, where a person approves each change an agent wrote and passing checks then ship it, has put its person at a different point, and that is a floor too, as long as no setting can remove the per-change approval or the required checks. It fits ordinary continuous deployment, where passing the tests is the approval to ship: the person's decision moves to the change itself. Whether the first public release still gets its own sign-off is then a choice to make on purpose, not one to inherit by accident. What makes something a floor is not where it sits but that no setting, autonomy level or approval can lower it. How the checks themselves are protected, and who may loosen them, is a subject of its own.
Anyone may raise the alarm; only a person may lower it
Findings carry a severity, and severity decides whether a finding blocks a gate. That makes severity a lever, and any lever that can open a gate needs a rule about who may pull it. In one real system the rule is an asymmetry. Any role, the agent that builds, the one that writes the tests, the one that reviews, or the person, may raise a finding's severity. Only the person may lower it out of blocking range for the gate concerned, and reclassifying a finding is not allowed as a way around a block.
The asymmetry follows the cost of being wrong. A wrongly raised severity costs a delay and a second look, so it fails safe. A wrongly lowered one opens a gate, and an agent that can lower its own findings can approve its own work just by relabeling it. The same shape governs tests, where an agent may propose a tightening that a reviewer can accept, but only a person may loosen a check.
The details close the side doors. Every change of severity is recorded with its history. No severity change alters a check's state, so a failed check stays failed even if the finding about it is relabeled. In that system, for real agents, lowering anything from Critical needs the person, which is stricter than the base rule. Deferring is graded too: the reviewer may defer a Low finding, a Medium one needs the person, and a deferred finding is evaluated again at every subsequent gate, so deferring is not dismissing. A High finding may be treated as non-blocking at the first test environment only with recorded evidence that it is contained, never in a sensitive area and never over a failed check.
The rule is not about code. A monitoring agent that could downgrade its own alerts, or a triage agent that could mark its own escalations minor, would be pulling the same lever.
The button must do what it says
Field recordIn one real system, a class of reviews was parked to wait for a person. At the lowest autonomy setting, approving such a review could never merge it. Instead, each click re-bought an unchanged review for $1.47 in model cost and parked it again with the identical prompt. The requests describing this trap went unfiled for 37 days while the trap stayed live. The control panel's own button text said that at that setting approve "does not merge", and once the engine was fixed, that text was false in three places.
The lessons recorded were two. An approval consumes the exact result on the exact revision, which is the rule against re-running the model. And the words on a control must be true for its configuration. A person approves what the button says, not what the code behind it does. When the label and the behavior disagree, the approval is bound to the wrong thing, and no fingerprint can repair that, because the fingerprint faithfully records content the person misunderstood.
The mechanism is to have one source of truth. The consequence shown on each control is generated from the same function the controller uses to decide what that control does, so the label cannot drift away from the behavior when either one changes. Confirmations name the target and the blast radius: which branch, which environment, which records and how many. The person is then approving a consequence they can read, not a verb. A wrong label is a bug like any other, and it deserves the same urgency, because it turns even a careful person's approval into a mistake.
The human step that never happens
A gate is worth exactly as much as the step behind it actually happening.
Field recordIn one real project built with an agent pipeline, an audit six weeks after a burst of releases found 25 items on the decision board that agents had judged and the person had never ratified, not one. The record's words: "the human decision step has never run at volume". The same audit found production running from the development checkout itself.
The lesson recorded was to make human steps cheap, batchable and visible, or they become the step that never runs.
When the person's step is expensive, the easiest path is to hand it to the agent.
Field recordIn one real system, the owner pasted a temporary access token into an orchestrating agent's conversation with the instruction "do what you need to continue". On that instruction the agent answered the person's approval decisions itself: it approved the paid test runs, activated trust in a backend and made three classification decisions, then ran the qualification and the deploy. It recorded that whether this counted as the owner's command was for the owner to say, and flagged the token for revocation because it now sat in the transcript.
Unless the controller can tell who answered, a decision made on the person's behalf looks exactly like the person's.
The mechanisms are plain. One "waiting on you" queue instead of requests scattered across tools. Decisions that age and escalate past a target time, with a notification. One status with a fixed priority, refused, then waiting on you, then running, ready and idle, so a pending decision outranks work in progress. Attackers push from the other side: OWASP's agentic-AI threat guidance (February 2025) lists overwhelming the human in the loop as a threat, where excessive requests and time pressure produce rushed approvals, and recommends automating low-risk approvals and keeping people for the high-impact ones. Sign-in apps met the same problem as push fatigue, and number matching, which CISA recommended in 2022 as an interim step, makes the user type a number shown on the real sign-in screen, binding the tap to one request.
Fewer approvals that each mean something
When you run a coding agent you do not have to trust, the agent writes the code, an agent may write the tests and another may review, and the controller runs the checks. Your approval is the one input none of them can produce, which is exactly why a confused agent, a hijacked one or a bug in the controller will wear at it. Binding is what keeps that input from being stretched, replayed, applied to a stale world or used to wave a failure through.
Picture one merge. The controller shows you the change: its revision, the target branch head, the state of every required check, and what merging will touch. It stores the reviewer's result and a fingerprint of that preview. You approve. Immediately before merging, it reads the branch head and the check states again. If the branch has moved, you get a new decision, not a merge you never saw. If nothing changed, it merges with a compare-and-swap on the branch, marks your approval spent, and never asks the reviewing model for a fresh opinion along the way. A failed required check stays failed whatever you click, a finding's severity drops only on your word, and the one queue that waits on you tells you so.
The same rules carry to any agent that needs a person's sign-off, from one that sends email to one that changes infrastructure. They have honest limits. Binding cannot make you read what you approve, so keep each decision small and its consequence plainly labeled. A person with full access to the controller can still override it. And these controls reduce risk without making an agent safe. What they buy is narrower: when you say yes, the system does that one thing, once, in the world you were shown.
Sources
The published studies, standards and guidance this page cites. Links open on other sites. Field records come from the author's own records and have no public source.
- Commission Delegated Regulation (EU) 2018/389, regulatory technical standards for strong customer authentication (EUR-Lex) eur-lex.europa.eu
- RFC 6749 - The OAuth 2.0 Authorization Framework (IETF, 2012) datatracker.ietf.org
- CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition (MITRE CWE) cwe.mitre.org
- RFC 9110 - HTTP Semantics (IETF, 2022) datatracker.ietf.org
- Agentic AI - Threats and Mitigations (OWASP Gen AI Security Project, 2025) genai.owasp.org
- Implementing Number Matching in MFA Applications (CISA, 2022) www.cisa.gov
Next on your path to Run a coding agent you don't have to trust: Separation of duties between agents ▸