Audience: Payment platform architects, fintech compliance officers, merchants deploying AI purchasing agents, card network compliance teams, and financial regulators evaluating agentic commerce governance. Prerequisites: Familiarity with payment processing and basic AI agent concepts. For protocol-level payment mapping, see Agentic Payment Protocol Crosswalk.

What SWT3 does and does not do: SWT3 witnesses the transaction lifecycle. It does not move money, authorize payments, process cards, or replace payment network compliance (PCI DSS, PSD2/PSD3, Regulation E). The protocol provides the evidence layer that proves what the agent was authorized to do, what it did, and whether the outcome matched the intent. Your payment infrastructure moves the money. SWT3 proves why it moved.

1. Why This Matters Now

Agentic commerce -- AI agents that independently search for products, evaluate options, make purchasing decisions, and complete payments without real-time human involvement -- crossed from theoretical to operational in 2026:

  • 120 million transactions in a single week (Alipay AI Pay, week of February 5-11, 2026) -- the first time agent-initiated commerce hit mass scale. Volumes have grown since.
  • $3-5 trillion global opportunity by 2030 (McKinsey), with Morgan Stanley projecting $190-385 billion of US ecommerce alone
  • Three competing commerce protocols: ACP (OpenAI + Stripe), UCP (Google + Shopify), AP2 (Google A2A commerce extension) -- all prioritizing interoperability, none providing governance
  • Payment networks live: Visa Trusted Agent Protocol, Mastercard Agent Pay (with October 2026 agent probability scoring), American Express Agent Purchase Protection, Coinbase Agentic Wallets
  • Zero governance infrastructure: No card network has published agent-specific chargeback rules. No payment regulation addresses agent authorization. No protocol records why an agent made a specific purchasing decision.

The commerce protocols handle the plumbing. The payment networks handle the money. Nobody handles the evidence.

2. MAS SAFR's Three Questions

The Monetary Authority of Singapore published the SAFR framework (Safeguards for Agentic Finance at Runtime) on July 3, 2026 -- the first time a financial regulator wrote the runtime governance problem as specific questions. Every agentic commerce system must answer these three:

#SAFR QuestionWhat It AsksSWT3 Answer
1What is the agent authorized to do?Mandate: scope, limits, permitted actions, validity windowAI-DEL.1 delegation grant with explicit scope, depth, and timeout
2How is a proposed action assessed before execution?Pre-execution check: runtime evaluation against policy before the agent actsAI-DEL.2 boundary enforcement + AI-FIN.1 authorization check
3What is recorded when the outcome diverges from intent?Divergence record: evidence retained when reality departs from the authorized planAI-INCIDENT.1 + AI-EMRG.1 override + forensic anchor chain

SAFR is voluntary but foundational. It is the first regulator-convened framework that specifies governance at the moment an agent acts, rather than during pre-deployment testing or post-event audit. Every subsequent regulation of agentic finance will reference these three questions.

3. The Liability Vacuum

When an AI agent buys the wrong product, overpays, or purchases from an unauthorized vendor, existing law provides no clear answer to "who pays?"

FrameworkCoverageAgent Commerce Gap
Regulation E (US)Electronic fund transfersDoes not resolve whether granting an agent payment credentials constitutes consumer authorization. No specific framework for agent-initiated disputes.
EU Consumer Rights DirectiveConsumer purchasesRequires consumers to "explicitly acknowledge a payment obligation." Whether an agent can do so on behalf of a consumer is unresolved.
Card Network RulesChargeback and dispute processesNo card network has published agent-specific chargeback reason codes or rules as of November 2026.
UCC Article 2 (US)Sale of goodsAgent authority doctrine assumes human agents with measurable intent.
PSD2/PSD3 (EU)Payment services, Strong Customer AuthenticationSCA requires "something the user is, has, or knows." Whether an agent can satisfy SCA on behalf of a consumer is unresolved. PSD3 proposal does not specifically address agent-initiated payments.
EMVCo Framework (Global)Card payment specificationsDraft "EMV Agentic Payments -- Framework for Specifications" released September 1, 2026. Proposes an intent layer but leaves core liability questions unresolved.

Default outcome: Merchants absorb losses. 93% of merchants believe AI providers should bear financial loss from agent errors, but no framework supports that allocation. The evidence gap is the core problem: without proof of what the agent was authorized to do, nobody can determine who is responsible when it goes wrong.

4. The Five-Stage Transaction Lifecycle

Every agent-initiated transaction passes through five stages. Each stage requires specific evidence to answer SAFR's questions and support dispute resolution.

StageWhat HappensSAFR QuestionSWT3 Procedure
1. MandateHuman principal authorizes agent with scope, limits, and validity windowQ1: AuthorizationAI-DEL.1
2. DecisionAgent evaluates options and selects a product/vendor/priceQ2: Pre-execution assessmentAI-EXPL.1 + AI-FIN.1
3. ExecutionAgent initiates the purchase within the authorized mandateQ2: Pre-execution assessmentAI-FIN.1 + AI-DEL.2
4. SettlementPayment completes, delivery confirmedQ1: Was it within mandate?AI-FIN.1 (settlement verification)
5. DisputeSomething went wrong -- forensic reconstruction neededQ3: Divergence recordFull anchor chain reconstruction

5. Stage-by-Stage Witness Mapping

Stage 1: Mandate -- AI-DEL.1

Delegation Grant

The human principal (or the organization's policy engine) issues a mandate defining what the agent may do. The mandate specifies: spending limits (per-transaction and aggregate), permitted product categories, approved vendors, validity window (start/end time), and delegation depth (can the agent sub-delegate to other agents?).

What the anchor records: Observed delegation depth (factor_a: 0 = direct agent), maximum authorized depth (factor_b: per policy), and total active delegations (factor_c: count). The anchor is the cryptographic receipt proving the mandate existed and delegation boundaries were defined before the first transaction.

Compliance Note

The mandate anchor is the single most important piece of evidence in an agentic commerce dispute. It proves what the agent was authorized to do at the moment the transaction occurred. Without it, the dispute devolves into "the consumer says they didn't authorize this" vs. "the merchant says the agent had permission." The AI-DEL.1 anchor's timestamp proves the mandate was issued before the transaction, and its scope proves what limits were in effect.

Stage 2: Decision -- AI-EXPL.1 + AI-FIN.1

Decision Provenance

The agent evaluates available options and selects a product. AI-EXPL.1 records whether an explanation of the decision rationale was generated (why product X over product Y). AI-FIN.1 records the pre-execution authorization check: is this transaction within the mandate?

What the anchors record: AI-EXPL.1: explanation required (factor_a=1) and provided (factor_b=1). AI-FIN.1: authorization type (factor_a), amount (factor_b), status=pending (factor_c=0).

Compliance Note

Decision provenance is what separates a governed agent from an unmonitored script. If a consumer later asks "why did the agent choose this product?", the AI-EXPL.1 anchor proves an explanation capability was active. If a merchant is accused of influencing the agent's decision through dark patterns, the decision provenance record shows what information the agent had access to. This is the evidence layer that payment protocols do not provide.

Stage 3: Execution -- AI-FIN.1 + AI-DEL.2

Transaction Execution

The agent initiates the purchase. AI-FIN.1 records the transaction details: authorization type, amount, and status (authorized). AI-DEL.2 records whether the transaction fell within the mandate boundary (allowed) or was blocked (boundary enforcement).

What the anchors record: AI-FIN.1: authorization_type (factor_a=4 for budget_limit), amount_cents (factor_b), status=authorized (factor_c=1). AI-DEL.2: max permitted depth (factor_a), observed depth (factor_b), boundary action (factor_c: 0=blocked, 1=warned, 2=escalated, 3=allowed).

Compliance Note

The execution anchor is the transactional receipt -- but with governance context that a payment receipt lacks. A credit card receipt proves money moved. The AI-FIN.1 anchor proves the transaction was within the mandate's authorized scope at the moment of execution. If the transaction exceeds the mandate (wrong vendor, over budget, outside validity window), AI-DEL.2 records the boundary violation.

Stage 4: Settlement -- Verification Against Mandate

Settlement Verification

After the transaction settles, the system verifies: did the final price match the authorized price? Were substitutions made within policy? Was delivery confirmed?

What the anchor records: A follow-up AI-FIN.1 anchor with the settlement status, confirming the transaction completed as authorized or flagging divergence.

Compliance Note

Settlement is where price discrepancies, unauthorized substitutions, and delivery failures surface. The settlement anchor proves whether the completed transaction matches the authorized transaction. If the agent authorized $47.99 but the settlement amount is $52.49 (tax, fees, substitution), the divergence is documented. This is the evidence the chargeback process needs but currently lacks for agent-initiated transactions.

Stage 5: Dispute -- Forensic Chain Reconstruction

Dispute Resolution Evidence

When a consumer, merchant, or regulator disputes a transaction, the full lifecycle can be reconstructed: mandate (AI-DEL.1) proves authorization; decision (AI-EXPL.1) proves rationale; execution (AI-FIN.1) proves the transaction was within scope; settlement proves the outcome. Every anchor is timestamped and cryptographically linked to the specific agent, model, and decision moment.

Compliance Note

No card network has agent-specific chargeback rules. The existing dispute process assumes a human authorized the purchase. When an agent buys the wrong thing, who is liable? The five-stage evidence chain answers this question forensically: was the mandate clear? Did the agent act within it? Was the boundary enforced? Did the outcome match? The party whose evidence is weakest at the point of failure bears the loss -- and the anchor chain makes the failure point unambiguous.

6. Trust Mesh for Agent-to-Agent Commerce

When a buyer agent negotiates with a seller agent, both parties need to verify each other's governance posture before transacting. The SWT3 trust mesh provides mutual verification:

  • Buyer agent presents credential (AI-TRUST.2): proves the buyer agent has a valid mandate, is operating within scope, and has governance controls active
  • Seller agent verifies (AI-TRUST.1): checks the buyer agent's credential against freshness requirements, signature validity, and procedure coverage
  • Seller agent presents credential: proves the seller agent is authorized to accept agent-initiated purchases and has dispute resolution capabilities
  • Buyer agent verifies: checks the seller before committing to the purchase

This bilateral verification produces a trust mesh where both parties have cryptographic proof they transacted with a governed counterpart. If either party's governance degrades (revoked credential, expired mandate, failed verification), the transaction does not proceed.

Protocol-neutral: The trust mesh works across all three commerce protocols (ACP, UCP, AP2) and all payment networks (Visa TAP, Mastercard Agent Pay, Stripe MPP, Google AP2, x402). SWT3 is the governance layer; the commerce protocol is the interoperability layer; the payment network is the settlement layer. Each handles a different concern.

7. Walkthrough: AI Agent Purchases Office Supplies

A company deploys an AI procurement agent to order routine office supplies. The agent has a $500/week budget, is restricted to 3 approved vendors, and requires no human approval for individual orders under $100.

Monday 9:00 AM -- Mandate Issued

Procurement manager configures the agent

The agent receives its mandate: $500/week, vendors A/B/C only, $100 per-order limit without approval, $100-500 requires manager approval. Validity: Monday through Friday, 8 AM to 6 PM.

Anchor: AI-DEL.1 delegation grant. Scope documented, timeout set to Friday 6 PM.

Tuesday 10:15 AM -- Agent Orders Printer Paper

Within scope, no approval needed

Agent finds printer paper at Vendor B for $34.99. Compares with Vendor A ($37.50) and Vendor C ($35.25). Selects Vendor B (lowest price, approved vendor, within $100 limit).

Anchors: AI-EXPL.1 (explanation generated: lowest price among approved vendors). AI-FIN.1 (factor_a=4 [budget_limit], factor_b=3499, factor_c=1 [authorized]). AI-DEL.2 boundary check: PASS.

Wednesday 2:30 PM -- Agent Tries to Order Desk Chairs

Exceeds per-order limit, escalates

Agent identifies a need for 2 desk chairs at $189 each ($378 total) from Vendor A. Amount exceeds $100 per-order limit. Agent escalates to procurement manager for approval.

Anchors: AI-FIN.1 (factor_a=4, factor_b=37800, factor_c=3 [escalated]). AI-HITL.1 (factor_a=1 [review required], factor_b=0 [pending]). Manager approves Thursday morning: AI-HITL.1 (factor_b=1 [completed]).

Friday 4:45 PM -- Dispute: Wrong Paper Delivered

Vendor B shipped recycled paper instead of premium

The printer paper delivered is recycled, not the premium grade ordered. The company disputes the order. The forensic chain shows: mandate was active (AI-DEL.1), agent selected based on lowest price for the specified SKU (AI-EXPL.1), order was within scope (AI-DEL.2 PASS), but the delivered product does not match the ordered SKU. Liability falls on Vendor B (fulfillment error), not the agent or the company.

Evidence produced: The anchor chain proves the agent ordered the correct product. The divergence occurred at fulfillment, not at decision or execution. Without this evidence, the dispute is a he-said-she-said between the company and the vendor. With it, the failure point is unambiguous.

Why This Changes the Conversation

Today, when an AI agent purchases the wrong thing, the merchant and the consumer argue about what happened. The payment receipt shows money moved. Nobody can prove what the agent was authorized to buy, why it chose this product, or whether it acted within scope.

With lifecycle witnessing, every stage of the transaction is anchored before the next stage begins. The mandate precedes the decision. The decision precedes the execution. The execution precedes the settlement. The timestamps are cryptographic, not self-reported. An auditor can reconstruct the full lifecycle for any transaction and identify exactly where the divergence occurred -- and whose responsibility it is.

MAS SAFR asked three questions. The lifecycle evidence chain answers all three: what was the agent authorized to do (mandate anchor), how was the action assessed before execution (boundary check anchor), and what was recorded when the outcome diverged from intent (the complete forensic chain from mandate through dispute).

8. Payment Protocol Integration

SWT3 lifecycle witnessing works alongside all major agentic commerce protocols. Each protocol handles interoperability; SWT3 handles governance evidence.

ProtocolWhat It DoesSWT3 Evidence Layer
Visa TAPEd25519 HTTP signatures verifying agent identityAI-TRUST.2 credential + AI-FIN.1 per transaction
Mastercard Agent PayAgentic Token binding cardholder + agent + scopeAI-DEL.1 mandate + AI-FIN.1 execution
ACP (OpenAI + Stripe)Checkout, payment delegation, cart managementAI-EXPL.1 decision + AI-FIN.1 settlement
UCP (Google + Shopify)Product discovery through post-purchase supportFull lifecycle: AI-DEL.1 through dispute chain
x402HTTP-layer micropaymentsAI-FIN.1 per transaction (high-volume)

For detailed protocol-to-procedure mapping, see Agentic Payment Protocol Crosswalk.

9. Quick Start

Python

from swt3_ai import Witness

witness = Witness(
    api_key="axm_live_...",
    tenant="ACME_CORP",
    clearing_level=2
)

# Stage 1: Mandate -- delegation tree
# factor_a = observed delegation depth (0 = direct, no sub-delegation)
# factor_b = max authorized depth per policy
# factor_c = total active delegations
witness.witness(
    procedure="AI-DEL.1",
    model_id="procurement-agent-v1",
    factorA="0",          # Direct agent (depth 0)
    factorB="1",          # Max 1 hop authorized
    factorC="1"           # 1 active delegation
)

# Stage 2+3: Decision and Execution
witness.witness(
    procedure="AI-FIN.1",
    model_id="procurement-agent-v1",
    factorA="4",          # Budget-limit authorization
    factorB="3499",       # $34.99 in cents
    factorC="1"           # Authorized
)

# Stage 3: Boundary check
# factor_a = max permitted depth
# factor_b = actual observed depth
# factor_c = boundary action (0=blocked, 1=warned, 2=escalated, 3=allowed)
witness.witness(
    procedure="AI-DEL.2",
    model_id="procurement-agent-v1",
    factorA="1",          # Max depth 1
    factorB="0",          # Actual depth 0 (within boundary)
    factorC="3"           # Allowed
)

witness.flush()

TypeScript

import { Witness } from '@tenova/swt3-ai'

const witness = new Witness({
  apiKey: 'axm_live_...',
  tenant: 'ACME_CORP',
  clearingLevel: 2
})

// Stage 1: Mandate -- delegation tree
witness.witness({
  procedure: 'AI-DEL.1',
  modelId: 'procurement-agent-v1',
  factorA: '0',          // Direct (depth 0)
  factorB: '1',          // Max 1 hop
  factorC: '1'           // 1 active delegation
})

// Stage 2+3: Decision and Execution
witness.witness({
  procedure: 'AI-FIN.1',
  modelId: 'procurement-agent-v1',
  factorA: '4', factorB: '3499', factorC: '1'
})

// Stage 3: Boundary check
witness.witness({
  procedure: 'AI-DEL.2',
  modelId: 'procurement-agent-v1',
  factorA: '1',          // Max depth 1
  factorB: '0',          // Actual depth 0
  factorC: '3'           // Allowed
})

await witness.flush()