{"slug": "iac-bench-2026-11-methodology", "title": "iac-bench 2026-11 Methodology", "summary": "The 2026-11 release of iac-bench, published by Massdriver, evaluated 24 language models across 6 OpenTofu module-generation fixtures for a total of 432 attempts, scoring each model on how well it writes reusable infrastructure-as-code modules for AWS, GCP and Azure. Each fixture pairs a short, realistic brief with a hidden rubric and an interface budget — from 8 inputs for the AWS S3 bucket fixture (zero credit at 16) to 25 inputs for GCP Cloud SQL for PostgreSQL (zero credit at 35) — and models run as tool-using agents in isolated working directories under the Inspect framework with a shared system prompt. Briefs deliberately omit security, durability and hygiene requirements so the benchmark tests whether models know to apply them rather than whether they can follow instructions.", "body_md": "New: LLM Rankings are live!\n\n[See how the top LLMs rank on real infrastructure tasks](https://www.massdriver.cloud/llm-rankings)\n\nHow the iac-bench 2026-11 results were produced: the briefs, the evaluation setup, mechanical scoring against real tofu plans, the calibrated LLM judge, statistics and limitations.\n\nEvery model evaluated on the 2026-11 fixtures side by side, with a sortable leaderboard, picks by use case and the cost of each: [LLM rankings](https://www.massdriver.cloud/llm-rankings).\n\n**Release 2026-11 · 24 models · 6 fixtures · 432 attempts**\n\nThis document describes how the 2026-11 iac-bench results were produced: what the models\nwere asked to do, how their output was scored, how the scores were aggregated, and what\nthe numbers cannot tell you. The results are in [the 2026-11 results article](https://www.massdriver.cloud/blogs/iac-bench-2026-11-results).\nEvery scored item is defined in [the scoring criteria reference](https://www.massdriver.cloud/blogs/iac-bench-2026-11-scoring-criteria).\nThe previous release is described in the [2026-10 methodology](https://www.massdriver.cloud/blogs/iac-bench-2026-10-methodology).\n\niac-bench measures how well a language model writes **reusable infrastructure-as-code\nmodules** for OpenTofu (the open-source Terraform fork). A model gets a short request of\nthe kind a platform engineer receives from a colleague, and must deliver a module another\nteam could adopt.\n\nProducing configuration that plans is the minimum. The benchmark measures what a senior reviewer would look for:\n\nThe 2026-11 release covers **module generation only**, on six fixtures, two per major\ncloud.\n\n| Fixture | Cloud and service | Audience named in the brief | Interface budget | \n|---|---|---|---|\n| G001 | AWS · S3 bucket | Application developers who \"fill in a couple of obvious inputs\" | 8 inputs (zero credit at 16) | \n| G002 | GCP · Cloud SQL for PostgreSQL | A DBA team that \"knows PostgreSQL and Cloud SQL deeply\" | 25 inputs (zero credit at 35) | \n| G003 | Azure · App Service (Linux, containers) | An SRE team that \"knows Azure well\" | 20 inputs (zero credit at 30) | \n| G004 | AWS · Aurora PostgreSQL global database | Platform engineers who \"know AWS well but aren't database specialists\" | 12 inputs (zero credit at 22) | \n| G005 | GCP · GKE Standard cluster | A platform team that knows Kubernetes but isn't made of \"GKE specialists\" | 11 inputs (zero credit at 21) | \n| G006 | Azure · Storage account | Application developers who \"don't know Azure Storage well\" | 9 inputs (zero credit at 17) | \n\nEach fixture is defined by a brief, a rubric, and a reference matrix. All are published in\nthe repository under `fixtures/generation/` and `testdata/solutions/`.\n\nThe three new fixtures are harder than the first three in different ways:\n\nEach interface budget is the smallest number of inputs that can satisfy the whole rubric, with related settings (for example, one network object) allowed to share an input.\n\nBriefs are short, realistic requests of a few sentences. They state what is needed, who\nwill use it, and the facts about the environment that settle the design: for G004, that\nthe services run on EKS in two US regions and that each environment already has private\ndatabase subnets tagged `tier = database`.\n\nBriefs **do not list security, durability, or hygiene requirements.** Real requests rarely\ndo, and listing them would turn the most valuable signal (does the model know to do these\nthings?) into an instruction-following check. The rubric's criteria are therefore hidden\nfrom the model, but each core criterion is held to a rule: it must follow either from the\nbrief or from practice that is universal for the service. A model is never penalized for\nfailing to guess a preference the brief leaves open. Service-specific touches that go\nbeyond universal practice are scored separately as *expertise* (§4.3).\n\nEach model works as a tool-using agent in an isolated working directory, using the\n[Inspect](https://inspect.aisi.org.uk/) framework. Every model gets the same system prompt\n(`prompts/generate-module.md`), the same tools, and the same limits.\n\n| Setting | Value | \n|---|---|\n| Tools | `list_files` ,`read_file` ,`write_file` ,`tofu_validate` ,`tofu_plan` ,`tofu_fmt` ,`submit` | \n| Deliverable | A root module ( `*.tf` ) plus`minimal.tfvars` , which gives a literal value for every variable without a default and must plan cleanly | \n| Remote modules | Not allowed (calling one fails the evaluation); local submodules allowed | \n| Limits | 300 messages, 60 minutes wall clock per attempt | \n| API retries | Up to 3 per request, then the attempt ends as an error | \n| Planning | `tofu plan` against real cloud accounts (AWS, GCP, Azure sandboxes). Nothing is ever applied. | \n| OpenTofu | 1.12.5 | \n| Providers | Each module's own version constraints, resolved at run time | \n\nThe `tofu_plan` tool plans against the same real cloud accounts used for scoring, so a\nmodel can verify that its module plans before submitting.\n\nThe limits doubled from 2026-10 (150 messages and 30 minutes). G004 in particular takes the strongest models longer than 30 minutes to finish well.\n\n| Model | API identifier | Access | Weights | \n|---|---|---|---|\n| Claude Fable 5.2 | `claude-fable-5-2` | Anthropic API | Closed | \n| Claude Fable 5.1 | `claude-fable-5-1` | Anthropic API | Closed | \n| Claude Opus 5.5 | `claude-opus-5-5` | Anthropic API | Closed | \n| Claude Sonnet 5.5 | `claude-sonnet-5-5` | Anthropic API | Closed | \n| Claude Haiku 5.5 | `claude-haiku-5-5` | Anthropic API | Closed | \n| GPT-6.2 Sol | `gpt-6.2-sol` | OpenAI API (Responses) | Closed | \n| GPT-6.2 Astra | `gpt-6.2-astra` | OpenAI API (Responses) | Closed | \n| GPT-6.1 Sol | `gpt-6.1-sol` | OpenAI API (Responses) | Closed | \n| GPT-6.1 Terra | `gpt-6.1-terra` | OpenAI API (Responses) | Closed | \n| GPT-6 Astra | `gpt-6-astra` | OpenAI API (Responses) | Closed | \n| GPT-6 Luna | `gpt-6-luna` | OpenAI API (Responses) | Closed | \n| Gemini 4 Neon | `gemini-4-neon` | Google Gemini API | Closed | \n| Gemini 4 Carbon | `gemini-4-carbon` | Google Gemini API | Closed | \n| Gemini 4 Argon | `gemini-4-argon` | Google Gemini API | Closed | \n| Gemini 4 Hydrogen | `gemini-4-hydrogen` | Google Gemini API | Closed | \n| Gemini 3.8 Flash | `gemini-3.8-flash` | Google Gemini API | Closed | \n| Gemini 3.6 Flash | `gemini-3.6-flash` | Google Gemini API | Closed | \n| Gemini 3.1 Pro | `gemini-3.1-pro-preview` | Google Gemini API | Closed | \n| Qwen4 Max | `qwen/qwen4-max` | OpenRouter, Alibaba endpoint | Closed | \n| Kimi K3.1 Pro | `moonshotai/kimi-k3.1-pro` | OpenRouter, Moonshot AI endpoint (MXFP4) | Open | \n| Kimi K3 | `moonshotai/kimi-k3` | OpenRouter | Open | \n| GLM-5.3 | `z-ai/glm-5.3` | OpenRouter, Z.ai endpoint (FP8) | Open | \n| Qwen3.8 2.4T-A95B | `qwen/qwen3.8-2.4t-a95b` | OpenRouter, Alibaba endpoint | Open | \n| DeepSeek V4 Pro | `deepseek/deepseek-v4-pro-0813` | OpenRouter | Open | \n\nAll models ran with their providers' default sampling and reasoning settings. No temperature, reasoning-effort, or token-budget overrides were set. The GPT models were called through OpenAI's Responses API, because its Chat Completions API rejects tool use combined with reasoning for these models. It changes only the API used, and no model setting. Kimi K3.1 Pro, GLM-5.3, Qwen3.8 2.4T-A95B and Qwen4 Max were pinned to their developer's OpenRouter endpoint with fallbacks disabled, so every attempt ran on the same serving stack.\n\n**Pinning.** Except for DeepSeek V4 Pro (`-0813`), the providers' APIs returned these\nidentifiers as undated aliases, and none reported a dated snapshot. Results are therefore\ntied to the run date:\n\nHosted models can change behind an alias without notice.\n\nEach model ran each fixture **three times**, as independent attempts with no shared state:\n24 models × 6 fixtures × 3 samples = **432 attempts**. Every attempt is scored and\npublished, and none was chosen after the fact.\n\nThe 2026-10 attempts on G001–G003 are reused where the limits did not affect them. Any model and fixture where one of the three 2026-10 attempts reached the old 30-minute or 150-message limit was run again in full, all three attempts, under the new limits: GLM-5.3 on G002 and G003, Kimi K3 on G003, and Gemini 3.6 Flash on G003. A run that ended on a provider error before producing any attempt was restarted. Every stored attempt is rescored under the current rubrics, so all 432 attempts are scored by the same rules.\n\nEach attempt passes through four layers.\n\n| Layer | What it measures | Nature | Weight | \n|---|---|---|---|\n| 1. Gate | The module plans as a root module with its own `minimal.tfvars` | Mechanical, pass/fail | Prerequisite for layer 2 | \n| 2. Rubric and expertise | Fixture-specific consequences: security, data protection, audience fit, service expertise | Mechanical, itemized and weighted | 70% | \n| 3. Judge | Design and craft against a published quality doctrine | LLM judge, calibrated against a human | 30% | \n| 4. Statistics | Inputs, SLOC, tokens, time, estimated cost | Mechanical, descriptive | 0% (reported only) | \n\n**Composite = 0.70 × mechanical + 0.30 × judge grade**, on a 0–100 scale.\n\nThe runner keeps only the variables that have no default from the model's own\n`minimal.tfvars`, then runs `tofu plan` on the module as a root module. An input that names\nthe sandbox's own identity, which a model cannot know (a GCP project, or an Azure resource\ngroup or subscription), takes the sandbox's value, as an operator would fill it in. A module\nthat does not plan **fails the gate**:\n\n**Known apply failures.** Some configurations plan cleanly but are rejected by the cloud\nAPI when applied. Where a fixture has one that was confirmed by applying it, the fixture\nlists it, and a module that matches it is scored in full and then has its composite\nmultiplied by **0.5**. Two fixtures have them:\n\nEach fixture's `rubric.yaml` declares weighted items, checked by a declarative check engine\n(`docs/generation-check-engine.md`). The engine never looks at variable names. It\nevaluates outcomes in two places:\n\n`count`/` for_each`, dynamic blocks and `each.*`. The source includes every local\nmodule the module calls, with the child's inputs read as the call's arguments.\n**The perturbation sweep.** For every documented input, the runner plans the module once\nmore with that one input changed: booleans flipped, and enumerated values from `contains()`\nvalidations tried (up to five alternatives). The sweep reveals what an input actually\ncontrols without the engine knowing what the model named it. A setting reached through a\ndirect toggle, a value inferred from an environment, or a derived local all score the same.\nCollection-typed and free-string inputs are not perturbed.\n\n**The solver.** When an item fails at defaults and in the sweep, a solver reads the module's\nsource and searches for inputs that would reach the item: up to three inputs changed at\nonce, with values drawn from the module's own comparisons, validations and map keys, plus a\nfew well-formed sample values per fixture (such as a resource ID). Inputs that would fail a\nvalidation or precondition are rejected. The runner then plans each proposed input set, and\nonly a successful plan that shows the item counts. The source proposes and the plan\ndecides.\n\nItems take one of five **postures**, depending on what the item protects:\n\n| Posture | Meaning | Passes when | \n|---|---|---|\n| Hardcoded | Security posture. An input that can weaken it is the defect, even if the default is safe. | Every value the source can produce is secure (a literal, or an input confined to secure values, such as a choice between two encrypted modes), the resource exists unconditionally, and it stays secure in every sweep plan | \n| On by default | Safe by default, with a legitimate reason to turn it off | On at defaults with a real way to turn it off. Always-on with no opt-out earns partial credit (0.75); off by default but reachable earns 0.5. | \n| Offered | A capability the audience should be able to reach | Present at defaults or in at least one sweep plan | \n| Graded | Better and worse mechanisms that both work | Credit for the best mechanism present | \n| Budget | Interface size fits the audience | Full credit at or under the soft count, falling linearly to zero at the hard count | \n\nItems are grouped by role:\n\n`B1`), descriptions (` B2`), planning with only the required inputs (` B3`), and reading\nnothing from the machine that runs OpenTofu (`B4`).\nEach fixture's most severe security failure modes are **mandatory** items: two on G001,\nG002, G003 and G006, four on G004 and G005, plus `B4` on every fixture. Failing one is a\n**security finding** (⚠). It does not cap the score, but it marks the attempt unshippable.\n\n**`B4`: no host access.** A module fails `B4` if it reads files under `/proc`, declares an\n`external` data source, or uses a `local-exec` provisioner. Each of these lets a module see\nor act on the machine that runs OpenTofu, including every credential in that machine's\nenvironment, so `B4` is mandatory and weighs 10, in the range of the fixtures' heaviest\nsecurity items.\n\nEach fixture also lists **expertise items**. These are service-specific touches an\nexperienced engineer adds without being asked, such as S3 bucket-owner-enforced ownership\nor IAM database authentication on Cloud SQL. They are checked mechanically and pooled into\nthe mechanical score at weight 1 each, against rubric weights of 1–18. The rubric therefore\ndecides whether a module meets the bar, and expertise separates modules that do.\n\nExpertise items come from observation. Candidates come from differences between models and from the judge's rationales. Each is approved by the doctrine owner and records where it came from. An item must not reward inventing requirements the brief never stated.\n\nmechanical = (Σ rubric weight × credit + Σ expertise credit) / (Σ rubric weight + number of expertise items)\n\nThe rubric weight totals, including the baseline items, are 101 (G001), 107 (G002), 87 (G003), 150 (G004), 139 (G005) and 100 (G006). Each fixture has 5–10 expertise items.\n\nEach fixture ships hand-written reference modules that the rubric must classify correctly:\n\n`ref_lean`); the others are more configurable.` bad_passthrough`: every setting is an input;` bad_minimal`: a bare resource;` bad_unsafe` and similar: one critical setting exposed or missing;\nThe self-test runs this matrix against real cloud plans. If a deliberately good design fails the rubric, the rubric is wrong. The matrix exists so that the rubric rewards outcomes rather than one author's preferred shape.\n\n**Review of widely missed items.** Before this release was judged, every rubric item that\nmost models, including the strongest, failed was reviewed against its evidence. Items whose\nrequirement did not follow from the brief or from universal practice were removed or\nrewritten; items that did were kept, however many models missed them. The review is\nrecorded in the repository's history.\n\nThe judge is **Claude Opus 5.5**. It grades each module against the benchmark's quality\ndoctrine (`docs/good-opentofu.md`, edition `af3ae1dd9fdc1c0c`) on **14 sections**, scoring\neach 0 (no credit), 1 (partial) or 2 (full):\n\nThe weighted mean is scaled to 0–100.\n\n**The judge grades only what the rubric cannot.** The doctrine sections the rubric already\nscores are given to the judge as context but are not graded: insecure configurations,\ndestructive defaults, unstated assumptions, tagging, versions, and provider declarations.\nA defect therefore never costs a module in both components.\n\n**Blind to authorship.** The judge sees the brief, the doctrine, and the module's files:\nHCL first, then tfvars, then documentation. It never sees which model wrote the module.\nThe files are marked as untrusted data, so instructions inside a module are not followed.\n\n**Sampling.** Each module is graded three times independently. Each section takes the\nmedian of the three grades, and the judge returns one sentence of evidence per grade.\n\nA judge counts toward the composite only after it is calibrated against the doctrine owner (the human who maintains the doctrine). The calibration was done for the 2026-10 release:\n\n| Fixture | Cells | Exact agreement | Lowest section | \n|---|---|---|---|\n| G001 | 112 | 0.929 | 0.75 (Interface design, Scope, File layout, Documentation) | \n| G002 | 112 | 0.973 | 0.875 (Interface design, File layout, Documentation) | \n| G003 | 112 | 0.982 | 0.75 (Documentation) | \n\nA second judge (GPT-5.5) failed the gate on G001 and G003 and was not used.\n\n**Carrying calibration forward.** The calibration tests whether the judge applies the\ndoctrine's sections correctly, and those sections do not depend on the fixture. Every 2026-11\ngrade was made with the same judge model, doctrine edition, graded sections, prompt and\nsampling as the calibrated runs, so the calibration is carried over on that basis:\n\nThe doctrine owner did not re-review the 2026-11 modules. Each grade file records where its calibration came from. Modules from 2026-10 that are unchanged keep their 2026-10 grades; every other module was graded for this release.\n\n**The whole module.** The judge's input was cut at 30,000 characters in 2026-10. This release\nraises the limit to 200,000, beyond any module the benchmark has produced, and grades again\nin full every module that was over the old limit (127 of 432). A module under the limit\nreaches the judge exactly as before. Three of the 24 calibration modules were over it; the\ndoctrine owner and the judge graded the same shortened text, so the measured agreement\nstands for what was graded.\n\n`tofu plan`. It can miss a\nsetting that the source omits and the provider defaults insecurely, and it can grade a\nmodule that does not plan. The rubric covers both cases. The two components are meant to\ncomplement each other.\nWithin a fixture the median is used, so one broken attempt out of three is reported as one broken attempt instead of being averaged into a result that hides it.\n\nThree samples per cell is a small sample, so the overall score is reported with a\n**bootstrap 95% confidence interval**:\n\nEach model also gets a **rank interval**: the 2.5th to 97.5th percentile of its rank across\njoint bootstrap draws, following the LMArena convention. A ranking claim is made only where\nintervals separate. Pairwise win probabilities are published in the data release.\n\nWith n = 3, the bootstrap is coarse, and intervals are wide for models with one outlier attempt. Read them as a statement of how far the data supports a ranking, not as precise coverage.\n\nA module that fails the gate keeps its judge grade, so its composite is about 25–30 rather than 0. It is flagged ✗ and counted in the results tables. The judge grade is kept because the judge grades design and craft, which a plan failure does not erase. The flag shows that the attempt was unshippable. Security findings are handled the same way: flagged ⚠ and counted, but no score cap.\n\nEstimated cost per attempt uses OpenRouter list prices dated on each model's run day, for every model, including closed models routed through their own APIs. Cache reads are charged at 0.1× and cache writes at 1.25× the input price. Judge calls are excluded. Token counts, wall-clock time, SLOC and input counts come from the eval logs. None of them affects any score.\n\niac-bench is developed by Massdriver, which builds infrastructure tooling. Massdriver wrote the briefs, rubrics, references and doctrine, and its staff acted as the calibrating human.\n\nThe results were scored by the code tagged\n[`2026-11`](https://github.com/massdriver-cloud/iac-bench/tree/2026-11) in the repository.\nAt that tag, the repository contains everything needed to reproduce or audit a score:\n\n`src/iacbench/`.` prompts/generate-module.md`.` fixtures/` and `testdata/`.` docs/good-opentofu.md`.` composite-scoring-policy.yaml`.` prices.yaml`.\nThe [2026-11 data release](https://github.com/massdriver-cloud/iac-bench/tree/2026-11/results/2026-11) (`results/2026-11/` in the repository) contains:\n\nSandbox account identifiers and credentials are replaced with placeholders wherever they\nappear; the release lists every redacted file. Results are licensed under CC BY 4.0. The\nrelease is archived on Zenodo as [doi:10.5281/zenodo.24517718](https://doi.org/10.5281/zenodo.24517718).\n\nTo reproduce one cell:\n\n```\nuv run inspect eval src/iacbench/task.py@generate_module -T fixture=G004 \\\n    --model anthropic/claude-sonnet-5-5 --epochs 3\nuv run iacbench judge --grade --samples 3 --fixture G004 \\\n    --candidates <collected modules> --model anthropic/claude-opus-5-5\n@techreport{iacbench2026nov,\n  title       = {iac-bench: Evaluating LLM-authored OpenTofu modules},\n  author      = {Hill, Chris},\n  institution = {Massdriver},\n  year        = {2026},\n  month       = nov,\n  number      = {Release 2026-11},\n  url         = {https://www.massdriver.cloud/blogs/iac-bench-2026-11-results},\n  note        = {Code and data: \\url{https://github.com/massdriver-cloud/iac-bench/tree/2026-11}}\n}\n\n@misc{iacbench2026novdata,\n  title     = {iac-bench 2026-11 data release},\n  author    = {Hill, Chris},\n  publisher = {Zenodo},\n  year      = {2026},\n  version   = {2026-11},\n  doi       = {10.5281/zenodo.24517718},\n  url       = {https://doi.org/10.5281/zenodo.24517718}\n}\n```\n\nHow Gemini 3.8 Flash did on iac-bench 2026-11: an overall composite of 65.6, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.\n\nHow Gemini 4 Argon did on iac-bench 2026-11: an overall composite of 75.9, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.\n\nHow Gemini 4 Carbon did on iac-bench 2026-11: an overall composite of 79.1, scores per fixture, strengths, weaknesses and the patterns in its OpenTofu modules.", "url": "https://wpnews.pro/news/iac-bench-2026-11-methodology", "canonical_source": "https://www.massdriver.cloud/blogs/iac-bench-2026-11-methodology", "published_at": "2026-11-24 00:00:00+00:00", "updated_at": "2026-11-25 17:15:58.664985+00:00", "lang": "en", "topics": ["ai-research", "large-language-models", "ai-agents", "ai-tools"], "entities": ["iac-bench", "Massdriver", "OpenTofu", "Inspect", "AWS", "GCP", "Azure"], "also_reported_by": [], "takeaway": "iac-bench 2026-11 scored 24 models over 6 OpenTofu fixtures (432 attempts) with hidden rubrics and per-fixture interface budgets, so a module that plans is only the minimum — models are judged on reusable, reviewer-grade infrastructure code.", "recommendation": {"advice": "When evaluating models on infrastructure code, hide the rubric and set an interface budget (8–25 inputs per fixture) so you measure whether the model applies security and durability practice unprompted, not whether it follows listed requirements.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/iac-bench-2026-11-methodology", "markdown": "https://wpnews.pro/news/iac-bench-2026-11-methodology.md", "text": "https://wpnews.pro/news/iac-bench-2026-11-methodology.txt", "jsonld": "https://wpnews.pro/news/iac-bench-2026-11-methodology.jsonld"}}