$ fssg build --deterministic --validate |

AI Agent Approvals Need Action Receipts

AI Engineering

A human clicking Approve should not authorize a sentence. It should authorize one exact action.

Most agent interfaces still treat approval as a conversational event: the model explains what it intends to do, the user accepts, and execution continues. That looks safe because a human is in the loop. But the approved explanation and the executed tool call are often different artifacts. Arguments can be regenerated. Context can change. A retry can repeat the side effect. The button proves that somebody agreed with some text; it does not prove what the runtime was allowed to execute.

I think approvals need the same treatment as commits and signed requests: canonical bytes, a stable identity, explicit scope, and a receipt.

The approval gap

Consider an agent preparing a deployment. It displays:

Deploy the validated release to staging.

The eventual call may contain a repository, commit, environment, region, migration flag, and secret reference. If any of those values are absent from the approval artifact, the runtime must reconstruct intent after approval. That reconstruction is another probabilistic step at exactly the wrong boundary.

The security problem is not limited to malicious models. A stale observation can change which commit latest points to. A compaction step can lose a constraint. An orchestration retry can submit the same action twice. Untrusted tool output can influence a parameter between preview and execution. OpenAI's agent-safety guidance recommends structured outputs and tool approvals, while its prompt-injection analysis frames the problem as controlling dangerous sinks even when manipulation succeeds. I agree with that direction, but an approval becomes an engineering control only when it is bound to the sink invocation itself.

An action envelope

Before showing an approval prompt, the runtime should construct an immutable action envelope:

{
  "action_id": "act_01...",
  "tool": "deploy.release",
  "tool_schema": "sha256:...",
  "arguments": {
    "repository": "rokoss21/example",
    "commit": "4f2c...",
    "environment": "staging",
    "run_migrations": false
  },
  "evidence": [
    {"kind": "test-run", "id": "run_842", "digest": "sha256:..."}
  ],
  "authority": {
    "principal": "user_17",
    "scope": "deploy:staging",
    "expires_at": "2026-07-31T07:40:00Z",
    "max_uses": 1
  }
}

Canonicalize the envelope, hash it, and render the human preview from those same fields. The approval record signs or otherwise binds the principal to that digest. Execution then accepts only the approved digest—never a freshly generated approximation.

This creates a useful invariant:

hash(executed_envelope) == hash(approved_envelope)

If the tool schema changes, the evidence snapshot changes, the authority expires, or one argument is modified, approval is invalid. The agent can propose a new envelope, but it cannot silently stretch the old decision.

This is narrower than a general authority lease. A lease says how long and where authority exists. The action receipt says exactly which invocation consumed it. The two mechanisms compose: a valid envelope must fit inside an active lease, and successful execution spends one permitted use.

Approval must survive retries

The runtime also needs an execution receipt. A minimal receipt records the action digest, attempt identity, tool result digest, side-effect identifier, timestamp, and terminal state. Before retrying, the orchestrator asks whether that action digest already produced a committed side effect.

That distinction matters:

Artifact Question it answers
Proposal What does the agent want to do?
Approval Which exact action did a principal authorize?
Execution receipt What was attempted, and what side effect committed?
Trace How did the system reach the decision?

A trace alone is not authorization. An approval alone is not proof of execution. Keeping these artifacts separate prevents a friendly transcript from becoming a substitute for a control plane.

Stable action identity also complements effect IDs: the approval digest identifies authorized intent, while the effect ID deduplicates the external side effect. For high-impact operations I would require both.

What the human should see

Cryptographic binding does not help if the preview hides the dangerous fields. The interface should emphasize the sink, destination, data leaving the trust boundary, irreversible flags, and authority duration. Defaults and inferred values should be expanded before approval. Sensitive values may be redacted visually, but their stable references still belong in the digest.

Approving every read and write can also become meaningless through fatigue. Risk policy should decide which envelopes require a person, which can be accepted by a narrow standing policy, and which are forbidden. The mechanism does not claim that one confirmation prevents prompt injection. It limits what a compromised or mistaken decision can become after confirmation.

This design has boundaries. Canonicalization must be deterministic across implementations. The tool adapter must enforce the envelope rather than letting the model bypass it. External systems must expose usable idempotency or reconciliation identifiers. Human reviewers can still approve a harmful action. Receipts make authorization inspectable and replay-safe; they do not make judgment infallible.

From a button to a protocol

I do not want “human in the loop” to mean “a modal appeared somewhere.” I want a chain that can be checked:

proposal -> canonical envelope -> approval digest -> execution -> receipt

That chain turns consent into a runtime artifact. It narrows retries, exposes mutation, and gives incident review a concrete answer to the only approval question that matters: did the system execute exactly what was authorized?

Sources

FACET AI CLI Terminal
facet@ai:~$