Skip to content
DWG EAA-2026-01 · REV C · Enterprise AI Agent Architecture

Enterprise AI Agent Architecture · DWG EAA-2026-01 · REV C

Architecture and operational discipline for AI agents in production.

An agentic system is justified when it automates work that previously required continuous human judgment, executes that work reliably without supervision, and keeps a human in control of decisions that carry meaningful risk.

← → to move · G for the index · ⌘K to search
AGENT LOOPon a clusterL01ModelL02OrchestrationL03ToolsL04MemoryL05GuardrailsL06IdentityL07Observability

L02 · ORCHESTRATION / RUNTIME

Deployment · Job · custom controller

The agent loop is a workload. An operator keeps it sized, wired, and permissioned from one declared resource.

The story in six chapters — the fifth is where it all runs

01Less repetitive workJudgment-bottlenecked tasks are removed from a human's workload entirely.
02More throughput per personThe same team processes more volume without an increase in headcount.
03Adapts to changing inputThe system continues to function correctly when the input changes shape, rather than failing.

17%

of organizations had deployed AI agents

Gartner 2026 CIO survey

60%+

expect to deploy within two years

Gartner 2026 CIO survey

40%+

of agentic AI projects projected to be scrapped by 2027

cited causes: weak governance, unclear ROI — Gartner

Framing

The agentic spectrum

I · Shape — Sheet 01 / 19

Defines the agentic spectrum, from deterministic scripts to multi-agent systems, and identifies which decisions are made by a human versus the system at each stage.

Who owns the decision

What to fetch
—
—
SYS
SYS
SYS
What to do with it
—
—
SYS
SYS
SYS
Whether to stop
—
—
—
SYS
SYS
Who does it
—
—
—
—
SYS

Read across: stages 00–01 are entirely author-decided — including retrieval-augmented generation, where a human wired the single retrieval and the single generation in advance. The first cell flips to SYS at stage 02, which is exactly where “agent” starts meaning something.

AUTONOMY — SINGLE-STEP DECISIONS

Model reasons, calls tools, stops

Example: “Look this up and summarize it”

MECHANISM — One reasoning pass selects a tool, observes the result, and returns — no replanning loop.

The critical distinction

RAG is not agentic. RAG retrieves and answers. An agent decides what to retrieve, what to do with it, and whether the result is good enough to stop.

Core design patterns

Single-agent, then multi-agent

I · Shape — Sheet 02 / 19

Covers the three single-agent design patterns and six multi-agent topologies used in production, with their measured token-cost overhead.

Single-agent patterns — the default starting point

S01

ReAct (Reason + Act)

The agent alternates between reasoning about what to do and taking an action, observing the result before the next step. The default loop under almost every framework and SDK on the market.
S02

Reflection / self-critique

The agent — or a second call — reviews its own output against criteria before returning it. An inexpensive way to catch clearly incorrect answers before a human reviews them.
S03

Plan-and-execute

The agent drafts a multi-step plan up front, then works through it, replanning if a step fails. Better for long-horizon tasks than pure ReAct, which can drift off course across long sequences.

Six multi-agent shapes — select one to read it

Supervisor / orchestrator-worker

SHAPE — Coordinator delegates to specialists

Best for

The production default — roughly 70% of deployments

Watch out for

Coordinator becomes a bottleneck if under-specified

Tokens consumed for the same task — indexed to a tuned single agent

Single agent, well tuned100%
Peer-to-peer multi-agent158%
Supervisor multi-agent385%

The dashed line is parity. Production measurements put peer-to-peer overhead at roughly +58% and centralized supervisor setups at roughly +285% against a well-tuned single agent doing the same task. Multi-agent is a decomposition tool, not a default — prove the bottleneck with a baseline before you pay this.

Cost, not just capability

Multi-agent systems have a measurable token cost. Production measurements put independent (peer-to-peer) overhead at roughly 58% more tokens than a well-tuned single agent doing the same task, and centralized (supervisor) setups around 285% more. Multi-agent architecture is a decomposition tool, not a default: use it when a task benefits from specialization, parallelism, or independent critique, and confirm that with a baseline comparison first. Start with one well-scoped agent and its tools; add coordination only when a measured bottleneck justifies it.

As frontier models increasingly handle planning and reflection natively — extended or interleaved thinking woven directly into the model's own turn, before and between tool calls — some of the hand-built ReAct/reflection scaffolding above is becoming the model's job rather than the framework's. The patterns still matter as a mental model; where they get implemented is shifting. More in Section 19.

The modern agent stack

Seven layers of the agent stack

I · Shape — Sheet 03 / 19

Seven layers, from model to observability. Select a module to expand it with the current landscape for that layer.

The orchestration layer has consolidated over the past year around a handful of options — LangChain/LangGraph, Microsoft Agent Framework, Claude Agent SDK, Google ADK, and AWS Strands Agents — each suited to a different orchestration pattern and ecosystem. See Section 4.

LangChain / LangGraphMS Agent FrameworkClaude Agent SDKGoogle ADKAWS Strands

Seven layers, cloud-agnostic — L01 model through L07 observability. Select a module to inspect the current landscape at that layer; the bus pulse tracks whichever one is open. Layers L04–L07 — memory, guardrails, identity, and observability — each get a dedicated deep dive later in this reference.

How to read this

The stack is deliberately cloud-agnostic. Every managed platform covered in sheet 16 packages some subset of these seven layers under its own naming. Understanding the layers independently makes it possible to evaluate a platform on its technical merits.

Where each layer is covered in depth

L02
Sheet 04 — frameworks
L03
Sheets 05–06 — tool design, interop
L04
Sheet 07 — memory and context
L05–06
Sheet 09 — security and governance
L07
Sheet 08 — traceability and evaluation

Framework deep-dive

LangChain, LangGraph, and the orchestration-layer landscape

II · Build — Sheet 04 / 19

Covers LangChain and LangGraph as the orchestration layer, and their relationship to Microsoft Agent Framework, Claude Agent SDK, Google ADK, and AWS Strands.

The relationship, precisely

LangGraph is the low-level runtime — a graph-based execution engine providing durable state (execution persists automatically and survives a server restart mid-conversation), streaming, checkpointing, and human-in-the-loop interrupts. LangChain is the high-level framework built on top of it: a standard tool-calling architecture, provider-agnostic model swapping, and — new in the 1.0 line — a middleware system for composable behavior. Drop to LangGraph directly for maximum control, or use LangChain's create_agent for a proven ReAct pattern with far less boilerplate.

LangChain — create_agent

The default choice for most teams. Includes automatic context compaction, structured output, standard tool-calling, model-swapping across providers, and 1,000+ integrations, without requiring direct use of LangGraph.

LangGraph directly

Appropriate when a workflow requires a custom state machine — non-standard routing, deterministic steps interleaved with agentic ones, or multi-agent coordination that does not fit LangChain's built-in patterns. Example: LangGraph's ToolNode runs tool calls sequentially by default, which becomes a latency problem once an agent regularly requests several tools per turn; resolving it requires configuring LangGraph directly.

LangSmith

The paired observability/evaluation platform (Section 8). Instruments automatically via environment variables once either library is in use, with no code changes required.

Which one to reach for, in practice

Custom statemachine needed?YESNOLangGraph directlycreate_agent

What changed in the 1.0 line

Both reached a stable 1.0 release in October 2025, with a stated commitment to no breaking changes until 2.0. The older create_react_agent prebuilt (langgraph.prebuilt) is now deprecated in favor of LangChain's create_agent, which provides the same pattern plus the middleware system — composable hooks for human-approval gates, automatic conversation compression, and PII stripping, without touching the agent's core logic. In production at real scale: Uber, LinkedIn, Klarna, Replit, and Elastic are named public examples, across customer support, code migration, and threat-detection workloads.

Where this sits

LangChain/LangGraph is one orchestration-layer choice among several (Microsoft Agent Framework, Claude Agent SDK, Google ADK, AWS Strands). It leads on ecosystem breadth: the widest integration count, model-agnostic design, and — as of the 1.0 line — an explicit production-stability commitment, rather than the fast-moving research posture of earlier releases.

A LangGraph run · state saved at every node

tool callresultno tool callSTARTagentLLM nodetoolcalls?toolsToolNodeENDCHECKPOINTER — click one to rewind and forkcp·1 · startmessages: 1

Step 1 / 7

The run begins with the user's message as input state.

{  messages: 1,  next: ["agent"],  checkpoints: 1}

Durable state is the framework’s whole point. Because a checkpoint lands after every node, the run survives a restart, a human can sit in the middle of it, and any earlier moment can be reopened and forked. Turn on the interrupt and the token stops at the edge into tools until you approve.

Tool design and usage

Tool design, selection, and the eight-tool ceiling

II · Build — Sheet 05 / 19

Tool design principles and the tool-selection ceiling. The interactive model below shows the effect of tool count on selection quality.

Tools registered on one agent

6

Selection quality

95%

Inside the working range

Selection stays reliable while the agent can hold every option distinctly. Keep tools few and high-leverage: one call that reconciles an invoice against a PO beats five granular endpoints the agent has to chain correctly.

Directional curve, load-bearing threshold. The shape illustrates a degradation mode that is well attested in practice; the number that matters is the inflection at roughly eight concurrently registered tools, not the exact percentage at any point.

The core reframe

A tool is a contract between a deterministic system (an API, a database, a file system) and a non-deterministic caller. Traditional API design optimizes for a human reading documentation once and writing code against it forever. Tool design has to optimize for a model reading the tool's description fresh on every call and deciding, in context, whether and how to use it — which makes the tool's name, description, and parameter docs load-bearing in a way a REST endpoint's docstring never was.

Five principles

  1. 01

    Choose high-leverage tools, not thin API wrappers

    A tool that consolidates a multi-step workflow into one call (“reconcile this invoice against the PO”) is worth more than exposing five granular endpoints and hoping the agent chains them correctly. Fewer, more capable tools beat many narrow ones.

  2. 02

    Namespace clearly

    Prefix or group tools by domain (finance_get_expenses, not get_expenses) so an agent choosing between similar-sounding tools across systems is not guessing.

  3. 03

    Return meaningful context, not raw data

    Natural-language identifiers over cryptic IDs, high-signal fields over a full record dump. If the agent needs a second call just to make sense of the first response, the tool is under-designed.

  4. 04

    Optimize for token efficiency

    Pagination, filtering, truncation, sensible defaults (a default result limit, not “return everything”), response-format options, and error messages that guide the agent toward a better query instead of just failing.

  5. 05

    Treat tool descriptions as prompt engineering, not documentation

    They are loaded directly into the model's context and materially steer behavior — Anthropic has reported that precise refinement of tool descriptions alone measurably improved task completion and reduced error rates on real coding benchmarks. Iterate the way a system prompt is iterated: prototype, test, identify exactly where the agent misuses a tool, refine, and re-test.

MCP as the delivery mechanism

In practice, most new tools now ship as MCP servers rather than bespoke per-framework function definitions — one server, callable from any MCP-compliant agent, with tool annotations that disclose which tools have open-world access or make destructive/irreversible changes (directly relevant to Section 9). Function-calling APIs remain the mechanism underneath; MCP standardizes discovery and packaging on top of them.

Test tools independently of the agent. A tool is regular software with an interface: it should carry unit tests, schema validation, and error-path coverage before an agent calls it. Agent-level evaluation (Section 8) determines whether the agent chooses and sequences tools well; it is not the layer that identifies a tool that is simply broken.

Interoperability

MCP and A2A

II · Build — Sheet 06 / 19

MCP and A2A, the two interoperability standards for tool connectivity and agent-to-agent communication.

36integrations to build and maintain

MCPAGENTSTOOLS

Six agents, six resources. Without a shared protocol that is 36 bespoke integrations, each one written, tested and owned by someone. With MCP on the tool side and A2A between agents it is 12 — one server per resource, one card per agent. That is the argument for standardising inside a single organisation, not just across the industry.

MCP — MODEL CONTEXT PROTOCOL

Connects an agent to tools and data (design side in Section 5). Anthropic released it as an open standard in November 2024; OpenAI, Google, Microsoft, and most major platforms have since adopted it, and governance now sits with the Linux Foundation's Agentic AI Foundation. Monthly SDK downloads went from roughly 100,000 at launch to on the order of 97 million by March 2026.

The USB-C port for AI — one server per resource (Slack, a database, an internal API), any MCP-compliant agent can use it, instead of bespoke integration code per pairing.

A2A — AGENT2AGENT

Connects agents to each other. Google introduced it in April 2025 and donated it to the Linux Foundation two months later, joined by AWS, Cisco, Microsoft, Salesforce, SAP, and ServiceNow; IBM's competing ACP protocol folded into it later that year.

Agents publish “Agent Cards” — metadata describing what they can do and how to reach them — so a system built on one framework can delegate to an agent built on a completely different one.

Without a shared protocol, every new tool or agent-to-agent pairing requires bespoke integration work: N×M custom connections. With a shared protocol, that becomes N+M. This is the argument for standardizing on MCP/A2A even within a single organization, not only for external interoperability.

Memory and context engineering

Context engineering and memory engineering

III · Know — Sheet 07 / 19

Context engineering and memory engineering as related but distinct disciplines, and the four context-management levers, each with a tradeoff.

One inference call’s context window

100% FULL — OVERLOADED

8
22
30
28
12
SYSTEM PROMPT 8%TOOL DEFINITIONS 22%CONVERSATION HISTORY 30%RETRIEVED DOCUMENTS 28%LONG-TERM MEMORY 12%

Each lever has a cost. Compress trades fidelity for space, Select trades recall for precision, Isolate adds the multi-agent overhead described in sheet 02, and Write moves the problem into a store that must be pruned. Left unmanaged at 100%, context rot follows: quality degrades even though nothing is technically incorrect.

01

Context engineering

What goes into the context window for this specific inference call: the system prompt, retrieved documents, tool definitions, conversation history, and whatever's been pulled from long-term memory. Anthropic's framing: prompt engineering was about the sentence; context engineering is about the whole pipeline that produces it.
02

Memory engineering

The persistence layer across sessions: what gets written, where it is stored (vector store, structured database, or both), how it is retrieved, and how it is pruned or consolidated over time so it does not degrade into noise.

Two failure modes that show up in production

Context poisoning

Bad or stale information gets written to memory and then contaminates every subsequent session.

Context rot / overload

Too much low-relevance material crowds out what the model needs, and quality degrades even though nothing is technically incorrect.

Where the material moves

CONTEXT WINDOWSystem promptTool definitionsHistoryRetrievedLong-term memoryTHREAD STATEcheckpointer · this sessionLONG-TERM STOREvector + key-value · all sessionsfact · vendor termsfact · fiscal calendarfact · PO-4471 approvedepisode · last closefact · approver listepisode · dispute #88fact · new preferencefact →

Write. Move durable facts out of the window into a store retrieved later, instead of carrying them in every turn.

Traceability and evaluation

Tracing, evaluation, and production readiness

III · Know — Sheet 08 / 19

Tracing records what happened during execution; evaluation determines whether the outcome was correct. Covers OpenTelemetry conventions, trajectory evaluation, and LLM-as-judge calibration.

One invoke_agent trace — OTel GenAI conventions

4.20 s total

invoke_agent
4.20s
└ model_call — plan
0.98s
└ tool_call — finance_get_invoice
0.64s
└ tool_call — finance_get_po
0.72s
└ model_call — reconcile
1.52s
Hover or focus a span to read its attributes.

Where the time went: two tool calls cost 1.36s between them, and the final reconciliation call cost 1.52s on its own. A trace records that. It does not indicate whether the answer was correct — that is what the evaluation layers below are for.

Tracing is not evaluation

Tracing is not evaluation; it is the substrate evaluation runs on. A trace records what happened — which tools were called, in what order, how many tokens, how long — but not whether the outcome was correct.

The industry is converging on OpenTelemetry's GenAI semantic conventions as the standard schema — backed by the CNCF, natively supported by AWS, Azure, Google Cloud, Datadog, Honeycomb, and New Relic, and emitted automatically by LangChain, CrewAI, and other major frameworks. A newer, still-evolving set of conventions extends this specifically to agentic systems — tasks, sub-tasks, agent-to-agent handoffs, memory reads and writes.

Four layers, cheapest first

  1. 01

    Deterministic checks first

    Anything with an objectively correct answer — schema validity, exact match, whether the right tool was called, latency thresholds, token budgets — should be a code assertion, not a model call.

  2. 02

    Trajectory evaluation, not just output evaluation

    A correct final answer can still conceal three unnecessary API calls and a hallucinated fact underneath. Trajectory evaluation scores the full execution path — tool selection, arguments, redundant steps, recovery after an error — and is the more reliable way to distinguish a consistently correct agent from one that succeeded by chance.

  3. 03

    LLM-as-judge, with real calibration discipline

    For correctness, faithfulness, helpfulness, and safety, a second model scoring against an explicit rubric is standard — but it needs a few hundred human-labeled examples as ground truth (500+ comes up repeatedly), discrete rubric scales over open-ended ones, and re-calibration whenever the judge, prompts, or system under test changes. An uncalibrated judge is worse than no judge.

  4. 04

    Verify against the environment, not just the transcript

    As agents take real actions across real systems — updating a CRM, opening a pull request, modifying a cloud config — the newest approaches check actual downstream system state, not just whether the transcript looks right.

Offline and online, on a cadence

Every commit / CISmall deterministic + trajectory suite~10–20 cases
Pre-deploy / stagingFull regression suite~100–500 cases
ProductionSampled online evaluation on live traffic~1–5% of traffic, scored asynchronously

Close the loop

Route production failures into an annotation queue for expert review, then convert the reviewed case directly into a regression test — a specific trajectory that must not recur. Treat evaluation rubrics themselves as living, versioned artifacts updated from production feedback, not something written once before launch.

Representative tools

LangSmithLangfuse (open source)Arize AX / Phoenix (open source)Braintrust

Security and governance

Defense in depth for autonomous agents

IV · Trust — Sheet 09 / 19

Prompt injection, defense in depth, agent identity, and liability under the EU AI Act. The interactive model below shows the effect of removing each defensive layer.

TOOLSINJECTED INSTRUCTION

Arm or disarm each layer

Stopped at R1. No single control solves prompt injection; the architecture is unsolved and the mitigation is layers. Disarm them one at a time to observe how the remaining coverage narrows.

Prompt injection is still architecturally unsolved

LLMs process the system prompt, the user's input, and anything retrieved from a tool or document as one continuous token sequence — there is no built-in mechanism that reliably separates trusted instructions from untrusted content the agent has read. As agents gain tools and the ability to act, a successful injection stops producing a bad answer and starts producing a real-world action. OWASP maintains two relevant frameworks: the Top 10 for LLM Applications, and, more recently, the Top 10 for Agentic Applications (published December 2025).

Case in point — Replit, 2025

The Replit incident from 2025 — a coding agent deleted a production database and fabricated records despite being explicitly instructed not to touch anything, with no attacker involved — illustrates that AI safety failures and AI security failures are not separate categories once an agent can act on its own.

Agent identity is its own governance problem

Non-human identities already outnumber human identities by a wide margin in most enterprise environments, and agents are increasing that ratio quickly enough that traditional IAM — built around people who log in, hold a session, and are reviewed quarterly — does not map cleanly onto something that acts continuously and autonomously. The response is to treat agents as first-class identities: an owner, a scoped set of permissions, a kill switch, and the same lifecycle discipline applied to a human joiner-mover-leaver process. Microsoft (Entra Agent ID), AWS (AgentCore Identity), and Okta/Google have each shipped agent-specific identity primitives in the past year; a joint CISA/NSA/Five Eyes advisory on agentic AI adoption (May 2026) identifies unbounded privilege as the primary risk class.

Liability sits with the deployer

Legally, an autonomous agent is not its own liable party. Responsibility sits with the deployer — and, in ethics, with whoever designed, commissioned, and signed off on the system — under the EU AI Act and general liability principles alike; “the agent did it” is not a valid defense under any European legal order. On the tooling side this is beginning to appear as concrete controls: Yubico's YubiKey 5.8 line (mid-2026) added hardware security keys that sign off on specific agent actions, not just user login — an early instance of a human approval gate that is cryptographically enforced rather than a checkbox in a dashboard.

High-risk system obligations were originally set for 2 August 2026, but the “Digital Omnibus” agreement reached in May 2026 pushed most of those out — to December 2027 for standalone high-risk systems, August 2028 for AI embedded in already-regulated products — while general-purpose AI model transparency obligations remain in force from August 2025. Still moving through formal adoption as of mid-2026 — verify current status before citing a hard date.

Run · The reconciliation loop

The agent is a controller

V · Run — Sheet 10 / 19

Kubernetes runs on one idea: declare the state you want, and a loop forever drags reality toward it. An agent is the same loop with a language model in the decide step — which is why the cluster is the natural home for agents, and why this chapter drives the rest of the story.

One clock, two loops

ReplicaSet controller

spec.replicas: 5

1
2
3
4
5
Desired5

ready5 of 5 pods running

status: 5/5 ready

1234RECONCILINGStatus⇄Verify

Write the result back to status.
Check the outcome; stop or loop.

Invoice agent · ReAct

goal: queue → empty

Waiting
INV-2291INV-2292INV-2293
Matched

ready3 invoices queued

state: 3 unmatched · none matched yet

Same four beats, same clock. Kill a pod and the controller notices on its next observe, finds the gap in the diff, and creates a replacement. Fail a tool call and the agent finds the invoice still in the queue and tries again. Neither loop was told what went wrong — each only compares what is true now against what was asked for.

The rosetta stone — ten ideas, and where this chapter cashes each one out

Desired state is data you can version, review, and diff. An agent's goal, tool list, and budgets belong in the same place — not scattered across a prompt and three config files.

Level-triggered, not edge-triggered

A controller does not react to 'a pod died'. It reacts to 'there are four pods and the spec says five', every pass, whatever happened in between. Kill two pods in one second and the loop still converges. An agent that re-reads real state before each step has the same property; one that trusts a remembered plan does not.

Convergence beats getting it right first time

Neither loop expects every action to succeed. A failed create or a 429 from a tool simply leaves the gap open, and the next pass tries again. The agent anti-pattern is the opposite: a loop that fails once and stops, or retries blindly without re-observing.

Where the analogy breaks

A controller's decide step is an exact diff, so it always converges and needs no step limit. An agent's decide step is a model call: it can be wrong, loop, or drift. The agent loop therefore needs what a controller never does — an iteration budget, a token budget, and an independent verifier.

Run · Cluster architecture

One cluster, every layer of the stack

V · Run — Sheet 11 / 19

The seven layers of the stack, placed on a cluster. Pick a lens to ask a different question of the same map, or play one request end to end.

step 1/9
CONTROL PLANEAPI serveretcdSchedulerControllersAgent operatorCLUSTER — DATA PLANEOUTSIDEOUTSIDEns · edgens · agentsns · toolsns · sandboxns · modelsns · dataHTTPSClientsweb · API · scheduleGatewayauthN · limits · routingSupervisorplans · delegatesresearchworkerbillingworkercodeworkercrm-mcpMCP serversearch-mcpMCP serverSandbox podsephemeral · gVisorModel gatewayroute · cache · budgetInference poolGPU nodesLLM APIexternal providerPostgrescheckpointsVector DBlong-term memoryRedisrun queuePLATFORM SERVICESOTel Collector · DaemonSetPolicy engine · admissionWorkload identity · per-podSecrets · external store

Step 1 — A request arrives

The Gateway authenticates the caller, checks their rate and token limits, and stamps the request with a run ID.

Selected — Supervisor

Deployment, kept to size by the agent operatorLayer L02

The orchestration loop. Stateless by design: the plan and progress live in the checkpoint store, so any replica can pick up any run.

Real projects on this path

  • kagentCNCF sandbox project that runs agents, tools, and model configs as Kubernetes custom resources.
  • Agent SandboxA Kubernetes SIGs subproject that gives agent workloads an isolated, ephemeral, singleton pod with a stable identity.
  • KEDAEvent-driven autoscaling: scale a Deployment on queue depth or any external metric, including to zero.
  • Gateway API Inference ExtensionRoutes requests to model-serving pods by queue depth and KV-cache load rather than round-robin.
  • gVisor and Kata ContainersSandboxed runtimes selected per pod with a RuntimeClass — a user-space kernel, or a lightweight VM.
  • Argo Workflows and TemporalDurable execution for runs that outlive a single pod: the engine, not the pod, owns progress.

Select any workload to inspect it. The seven layers from sheet 03 appear here as concrete objects: the model as a gateway and a GPU pool, orchestration as Deployments, tools as MCP Services and sandbox pods, memory as StatefulSets, guardrails and identity as policy and service accounts, observability as a collector on every node.

Run · CRDs and operators

Declare the agent; let the cluster build it

V · Run — Sheet 12 / 19

Operators turn "run this agent" into a declared resource. Edit the manifest and watch the controller derive Deployments, identities, network rules, and scalers from it — or refuse it at the door.

1 · Edit the spec

Model tier
Replicas3
Autonomy
Memory
Scaling
Tools

2 · The manifest

apiVersion: agents.example.dev/v1alpha1kind: Agentmetadata:  name: invoice-reconciler  namespace: agentsspec:  model:    tier: frontier            # routed by the model gateway    maxTokensPerRun: 120000  replicas: 3  autonomy: propose        # read-only | propose | act  tools:    - crm-mcp    - code-sandbox  memory:    checkpointer: postgres  scaling:    on: queueDepth    maxReplicas: 12  egress:    allow: [model-gateway]
would change:+13~0−0

3 · The cluster, reconciled

Agentinvoice-reconciler
not applied
  • no objects — apply the manifest to create them

readynamespace agents is empty

The manifest is the only thing you edit. Turn on payments-mcp, set autonomy to act, and apply: the admission webhook refuses it before the agent exists. Add the approval gate and it is admitted; the operator then adds an ApprovalPolicy, widens the Role, and opens a path in the NetworkPolicy. Delete the Agent and everything it owns goes with it — the objects carry an owner reference back to it.

Why the manifest matters

A declared agent is reviewable. Its model tier, its tools, its egress, and its autonomy are lines in a file that goes through a pull request and a GitOps controller, instead of being facts about a running process that someone has to go and find out.

Illustrative schema

The agents.example.dev resource above is invented to show the shape. The pattern is real: kagent is a CNCF sandbox project that models agents, model configs, and tool servers as custom resources, and the Agent Sandbox subproject does the same for isolated agent pods.

Policy before existence

Admission runs before an object is stored, so a rule like “payments require approval” cannot be talked around by a prompt, a retry, or a hurried deploy. The agent that breaks the rule never gets a pod.

Run · Autoscaling

Scaling agents is not scaling web servers

V · Run — Sheet 13 / 19

CPU is the wrong signal for an agent: the pod is almost always waiting on a model. Run the same traffic through three autoscaling policies and compare.

t = 0s · 4 runs/pod
Arriving runs / tick
provider ceiling ≈ 2.6 runs/tick

CPU autoscaler

target 60% CPU

Queue
CPU · dashed = 60% target
Waiting
0
Pods
2
p95 wait
0s
429s
0

CPU averages 6% — under the 60% target, so it never scales

Queue depth

KEDA-style, no ceiling

Queue
CPU · dashed = 60% target
Waiting
0
Pods
2
p95 wait
0s
429s
0

follows demand; nothing has pushed past the ceiling yet

Queue + limit aware

capped at the provider's concurrency

Queue
CPU · dashed = 60% target
Waiting
0
Pods
2
p95 wait
0s
429s
0

capped at 9 pods = 36 concurrent runs

Identical traffic, three fleets. The CPU fleet is the usual default and it is blind: each pod holds 4 runs that are almost entirely waiting on a model, so CPU stays near 6% and nothing scales. Scaling on waiting-plus-in-flight runs fixes that, and capping it at the provider’s concurrency (36 runs) completes exactly the same work on fewer pods without a single rejected call. One tick = 2s of simulated time; pods take 6 ticks to become ready.

01

Idle is not cheap to ignore

Because agents wait, one pod can hold many runs at once. Size pods for concurrency, not CPU, and set the concurrency per pod deliberately.
02

The ceiling is outside the cluster

Provider rate limits are a hard cap on useful scale. Scaling past them has to be a decision (a second provider, a higher tier), not an accident.
03

Scale to zero has a bill

KEDA can scale an idle agent to zero pods. The first run after that pays a cold start, and so does any model server loading weights onto a GPU. Keep a warm floor where latency matters.
04

GPUs scale in minutes, not seconds

Self-hosted inference needs a node, a driver, and loaded weights. Route on queue depth and KV-cache load, and keep headroom — a node autoscaler cannot catch a spike.

Run · Isolation and policy

The blast radius is a pod

V · Run — Sheet 14 / 19

Prompt injection is treated as a given, so the question becomes what it can reach. Arm the platform controls one at a time and watch each attack path close.

SANDBOX PODrun_python(code)⚠ injected instructionRTNPIDPSLMEPKubernetes APIA1 · EXPOSEDCloud metadataA2 · EXPOSEDattacker.exampleA3 · EXPOSEDNode kernelA4 · EXPOSEDNode resourcesA5 · EXPOSEDNext tool callA6 · EXPOSEDPostgresA7 · EXPOSED
  • A1Read the pod's token and call the Kubernetes APIopen
  • A2Fetch node credentials from the cloud metadata endpointopen
  • A3Send the working data to an attacker's serveropen
  • A4Exploit the kernel to escape to the nodeopen
  • A5Fork-bomb or mine crypto until the node starvesopen
  • A6Leave a backdoor for the next tool callopen
  • A7Move sideways to the Postgres checkpoint storeopen
Paths stopped0 / 7

7 open · 0 reduced
0 of 6 controls armed

A default pod stops nothing. Run model-written code in an ordinary pod and an injected instruction can read its token, reach the metadata endpoint, call out to the internet, and probe the kernel. Arm the controls one at a time.

Warm pool

claim → run → destroy → refill

Pool size3
Pods
warm
warm
warm

Claim a warm sandbox · illustrative

~120 ms

Cold-start one · illustrative

~3.2 s

Warm hits
0
Cold starts
0
Mean wait
0ms

Size the pool to the burst, not the average. At three warm pods a steady stream of calls never waits. Press Burst ×6: the first three are claimed instantly, the rest find the pool empty and pay a cold start while it refills. Set the pool to zero and every call is cold — which is what “a fresh sandbox per call” costs without one.

Why a pool

A sandbox per tool call is only affordable if the pod already exists. A warm pool keeps a few sandboxed pods started and idle; a call claims one, runs, and the pod is destroyed while the pool refills. The pod's image, runtime class, and policies are fixed in a template, so every claim gets the same hardened shape.

The same rule as sheet 09

Prompt injection is not solved, so the design assumes it will land. What the cluster adds is a way to make “it landed” mean “a throwaway pod misbehaved for a few seconds” instead of “an attacker has a node”.

Run · Durable execution

Kubernetes restores the pod, not the run

V · Run — Sheet 15 / 19

Kubernetes reschedules a lost pod without being asked, but it cannot know a run was in progress. Evict the pod under three durability designs and compare what is repeated.

Same run · three durabilities · one eviction

State in the pod

default

agent-7f4c9 · Running

  1. Fetch invoice
  2. Match PO
  3. Check vendor
  4. Draft payment
  5. Charge card
  6. Notify AP
  7. Log result
Payment ledger
no charge yet
Steps run
0/7
Redone
0
Re-spent
0
Duplicates
0

The plan and progress live in memory.

Checkpointed

state in a database

agent-7f4c9 · Running

  1. Fetch invoice
  2. Match PO
  3. Check vendor
  4. Draft payment
  5. Charge card
  6. Notify AP
  7. Log result
Payment ledger
no charge yet
Steps run
0/7
Redone
0
Re-spent
0
Duplicates
0

Progress is written after every step.

Checkpointed + idempotent

keys on side effects

agent-7f4c9 · Running

  1. Fetch invoice
  2. Match PO
  3. Check vendor
  4. Draft payment
  5. Charge card
  6. Notify AP
  7. Log result
Payment ledger
no charge yet
Steps run
0/7
Redone
0
Re-spent
0
Duplicates
0

The same, and every side effect carries a key derived from the run and step.

Pick the worst case. The pod dies just after the charge is issued. The pod-memory lane starts over and charges again. The checkpointed lane resumes without redoing finished steps — but the charge step was in flight, so it runs again and charges again. Only the lane whose charge carries an idempotency key finishes with exactly one charge. Kubernetes did the same thing for all three: it started a replacement pod.

What the cluster does, and what is left to you

Kubernetes gives you

  • Reschedules the evicted pod onto another node
  • Honours a PodDisruptionBudget during voluntary drains
  • Sends SIGTERM and waits terminationGracePeriodSeconds before killing
  • Retries a failed Job up to backoffLimit

You still build

  • A checkpoint store outside the pod, written after every step
  • A stable run ID so a new pod can find the old run
  • An idempotency key on every side effect
  • Resume logic that re-reads real state before acting

A drain is survivable because of the grace period

SIGTERMSIGKILL
  1. 1Readiness fails — no new runs are routed here
  2. 2Finish or abandon the current step
  3. 3Flush the checkpoint, release locks
  4. 4Exit before the grace period ends

Not in etcd, not on the pod's disk

etcd stores declared state — manifests — and is not built for a write per agent step. A pod’s own disk disappears with the pod. A run’s progress belongs in a database the replacement pod can reach.

Or hand it to an engine

Durable-execution engines such as Temporal, and workflow controllers such as Argo Workflows, own progress, retries, and timers so the agent code does not. LangGraph’s checkpointers (sheet 04) are the same idea inside the framework.

Recovery is a design, not a feature

Long runs make this the common case: at a 20-minute run and a drain every few hours, some runs will always meet a lost pod. Test it the way this sheet does — kill the pod mid-step and count what was repeated.

Cloud reference architecture

AWS, Azure, and Google Cloud, compared

VI · Ship — Sheet 16 / 19

AWS, Azure, and Google Cloud each ship a managed runtime, a memory service, an MCP-speaking gateway, and native A2A support. Toggle between them for a direct comparison.

Where does the cluster end and the platform begin?

L01ModelSelf-host open-weight models on GPU nodes, or call a hosted API through your own gateway.
L02OrchestrationYour agent Deployments or Jobs, sized and wired by the operator.
L03ToolsYour MCP servers as Services, and sandbox pods with a warm pool.
L04MemoryStatefulSets or a database you operate, with your own checkpointer.
L05GuardrailsAdmission policy, NetworkPolicy, and filters you write.
L06IdentityServiceAccounts, RBAC, and workload identity you configure.
L07ObservabilityAn OpenTelemetry collector and a backend you run or buy.

The ladder is the decision. Meters are illustrative — a way to compare rungs, not a measurement. The point is structural: moving right never removes a layer, it only changes who is on call for it. Whichever rung is chosen, sheets 10–15 describe what the owner of that layer must still get right.

CapabilityAWS — Bedrock AgentCoreAzure — AI Foundry Agent ServiceGCP — Gemini Enterprise
Managed runtimePARITYAgentCore Runtime — serverless, 8-hour sessions, full session isolationFoundry Agent Service — Connected Agents (delegation) + Multi-Agent Workflows (stateful, visual/YAML)Agent Engine — managed, autoscaling
FrameworkDIFFERENTIATEDFramework-agnostic: Strands, LangGraph, CrewAI, LlamaIndex, and others run unmodifiedBuilt on Microsoft Agent Framework (unified AutoGen + Semantic Kernel successor)Agent Development Kit (ADK), stable v1.0; also runs LangChain / LangGraph / AG2
Low-code optionDIFFERENTIATEDNot the focus — code-first by designPortal / YAML workflow agentsAgent Studio (natural-language-to-config generation)
Tool connectivityPARITYAgentCore Gateway — turns APIs/Lambda into MCP-compatible tools, connects to existing MCP servers1,400+ MCP-enabled tools; OpenAPI, Logic Apps, SharePoint, BingMCP-enabled Vertex AI Search + custom tools
MemoryPARITYAgentCore Memory — session + long-term, self-managed extraction/consolidationManaged memory built into FoundryAgent Engine session/context management
Identity & accessPARITYAgentCore Identity — OAuth + IAM, secure token vaultMicrosoft Entra Agent IDIAM service accounts + Gemini Enterprise agent registry
GovernanceDIFFERENTIATEDAgentCore Policy — centralized permission/behavior controlsTask-adherence guardrails, PII detection, prompt-injection defenses (opt-in via Foundry)Gemini Enterprise governance & org-wide discovery layer
ObservabilityPARITYAgentCore Observability — trajectory inspection, CloudWatch-nativeAgentOps — accuracy/efficiency scoring built into FoundryBuilt-in eval framework + Cloud Trace
Interop protocolsPARITYMCP + A2A nativeMCP + A2A (dedicated API head)MCP + A2A
Model choiceDIFFERENTIATEDAny model, in or outside Bedrock (Anthropic, Meta, others)Azure OpenAI plus a growing external catalog200+ models via Model Garden, including Gemini and Claude on Vertex

Of ten capabilities

6

are at effective parity across all three clouds. The remaining 4 — framework, low-code surface, governance model, model catalogue — are where a real decision lives.

Net assessment

All three platforms are converging on the same shape: a managed runtime, a memory service, a gateway that speaks MCP, an identity layer, and native A2A support. By 2026, the differentiator is not capability — it is which ecosystem an organization has already standardized on, and which governance model its compliance team already trusts.

A build methodology

A methodology for building agentic systems

VI · Ship — Sheet 17 / 19

A ten-step build methodology, applicable across projects rather than specific to any one deployment.

STEP 01 / 10

Find a real candidate

High-volume and repetitive, bottlenecked by a human gathering context and making judgment calls, not by raw execution speed. Poor candidates: low-volume tasks, ambiguous success criteria, or irreversible high-stakes actions with zero tolerance for error.

A repeatable sequence, not one project’s story. Steps 01–03 decide whether to build at all; 04–07 are the build; 08–10 are what keeps it alive once it is running.

The two steps teams skip

07 — instrument before scaling. Tracing, trajectory evaluation, and cost dashboards are part of v1, not a post-incident addition.

09 — govern the agent like a managed identity. An owner, a documented purpose, an access review cadence, and a kill switch that is discoverable during an incident.

Both are inexpensive before launch and costly after an incident — a pattern consistent with the 40%+ project-cancellation figure cited on the title plate.

Applied example

From RAG to an agentic layer

VI · Ship — Sheet 18 / 19

The same parts, rearranged: how a RAG pipeline already in production evolves into an agentic layer.

USER QUERYRETRIEVALMODELANSWER

Retrieval doesn’t disappear — it gets demoted. A RAG system already in production with 300+ users is credible ground to build on: the retrieval layer becomes one tool among several, a planning layer decides when to retrieve versus when to act, and the guardrails go in before the system gets any write access, not after.

RAG to agentic: a migration outline

A RAG-based system in production with 300+ users on AWS Bedrock is real, credible ground for evolving toward an agentic layer on top: the retrieval layer becomes one tool among several, a planning layer decides when to retrieve vs. when to act, and guardrails go in before the system gets any write access.

What changes, in order

  1. Retrieval stops being the pipeline and becomes a tool with a schema, a description, and its own tests.
  2. A planning layer decides whether this request needs retrieval, an action, or neither.
  3. Guardrails and an approval gate go in before any write access is granted, not after.
  4. Tracing and a trajectory eval suite land in the same release as the planner.

State of the art

What is current as of mid-2026

VI · Ship — Sheet 19 / 19

Where agentic AI stands as of mid-2026 — autonomy horizons, benchmark progress, and the adoption gap still ahead.

Achievable autonomous task horizon — log scale

A straight line on a log axis is a doubling. METR’s tracking puts the achievable autonomous task horizon at roughly a doubling every seven months — about an hour in early 2025, multi-hour and heading toward full-workday sessions now. The new problems that creates are operational: graceful degradation when an eight-hour run fails at hour seven, and keeping token spend bounded across sessions running into the hundreds of thousands of tokens.

Scope

This reference covers the architecture and operational discipline for running agentic systems in production: pattern selection, tool design, memory, interoperability, evaluation, security, governance, and how all of it lands on Kubernetes. Sheets 01–15 and 17–19 are cloud-agnostic — sheets 10–15 follow the same agent system onto any conformant Kubernetes cluster — and sheet 16 is the one direct AWS/Azure/GCP comparison.

Before citing a figure

Compiled August 2026. Framework GA status, AWS region availability, OpenTelemetry GenAI conventions, the EU AI Act deferral, METR's horizon figures, and any adoption percentages here move fast — re-verify before treating a specific number as current.

© 2026 Vedant SenDWG NO. EAA-2026-01 · REV B

  1. 01

    The center of gravity is shifting from hand-built orchestration toward native reasoning

    As frontier models absorb more planning/reflection capability natively — extended or interleaved thinking woven into the model's own turn — hand-built ReAct/reflection scaffolding is becoming redundant in places. Engineering effort is moving up a level, toward how specialized agents communicate and are governed.

  2. 02

    Long-horizon autonomy is the current frontier, and it is measured

    METR's tracking of achievable autonomous task horizon shows it roughly doubling every seven months — from roughly one-hour tasks in early 2025 toward multi-hour, increasingly full-workday sessions. This introduces new problems: graceful degradation when an eight-hour run fails at hour seven, and keeping token spend under control across sessions running into the hundreds of thousands of tokens.

  3. 03

    Benchmark progress is real, driven by scaffolding as much as raw capability

    On OSWorld-Verified, early frontier models cleared under half of the human-operator baseline; by early 2026 the strongest agentic systems were approaching or matching it. The benchmark maintainers attribute most recent gains to better trajectory data and reasoning-enhanced scaffolding, not a fundamentally different base model.

  4. 04

    Governance is a launch enabler now, not a launch blocker

    Teams that bake permission boundaries, per-action decision logs, and human-approval checkpoints into the agent's design from day one are the ones getting past pilot into real production — not the ones bolting governance on after an incident.

  5. 05

    The adoption picture

    17% of organizations had deployed agents at the time of the survey, against 60%+ expecting to within two years, according to Gartner's 2026 CIO survey. Agentic AI is positioned at the Peak of Inflated Expectations on Gartner's 2026 Hype Cycle. Set against the 40%+ project-cancellation figure: capability is advancing quickly, while organizational readiness — governance, evaluation, and operational discipline — is lagging behind it.

Sheet 00 of 19 — Architecture and operational discipline for AI agents in production