“Keep a human in the loop” is the most common advice about agents that take real actions. It is good advice, and it leaves out the part that decides whether it works: what exactly did the human agree to?

Picture a typical implementation. The agent proposes a payment, a message appears saying “Approve deposit for Northwind?”, and someone clicks yes. The system then runs whatever the agent submits next. Between the click and the call, nothing ties the decision to the content. The amount could differ, the recipient could differ, or the plan could have gained a step.

An approval like that records that a person was present. It does not show what they approved.

What an approval has to bind

To be meaningful, an approval has to refer to a specific, immutable thing. In Sefra that thing is the submitted plan, and the decision is bound to a hash of it.

The hash is SHA-256 over the canonical JSON of a document holding:

  • the steps of the plan, in order
  • the input of each step
  • the requester
  • the version of the policy that was evaluated

Change any value, the order of the steps, the requester or the policy version, and the hash changes. The person’s decision carries back the hash they were shown. A decision with a different hash is refused with HASH_MISMATCH.

This closes a whole class of problems. An agent cannot get approval for a small payment and then submit a larger one. A plan cannot gain a step during the wait. A person cannot unknowingly approve a newer version of a request that they reviewed earlier.

Hold the execution, not the agent

A blocking approval is awkward for agents. A person may take hours, and an agent waiting on an open call ties up resources and may time out.

So the thing that waits should be the execution. When a policy rule asks for a person, Sefra stores the execution as pending_approval and returns a handle to the agent after a short submission wait. The agent can do other work and check back later. Nothing has been executed at that point.

When the decision arrives, the durable workflow continues. If nobody decides before the deadline, the execution ends with APPROVAL_EXPIRED, so that a forgotten request cannot be released weeks later by someone clearing a queue.

Show the approver what will happen

Binding solves the question of what was approved. It does not help if the approver could not understand it.

Two design rules matter here.

Build the summary from typed fields. An approver should read lines generated from the validated input, such as the vendor name, quantity, unit price and department. If the summary were written by the agent, then a confused or manipulated agent could describe a harmful action in harmless words.

Label the agent’s reasoning as unverified. The agent’s rationale can be useful context, so Sefra shows it. It is marked as unverified, and it is not covered by the hash, because it is a claim and not part of the action.

The approver also sees the full input, the rule that asked for approval and who made the request. A person should be able to decide without opening another system to find out what they are looking at.

Who may approve

Binding the content is half the job. The other half is binding the person.

Roles come from your identity provider’s claims, so Sefra stores no separate list of approvers. A rule names the role it needs, such as a finance approver. These cases are refused:

  • a person without the required role
  • an agent, whatever its role
  • the user on whose behalf the agent made the request, where the rule requires a distinct approver
  • a decision carrying the wrong hash

Each person can approve once, and the execution proceeds when every required role is satisfied.

How strong is the evidence

Not every approval proves the same thing, and an honest record says which kind it holds. Sefra records an evidence level with each decision.

Level What it shows
token A client holding a bearer token decided through the API or CLI. It does not show that a person signed in to decide
oidc A person signed in through your identity provider when the exact content was approved. It is not a signature by the approver

For many internal controls, a named sign-in tied to exact content is a large step up from a chat button. Neither level is a cryptographic signature by the individual. If you need one, Sefra does not provide it today, and the status page lists what is planned.

Approval does not override policy

It is tempting to treat approval as the final word. We do not, for a practical reason: time passes.

A plan may wait hours for a decision, and the world moves on. The budget may be spent or the vendor suspended. So each step is evaluated again when it runs, on fresh facts, and it can still be denied after approval. If a step turns out to need a role that nobody approved, it fails with APPROVAL_SCOPE_EXCEEDED and the plan’s completed steps are undone.

The hash fixes what was requested. It does not freeze the facts around it.

What this does not solve

Approval fatigue is real. If people see too many requests, they stop reading them, and binding will faithfully record a careless yes. The defence is in the policy: send people only the actions that deserve attention, and let rules handle the routine ones.

Manipulation of an approver is reduced and not eliminated. Typed summaries remove the agent’s most direct way of misleading someone, but values in the input can still be chosen to look plausible.

And an approval is only as good as the approver’s knowledge. A person can read every field correctly and still approve a bad payment.

What exact binding gives you is narrower and dependable. Afterwards, you can say who approved what, down to the values, and show that what ran is what they saw, except values taken from an earlier step’s output, which they saw as references.