Outcome-Driven Infrastructure
Outcome-driven infrastructure is an approach in which people specify what infrastructure must achieve (capabilities, qualities and constraints, expressed as testable outcomes) and AI agents generate, verify and maintain the Infrastructure as Code that meets them, through the same pipelines and controls as any other change.
Why this, why now
Infrastructure as Code turned infrastructure into software. That brought repeatability, reviewability and disposability, but it also meant somebody had to write and maintain a lot of very detailed code: VPCs, subnets, IAM policies, alarms, backup plans, all correctly wired together.
AI agents are now good at writing that kind of code. When the how becomes cheap to produce, the valuable artefact moves up a level, to a precise statement of what is needed and how well, together with the tests that prove it. That’s the same move good requirements practice has always made: from detailed design documents to outcomes and acceptance criteria, refined through working software.
Stop specifying servers. Specify outcomes, and the tests that prove them.
The outcome specification
An outcome specification describes the infrastructure in terms the business and architects actually care about. It typically includes:
- Capability: what the infrastructure must provide. For example: “Host the order API and its database for customers in the UK and EU.”
- Quality attributes, each with a measurable target: availability SLO, latency, RTO and RPO, throughput and a cost ceiling or unit cost.
- Constraints: approved regions and services, data residency, network rules, encryption, tagging and compliance standards, ideally referenced from the organisation’s existing policies rather than restated.
- Acceptance tests: the fitness functions that prove each outcome is met.
An illustrative example (this isn’t any particular tool’s format):
outcome: order-api-platform
capability: Serve the order API and store orders for UK and EU customers
qualities:
availability_slo: "99.9% monthly"
latency_p95: "300ms at 200 req/s"
rpo: "5m"
rto: "1h"
cost_ceiling: "£1,500 per month at expected load"
constraints:
regions: [eu-west-2, eu-west-1]
data_residency: UK/EU only
policies: [org-baseline, pci-scope-none]
prefer: managed and serverless services
verify:
- load_test: checkout-scenario at 200 req/s, p95 < 300ms
- chaos: remove one availability zone, SLO holds
- restore_test: restore database from backup within 1h
- policy_scan: zero violations
- cost_estimate: below ceiling
If you can’t write the verify section, you don’t have an outcome yet, just an aspiration.
The loop
- Outcome: a human writes or changes the outcome specification, in version control, through a pull request.
- Draft: an agent proposes IaC (for example CDK, Terraform or Bicep) that it believes meets the outcome, reusing the organisation’s approved modules and architectural mechanisms wherever they exist.
- Check: the pipeline runs static analysis, policy as code and a cost estimate. Violations go back to the agent to fix.
- Plan: the deployment plan or diff is generated, so everyone can see exactly what would change.
- Prove: the change is deployed to an ephemeral environment and the fitness functions run: load tests, chaos experiments, restore tests and security scans.
- Decide: a human reviews the outcome evidence, the plan and the trade-offs the agent made, and approves or rejects. The agent explains its choices; the human makes the decision.
- Promote: the change moves through environments by the normal pipeline. The agent never has direct write access to production.
- Watch: in production, continuous verification checks that the outcomes still hold. When they drift (the SLO is burning, cost is creeping up, a new policy is failing), the agent proposes a change, and the loop starts again.
Agents propose. Pipelines verify. Humans decide.
A stack of done for infrastructure
“The agent generated it” is not done. Each change climbs a ladder of evidence:
| Level | Means |
|---|---|
| Synthesised | The IaC is valid and builds |
| Policy compliant | Zero policy-as-code violations; cost estimate within ceiling |
| Deployed | Successfully deployed to an ephemeral environment |
| Outcome verified | All fitness functions pass |
| Approved | A human has reviewed the evidence and the plan |
| Live | Promoted to production and observed |
| Value achieved | The outcomes hold in production over time |
Guardrails that make it safe
- Enforce in policy, not in prompts. “Don’t make buckets public” in an agent’s instructions is a request. A service control policy or an admission rule that denies it is a guarantee.
- Least privilege for the agent: read-only on production, write access only to its own branch and ephemeral environments. Pipelines deploy; agents don’t.
- Everything through version control and pull requests, so every change is reviewable, attributable and reversible.
- Protect the irreversible: deleting data stores, changing IAM, networking or DNS, and anything outside approved regions always needs explicit human approval.
- Budgets: limits on ephemeral environment spend and agent usage, so verification doesn’t cost more than the outcome is worth.
- Prefer the known: steer agents towards approved modules and patterns, and ask them to justify any deviation. Novelty should be a deliberate choice, not an accident.
What changes for people
Architects and platform engineers stop being the authors of every resource and become the authors of outcomes, policies, modules and fitness functions: the boundary conditions that any change, from any author, must satisfy. Decisions and trade-offs still need human judgement, and still deserve decision records. Code review shifts from “is this line right?” towards “is this evidence convincing, and is this the trade-off we want?”
The architect’s job becomes writing the tests the infrastructure must pass.
Where it works, and where it doesn’t
This approach works best for well-understood, commodity infrastructure (web services, data platforms, standard networking), where good patterns exist and outcomes are easy to test. That’s most infrastructure.
For genuinely novel or highly complex systems, use agents to accelerate spikes and explore options, but keep humans firmly in the design loop until the patterns are understood.
Pitfalls
- Vague outcomes produce plausible infrastructure that meets nothing in particular.
- Untestable outcomes can’t be verified, by an agent or a human. If you can’t test an outcome, nobody can meet it. Humans just won’t tell you.
- Sprawl: agents happily generate lots of code. Keep the modules shared and the outcomes small.
- Rubber-stamping: when reviews always pass, people stop reading them. Rotate reviewers, sample deeply and watch how often outcomes fail later.
- Spec drift: if people change infrastructure outside the loop, the outcome specification stops describing reality. Detect drift and fix the code, not the environment.
- Outcome theatre: writing beautiful outcome specifications that nobody verifies in production.
Getting started
- Make sure the basics are in place: Infrastructure as Code, pipelines, policy as code and a sandbox account.
- Pick one service with clear, testable outcomes.
- Write the fitness functions first and make sure they run against what you already have.
- Introduce an agent in suggest mode: it opens pull requests, and humans review everything.
- Measure what happens: lead time for infrastructure changes, change failure rate, policy violations caught, outcome verification pass rates and cost. Then go and talk to the people doing the reviewing.
- Extend autonomy only as the evidence supports it.