// Stay in touch?
Products
Encore CloudEncore Cloud
Encore.tsEncore.ts
Encore.goEncore.go
PricingPricing
Book a DemoBook a Demo
Use Cases
AI-Powered DevelopmentAI-Powered Development
Event-Driven SystemsEvent-Driven Systems
Distributed SystemsDistributed Systems
Case StudiesCase Studies
ShowcaseShowcase
Resources
DocsDocs
InstallInstall
Example AppsExample Apps
Demo videoDemo video
ArticlesArticles
GitHub ReleasesGitHub Releases
Systems Operational
Company
About UsAbout Us
Swag ShopSwag Shop
ContactContact
JobsJobs
PressPress
SecuritySecurity
TermsTerms
Privacy PolicyPrivacy Policy
Data Processing AgreementData Processing Agreement
Enterprise SLAEnterprise SLA
Encore
© 2026 EncoreAll rights reserved
© 2026 Encore All Rights Reserved
GitHubDiscordYouTube
← All guides
Guide · Infrastructure

The AI-Ready Infrastructure Playbook

Code moves at AI speed. Infrastructure doesn't. What the 2024 to 2026 research says about the delivery gap that opened up, and what closing it takes.

What the 2026 data shows
93%Have had an AI-caused infrastructure incident
67%Say development is ahead of infrastructure
4.6xLonger review wait for AI-generated PRs
97% / 56%Frontier scores: app code vs IT operations
Contents
01Why faster coding hasn't meant faster delivery02Infrastructure is falling behind03What AI can and can't do in infrastructure04The state of infrastructure as code05What defines AI-ready infrastructure06Security and governance in the agent era07Assessing your readiness08Getting started09About Encore

AI coding tools have made developers measurably faster at producing code, but software is not reaching production faster. Research across 2024 to 2026 shows the same pattern from every angle: individual output is up sharply, while delivery speed has improved only marginally and delivery stability has declined.

Code generation was one stage of the software lifecycle, and AI compressed it, while the stages around it, review, environments, provisioning, deployment and operations, still run at their old speed. This guide examines where the gap comes from, what current research says AI can and cannot do in infrastructure, and what infrastructure that keeps pace with AI-speed development looks like.

01

Why faster coding hasn't meant faster delivery

Two out of three software firms have rolled out generative AI tools. The typical result is a 10 to 15% productivity boost, and Bain's assessment is blunt: the time saved often isn't redirected toward higher-value work. Companies that pair AI with end-to-end process transformation report 25 to 30%.1

The gap between those two numbers comes from everything around the tooling. Writing and testing code accounts for only 25 to 35% of the time from idea to launch, so compressing that one stage does not speed up the pipeline; it moves the queue downstream.

Where the queue forms

Telemetry from 8.1 million pull requests across 4,800 organizations shows what happens after the code is written: AI-generated pull requests wait 4.6x longer for their first review than human-written ones, and their acceptance rate is 32.7%, versus 84.4% for manual PRs.2 The time saved in writing the code is absorbed by the stages that follow it.

Figure 01 — where work accumulatesDesign → Operate
The delivery pipeline narrows after code generation. Work items accumulate between the validate and deploy stages, then thin out again through operate.
The stages after code generation still run at their previous speed, so work accumulates before deployment. Illustrative, not to scale.
Figure 02 — where the gains stall8.1M pull requests
4.6xLonger wait for first review
32.7%AI PR acceptance rate
84.4%Manual PR acceptance rate
Pull request acceptance and review wait, AI-generated versus human-written. Source: LinearB, 2026 Software Engineering Benchmarks Report.

Developers feel both sides of this at once. In Atlassian's 2025 survey, 68% of developers report saving 10 or more hours per week with AI. Half of them lose 10 or more hours per week to organizational friction: waiting on environments, hunting for information, and context switching.3

What the incident data shows

72% of organizations have had at least one production incident caused by AI-generated code, and 45% of deployments involving AI-generated code lead to problems. Only 6% of teams describe their delivery process as fully automated.4

02

Infrastructure is falling behind

After the review queue, the next place AI-generated code runs into trouble is infrastructure. In a 2026 survey of 406 IT and platform engineering leaders, 67% report that development is moving ahead of infrastructure in AI adoption, and the consequences are already measurable: 93% of organizations have experienced at least one AI-caused infrastructure incident.5

Figure 03 — the infrastructure gap2026 survey, n=406
93%Had an AI-caused infra incident
67%Dev is ahead of infrastructure
33%Would ship AI HCL unreviewed
Survey of 406 IT and platform engineering leaders at organizations of 250+ employees, fielded April 2026.

The same survey shows how the gap is being papered over: 78% of teams use AI to generate infrastructure code without thorough review, and only 19% have governance foundations for AI in place. Teams are pushing AI-speed changes through infrastructure built for human-speed change control.5

The layer underneath was already strained

Infrastructure teams were behind before AI arrived. 35% of teams tie configuration drift to multiple costly production incidents in the past year. 90% agree their infrastructure orchestration falls short of what they need, and only 8% report managing infrastructure as code at scale without notable issues.6 AI did not create this gap, but it has made the gap expensive.

DORA's research puts the two-year arc plainly. In 2024, every 25% increase in AI adoption was accompanied by an estimated 1.5% decrease in delivery throughput and a 7.2% decrease in delivery stability. By 2025, throughput had recovered, but the instability finding persisted, and the report's central conclusion changed shape: AI acts as an amplifier of the system around it. Organizations with strong platforms convert AI speed into delivery performance. Organizations without them convert it into incidents.7

Why this lands on the CTO's desk

Unplanned downtime now costs Global 2000 companies an estimated $600B per year, roughly $15,000 per minute, which puts the infrastructure gap squarely on the P&L.8

03

What AI can and can't do in infrastructure

The obvious objection is that this gap is temporary: models keep improving, so today's coding agents will operate infrastructure tomorrow. Scores are rising, but they trail application code by a wide margin, and the bar differs in kind: a coding agent's mistakes are caught by tests and review before they run, while an infrastructure agent's mistakes run in production, immediately.

Figure 04 — same models, application code vs infrastructureJuly 2026 leaderboards
97%SWE-bench Verified, app code
56.2%ITBench-AA, IT operations
86.6%EvalPlus, Python, GPT-4
19.4%IaC-Eval, Terraform, GPT-4
Application code versus infrastructure, best published scores. Sources: SWE-bench Verified leaderboards and Artificial Analysis ITBench-AA, July 2026; IaC-Eval, NeurIPS 2024.

The gap holds within a single model: GPT-4 passes 86.6% of tasks on EvalPlus, the standard Python benchmark, and 19.4% on IaC-Eval, its Terraform equivalent.9 Nor is the gap a quirk of HCL syntax: on SWE-InfraBench, Amazon's benchmark of realistic changes to AWS CDK projects, where infrastructure is expressed in TypeScript and Python, the best model succeeds on 34% of single attempts.10

Two ways to respond

The first is to keep humans in the loop for every infrastructure change and accept that infrastructure remains the rate limiter on everything AI produces upstream. That option also degrades as AI adoption succeeds: human-written infrastructure fails at some rate too, and the production loop absorbs those failures today only because human throughput caps their volume. Multiply change throughput by ten and the same per-change quality delivers ten times the failures to production, so matching human quality is the wrong bar once volume is the goal.

The second is to change what AI has to touch. If infrastructure requirements are expressed inside the application code, as typed, declarative statements of what the service needs, then AI tools operate entirely in the domain where they measurably perform: application code. The platform derives provisioning, environments and configuration from those declarations, so there is no Terraform layer left for anyone, human or agent, to write.

The design principle

Rather than sending agents into the layer where the best frontier model scores 56%, restructure the layer so the work happens where the same models score up to 97%. Infrastructure becomes an output of the code rather than a second codebase to maintain.

Also available as a PDF

The AI-Ready Infrastructure Playbook

The same material as a designed, print-ready report with the full source list, for circulating internally or reading offline.

Download the PDFBook a demo
04

The state of infrastructure as code

Infrastructure as code was the last generation's answer to infrastructure at scale, and it earned its place: versioned, reviewable, repeatable. Two things have changed since: the operational load has outgrown the model, and the ecosystem around its dominant tool has destabilized.

Adoption is nearly universal, at 89% of organizations, but only 6% report complete IaC coverage of their cloud. Industry estimates put up to 40% of cloud resources outside IaC management entirely, with roughly a third of codified resources drifted from their definitions. 48% of teams make out-of-band production changes multiple times per week, which means the code and the cloud disagree by design.6

Figure 05 — the IaC ecosystem, 2023 to 2026Public record
Aug 2023

HashiCorp moves Terraform from open source to the Business Source License. The community forks it as OpenTofu under the Linux Foundation.

2024

IBM announces its acquisition of HashiCorp. Regulatory reviews in the US and UK delay the close.

Feb 2025

IBM completes the acquisition at a $6.4B enterprise value. Terraform's roadmap now runs through IBM.

2025

OpenTofu joins the CNCF sandbox and passes 10 million downloads. GitLab 18.0 removes its Terraform CI/CD templates, citing the license. Fidelity Investments details migrating 50,000+ Terraform state files to OpenTofu.

2026

78% of teams use AI to generate infrastructure code, and one third of infrastructure teams would apply AI-generated HCL to production without review.5

License change, acquisition, fork adoption, and the current state of AI-generated infrastructure code.

The step beyond IaC is infrastructure derived from the application code itself. The earliest tools in this category leaned on opaque inference, where an SDK guessed what to provision and operators lost visibility into what existed and why. The designs that have taken hold since pair inference with explicitness: infrastructure requirements are declared in the application code as typed resources, the platform provisions them, and operators keep full visibility into the result. In the IaC model, someone, human or agent, writes and maintains a second codebase that the benchmarks in section 03 show AI handles poorly. The declaration model removes that codebase entirely, which is what lets this layer keep pace with AI-generated change.

05

What defines AI-ready infrastructure

DORA's 2025 research identifies internal platform quality as the factor that determines whether AI adoption translates into organizational performance.7 The question for engineering leaders is what, concretely, such a platform must do when a large share of code is machine-generated. Four capabilities determine whether infrastructure keeps pace with that volume.

Figure 06 — what the platform absorbsEncore
Infrastructure derived from application codePlatform
ProvisioningNew resources ship with the code that needs them, with no separate definition to keep in sync.
EnvironmentsLocal, preview and production derived from one source, identical by construction.
GuardrailsTyped resources and least-privilege defaults. Unsafe configuration fails at compile time.
ObservabilityTracing, metrics and logs generated automatically, for humans and agents alike.
ClaimEach capability removes a category of work rather than accelerating it.

Review queues shrink when the platform, not the reviewer, guarantees that a change cannot reach production with an unprovisioned dependency or an untraced endpoint. That is what converts AI-generated volume from a liability back into throughput.

"A high-quality platform amplifies the effects of AI adoption on organizational performance. The positive impact of AI on organizational performance is strong when platform quality is high."

DORA Research
2025 State of AI-Assisted Software Development
06

Security and governance in the agent era

AI tools read the repository. In a conventional backend setup, the repository contains .env files, Terraform state with cloud account details, and connection strings for production databases. Measured telemetry shows what follows: commits assisted by a leading AI coding agent showed a 3.2% secret-leak rate, more than double the 1.5% baseline across all public GitHub commits, and 2025 saw the largest single-year jump in exposed secrets on record.11

Governance has not kept up with usage. 34% of organizations report that more than 60% of their code is now AI-generated, while only 18% have policies governing the use of AI coding assistants.12 ISACA puts formal, comprehensive AI policy coverage at 28% of organizations worldwide; the Cloud Security Alliance puts comprehensive AI security governance at 26%.13 Adoption is running roughly three times ahead of policy.

Figure 07 — what AI tools can reachRepository vs platform
Secrets .env files, API keys, connection stringsIn repo → managed by platform
Infrastructure config Terraform and state filesIn repo → derived from code
Deployment config Dockerfiles, CI/CD, deploy scriptsIn repo → handled by platform
Application code Business logicVisible in both
What an AI coding tool can read in each setup.

Shrink the attack surface

The structural alternative is to reduce what AI tools can see. When credentials, infrastructure state and access policies live in the platform rather than the repository, AI tools see business logic and typed resource declarations, nothing else. The EU AI Act becomes fully applicable in August 2026, and auditors have issued no guidance on AI-generated code under SOC 2 or ISO 27001, so "the AI never had access to production credentials" is the strongest control argument available.14

07

Assessing your readiness

Score each area out of four, one point per capability you have in place. Few organizations score full marks, and where the low scores cluster matters more than the total.

Figure 08 — readiness scorecardScore each area out of four
Provisioning ticketless resources, every one traceable to code/ 4
Environments local, preview and production identical; preview per PR/ 4
Deployment no manual steps; failure rate holding as volume grows/ 4
Observability traced by default; debuggable without asking anyone/ 4
AI governance written policy; credentials out of reach by construction/ 4
One point per capability in place, twenty available.
0–7 · ExposedAI adoption is ahead of the controls.
8–13 · PartialGains are real but leaking through manual stages.
14–20 · AI-readyThe platform converts velocity into delivery.
How to read your answers

Low scores in provisioning and environments point at the infrastructure gap this guide describes, and they are the ones that compound as AI-generated volume grows. A low governance score is exposure that grows with every percentage point of AI-written code.

08

Getting started

Closing the infrastructure gap does not require a migration program. The pattern that works starts where the risk is lowest and the contrast is most visible.

Figure 09 — a quarter, not a programmeOne service, measured
Step 01ScoreScore the five areas in figure 08 with your platform and engineering leads, and agree which gaps cost most.
Step 02PilotOne upcoming service on derived infrastructure, alongside the existing stack. No migration.
Step 03MeasureLead time, deploy frequency, change failure rate and review wait, against today's baseline.
Step 04ExpandMove services as the data justifies it. New work takes the new model by default first.
A single service carries the pilot. Metrics come from your own baseline rather than a vendor benchmark.

Track lead time, deployment frequency, change failure rate and review-queue time for the pilot against your baseline. These are the same metrics DORA ties to AI value realization, and they make the case in the language your board already uses.

09

About Encore

Encore is a development platform for the AI era, built for a world where AI multiplies software delivery 10–100x rather than making each developer slightly faster. Developers and AI agents declare the infrastructure they need — databases, queues, buckets, cron jobs — directly in ordinary TypeScript or Go, and Encore provisions it in your own AWS or GCP account.

The same application model runs locally, in preview environments, and in production, so changes are validated against real infrastructure before they reach the production loop. There is no separate Terraform layer for anyone, human or agent, to write and keep in sync.

From declaration to running systemorders.ts → live in 42s
orders.tstypescript
01import { api, SQLDatabase, Topic, Bucket } from "encore.dev";
02
03// declare what you need, Encore provisions it
04const db = new SQLDatabase("orders");
05const events = new Topic<OrderEvent>("orders");
06const receipts = new Bucket("receipts");
07
08export const create = api({ method: "POST" }, async (o) => { ... });
TerminalProblemsOutput
$ git push encore
✔ Building application graph
✔ Provisioning Postgres (RDS) · Pub/Sub (SNS+SQS) · Object Storage (S3)
✔ Deploying 6 services to your AWS account (ECS Fargate)
✔ Wiring distributed tracing + metrics
 
→ Live at https://staging-orders-r2qa.encr.app· 42s
→ Dashboard at https://app.encore.dev/orders
Declare in codeType-safe APIs, databases, queues, caches and cron jobs in standard language patterns, no DSLs or YAML. Infrastructure semantics are checked at compile time.
Deploy anywhereAWS or GCP, in your own cloud account, with preview environments per pull request and production deployments automated end to end.
Observe everythingDistributed tracing with zero configuration, plus metrics, logging, a service catalog, and architecture diagrams generated from the code.

Why this matters for this guide

  • The infrastructure gap (section 02): agents never touch IaC, because there is none — infrastructure derives from the application code they already write well.
  • What AI can and can't do (section 03): the work moves out of the layer where the best models score 56% and into the one where they score up to 97%.
  • What defines AI-ready infrastructure (section 05): provisioning, identical environments, guardrails and observability are the default, not a program to stand up.
  • Security and governance (section 06): credentials and infrastructure state live in the platform, outside the repository and outside AI reach.

"Encore is our foundation for all new development. Since adopting it, we've seen a 2–3x increase in development speed and 90% shorter project lead times. What used to take days or weeks of back-and-forth between developers and infra teams is now automated and completed in minutes."

Josef Sima, Engineering Director
Groupon
Book a demoRead the docs

Sources

  1. Bain & Company, "From Pilots to Payoff", Technology Report 2025
  2. LinearB, 2026 Software Engineering Benchmarks Report (8.1M+ pull requests, 4,800+ organizations)
  3. Atlassian, State of Developer Experience 2025 (3,500 developers and managers, with Wakefield Research)
  4. Harness, The State of AI in Software Engineering 2025 (Coleman Parkes, n=900, fielded August 2025)
  5. Spacelift, The Infrastructure Automation Report 2026 (n=406, fielded by Panterra Group)
  6. Firefly, State of IaC (2025 and 2026 editions)
  7. DORA, Accelerate State of DevOps Report 2024 and State of AI-assisted Software Development 2025
  8. Splunk with Oxford Economics, The Hidden Costs of Downtime 2026
  9. Kon et al., IaC-Eval, NeurIPS 2024; SWE-bench Verified leaderboards and Artificial Analysis ITBench-AA, July 2026
  10. Amazon Web Services, SWE-InfraBench, NeurIPS 2025 workshop
  11. GitGuardian, The State of Secrets Sprawl 2026
  12. Checkmarx, Future of Application Security in the Era of AI, August 2025 (1,500+ CISOs, AppSec managers and developers)
  13. ISACA, 2025 AI Pulse Poll (n=3,029); Cloud Security Alliance with Google Cloud (December 2025, n=300)
  14. Regulation (EU) 2024/1689, Art. 113; European Commission AI Act implementation timeline