a4sx — the problems it solves
a4sx is the substrate your agents run on. One durable event ledger, the visibility and governance to run agents, and control over their secrets. A fleet router is coming: it will add control over their reasoning, and a flywheel that makes them cheaper and better over time. This page is the map: each section leads with the value (what you get), then how it works and where to try it in the product.
v0.3: the fleet router and the features that run on it are marked as coming: they are not yet available on the hosted service. "See what your agents are actually doing" now points to
user-onboarding. The vault section no longer describes how secrets are stored. The previous version is still served as v0.2.
Read it top-down for the pitch, or jump to the problem you have. Every capability is a real tab in the app and a spec you can open in Docs, except the fleet router and what runs on it, which are coming.
┌──────────────────────────── your agents (anywhere) ───────────────────────────┐
webhooks ───▶ │ 📥 ingest 📒 ledger 👁 visibility 🏛 governance │
services │ (Events) (Events) (Atlas/Events) (Patterns/Fleet) │
│ │
│ 🔀 router 🔐 vault ♻ cache + data-flywheel │
│ (coming) (secrets) (coming, with the router) │
└────────────────────────── one event-sourced collector ────────────────────────┘
📥 Give your agent an inbox for the world · Events
Value. A service emits webhooks, but your agent has nowhere to receive them. a4sx is the durable front door: point the webhook at it and your agent consumes a clean, replayable event stream.
The problem. You want your agent to react to events from some service (GitHub, Stripe, Jira, a CI run) but there's no easy, durable place to send those events to.
How it works. The collector is an append-only, event-sourced ingest. A producer POSTs an envelope to /events (or a webhook lands and is normalized); every event is validated, deduplicated by event_id, and delivered to subscribers over SSE. An agent runs the shim, subscribes to the event types it cares about, and each delivered event becomes context for a reasoning step — no polling, no bespoke queue.
POST /events
{ "event_type": "pr.opened", "payload": {"repo":"acme/api","number":42},
"subject": {"repository":"acme/api"} }
→ 201, deduped by event_id, fanned out on /subscriptions/sse
Where: the Events tab · spec: onboarding-an-agent.
📒 One ledger for agents running anywhere · Events
Value. Run agents on your laptop, a VPS, CI, or a fleet of boxes — they all report to one event-sourced ledger, so you have a single, replayable source of truth instead of scattered logs.
The problem. Your agents run in many places and you have no central, durable record of what happened — just logs on boxes you have to go find.
How it works. Every agent authenticates with an emitter token and appends events to the same collector, wherever it runs. The log is the source of truth: the read-models (Atlas, discovery, metering, entitlements) are folds over it and rebuild by replay, so nothing is lost and history is queryable by type, subject, correlation id, or time.
GET /events?correlation_id=deploy-42&order=timestamp
→ every event across every agent that touched deploy-42, oldest-first, from one durable log
Where: Events / Atlas · spec: envelope.
👁 See what your agents are actually doing · Atlas, Events
Value. A live map of your agents — what they emit, what they consume, where work flows — so "what is my fleet doing right now?" has an answer you can look at.
The problem. Agents act autonomously and you can't tell, at a glance, what's healthy, what's stuck, or how work moves between them.
How it works. Atlas renders the producer/event topology and cascades from the live stream; the Events view folds the same stream into a producer→event flow graph with per-producer health. Attention and Inbox surface what needs a human. All of it is derived from the ledger, so the picture is honest — there's no separate telemetry to trust.
Events tab → producer A ─pr.opened→ producer B ─standup.done→ …
each edge = a real emitted event; each node = health + what it's doing now
Where: Atlas, Events · spec: user-onboarding.
🏛 Govern how your agents are built · Patterns, Fleet
Value. Turn a one-off agent session into a governed, maintained capability: scope held at the parent, senses declared, credentials in the vault, deploys health-gated — with a conformance check that says whether it's really an operator or just a stub.
The problem. An agent that runs itself needs guardrails — what it may do, what it perceives, how it's deployed — or it's an ungoverned script holding your credentials.
How it works. The self-operating-service pattern composes four pillars — senses, agency, memory, governance. An agent manifest holds scope + autonomy at the parent; triggers declare what it perceives; secrets come from the vault; code lands on a review branch behind a health-gated deploy. oci-strata and fleet desired-state describe how images and the running fleet are built and reconciled.
Patterns tab → session → manifest → triggers → secrets → health → capability
GET /sos/gallery → each operator: autonomy · senses · grants · mandate · live?
Where: Patterns, Fleet · specs: sos-gallery, self-operating-service, oci-strata.
🔀 A fleet router is coming — use your subs, not API keys · coming
Status. The fleet router is not yet available on the hosted service. This section describes what it is for; there is nothing to set up today.
Value. Once it opens, you will route every agent's model calls through one place you control: pick the upstream per agent, use your Claude/OpenAI subscriptions instead of per-agent API keys, and see what each agent spent.
The problem. Each agent needs model access; handing out API keys is ungovernable and wastes your existing subscriptions, and you can't see or steer who calls what.
How it will work. The fleet router will accept the same requests as the Anthropic Messages API, so an agent points its base URL at it instead of at the model provider. It will apply per-agent routing policy and reach the model with the upstream credential your workspace stores, so the agent carries no upstream API key. Usage will be metered per workspace.
Where: not available yet.
🔐 Share the secrets your agents need · Vault
Value. One event-sourced vault for the credentials your agents use, granted per agent — so a token lives in one place, is materialized only where it's allowed, and rotating it is one update instead of editing every box.
The problem. Agents need credentials to reach GitHub, cloud, internal systems — and copying tokens into images, scripts, and env-files is a leak and a rotation nightmare.
How it works. The vault keys each secret to grants: an agent materializes only the secrets it's been granted, into a 0600 file or env at boot — never on argv, never in an image layer. Because it shares the ledger, access is auditable and a rotation propagates from a single write.
vault: set gh-pat → grant to operator X
X at boot: reads its granted secrets into 0600 files; rotation = one vault update
Where: the vault surface · spec: secret-vault.
♻ Spend fewer tokens, reason better over time · coming, with the fleet router
Status. Both parts run on your agents' model traffic through the fleet router, so they arrive with it. The Data-Flywheel is a closed beta, set up with each workspace on request.
Value. A semantic cache injects relevant prior knowledge into each request (cheaper, better answers), and the Data-Flywheel turns your agents' own successful traces into a model trained for your workspace that keeps improving.
The problem. Every reasoning call pays full price and starts cold; your agents keep re-deriving the same things and never compound what they learn.
How it works. The cache embeds each request, retrieves relevant cases + distilled lessons, and appends them as prior knowledge; after a clean answer it records the exchange to learn from. The data-flywheel (entitlement-gated, per tenant) captures traces to a tenant-scoped sink and can train a LoRA on them, served behind the router as an understudy you promote when it's good enough.
request → cache injects "relevant prior knowledge" → model
clean answer → recorded → (opt-in) trained into a per-tenant adapter you promote
Where: Account (Data-Flywheel panel) · spec: data-flywheel-design.
Try it
- In the app: the Overview tab is this page as clickable cards, each linking straight to the view that solves it. The read-only demo (
demo.session-exchange.com) opens on that Overview so you can look around a live tenant without signing in. - First agent, end to end:
getting-started→user-onboarding. - These are some of the problems a4sx solves; the Docs catalog has the full spec set.