Reference Architecture
This blueprint describes the components of a mature agentic platform: a platform where the guarantees the specification requires are provided once, by shared components, rather than reinvented by every team. It is informative. No stack has to adopt this exact decomposition. It exists for three audiences:
- Platform teams deciding what to build around their agent framework.
- Vendors of gateways, policy engines, workflow engines, identity providers and observability tools, who can implement a component’s interface and publish the controls it satisfies, so that adopters inherit them.
- Assessors, who use it to turn structural findings into a remediation plan with a target design.
How a Run flows through it
- Admission. A Principal starts a Run. The
identity-brokermints a short-lived credential naming the principal as subject and the agent as actor, scoped to the Workflow. Thescheduleradmits the Run through a durable queue according to capacity and priority, andrelease-controlpins it to a Workflow version. - Reasoning. The
orchestratordrives control flow and enforces bounds. It asks thecontext-servicefor the smallest sufficient, labelled context, and consults models only through themodel-gateway, which owns retries, quotas and cost. - The boundary. Every ToolRequest goes to the
tool-gateway, which checks it against the Tool’s contract and asks thepolicy-enginefor a decision. Read Tools run against systems of record that enforce the delegated identity at the data layer; their output is size-limited, labelled and marks the Run tainted if untrusted. - Intent, not effect. An effectful request becomes an ActionIntent, committed to the
action-ledgeratomically with the Run’s checkpoint in thestate-store. If policy requires it, the intent waits for theapproval-service, which costs a database row rather than a held process. - Execution. A separate
executorperforms approved intents exactly once, through theegress-proxy, records the external reference and paces effects per account. - Evidence. Every component emits traces in the common schema to the
telemetry-pipeline, which redacts in-process (tokens go to thepii-vault) before anything is exported. Theoutcome-storejoins Runs to business outcomes, and theeval-platformandrelease-controlgate the next Change on that evidence.
Components
scheduler Run plane
Admits Runs through a durable queue, allocates capacity by priority and tenant, and protects in-flight Runs when shedding load.
Interface:
| submit(workflow, version, principal, priority) → run_id | refused(status) |
Typically realised by: Durable queues, workflow engines' task queues, or a platform job service.
Satisfies: EAS-05.07 EAS-05.12 EAS-05.14 EAS-06.05 EAS-08.09 EAS-09.02 EAS-09.07 EAS-09.08 EAS-10.02
orchestrator Run plane
Owns control flow — the graph or loop that decides when the model is consulted, enforces step, token, time and cost limits, detects loops, and stops Runs with a distinct status.
Interface: Exposes every hook in the hook contract.; Never performs business side effects inline.
Typically realised by: The agent framework itself (LangGraph, OpenAI Agents SDK, CrewAI Flows, …) configured per its stack profile.
Satisfies: EAS-01.01 EAS-01.03 EAS-01.04 EAS-02.05 EAS-02.06 EAS-05.01 EAS-05.02 EAS-05.03 EAS-05.10 EAS-06.04 EAS-07.03 EAS-07.09 EAS-08.07 EAS-08.08 EAS-09.01 EAS-09.02 EAS-09.03 EAS-09.04 EAS-09.05 EAS-09.06 EAS-09.07 EAS-09.08 EAS-10.02
model-gateway Run plane
The single path to model providers. Owns retries (and is the only layer that does), retry budgets, circuit breakers, token-denominated hierarchical quotas, routing and cascades, and cost metering.
Interface: OpenAI- or provider-compatible inference API, with tenant, Run and priority headers.; Emits ModelCall spans with usage and cost.
Typically realised by: An LLM gateway or proxy deployed in front of all providers.
Satisfies: EAS-05.02 EAS-05.03 EAS-05.04 EAS-05.08 EAS-05.09 EAS-05.11 EAS-05.14 EAS-07.09 EAS-08.04 EAS-11.07
context-service Run plane
Assembles the smallest sufficient context — stable cacheable prefix, precomputed snapshots, fresh lookups, bounded retrieval — with an `as_of` and trust label on every item.
Interface: assemble(run, step, needs) → ContextItem[] with kind, as_of, trust, tokens, truncated
Typically realised by: Retrieval services, feature or snapshot stores, and parameterised query templates.
Satisfies: EAS-06.07 EAS-07.01 EAS-08.02 EAS-08.04 EAS-08.05 EAS-08.06 EAS-08.07
tool-gateway Run plane
The enforcement point between reasoning and execution. Every ToolRequest passes through it; it validates arguments against the Tool contract, applies per-tool limits, consults the policy engine, converts effectful requests into ActionIntents, enforces output limits with explicit truncation, and marks taint.
Interface: Binds the tool.before and tool.after hooks.; Tool registry with contracts (schemas, effect class, trust, scopes, limits) and pinned third-party descriptions.
Typically realised by: A tool proxy or MCP gateway, or a wrapper applied to every tool in-process.
Satisfies: EAS-02.01 EAS-02.02 EAS-02.03 EAS-02.04 EAS-03.01 EAS-04.01 EAS-04.02 EAS-05.03 EAS-05.05 EAS-05.06 EAS-05.07 EAS-06.01 EAS-06.02 EAS-06.08 EAS-06.10 EAS-07.01 EAS-07.02 EAS-07.04 EAS-07.06 EAS-08.01 EAS-08.03 EAS-08.09 EAS-09.06
policy-engine Run plane
The decision point. Evaluates structured requests and outputs against versioned, tested policy and returns allow, deny or escalate with the rule that decided.
Interface: decide(run_context, request) → {decision, rule_id, obligations}
Typically realised by: A policy engine evaluating policy-as-code, or ordinary tested code.
Satisfies: EAS-01.03 EAS-02.01 EAS-03.08 EAS-04.01 EAS-04.02 EAS-04.03 EAS-04.04 EAS-04.05 EAS-06.09 EAS-07.02 EAS-07.03 EAS-07.10 EAS-08.06
action-ledger Run plane
Durable record of every side effect the system has decided to perform, keyed by a semantic idempotency key and committed atomically with the Run's checkpoint. Approval, dry runs, auditing and pacing are queries and state transitions over it.
Interface:
| commit(intent) → intent_id | duplicate(intent_id) |
Typically realised by: A transactional outbox table partitioned by tenant.
Satisfies: EAS-02.04 EAS-03.02 EAS-03.03 EAS-03.04 EAS-03.05 EAS-03.06 EAS-03.07 EAS-03.08 EAS-03.10 EAS-06.13
executor Run plane
Performs committed intents against the outside world exactly once — passing keys through, upserting, or leasing and reconciling — records the external reference, paces effects per account, and runs compensations for reversible actions.
Interface: Reads approved intents from the ledger; never invoked by the model.
Typically realised by: Worker processes or workflow-engine activities.
Satisfies: EAS-02.05 EAS-02.07 EAS-03.05 EAS-03.06 EAS-03.07 EAS-03.08 EAS-03.09 EAS-03.10 EAS-06.06 EAS-06.13 EAS-09.06 EAS-10.09
approval-service Run plane
The human review queue. Moves intents from proposed to approved or rejected, supports batch review, and records who approved what.
Interface: approve(intent_ids, reviewer) / reject(intent_ids, reviewer, reason)
Typically realised by: An internal review UI over the ledger.
Satisfies: EAS-03.07 EAS-03.08 EAS-04.03 EAS-07.03 EAS-11.02
identity-broker Trust plane
Mints a short-lived, per-Run delegated credential (subject = principal, actor = agent) by token exchange, narrows it on every delegation, issues per-Run cloud credentials, and holds workload identity so no static secrets live in the runtime.
Interface: mint(principal, workflow) → credential; exchange(credential, child_scopes) → narrower credential
Typically realised by: An identity provider supporting token exchange, plus cloud session policies.
Satisfies: EAS-02.03 EAS-04.06 EAS-06.03 EAS-06.04 EAS-06.05 EAS-06.06 EAS-06.09 EAS-06.11 EAS-06.12 EAS-06.13 EAS-07.06
egress-proxy Trust plane
The only route out of the agent runtime. Allowlists model providers and registered tool endpoints; refuses everything else.
Interface: Network-level; transparent to agent code.
Typically realised by: A forward proxy or service-mesh egress gateway.
pii-vault Trust plane
Holds the real values behind redaction tokens, with access control and audited re-identification. Deleting a person's vault entries makes their tokens meaningless everywhere.
Interface: tokenise(value, subject) → token; reveal(token, purpose) → value (audited)
Typically realised by: A tokenisation service or secrets vault.
state-store Data plane
Checkpoints at every Step boundary, tagged with the Workflow version; large objects by reference; retention and deletion like any store of personal data.
Interface: put(run_id, step, state, version); get(run_id) → latest checkpoint
Typically realised by: The framework's checkpointer backed by a durable database, or a durable workflow engine's history.
Satisfies: EAS-02.06 EAS-03.04 EAS-08.07 EAS-09.02 EAS-09.03 EAS-09.04 EAS-09.05 EAS-09.08 EAS-09.09 EAS-09.10 EAS-12.08 EAS-12.10
memory-store Data plane
Long-term memory with provenance on every entry — writing Run, source, trust — so untrusted-derived memory is downgraded or excluded.
Interface: Binds the memory.write hook.
Typically realised by: A database or vector store with provenance columns, partitioned by tenant.
telemetry-pipeline Data plane
Collects traces in the common schema, redacts in-process before export, captures payloads selectively, tiers storage, and derives metrics by Workflow version.
Interface: OpenTelemetry with the EAS attributes; redaction processor ahead of every exporter.
Typically realised by: OpenTelemetry SDKs and collectors, an interactive trace store and governed archive storage.
Satisfies: EAS-04.05 EAS-05.13 EAS-06.10 EAS-07.10 EAS-08.06 EAS-10.04 EAS-10.09 EAS-11.02 EAS-11.03 EAS-12.01 EAS-12.02 EAS-12.03 EAS-12.04 EAS-12.05 EAS-12.06 EAS-12.08 EAS-12.10
outcome-store Data plane
Joins Runs to business OutcomeEvents within attribution windows, computes cost per successful outcome and lift against holdouts.
Interface: Consumes run records (run.end) and outcome events keyed by entity.
Typically realised by: A warehouse table and scheduled jobs.
Satisfies: EAS-10.10 EAS-11.01 EAS-11.02 EAS-11.03 EAS-11.04 EAS-11.05 EAS-11.06
eval-platform Control plane
Versioned datasets, outcome and trajectory metrics, calibrated judges, minimum detectable effect, and the gates that block regressions.
Interface: evaluate(change, suite) → {metrics, significance, verdict}
Typically realised by: An evaluation harness run in CI, with stored datasets and judge calibration records.
Satisfies: EAS-01.05 EAS-02.07 EAS-07.08 EAS-07.11 EAS-08.10 EAS-09.11 EAS-10.03 EAS-10.04 EAS-10.05 EAS-10.06 EAS-10.07 EAS-10.08 EAS-10.10 EAS-11.07 EAS-12.11
release-control Control plane
Pins Runs to versions and drains old ones, runs shadow and canary with automatic rollback, and provides the kill switch per Workflow, version and tenant.
Interface:
| route(run) → version; disable(workflow | version | tenant) |
Typically realised by: Feature flags plus deployment tooling and workflow-engine versioning.
Satisfies: EAS-04.04 EAS-05.13 EAS-07.08 EAS-09.07 EAS-09.08 EAS-09.09 EAS-09.11 EAS-10.01 EAS-10.02 EAS-10.07 EAS-10.09 EAS-11.06
data-governance Control plane
Inventory of every store holding agent data, tenant and subject tagging, per-tenant keys, and deletion run as a tracked, verified fan-out job.
Interface:
| delete(subject | tenant) → job with per-store evidence |
Typically realised by: A data catalogue and a deletion orchestrator.
Satisfies: EAS-04.06 EAS-06.12 EAS-09.09 EAS-09.10 EAS-12.06 EAS-12.07 EAS-12.08 EAS-12.09 EAS-12.10 EAS-12.11
Design rules the components share
These rules follow from the essays. A component that breaks one of them cannot be relied on to provide the controls listed for it.
- Nothing a model can influence decides a guarantee. Gateways, policy, the ledger and the executor read identity from the Run’s credential and decide in deterministic code.
- Every blocking component fails closed. If the policy engine, identity broker or permission check is unavailable, the operation is refused, with any permission cache window stated explicitly.
- One owner per concern. Retries live in the model gateway only; effects happen in the executor only; redaction happens in-process before every exporter.
- Waiting costs a row, not a process. Approvals, timers and external events are state in the ledger and state store.
- Everything is tenant-scoped. Queues, caches, indexes, memory, ledger partitions, traces and keys all carry the tenant.
Implementing a component
A vendor or platform team implementing a component should publish:
- the component’s identifier from this page and the interface it implements;
- the controls it claims to satisfy, with the evidence an assessor can collect for each (configuration it exposes, telemetry it emits using the EAS attributes);
- the hooks it binds, for each stack profile it supports;
- what it does not cover. For example, a tool gateway that cannot intercept a provider’s hosted tools must say so, because those calls bypass it.
Adopters list implemented components in their manifest’s platform.components section to inherit the controls.