Playbook · November 2026

Building enterprise agents that survive production

A vendor-neutral guide for leaders and architects: a layered reference architecture, the production controls that matter, a crawl-walk-run path to scale, and a plain list of first-generation patterns to retire.

By Karthikeyan Selvam~34 min full read~6 min in brief94 cited sources
Playbook at a glance

15 sections. Start with the one you need.

Each card opens its section. Every section starts as a short summary, so you can skim the whole playbook in a few minutes and read the full text only where you want depth.

0 / 15 explored

For the last couple of years I have built agents for real enterprise work. Some read sensitive admin and operational data. Some draft decisions for a human to sign off. The same thing happens every time. Getting an agent to work in a prototype takes days. Getting one that security, audit, finance and operations will all sign off for production takes months, and most teams never get there.

This playbook is the framework I use to close that gap. It treats an agent as a small reasoning core wrapped in production controls, and it lays that out as a layered reference architecture. I have checked each part against what changed in standards, research and platforms over the past eighteen months. Throughout, I compare it with the first-generation (2023–24) agent patterns that many teams across the industry still run. Where one of those patterns should be retired, I say so.

On vendors. I don't recommend products. Where an example helps, I name two or three side by side, as illustrations only. I do name open standards and specifications (MCP, A2A, OpenTelemetry, OWASP, NIST, ISO/IEC, the EU AI Act, SLSA), because they aren't vendors. They are the shared language you should build to. A short glossary near the end explains the acronyms.

1. Why agent pilots stall before production

Key takeaways

  • The 2025 data points the same way: one analyst firm forecasts that over 40% of agentic AI projects will be cancelled by 2027, and a widely cited (non-random) study found most generative-AI pilots showed no measurable P&L impact.
  • Teams can see what their agents do, but far fewer run the evaluations that prove the agents do it well.
  • An enterprise agent is a small reasoning core inside a large, deterministic shell, and most of the risk reduction lives in the shell.

2. The reference architecture: layers of an enterprise agent

Key takeaways

  • Six layers (channels, orchestration, harness, model access, tools, knowledge and state), with a control plane across all of them and a delivery plane underneath.
  • Keep deterministic work deterministic: the agent takes a typed request and returns a typed result.
  • Enforcement moves out of the agent process, state moves out of memory, and the harness becomes configurable per agent.

3. Build principles

Key takeaways

  • Use the lowest complexity that works: a function, then a workflow, then a single agent; go multi-agent only for a clear reason.
  • Least agency, context treated as an engineered budget, and a stateless harness over durable state.
  • Business rules and authorisation live in code, not prompts; typed contracts everywhere; every policy check fails closed.

4. The production control stack

Key takeaways

  • Budgets are set in tokens and money per run, user and tenant, and enforced at the gateway.
  • Authorise every tool call and its arguments, and keep a signed, externally anchored, central audit trail keyed to one workflow ID.
  • Each agent gets its own non-human identity with short-lived credentials, and PII protection wraps every source that feeds the context.

5. Integration and interoperability

Key takeaways

  • Build a few consolidated, namespaced tools around high-impact workflows instead of wrapping every API endpoint.
  • MCP connects agents to tools and context; A2A delegates work to agents owned by someone else.
  • Send all agent traffic through a central gateway backed by a private, curated registry, and go multi-agent only deliberately.

6. Quality: evals and observability

Key takeaways

  • Start with 20–50 real tasks, grade the end state of the real system, and measure consistency with pass^k.
  • Keep the evaluator separate from the generator, apply statistics, and read transcripts.
  • Curate user feedback into eval datasets with human review, never straight into production prompts.

7. Security for agents

Key takeaways

  • Prompt injection may never be fully mitigated, and pattern-matching deny-lists miss indirect injection.
  • Rule of Two: in one session, an agent gets at most two of untrusted input, sensitive data, and the ability to change state or communicate externally.
  • Contain first, approve second: sandbox agent-generated code, treat egress allowlists as capability grants, and red-team continuously.

8. Governance and the autonomy ladder

Key takeaways

  • Every agent has a recorded, approved autonomy level, from operator to observer, paired with an impact assessment.
  • Pre-authorised policy is the default; a real approval pauses durably and is bound to the exact arguments.
  • The agent registry is the system of record, from owner and autonomy level through to decommissioning.

9. The delivery pipeline: commit to production

Key takeaways

  • Build one immutable, signed artefact and promote the same artefact through every environment, with an eval and security gate in staging.
  • Ship an AI-BOM with each agent version and sign your models.
  • Keep agent definitions in Git, never point production at a floating "latest" label, and treat every model swap as an eval-gated, canaried release.

10. Scaling and cost

Key takeaways

  • Choose between managed runtimes, serverless containers and Kubernetes on duration, state, isolation, residency and cost; autoscale on concurrency or queue depth.
  • Cost levers: tier your models, design for prompt caching, batch non-interactive work, and report cost per successful outcome.
  • A platform team owns the shell; product teams own the reasoning core.

11. Getting started: crawl, walk, run

Key takeaways

  • Crawl: one agent at operator or collaborator level, behind a model gateway, with its own identity, budgets, traces and 20–50 real eval tasks.
  • Walk: policy-as-code on every tool call, durable approvals, a curated tool registry and eval gates in CI.
  • Run: a platform team, golden paths, an agent registry as the system of record, online evals and a standing red team.

12. What's outdated, what's new

Key takeaways

  • Retire deny-lists as the injection defence, identity taken from tool arguments, shared static keys and approval by notification.
  • Update prompt engineering to context engineering, request caps to token and cost budgets, and local logs to signed, anchored central audit.
  • Replace each team building its own stack with a platform-owned shell, golden paths and a crawl-walk-run rollout.

13. Production-readiness checklist

Key takeaways

  • Every agent: registry entry, its own identity, gateway budgets, central audit, pinned versions, CI evals and fail-closed policy.
  • Agents that take actions: policy on every tool call, argument-bound approvals, idempotency keys, PII protection on every source, curated tools.
  • High-autonomy agents: an enforced operating envelope, a drilled kill switch, continuous red-teaming and rehearsed runbooks.

14. Glossary

Plain-language definitions of the acronyms and terms used throughout the playbook.

15. Sources

The numbered sources behind every citation in the playbook.