Skip to main content

[Use Case] Post-execution evidence gap in metered agent-to-agent settlement: no externally verifiable record of what was committed

Contribution number FG-TIDA-WG0-012

Versions:

The recorded lifecycle state indicates the review and approval status of this item.
0.0
Recorded archive dates. Colours distinguish successive versions; they do not indicate approval or expiry.

GitHub source classification

Archived versions

Compare versions

VersionRecordedGitHub tagRelease artifacts
0.02026-11-06 20:07 UTC——

1. Identification

Title: Post-execution evidence gap in metered agent-to-agent settlement: no externally verifiable record of what was committed Submitting organization: Rama Contact name: Pablo Etcheverry Contact email: playplay2736@gmail.com

Sector: [x] Financial services [x] Other (specify): cross-sector infrastructure (any metered agent-to-agent payment surface — x402/MPP-style proxies, API marketplaces)

2. The situation

Plain language description: An AI agent pays for metered usage (API calls, completion tokens) through a payment gateway that settles the charge in real time. The gateway's own accounting of what was committed is held only in process memory and released once, internally, when the request completes. Once that happens, no durable, externally checkable record exists of what was actually metered and delivered — only the settlement transaction itself and the gateway operator's own logs, which a later party must simply trust.

Actor: Principal (who authorized the agent to spend); agent instance (the paying agent); infra provider (the metering/payment gateway); relying party (a dispute process, auditor, or the agent's own operator reviewing activity later); the metered service/API.

Action: The agent issues a metered request; the gateway settles payment and accumulates usage server-side; on completion, the committed total is released exactly once to an internal callback and the in-memory state is dropped.

Decision required: Can a relying party who was not present at settlement time independently confirm what the agent was charged and received, without trusting the gateway's own logs?

Problem encountered: The gateway's internal accounting is correct and sufficient for billing, but by design produces no externally anchored, recomputable reference — once the in-process state drops, the record of the committed total exists nowhere outside that one operator's logs.

Current mitigation: Server-side logging/tracing inside the gateway operator's own boundary. This depends entirely on trusting that one operator, including that its logs were not lost, rotated, or asserted after the fact.

Residual gap: No operator-independent, timestamped, recomputable record that a third party can check without trusting the emitting system.

3. Actors and context

Taxonomy roles involved: [x] Principal [x] Relying party [x] Agent instance [x] Infra provider [ ] Builder [ ] Deployer / Owner [ ] User [ ] Attestor [ ] Other

Mandates in this case:

Grantor Grantee What is conferred Governing regime
Principal Agent instance Spend authority up to a limit, for metered usage Contractual (API/platform terms)

Cross-border? [x] Yes — jurisdictions involved: typically three distinct operators (agent operator, gateway operator, API provider), routinely across jurisdictions in agentic-commerce deployments.

Embodied (physical actuation or sensing)? [ ] No — [x]

Agent action type: [x] Irreversible (settlement, once committed, is not undone by the record gap itself)

Crosses organisational boundary? [x] Yes (specify): agent's operator, gateway operator, and API/service provider are typically three distinct organizations.

Risk level: [x] Medium

4. Theme relevance

Theme Yes Primary Justification
Continuous Trust and Attestation [x] [x] The case is exactly whether trust in a settled action's record survives, and can be checked, independent of the party that issued it — the core of continuous attestation past the moment of execution.
Runtime Enforcement (Control Plane) [x] [ ] The metering/settlement path is a control-plane decision point; the gap concerns what evidence that decision leaves behind.
Delegation [x] [ ] The agent acts under a principal's spend authority; the case assumes delegation is already in place and asks what record survives its exercise.

Related theme proposals: none linked yet — open to pointers from FG-TIDA if a Theme proposal already covers this narrower boundary.

5. Requirements

# Type Requirement description Criticality
1 Technical A content-addressed identifier for the committed action, derivable by any party from a small set of declared fields, independent of the emitting system's internal state Must
2 Technical A permissionless, operator-independent anchor mechanism giving that identifier external, third-party-checkable existence and timestamp Must
3 Technical An envelope of additional declared context (amount committed, policy, endpoint) hashed separately from the core identifier, independently recomputable by any verifier Should
4 Business No requirement that the metering/payment gateway change its billing logic — the record is additive, not a replacement for existing accounting Should
5 Legal Guidance on how such an anchored record interacts with dispute-resolution processes across jurisdictions Nice-to-have

6. Assessment criteria

Success criteria: A relying party who was not present at settlement time can, using only public information, recompute the committed action's identifier and confirm its anchored existence and timestamp, without trusting the metering gateway's internal logs. Measurable metric: Time-to-independent-verification (bounded only by public-ledger query latency) and zero dependency on the emitting operator's continued availability or honesty.

7. Duplication check

Existing standards or SDOs: - FG-TIDA Use Case #12 ("Same action, different lineage: distinguishing representation-to-action descent from independent reconstruction", danyka-icam/Nika Novak) — addresses a related but distinct boundary. - IETF RFC 9334 (RATS Architecture) — separates evidence, appraisal, and attestation results; adjacent to the evidence/appraisal boundary but not itself about post-settlement anchoring. - W3C PROV-DM — representational building blocks for entities/activities/derivation; reusable, not itself a finality mechanism.

Overlap notes: Use Case #12 tests whether an executed action descends from a particular prior organizational representation (decision lineage). This case assumes the decision/authorization step is already settled and asks a narrower, downstream question: once an action is metered and settled, does any externally checkable record of what was committed survive at all, independent of the party that issued it? The two are complementary — #12 is about provenance of the decision; this case is about finality/verifiability of the executed settlement — and do not duplicate each other.

8. Maturity

Pilot status: [x] Deployed in production — verified against one concrete production system, solana-foundation/pay (rust/crates/core/src/server/completion_stream.rs): its MeteredSettlement accumulates committed usage in Mutex<f64> and releases the total exactly once, on Drop, to an in-process callback, with no externally anchored record. We have not audited every x402/MPP-style gateway; this is the verified instance, not a claim about the category as a whole. Reference implementation: A worked, independently verifiable reference approach (content-addressed action identifier + permissionless on-chain anchor) is specified at https://github.com/giskard09/argentum-core/blob/main/docs/spec/action-ref.md, with applied worked examples at https://github.com/giskard09/r0x-action-ref-anchor, https://github.com/giskard09/dapr-history-anchor, and https://github.com/giskard09/scitt-capsule-anchor — each anchored on Base mainnet, independently verifiable on-chain. Presented as one existing technical approach to the gap, not as a claim that any specific gateway operator has adopted it.

9. IP and confidentiality

Confidentiality level: [x] Public IP notes: Contribution by Rama. The case and the referenced approach are implementation-neutral and openly licensed (MIT); no confidential deployment information.

10. Assets

Link to assets: [x] Code — [x] Protocol — https://github.com/giskard09/argentum-core/blob/main/docs/spec/action-ref.md (spec) and the three worked-example repos named above (r0x-action-ref-anchor, dapr-history-anchor, scitt-capsule-anchor), each anchored and verifiable on Base mainnet. IP notes: Self-generated, openly licensed, no proprietary mechanism.