Skip to main content
A software agent acts on a person’s behalf, and someone has to say “yes” to the risky part of that work — consent that is worth little if it is collected on the very screen the agent controls.

What it builds on

The scenario needs no separate protocol: confirming an action is the same transaction as confirming a sign-in, only with a different purpose. A transaction with an explicit state and a single outcome, a message in a trusted channel, the person’s answer and an entry in the audit trail — all of it already exists in Veriqa’s core. For confirming an action rather than a sign-in, the product has:
  1. Server-to-server creation of a confirmation transaction. The application calls POST /api/transaction/confirmation, authenticating with client credentials — no OIDC request and no user redirect. The response carries the entry point for the person: the channel’s deep link and the same address as a QR image, with a “Powered by Veriqa” attribution strip under the code. The application reads the outcome with GET /api/transaction/{id}/result.
  2. Concrete wording of the confirmation. The request names a declared action type (action_type), and the person sees not “confirm sign-in” but that action’s message: which action, over what, with which parameters.
  3. A safe way to carry the action’s data. Free-form text from the application never reaches the user’s message — that is a direct route to substituting the meaning of the confirmation. The data travels in typed slots (slot_values) against the schema declared for the action type and is validated before the transaction is created.

Available today: an agent whose tools you know

When you build the agent yourself and its tools are known in advance, nothing more is needed. The approval goes where the tools are invoked, not into the prompt:
  1. Each tool with consequences gets an approval policy in your code: which declared action type asks the person, and which arguments of the call fill its slots.
  2. The code that invokes tools checks the policy. For such a tool it creates the confirmation, shows or sends its entry point, and waits for the outcome.
  3. The tool runs only on confirmed. On declined or expired the harness returns a refusal as the result of the call, the same way it reports any other failed call to the model.
Whatever the model decides to call, a tool with a policy does not run without a confirmed transaction. The person reads the slot values of a declared action type, never text the agent wrote. The runnable example is samples/dotnet/inproc/agent-approval in the repository. A support agent handles a refund ticket with three tools: lookup_order and send_customer_email run on their own, while every refund_payment call waits for a person to approve it in Telegram. The run log records who approved. For a single destructive action in an ordinary application — deleting a project, closing an account — see samples/dotnet/inproc/step-up: there the backend also checks that the person who confirmed is the owner of the account (expected_identities).

If you do not write the agent’s tools

The approval plugs into the agent platform’s extension point. In Claude Code, the extension point is hooks: see the samples/claude-code sample and the Agent action approvals page. For another platform or harness, you build the same integration and add the following around it:
  • a vocabulary of actions — one set of action types shared by your agents, so that “what are we confirming” reads the same in every tool;
  • an approval step in the tool protocol — for example, the tool server itself declares which calls require approval;
  • approval policies: what always requires a human, what only above a threshold, what can be approved once and reused.
The video shows the Claude Code plugin holding git push until a person approves it in a messaging app:

What to keep in mind

As with the rest of Veriqa, confirmation rests on the person’s trusted channel and on the API of that channel’s platform.
This is a strong and convenient step for scenarios where such trust is appropriate, but not cryptographic proof of intent. Taking part in the scheme does not turn a messaging app into a hardware security module. Where the risk model demands more, use stronger measures.