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:

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

  1. Outcome: a human writes or changes the outcome specification, in version control, through a pull request.
  2. 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.
  3. Check: the pipeline runs static analysis, policy as code and a cost estimate. Violations go back to the agent to fix.
  4. Plan: the deployment plan or diff is generated, so everyone can see exactly what would change.
  5. Prove: the change is deployed to an ephemeral environment and the fitness functions run: load tests, chaos experiments, restore tests and security scans.
  6. 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.
  7. Promote: the change moves through environments by the normal pipeline. The agent never has direct write access to production.
  8. 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.
The outcome-driven infrastructure loop1 Outcomehumans write2 Draftagent writes IaC3 Checkpolicy & cost4 Planreviewable diff5 Provefitness functions6 Decidehuman approves7 Promotepipeline deploys8 Watchagent spots driftOutcome specificationcapability · qualities · constraints · testsAgents propose · pipelines verify · humans decideHumanAgentPipeline
Humans own outcomes and decisions, agents draft and watch, and pipelines check and prove, continuously.

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:

LevelMeans
SynthesisedThe IaC is valid and builds
Policy compliantZero policy-as-code violations; cost estimate within ceiling
DeployedSuccessfully deployed to an ephemeral environment
Outcome verifiedAll fitness functions pass
ApprovedA human has reviewed the evidence and the plan
LivePromoted to production and observed
Value achievedThe outcomes hold in production over time

Guardrails that make it safe

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

Getting started

  1. Make sure the basics are in place: Infrastructure as Code, pipelines, policy as code and a sandbox account.
  2. Pick one service with clear, testable outcomes.
  3. Write the fitness functions first and make sure they run against what you already have.
  4. Introduce an agent in suggest mode: it opens pull requests, and humans review everything.
  5. 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.
  6. Extend autonomy only as the evidence supports it.