Trusting an agent for one action: four proofs and how long each one lasts
A payments API inside a company receives a request to approve invoice INV-4471: €16,250.00, to a supplier’s bank account. The caller is not a person at a screen. It is an agent, a program built around a language model, working through the accounts-payable queue on somebody’s behalf. The API has a few milliseconds to decide, and the question usually put to it is whether this agent is trusted.
That question folds four things into one. My claim is that the failures worth designing against share one shape: a long-lived proof is accepted where a short-lived one was needed. The software’s identity is read as authority to pay; a week-long delegation is read as approval of Thursday’s payment. I show each proof as the token or record it really is, then walk those substitutions from cause to consequence.
The one action I will use
The case and its names are constructed for this article. Halden Tools is a manufacturer. Ines leads its accounts-payable team and may approve supplier payments up to €25,000. On Monday 23 November 2026 at 09:00 UTC she delegates part of that to the approval agent for one week: approve invoices that match a purchase order and a goods receipt, to suppliers already in the master file, up to €20,000 each and €150,000 in total. On Thursday at 14:02 the agent approves INV-4471 from Arvik Components, its tenth payment under the grant. The supplier’s account is the example IBAN from RFC 9396.
| Thing | Value | Held by |
|---|---|---|
| Agent | wimse://halden.example/ap/approval-agent, registered 1 September |
Identity server |
| Delegation | dlg_7Q2 from Ines (emp-20417), one week, €20,000 each, €150,000 total |
Authorization server |
| Action | Approve INV-4471, €16,250.00, IBAN DE02100100109307118603 |
Payments API |
| Running total | €42,850 before, €59,100 after | Authorization server |
Everything happens inside one organization, because that is where the pieces exist as published text today.
Four proofs at a glance
| Proof | Question it answers | Artefact here | Issued by | Stays true for |
|---|---|---|---|---|
| 1. Identity | Which software is calling? | Workload Identity Token | Identity server | Months |
| 2. Delegation | On whose behalf? | Access token with sub and act |
Authorization server, on Ines’s consent | Days |
| 3. Action authority | May it do exactly this? | Transaction token for INV-4471 | Authorization server, after a fresh policy check | Minutes |
| 4. Evidence | What proves it later? | Audit entry with the proofs and keys inside | Payments API | Years |
Figure 1 shows who hands what to whom. Here the authorization server also acts as the transaction token service.
sequenceDiagram participant I as Ines participant A as Agent participant W as Identity server participant S as Authorization server participant P as Payments API W->>A: Proof 1, identity token, hourly I->>S: Monday, grants delegation S->>A: Proof 2, access token with act A->>S: Thursday, asks for INV-4471 Note over S: checks grant, totals, payee account S->>A: Proof 3, action token, 5 minutes A->>P: Signed request with proofs 1 and 3 Note over P: verifies both, compares the body Note over P: writes proof 4, the audit entry P-->>A: 201 approved
The payments API never sees proof 2. It sees a token derived from it, so the party that checks the delegation is the authorization server. And the agent signs nothing that grants authority. It signs requests, and others sign what it may do.
Proof 1: which software is calling
A workload is a running piece of software with an identity of its own, separate from any user. The IETF’s AI Identity Management System draft (AIMS, version 01, 2 November 2026) from the Workload Identity in Multi System Environments (WIMSE) group says “An Agent is a workload that iteratively interacts with a Large Language Model (LLM)” and “MUST be assigned exactly one WIMSE identifier”. The credential is the Workload Identity Token (WIT), from WIMSE Workload Credentials (version 03). The listing is illustrative: claim names are the draft’s, values mine.
{ "alg": "ES256", "kid": "ids-2026-11", "typ": "wit+jwt" }
{
"iss": "https://ids.halden.example",
"sub": "wimse://halden.example/ap/approval-agent",
"iat": 1795699800,
"exp": 1795703400,
"jti": "wit-5c1e09",
"cnf": {
"jwk": { "kty": "OKP", "crv": "Ed25519", "alg": "Ed25519", "x": "…" }
}
}
cnf holds the workload’s public key, and the WIT “MUST NOT be used as a bearer token”: the workload proves on each request that it holds the private key. The Workload Proof Token “does not protect major portions of the request”, so for a payment, where the amount and account are in the body, I would use the HTTP signature profile, which signs Content-Digest. A SPIFFE JWT-SVID, by contrast, is a bearer token “susceptible to replay attacks”.
The token lasts an hour, but the proof does not. The identity server issues the next WIT automatically while the registration stands, and nobody decides anything at renewal. Proof 1 is a months-long proof delivered in hourly pieces, and it says nothing about Ines, the invoice or the amount.
Proof 2: on whose behalf
OAuth 2.0 Token Exchange, RFC 8693, separates impersonation, where the receiver cannot tell A from B, from delegation, where “principal A still has its own identity separate from B”. The act claim records delegation. After Ines consents on Monday, the agent can obtain tokens like the one below. Claim names come from RFC 8693, Rich Authorization Requests (RFC 9396) and DPoP (RFC 9449); the ap_approval_delegation type is mine.
{
"iss": "https://as.halden.example",
"aud": "https://as.halden.example/txn",
"sub": "emp-20417",
"client_id": "wimse://halden.example/ap/approval-agent",
"act": { "sub": "wimse://halden.example/ap/approval-agent" },
"iat": 1795701300,
"exp": 1795701900,
"cnf": { "jkt": "…" },
"authorization_details": [{
"type": "ap_approval_delegation",
"grant_id": "dlg_7Q2",
"actions": ["approve"],
"max_amount": { "currency": "EUR", "amount": "20000.00" },
"max_total": { "currency": "EUR", "amount": "150000.00" },
"conditions": ["po_match", "goods_receipt", "payee_account_unchanged_since_grant"],
"not_after": 1796029200
}]
}
sub is Ines and act.sub is the agent, so a reader can tell the person from the software. authorization_details carries the limits, because, as RFC 9396 says, scope “is not sufficient to specify fine-grained authorization requirements”. cnf.jkt binds the token to the agent’s key, though DPoP “does not ensure the integrity of the payload”.
The lifetime works as for proof 1. The token lasts ten minutes. The delegation behind it lasts seven days, renewed without asking Ines again. What Ines decided on Monday is the proof; the token is its current copy. It says she allowed a class of payments. It does not say she saw INV-4471, and on Thursday at 14:02 she is in a meeting.
Proof 3: authority for this exact action
The third proof is the only one made for this payment: it names the invoice, amount and account, is issued after a check at 14:02, and dies within minutes. Inside one organization the closest published shape is the transaction token, from the OAuth Transaction Tokens draft (version 11): “A signed JWT with a short lifetime, providing immutable information about the user or workload”. The listing is illustrative; claim names are the draft’s.
{ "alg": "ES256", "kid": "tts-2026-11", "typ": "txntoken+jwt" }
{
"aud": "halden.example",
"iat": 1795701720,
"exp": 1795702020,
"txn": "6f0c2c1e-8a57-4f0e-9b1d-3f1f5a2c7d44",
"sub": "emp-20417",
"req_wl": "wimse://halden.example/ap/approval-agent",
"scope": "ap.approve",
"tctx": {
"action": "approve_payment",
"invoice": "INV-4471",
"amount": "16250.00",
"currency": "EUR",
"creditor_iban": "DE02100100109307118603",
"grant_id": "dlg_7Q2",
"grant_total_after": "59100.00"
}
}
tctx holds values that “remain immutable throughout the Call Chain”, here the payment itself, so the token is useless for any other invoice, amount or account. txn gives the API something to refuse the second time. req_wl links back to proof 1. exp is five minutes after iat.
What makes this a proof of authority is the work done before it is signed. The service checks the amount against €20,000, the running total against €150,000, that a purchase order and goods receipt exist, and that the supplier’s account has not changed since Monday 09:00, then raises the total to €59,100. The AIMS draft states the principle: at each exchange the server “evaluates its authorization policy”, and the result “can never exceed” the token presented.
The agent sends proofs 1 and 3 with an HTTP signature over the body. The API checks that both tokens are valid, that the signature verifies with the WIT’s key, that req_wl equals the WIT’s sub, and that the body equals tctx, field by field.
The signed request, and three alternatives for proof 3
The request the payments API receives, illustrative, with header names and signature parameters from the WIMSE HTTP signature profile:
POST /payment-approvals HTTP/1.1
Host: payments.halden.example
Content-Type: application/json
Content-Digest: sha-256=:…:
Workload-Identity-Token: eyJhbGciOiJFUzI1NiIsInR5cCI6IndpdCtqd3QifQ.…
Txn-Token: eyJhbGciOiJFUzI1NiIsInR5cCI6InR4bnRva2VuK2p3dCJ9.…
Signature-Input: sig1=("@method" "@path" "@query" "content-type" "content-digest" "txn-token" "workload-identity-token");created=1795701725;expires=1795701785;nonce="k3Jq0vT1";tag="wimse-workload-to-workload";wimse-aud="https://payments.halden.example"
Signature: sig1=:…:
{"invoice":"INV-4471","amount":"16250.00","currency":"EUR","creditor_iban":"DE02100100109307118603"}
- A one-payment access token. RFC 9396’s own example is a
payment_initiationobject with amount, creditor and account. It works across organizations, which a transaction token does not, but needs an authorization server that issues one token per payment. - Ask the person. OpenID Client-Initiated Backchannel Authentication (CIBA, final since 1 September 2021) starts an approval on the user’s own device with a
binding_messageshown on both screens. It is the right proof 3 when policy cannot decide alone, at the cost of a person’s attention. - Let the agent sign. In the card mandate designs, AP2 and Verifiable Intent, the agent’s key signs a closed mandate under an open mandate signed by the user. No issuer must be online, but the narrowness of the delegation then depends on someone else counting.
The AIMS draft rules out the tempting shortcut, a confirmation button in the agent’s own chat window: such interactions “do not by themselves constitute authorization and MUST be bound to a verifiable authorization grant”.
Proof 4: what proves it afterwards
The fourth proof is written by the verifier for a reader who was not there. No specification I read defines its format for agent actions. The AIMS draft requires audit logs “covering authorization decisions” that are “tamper-evident”, with the agent, subject, action, decision and timestamp. Those fields describe what happened without proving it. The entry below is my design for one that does.
{
"seq": 918,
"time": "2026-11-26T14:02:06Z",
"txn": "6f0c2c1e-8a57-4f0e-9b1d-3f1f5a2c7d44",
"agent": "wimse://halden.example/ap/approval-agent",
"subject": "emp-20417",
"grant_id": "dlg_7Q2",
"action": { "invoice": "INV-4471", "amount": "16250.00", "currency": "EUR",
"creditor_iban": "DE02100100109307118603" },
"decision": "permit",
"proofs": { "wit": "eyJ…", "txn_token": "eyJ…", "signature": "sig1=:…:",
"content_digest": "sha-256=:…:" },
"keys": { "ids-2026-11": { "kty": "EC", "…": "…" }, "tts-2026-11": { "kty": "EC", "…": "…" } },
"prev": "sha-256=:…:",
"receipt": "…"
}
proofs stores the tokens and signature themselves, not a note that they were valid. prev is the hash of entry 917, which makes removal or reordering visible. keys is there because the agent’s key pair lives as long as one WIT, and in 2029 none of the keys that verified this request will be published. RFC 9943, the SCITT architecture, names the problem: signatures “may fail to verify past their expiry date even though the signed item itself remains completely valid.” receipt holds a statement from outside the payments team that the entry existed at that time: an RFC 3161 timestamp over a hash, or an RFC 9943 transparency receipt that is “universally verifiable without online access”. Seven years is the retention I assume for Halden; no specification sets one.
Four lifetimes, and which number to read
Each proof has two lifetimes: the one printed in exp, and the time for which the statement stays true without anyone deciding again. Only the second tells you what the proof can be trusted for.
| Proof | exp on the artefact |
Renewed by | Stays true for |
|---|---|---|---|
| 1. Identity | 1 hour | Identity server, automatically | Months |
| 2. Delegation | 10 minutes | Authorization server, automatically | 7 days |
| 3. Action authority | 5 minutes | Nobody | 5 minutes |
| 4. Evidence | None | Nobody | 7 years |
Figure 2 places them on one line of time.
timeline 1 September : Agent registered : Proof 1 begins and renews hourly Monday 23 November : Ines grants the delegation : Proof 2 begins and renews every ten minutes Thursday 26 November : Proof 3 issued and used within five minutes : Proof 4 written Monday 30 November : Grant ends and proof 2 stops renewing November 2033 : Retention of proof 4 ends
Short token lifetimes do nothing about a holder that keeps renewing. A verifier that accepts proof 1 or 2 in place of proof 3 has accepted a decision made months or days ago as a decision about now.
Failure one: the identity is read as authority to pay
Suppose the payments API was built for service-to-service calls, and its rule is one line: allow POST /payment-approvals from the approval agent’s workload identity. An email, apparently from Arvik, asks that open invoices be paid to a new account. The model treats it as an instruction, and the harness, the deterministic code around the model, builds and signs the approval. The AIMS rule that the model “MUST NOT have access to an agent’s credentials” is respected and does not help: the harness signs whatever the model asked for. The API verifies the WIT and signature and returns 201.
Proof 1 was real at every step. A fact true since September answered a question about 14:02 on Thursday. With the proofs kept apart, the token service compares the new account with the supplier master file, finds a mismatch, and issues nothing, and the logged refusal alerts the fraud team.
Failure two: the delegation is read as approval of this payment
Now suppose the API does ask for proof 2. It accepts the delegated access token as a bearer of scope ap.approve and checks the amount against the limit. This is what an OAuth resource server does by default. The fraudster is more patient, and Figure 3 shows the order of events.
sequenceDiagram participant I as Ines participant X as Fraudster participant M as Supplier master participant A as Agent participant P as Payments API I->>A: Monday 09.00, delegation for a week X->>M: Tuesday 17.40, account changed A->>M: Thursday, reads payee for INV-4471 M-->>A: the new account A->>P: POST approval with proof 2 Note over P: token valid, scope right, under limit P-->>A: 201 approved Note over I: never saw the new account
On Tuesday at 17:40 a forged change request replaces Arvik’s account with the other example IBAN in RFC 9396, ending 8608. On Thursday the agent sends the approval with the new account and a fresh token. The API checks signature, exp, sub, act, scope and amount. Every answer is correct, and the audit entry, “approved by the agent on behalf of Ines”, is accurate.
The token is ten minutes old, which is why it looks fresh. The decision it carries is three days old and was made about a different bank account. Until the grant ends, every Arvik invoice under €20,000 goes to the fraudster with valid proof of Ines’s consent. max_total does not help, because a resource server that reads tokens keeps no sum.
Proof 3 turns the grant’s conditions into checks at the time of action. The token service evaluates payee_account_unchanged_since_grant at 14:02, sees Tuesday’s change, and refuses. Policy cannot decide this alone, so the service starts an OpenID backchannel (CIBA) request to Ines with a binding message such as “Approve €16,250.00 to Arvik Components, NEW account ending 8608”. If she approves, the transaction token records a decision made on Thursday about that account. If she calls the supplier first, the fraud ends there.
The counter lives in the same place. The Verifiable Intent draft concedes that budget enforcement “cannot be done cryptographically within VI alone”. My read is that a delegation is only as narrow as the count kept by whoever issues the per-action proof. And proof 3 checks only the conditions somebody wrote down: had the grant not pinned the payee account, the payment would carry four valid proofs.
Beyond one organization
Transaction tokens stop at the edge: “A Txn-Token MUST NOT be accepted outside the Trust Domain identified by the aud claim.” An agent paying a merchant it has never met needs the same four proofs from other issuers (an earlier article), with the same lifetimes and the same failures.
The four proofs for an agent paying by card on the open web
| Proof | Inside one organization | Agent paying by card on the open web |
|---|---|---|
| 1. Identity | WIT from the organization’s identity server | HTTP Message Signature (RFC 9421) with the platform’s key from a directory, as in the Web Bot Auth draft and Visa’s Trusted Agent Protocol |
| 2. Delegation | Access token with sub and act |
Open mandate signed by the user’s device key, with the agent’s key in cnf (AP2, Verifiable Intent) |
| 3. Action authority | Transaction token | Closed mandate signed by the agent’s key, plus a one-time payment credential |
| 4. Evidence | The verifier’s audit entry | Each party’s signed piece: cart, mandate, receipt |
Visa’s Trusted Agent Protocol specification says created and expires “should not be more than 8 minutes apart”, while the platform key behind them is long-lived. The Verifiable Intent credential format recommends 30 days for an autonomous user mandate and 5 minutes for what the agent signs. AP2 v0.2 recommends the smallest exp “that will allow the Shopping Agent to complete the assigned task”.
A merchant that lets “verified agents” past its fraud checks is making failure one: Cloudflare’s documentation says “you may trust the intermediary operator, but not necessarily every end user driving it”. An open mandate with a stolen agent key is failure two. Two things are weaker than inside an organization: the Web Bot Auth draft says removing a key from the directory “is not a revocation mechanism”, and AP2 leaves “dispute resolution, retention, and retrieval requirements” out of scope, so proof 4 is left to each party.
What the four proofs do not establish
That the action was right. All four can be valid for a payment that should not have been made. They turn “the agent did it” into a named person, a grant and a policy decision. Whether the invoice was genuine is a different control.
A finished standard. Token Exchange, Rich Authorization Requests and DPoP are RFCs. The WIMSE documents and Transaction Tokens are still drafts, so claim names can change.
A join between the layers. No text I read tells a resource server to compare req_wl with the workload that signed the request. I would write that check into the API and test it, not assume a library does it.
Fast withdrawal of proof 1. The credentials draft defines no revocation for WITs, so a deregistered agent can prove its identity for up to an hour. That is tolerable only if identity alone buys nothing.
The verifier’s checks, in order
Figure 4 is the payments API’s decision path. Cheap identity checks come first, the body is compared with the action token before any state changes, and the evidence is written before the approval takes effect: if the audit entry cannot be written, the payment is not approved.
flowchart TD
R["Request arrives"] --> Q1{"Identity token valid, request signed by its key"}
Q1 -->|"no"| X["Reject and log"]
Q1 -->|"yes"| Q2{"Action token present and unexpired"}
Q2 -->|"no"| X
Q2 -->|"yes"| Q3{"Token requester equals signer"}
Q3 -->|"no"| X
Q3 -->|"yes"| Q4{"Body equals token details"}
Q4 -->|"no"| X
Q4 -->|"yes"| Q5{"Transaction id seen before"}
Q5 -->|"yes"| X
Q5 -->|"no"| W["Write audit entry, then approve"]Moving the weak point to the policy
To trust an agent for one action is to hold four proofs and refuse to let any of them answer for another. Both failures passed every check that was made, and in both the missing check was the one about now. The per-action proof is only as good as the conditions written into the delegation and the state its issuer can see. It moves the weak point from the token to the policy. I think that is the right place for it, because a policy can be read, tested and changed, and a week-old consent cannot.
Sources
- WIMSE Workload Credentials, draft-ietf-wimse-workload-creds-03, IETF WIMSE working group, 30 October 2026
- WIMSE Workload Proof Token, draft-ietf-wimse-wpt-02, IETF WIMSE working group, 27 August 2026
- WIMSE Workload-to-Workload Authentication with HTTP Signatures, draft-ietf-wimse-http-signature-09, IETF WIMSE working group, 20 November 2026
- AI Identity Management System, draft-ietf-wimse-aims-01, IETF WIMSE working group, 2 November 2026
- WIMSE working group documents, IETF Datatracker, accessed 30 November 2026
- The JWT SPIFFE Verifiable Identity Document, SPIFFE project, stable, accessed 30 November 2026
- RFC 8693, OAuth 2.0 Token Exchange, IETF, January 2020
- RFC 9396, OAuth 2.0 Rich Authorization Requests, IETF, May 2023
- RFC 9449, OAuth 2.0 Demonstrating Proof of Possession (DPoP), IETF, September 2023
- Transaction Tokens, draft-ietf-oauth-transaction-tokens-11, IETF OAuth working group, 30 July 2026
- OpenID Connect Client-Initiated Backchannel Authentication Flow, Core 1.0, OpenID Foundation, final, 1 September 2021
- RFC 9943, the SCITT architecture (formerly draft-ietf-scitt-architecture), IETF, June 2026
- RFC 3161, Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP), IETF, August 2001
- RFC 9421, HTTP Message Signatures, IETF, February 2024
- HTTP Message Signatures for automated traffic, draft-ietf-webbotauth-httpsig-protocol-01, IETF webbotauth working group, 29 October 2026
- Trusted Agent Protocol specifications, Visa Developer, accessed 28 November 2026
- Verified bots and signed agents, Cloudflare Docs, 12 November 2026
- Agent Payments Protocol v0.2 specification, Google, April 2026
- Verifiable Intent credential format and security model, draft 0.1, 18 February 2026