Features

Everything you need to govern agentic commerce

From agent session tracking to multi-protocol settlement, TES provides the infrastructure for compliant, auditable AI commerce.

tes events --stream

Capabilities

Six pillars of agentic governance

Every capability works together — events flow through governance, into projections, through settlement, and out to your systems.

01

Agent Governance

Every AI agent action — browse, compare, purchase — is captured as an immutable event. Attach Verifiable Intent credentials to prove authorisation. Generate compliance reports for EU AI Act and beyond.

startedtakenattachedinitiatedcompleted
02

Entity Lifecycle Management

Track every entity from creation to completion: agent sessions, invoices, subscriptions, usage meters, settlements, and more. State is always derived from events — never stale, always auditable.

// Query any entity's current state
const invoice = await tes.project("invoice", "inv_8f3a");

// Returns derived state from all events:
// {
//   status: "paid",
//   amount: 249.99,
//   line_items: 3,
//   settlement_id: "stl_e4f2",
//   paid_at: "2026-02-17T10:32:00Z"
// }
03

Multi-Protocol Settlement

Agent Pay, x402, Stripe, Mastercard — settle through any protocol. Settlement auto-triggers on event conditions. Full double-entry ledger with every debit and credit recorded.

// Settlement triggers automatically
{
  type: "settlement.completed",
  data: {
    protocol: "agent_pay",
    vi_credential: "vi_m4c9",
    net_amount: 242.49,
    fee: 7.50,
    ledger_entries: [
      { dr: "buyer_widgets", cr: "acme_corp", amount: 249.99 }
    ]
  }
}
04

Compliance & Audit

Immutable event log purpose-built for EU AI Act compliance. Jurisdiction-based checks run automatically. Export audit trails for any entity, any time range — instant answers for regulators.

// Export audit trail for any entity
const trail = await tes.audit("agent_session", "ses_7f2a", {
  format: "eu_ai_act",
  time_range: "last_30_days",
});

// Returns structured compliance report:
// {
//   entity: "ses_7f2a",
//   events: 14,
//   vi_verified: true,
//   jurisdiction: "EU",
//   compliant: true
// }
05

Real-Time Projections

Current state is derived from events, not stored in mutable tables. Full history is preserved. Related events are linked across agents, sessions, and entities — so you can always trace the full journey.

// Trace the full journey via correlation
const journey = await tes.correlate("cor_x7y8z9");

// Links events across entities:
// agent_session.started     → ses_7f2a
// agent_session.action_taken → ses_7f2a
// invoice.created            → inv_8f3a
// settlement.completed       → stl_e4f2
06

AI-Powered Enrichment

Vision analysis identifies and grades items automatically. Market pricing pulls real-time comparables. Semantic search finds similar entities across your entire catalogue — all triggered by events.

// Enrichment triggers on entity creation
await tes.emit("item.created", {
  item_id: "itm_9g4b",
  category: "electronics",
  images: ["front.jpg", "back.jpg"],
});

// TES auto-enriches:
// → Vision: "iPhone 14 Pro, Grade A, minor scratches"
// → Pricing: { market_avg: 680, suggested: 649 }
// → Search: indexed for semantic similarity

Under the Hood

Built for scale, auditability, and speed

The technical foundations that make TES governance possible.

Event Sourcing

Append-only, immutable event log. State is always derived, never stored directly. Every event is cryptographically ordered and tamper-evident.

// Every state change is an immutable event
{
  id: "evt_a1b2c3",
  type: "agent_session.action_taken",
  timestamp: "2026-02-17T10:00:00Z",
  correlation_id: "cor_x7y8z9",
  subject: { type: "agent_session", id: "ses_7f2a" },
  data: { action: "compare", entity_id: "prod_b2" }
}

Use Cases

One governance layer, every entity lifecycle

Agent sessions, invoices, subscriptions, metered APIs, physical goods — if it has a lifecycle, TES governs it.

Full-journey observability for AI agents

Every agent action — browse, compare, select, pay — captured as immutable events. Verifiable Intent (Mastercard + Google) proves authorisation. TES proves behaviour. EU AI Act compliant by design.

startedaction_takenvi_credential_attachedpayment_initiatedcompleted
vi_credential_attachedcompleted

Try it yourself

See TES in action

Simulate real-world entity lifecycles in the playground, or start building with the free tier.