Infrastructure Required to Deploy AI Agents in the Enterprise A developer published a seven-point infrastructure checklist for running AI agents in production, packaged as a YAML manifest and a Python preflight script that fails CI when an agent lacks required controls. The manifest covers per-agent identity with short-lived credentials, a tool gateway with scoped permissions, a swappable model gateway, an egress allowlist, checkpointed state, per-run and per-day spending caps, and OpenTelemetry tracing. The preflight script, which needs only PyYAML, prints one FAIL line per missing requirement and exits with code 1 so any CI system can block the merge. Most agent demos run on a laptop with one API key and a lucky prompt. Production is different. An enterprise agent needs an identity, a controlled path to its tools, a model it can swap, a network boundary, saved state and a spending cap. Together these form the AI agent infrastructure requirements that decide whether a release survives its first week. This post turns those seven requirements into a short YAML manifest and a Python preflight script. You can run the script in CI and block any agent that misses one. The code is small, but each rule maps to a failure that platform teams really hit. Every agent that reaches production needs the same seven things, whatever framework it uses. These AI agent infrastructure requirements https://www.xccelera.ai/blogs/agentic-ai-architecture are boring on purpose. Each one answers a question that your security and operations teams will ask before launch. Notice that none of these items mention prompts or model quality. The infrastructure around the agent decides whether it is safe to run, and a manifest can describe all of it. | Quick check: Which requirement stops an agent from reaching a host nobody approved?the egress allowlist. | A manifest turns your AI agent infrastructure requirements into something a machine can read. Keep it in the same repository as the agent, so every change goes through code review. The file below describes a hypothetical invoice-triage agent. Hosts and names are placeholders, so swap in your own. agent: invoice-triage owner: finance-platform-team environment: production identity: principal: spiffe://corp.example/agents/invoice-triage credential ttl minutes: 15 shared credentials: false tools: gateway: https://tools.corp.example/mcp token audience: https://tools.corp.example/mcp allowed: - name: erp.read invoice scopes: invoices:read - name: erp.update status scopes: invoices:write models: gateway: https://models.corp.example primary: model-a fallback: model-b network: egress allowlist: - tools.corp.example - models.corp.example - otel.corp.example state: store: postgres checkpoint every step: true budget: max usd per run: 2.50 max usd per day: 150 on exceed: pause observability: trace endpoint: https://otel.corp.example:4318 rollback: previous release: invoice-triage@1.4.2 Each block maps to one requirement. The identity block names the owner and sets a fifteen-minute credential lifetime. The tools block pins a gateway and lists only two tools, each with explicit scopes. The network block names three hosts, and nothing else is reachable. The budget block caps each run at $2.50 and pauses the agent when it overflows. A reviewer can read this file in two minutes. That speed is the point. A manifest only helps if something enforces it. The script below loads the file and checks every rule. It prints one FAIL line per problem and exits with code 1, so any CI system can treat it as a failed gate. It needs only PyYAML. Think of it as a unit test for your AI agent infrastructure requirements. bash /usr/bin/env python3 """Fail the merge when an agent manifest misses an infrastructure requirement. Usage: python preflight.py agent-infra.yaml Needs: pip install pyyaml """ import sys from urllib.parse import urlparse import yaml def host url : return urlparse url .hostname or "" def check m : errors = def need ok, msg : if not ok: errors.append msg ident = m.get "identity", {} need m.get "owner" , "identity: owner team is missing" need ident.get "principal" , "identity: no per-agent principal" need ident.get "shared credentials" is False, "identity: shared credentials are not allowed" need 0 < ident.get "credential ttl minutes", 0 <= 60, "identity: credential TTL must be 1-60 minutes" tools = m.get "tools", {} gateway = tools.get "gateway", "" need gateway.startswith "https://" , "tools: gateway must be an https URL" need tools.get "token audience" == gateway, "tools: token audience must equal the gateway URL" allowed = tools.get "allowed", need allowed, "tools: allow-list is empty" for t in allowed: scopes = t.get "scopes", need scopes and " " not in scopes, f"tools: {t.get 'name' } needs explicit, non-wildcard scopes" models = m.get "models", {} need models.get "gateway" , "models: no model gateway" need models.get "fallback" and models.get "fallback" = models.get "primary" , "models: fallback must exist and differ from primary" allow = m.get "network", {} .get "egress allowlist", need allow and " " not in allow, "network: egress allow-list missing or wildcard" for url in gateway, models.get "gateway", "" , m.get "observability", {} .get "trace endpoint", "" : need host url in allow, f"network: {host url or 'endpoint'} is not on the egress allow-list" state = m.get "state", {} need state.get "store" , "state: no durable store" need state.get "checkpoint every step" is True, "state: checkpoint every step" budget = m.get "budget", {} need budget.get "max usd per run", 0 0, "budget: per-run cap missing" need budget.get "on exceed" in "pause", "stop" , "budget: on exceed must be pause or stop" need m.get "observability", {} .get "trace endpoint" , "observability: no trace endpoint" need m.get "rollback", {} .get "previous release" , "rollback: previous release not pinned" return errors if name == " main ": with open sys.argv 1 as f: problems = check yaml.safe load f for p in problems: print "FAIL", p print "preflight:", "blocked" if problems else "passed" sys.exit 1 if problems else 0 Run it against the manifest above and it passes. Break a few rules on purpose and it blocks the merge: bash $ python preflight.py agent-infra.yaml preflight: passed $ python preflight.py bad.yaml FAIL identity: shared credentials are not allowed FAIL tools: token audience must equal the gateway URL FAIL models: fallback must exist and differ from primary FAIL network: models.corp.example is not on the egress allow-list FAIL budget: on exceed must be pause or stop preflight: blocked Add the script as a required check on your main branch. After that, no agent reaches production with a wildcard scope or a missing fallback. | Quick check: Which exit code makes CI block the merge?any non-zero code. The script returns 1 when a rule fails. | The table below pairs every requirement with the probe in the script and the failure it prevents. Read it as a short risk register for your agent platform. | Requirement | Preflight probe | Failure it prevents | |---|---|---| | Identity | Per-agent principal, no shared credentials, TTL of 60 minutes or less | A leaked key that works everywhere | | Tool gateway | HTTPS gateway, token audience equals gateway, no wildcard scopes | One agent token replayed against other services | | Model gateway | Gateway set, fallback differs from primary | A provider outage that halts every workflow | | Egress allowlist | No wildcard, every gateway host listed | Data leaving through an unreviewed host | | Durable state | Store set, checkpoint on every step | A crash that restarts a long task from zero | | Cost budget | Per-run cap, pause or stop on overflow | A retry loop that burns the monthly budget overnight | | Telemetry and rollback | Trace endpoint set, previous release pinned | A bad release nobody can see or undo | In a well-built agentic AI architecture https://www.xccelera.ai/orchestrator , every tool call passes through one gateway. The MCP authorization spec dated 2026-07-28 sets clear rules for that path. Clients must send a resource parameter, defined by RFC 8707, in both authorization and token requests. Servers must check that each token was issued for them, and they must refuse tokens meant for anyone else. That blocks token passthrough, where one stolen token opens several systems. The preflight rule mirrors this: the token audience must equal the gateway URL. | Quick check: Which manifest value must equal the gateway URL?The token audience. | VentureBeat's October 2026 VB Pulse survey reached 100 qualified respondents. Among those who had swapped the AI model in a production app, 69% said it took weeks of engineering. A model gateway shrinks that cost. Agents call one endpoint, and routing rules decide which model answers. The fallback entry in the manifest means a provider outage degrades service instead of stopping it. Treat the fallback like any other release, and test it before you need it. Retry loops are the classic cost bug. An agent that calls a failing tool and retries forever can spend a month of budget overnight. Count cost after each model call. When the per-run total crosses the cap, pause the run and save its checkpoint. A human can then raise the cap or stop the task. Pausing beats killing, because durable state lets the run resume without repeating finished steps. Export one trace per run through the OpenTelemetry GenAI conventions, and attach the cost figure to it. | Quick check: What should an agent do when it crosses its per-run budget?Pause and keep its checkpoint, so a human can decide. | Start with one low-risk agent, such as a read-mostly triage helper. Write its manifest before you write its prompt. Make the preflight script a required check, then treat every FAIL line as a ticket instead of a suggestion. Expect the first run to fail, because that is the script doing its job. Once one agent passes, copy the manifest for the next one and change only the names and scopes. Review the rules each quarter, since specs and providers keep changing. The authorization text you read today may gain new requirements in the next revision, and your checks should follow. Finally, keep your AI agent infrastructure requirements in version control, not in a wiki. If an agent needs a new tool or a wider scope, change the file in the same pull request, so the record always matches reality. Small, boring releases build the trust that bigger agents will need later.