Manuscript Offprint
arXiv:2610.34613Do AI Coding Agents Write Infrastructure as Code Like Humans? An Empirical Study of GitHub Pull Requests
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Amine Barrak
Oakland University
Emna Ksontini
University of North Carolina Wilmington
Charles Wehbe
Oakland University
Abstract—Infrastructure-as-Code (IaC) configurations define cloud resources, networking, and access control, and AI coding agents increasingly write them. Little is known about how agent contributions differ from those of humans and automation bots, how maintainers evaluate them, and whether they introduce different sustainability concerns.
We study 349,156 IaC pull requests (PRs) from 49,241 GitHub repositories, distinguishing humans, automation bots, silent agents, and disclosed agents. Bots account for 32.9% of ostensibly human PRs, and 12.3% of the remaining PRs contain agent traces, a share that grows over the study period. Agent PRs are about four times larger than human PRs and more often modify core infrastructure modules, whereas bots mainly maintain dependencies. Silent-agent PRs have higher overall merge rates than human PRs (87.4% vs. 78.9%) but are merged 4.0 percentage points less often within the same repositories. Disclosed agents create new infrastructure more often than humans (34.0% vs. 21.4%), and even for the same change type within the same repository, their PRs are 8.4 points less likely to be merged; silent-agent PRs show comparable acceptance for most change types. Finally, in 2,645 matched agent-human Terraform PR pairs, agent and human PRs introduce sustainability smells at similar rates (10.4% vs. 10.3%; paired odds ratio 1.02, 95% CI 0.83–1.25), most commonly missing remote state and monolithic configurations.
Index Terms—Infrastructure as Code, AI coding agents, automation bots, authorship, pull requests, empirical study
I. INTRODUCTION
Deploying software requires dependable infrastructure: compute, networks, storage, identities and access policies, scaling rules, and persistent state. Infrastructure-as-Code (IaC) specifies these resources as versioned configurations, so that tools such as Terraform, Ansible, and CloudFormation can provision them automatically and repeatably as part of continuous integration and delivery [1]–[3]. Unlike an ordinary code edit, an IaC change can open a network path, grant a permission, or provision costly resources once it is applied [4], [5]. Such changes reach a project through pull requests (PRs), so each IaC PR is both a proposed change to the infrastructure and a review decision about whether to accept it.
Automating deployment does not remove the consequences of configuration choices. A configuration fixes the characteristics of the resources it provisions, and these may keep consuming resources long after the change: an oversized instance type, a fleet of fixed size without autoscaling, logs retained indefinitely, Terraform state kept on a local disk, or all resources of a system in a single file. Kosbar and Hamdaqa [6] catalogue such decisions as sustainability smells in IaC and show that whether a smell is wasteful depends on context. A detected smell is therefore an indicator in the configuration, not a measurement of energy, cost, or waste.
The growing adoption of AI coding agents introduces a new dimension to infrastructure automation: beyond automatically provisioning resources, developers can use AI agents to generate and modify the configurations that govern those resources. AI coding agents such as Claude Code, GitHub Copilot, OpenAI Codex, Cursor, and Devin participate in IaC development, while research has begun exploring their integration into the IaC and DevSecOps lifecycle [3], [7]. Some contributions are explicitly attributed to agents, whereas others are submitted under developer identities, leaving agent involvement visible through commit-level traces [8], [9]. Traditional automation bots, such as Dependabot and Renovate, further complicate attribution because their contributions are often counted as human activity [10]. Consequently, identifying who produces infrastructure changes requires distinguishing humans, traditional bots, and both disclosed and silent AI agents.
Despite growing interest in AI coding agents, their implications for real-world IaC development remain insufficiently understood. Identifying who contributes is only the first step: we also need to understand which infrastructure operations agents perform, how maintainers evaluate their changes, and whether these changes introduce potential resource-efficiency concerns. Existing research has examined the acceptance and rejection of agent-generated PRs [11]–[13], evaluated the correctness and security of LLM-generated IaC through benchmarks [14]–[16], and investigated IaC smells without distinguishing human and AI-agent contributions [4], [6], [17], [18]. However, these studies examine separate aspects of infrastructure development. In particular, it remains unclear whether agents perform the same kinds of infrastructure changes as human developers, whether differences in their acceptance persist when accounting for change types and repository context, and whether agent-generated changes introduce different sustainability-smell patterns. Addressing these questions requires connecting contributor provenance, change semantics, review outcomes, and sustainability within real-world IaC repositories.
We address this gap through a large-scale observational study of 349,975 IaC pull requests from 49,241 GitHub repositories opened between January 2025 and May 2026. Our main contributions are:
• Authorship and participation. We distinguish four contributor populations across 349,156 labeled PRs. Automation bots account for 35.8% of ostensibly human PRs, while silent-agent PRs, despite higher overall acceptance, are merged 4.0 percentage points less often than human PRs within repositories.
• Infrastructure changes and acceptance. Using an IaC-specific taxonomy and human-audited annotations, we find that disclosed agents create new infrastructure more frequently than humans (34.0% vs. 21.4%). Their within-repository acceptance deficit persists after adjusting for change type (8.4 percentage points).
• Sustainability implications. Across 2,645 matched agent–human PR pairs modifying AWS Terraform configurations, we find no statistically detectable difference in sustainability-smell introduction (10.4% vs. 10.3%; paired odds ratio 1.02, 95% CI 0.83–1.25).
Replication Package. Our data, codebook, prompts, and analysis scripts are available in the replication package [19].
A. AI Coding Agents and Automation in Software Repositories
Early research on AI programming assistants examined the correctness and security of generated code. Nguyen and Nadi [20] evaluated GitHub Copilot's suggestions, while Pearce et al. [21] identified security weaknesses in generated code. More recently, research has shifted toward autonomous coding agents and their contributions to open-source projects. AIDev [8] identifies agent-generated PRs through agent accounts and signatures, primarily capturing disclosed contributions. Studies of these PRs have investigated acceptance and rejection: Watanabe et al. [11] reported lower acceptance of Claude Code PRs than matched human PRs, often due to project context; Ehsani et al. [12] found that failed agent PRs tend to be larger and encounter more CI failures; and Nakashima et al. [13] identified rejection reasons specific to agent-generated contributions.
However, agent involvement is not always disclosed. Khosravani and Mockus [9] demonstrated that commit trailers, generation footers, and agent identities reveal contributions missed by PR metadata. Traditional automation bots complicate contributor identification. Wessel et al. [22] characterized bots in pull-based development, Dey et al. [10] showed how bot activity affects repository analyses, and Alfadel et al. [23] examined developer responses to Dependabot security PRs.
Our study combines agent-signature detection, commit-level provenance analysis, and bot identification to distinguish four contributor populations in IaC repositories. Beyond characterizing their participation, we investigate the infrastructure changes they produce and how acceptance varies across repositories and change types.
B. IaC Quality and AI-Generated Configurations
Research on IaC quality has examined smells, security policies, and defects [1]. Sharma et al. [24] investigated configuration smells in Puppet, while Rahman et al. [4] identified security smells such as hard-coded secrets and unrestricted network access. Saavedra and Ferreira [25] developed GLITCH for detecting smells across IaC languages, and War et al. [18] extended security-smell classifications across seven IaC technologies. Verdet et al. [5] examined security policies in Terraform. Other studies characterized IaC defects and developed defect-prediction approaches [17], [26]–[28].
Beyond security and correctness, IaC configurations can affect cloud-resource efficiency. Kosbar and Hamdaqa [6] introduced sustainability smells in Terraform, including over-provisioning, missing autoscaling, and monolithic infrastructure. Recent work has also evaluated LLM-generated IaC configurations: Kon et al. [14] introduced IaC-Eval; Nekrasov et al. [15] identified hallucinated Terraform resources and arguments; and Vargas et al. [16] examined the security compliance of generated AWS configurations.
These studies establish the importance of IaC quality but largely examine existing configurations or generated code in benchmark settings. Our study instead analyzes changes proposed in real repositories, develops an IaC-specific classification of infrastructure operations, and compares sustainability-smell introduction in matched agent and human PRs using the taxonomy of Kosbar and Hamdaqa [6].
III. STUDY DESIGN
This section describes the data and methods shared by our three research questions. Figure 1 provides an overview of the study design, while Sections IV–VI present the motivation, approach, and results of each RQ.
A. Data Collection and Authorship
PR collection. Using the GitHub search API, we collected PRs opened between January 1, 2025 and May 31, 2026 whose title or description mentions a provisioning tool (Terraform, CloudFormation) or a configuration-management tool (Ansible, Puppet, Chef); queries were split into time windows below the API's 1,000-result limit, run twice, and deduplicated. We keep a PR only if it changes at least one file of these tools, identified by path and extension or, where ambiguous, by content (e.g., AWSTemplateFormatVersion). This yields 349,975 PRs from 49,241 repositories: Terraform (291,804), Ansible (51,444), CloudFormation (7,307), Puppet (2,200), and Chef (1,378); a PR may use several tools. For each PR, we collected its metadata, merge status, size, commits, changed files, and review timeline.
Authorship labeling. We assign each PR to one of four populations in three steps. First, following AIDev [8], a PR

Fig. 1. Overview of the study design. The held-out validation covers 240 PRs (120 refused PRs coded for rejection reasons), and the audit samples 240 annotations per task. Smells are detected in all matched Terraform pairs; the main analysis uses the AWS pairs.
is disclosed-agent if an AI-agent account opened it (e.g., the Copilot coding agent or Devin) or its metadata carries an agent signature. Second, for the remaining 339,196 PRs, we match 14 signature rules adapted from Khosravani and Mockus [9] against every commit: co-author trailers, generation footers (e.g., “Generated with Claude Code”), and agent e-mail addresses or accounts, ignoring generic automation and mere mentions of an agent. We consider a PR opened by a developer or a bot silent-agent if at least one of its commits matches these rules. Third, among PRs without agent traces, those opened by an account that the GitHub API types as Bot are automation bot, and all others are human (no agent trace found); 1,138 bot-opened PRs with agent traces remain silent-agent. Excluding 819 PRs whose commits are no longer reachable leaves 349,156 labeled PRs.
Repository screening and sampling. RQ1 uses 349,156 labeled PRs. For RQ2 and RQ3, we build a screened corpus that focuses on development work and limits the influence of active repositories. We exclude forks, repositories that are insecure by design (e.g., copies of TerraGoat), and 41 repositories whose PRs only test or demonstrate a tool, identified by two authors who screened 167 repositories with demo or test signals ( ). Because the 1% most active repositories hold 19–36% of a population's PRs, we keep at most 50 PRs per repository and population, which yields 237,585 PRs.
B. Annotation of Changes and Rejection Reasons
RQ2 annotates the change type of 231,151 corpus PRs whose diff could be retrieved (97.3%; unreachable diffs are more often agent PRs) and the rejection reasons of the 38,262 PRs among them that were closed without merging.
Codebook. The change-type codebook has two axes (Table I): the action (what the diff does to the infrastructure configuration) and the target (the resource type it acts on, mapped from Terraform, CloudFormation, Ansible, Puppet, and Chef resource types). Three flags cut across actions: security (the purpose is to reduce a security risk), destructive (the change destroys or forces replacement of a stateful resource; possible when it could without evidence that this is intended), and permissions broadened (judged by effective access granted). PRs without a substantive IaC change are not codable. Twelve ordered decision rules resolve ties (e.g., the diff, not the title, decides; a fix requires evidence of breakage). Rejection reasons have seven categories: rejected by a maintainer, discarded by the author or requester, superseded, duplicate, abandoned, not intended to merge, and unclear. Two authors developed the codebooks on a pilot of 100 PRs and a tuning set of 80 PRs, stratified by population and outcome; coding the tuning set independently, they agreed with for actions and 0.90 for targets and rejection reasons before adjudication.
LLM annotation. Two models from different vendors label
TABLE I TAXONOMY OF IAC CHANGES. ACTION AND TARGET ARE INDEPENDENT DIMENSIONS ASSIGNED TO EACH CODABLE PR.
| Category | Definition (example) |
|---|---|
| Action: what the change does to the infrastructure configuration | |
| Create | New module, stack, environment, or Ansible role |
| Extend | New resources or tasks in an existing module |
| Modify | Changed settings of existing resources, nothing broken (e.g., instance size) |
| Fix | Repairs a failing plan or apply, error, or drift |
| Upgrade | New provider, module, image, or tool version |
| Migrate | Move to another platform, tool, or backend (e.g., local to remote state) |
| Refactor | Restructuring without changing what is deployed (e.g., moved blocks) |
| Remove, Revert | Deletes resources, or undoes an earlier change |
| Document, Test, Format | Docs, tests, or style only |
| Target: type of resource acted on | |
| Identity & access | IAM roles, policies, service accounts |
| Network | VPCs, subnets, firewalls, load balancers, DNS |
| Compute & containers | Instances, autoscaling, Kubernetes, functions |
| Storage & data | Buckets, databases, caches, backups |
| Secrets & encryption | KMS keys, secrets, certificates |
| Messaging & integration | Queues, topics, event buses, API gateways |
| Observability | Logs, monitoring, alerting |
| Governance & cost | Accounts, organization policies, tags, budgets |
| Host configuration | Files, OS settings (Ansible, Puppet, Chef) |
| IaC plumbing | Providers, state backends, lock files |
| CI/CD, whole stack, other, none | IaC pipelines; several components; unmapped type; docs only |
every PR independently: GPT-6 Luna (version 2026-09-22, Azure OpenAI) as the primary annotator and Claude Haiku 5.5 (OpenRouter) as a check, which reduces correlated errors and the risk that a model favors its own vendor's agents. Each receives the codebook, the PR title and description, the IaC diff, and the names of other changed files (for rejection reasons, the description and timeline), with agent and bot attribution removed and timeline participants replaced by roles, and returns labels with supporting evidence as structured JSON. All results use GPT-6 Luna's labels. The models agree on of actions, of targets, and of rejection reasons; since disagreement signals likely errors, a human audit samples agreeing and disagreeing PRs equally and corrects the reported label shares for the errors found.
LLM label validation. We froze the configuration (codebook, prompt, examples, models, parameters) and evaluated it on 240 held-out PRs (30 per population and outcome), coded independently by two authors (inter-coder for actions, 0.85 for targets, 0.95 for rejection reasons) and adjudicated. An earlier held-out evaluation prompted one rule revision; because rejection-reason rules were unchanged, both samples inform their accuracy estimate. The primary annotator reached accuracy for actions (), for targets (), and for rejection reasons. After the evaluation, we required precision and recall of at least 0.70 with at least ten instances for drawing conclusions from a class. This holds for creations, extensions, modifications, and upgrades; the compute, data, identity, network, plumbing, and other targets; and the permissions flag. Fixes, tests, the host target, and the destructive flag (three positive cases) are reported as tentative. Because it did not meet the criterion, the security flag is reported only through estimates adjusted for annotation errors.
LLM label audit. A probability sample of the production labels (the audit: 480 PRs, 30 per stratum of task, population, and agreement between the two models) was coded by an author blind to both models' labels. Weighted to the corpus, the primary annotator reached accuracy for actions, for targets, and for rejection reasons. Both models, however, labeled most PRs not meant to be merged and most maintainer rejections as unclear, even when they agreed, so we never compare raw label shares. Instead, for each population and class, a stratified difference estimator corrects the share of the primary's labels by the design-weighted differences between human and primary labels in each audit stratum, which provides design-unbiased estimates. In a simulation, its nominal design-based intervals covered the truth in only (change types) and (rejection reasons) of draws, mainly because of rare classes; we therefore also compute conservative intervals with the Agresti-Min adjustment [29] and treat a difference between populations as established only when it excludes zero under both. We draw no population-level conclusions for rare classes such as removals and formatting. The coverage simulation is in the replication package.
C. Detection of Sustainability Smells
We operationalize six sustainability smells adapted from Kosbar and Hamdaqa [6], who derive them from cloud providers' guidance and validate them in a practitioner survey (Table II). Our detector applies each definition to the parsed Terraform configuration, with thresholds derived from their examples, and is tested on 42 cases.
TABLE II SUSTAINABILITY SMELLS ADAPTED FROM KOSBAR AND HAMDAQA [6] AND OPERATIONALIZED USING STATIC HEURISTICS IN OUR STUDY.
| ID | Sustainability smell | Detection summary |
|---|---|---|
| SS1 | Over-provisioning | Large configured compute, database, or cache instances. |
| SS2 | Lack of auto-scaling | Multiple instances with fixed capacity and no autoscaling. |
| SS3 | Ignoring resource lifecycles | Sized disks or volumes without a lifecycle block. |
| SS4 | Excessive logging | Long or unlimited log retention. |
| SS5 | State management | Root configurations without a remote state backend. |
| SS6 | Monolithic infrastructure | Many resources defined in a single configuration file. |
RQ3 pairs each agent Terraform PR with the closest-in-time human PR of the same repository (at most 90 days apart, preferring the same size class; each human PR used once; at most 20 pairs per repository), yielding 6,688 pairs in 2,765 repositories (74% in the same size class; median gap 7 days). We detect smells and cloud providers in all pairs;
321 pairs could not be analyzed. The main analysis uses the 2,645 pairs (1,183 repositories) in which both PRs change AWS configurations, the provider Kosbar and Hamdaqa's rules target; the 1,707 Azure or Google Cloud pairs (63 of which also count as AWS pairs) form a sensitivity analysis, and the remaining 2,078 pairs are excluded.
For each PR, we detect smells in every configuration directory it touches, before (at the merge base with the target branch) and after (at the head commit); a smell is introduced if it appears and removed if it disappears. Unreadable files are dropped from both snapshots. We do not assess state management in repositories that use Terragrunt, a tool that configures remote state itself, so a missing backend in their Terraform files is not a smell. The main results exclude example, test, demo, and LocalStack configurations and, for state management, configurations that bootstrap the state store.
Validation. Two authors independently labeled up to 30 random introduced findings per smell as true or false positives, blind to the population; all six smells were retained, with precision of 0.86 to 1.00. They noted when the code or repository states a justification for a confirmed smell.
D. Statistical Analyses
Contribution and acceptance (RQ1, RQ2). We count PRs per month and population and compare merge rates overall, per IaC tool, and per agent tool. Linear probability models (LPMs) of the merge outcome include population indicators (humans as reference), the logarithm of lines and files changed, and creation-month and IaC-tool fixed effects, first without and then with repository fixed effects, which compare populations within a repository; standard errors are clustered by repository. For RQ2, change-type fixed effects and population-by-type indicators give each population's merge difference from human PRs of the same type; these models use codable PRs with a final outcome and are repeated on the PRs on which both LLMs agree. We compare lines and files per PR and lines per commit with Cliff's [30], [31], and the share of PRs changing each of fifteen IaC file kinds.
Change mix and rejection reasons (RQ2). We compare error-aware shares of actions, targets, and flags across populations, and rejection reasons among refused PRs (Section III-B). Cramér's V on raw labels measures the association between change type and each population compared with humans.
Delegation evidence (RQ2). For each action with at least 100 PRs of an agent mode, agent acceptance is comparable when the confidence interval of the within-repository difference excludes a deficit larger than 5 points, and lower when the interval excludes zero and the estimated deficit is at least 5 points. Using silent-agent acceptance, actions are grouped as delegate, or as delegate with targeted review when at least of agent PRs broaden permissions or may destroy stateful resources (pooling both agent modes), or at least introduce a sustainability smell (RQ3); actions with lower acceptance need further evidence. The groups do not apply to disclosed agents, whose PRs are merged less often for nearly every action. These criteria are exploratory, were chosen after examining the results, and are not validated thresholds.
TABLE III PR CHARACTERISTICS AND MERGE OUTCOMES BY POPULATION. : DIFFERENCE IN MERGE PROBABILITY FROM HUMAN PRS (PERCENTAGE POINTS; REPOSITORY-CLUSTERED STANDARD ERRORS). ADJUSTED: SIZE, IAC TOOL, MONTH; WITHIN-REPO: PLUS REPOSITORY FIXED EFFECTS.
| Population | PR characteristics | Merge difference | |||||
|---|---|---|---|---|---|---|---|
| PRs | Repos | Median lines/PR | Merge rate | Unadjusted | Adjusted | Within-repo | |
| Human | 199,343 | 38,130 | 71 | 78.9% | - | - | - |
| Automation bot | 111,192 | 6,297 | 26 | 51.8% | -27.1 (3.2) | -26.2 (3.6) | -29.9 (6.2) |
| Silent agent | 27,842 | 8,260 | 302 | 87.4% | +8.5 (2.3) | +6.2 (1.3) | -4.0 (1.2) |
| Disclosed agent | 10,779 | 3,980 | 247 | 76.3% | -2.6 (2.5) | -4.2 (1.8) | -10.4 (2.4) |
Review of refused agent PRs (RQ2). For actions with lower acceptance, two authors review 20 random refused agent PRs per action (half silent, half disclosed; at most one per repository), coding whether each was meant to be merged, who closed it and why, whether the reason concerns agent-generated work, and whether the annotated action is correct; disagreements are resolved by discussion.
Paired smell comparison (RQ3). Within each pair, we test whether the agent and the human PR differ in introducing at least one smell (McNemar's test [32]) and in how many they introduce (Wilcoxon signed-rank test), overall and per smell, applying Holm's correction [33] across the six smells within each comparison, for all, silent, and disclosed agents and for pairs in which both PRs were merged. The effect size is the paired odds ratio (pairs in which only the agent PR introduces a smell over pairs in which only the human PR does) with a Wilson interval [34]. We analyze removed smells likewise, report smells per touched configuration because agent PRs are larger, and account for pairs from the same repository with a repository-clustered bootstrap (10,000 replicates). Sensitivity analyses use Kosbar and Hamdaqa's detection rules, include example and test configurations, or use the Azure and Google Cloud pairs.
IV. RQ1 — IAC CONTRIBUTORS AND MERGE OUTCOMES
Motivation. AI coding agents increasingly contribute to IaC, but their participation is difficult to characterize because agent-generated changes may be submitted under developer identities and conventional bots may be mistaken for human contributors. Beyond identifying who produces IaC changes, we need to understand their scale, the files they affect, and how maintainers respond to them. RQ1 compares the participation, PR sizes, changed files, and merge outcomes of humans, automation bots, silent agents, and disclosed agents.
Approach. We analyze all 349,156 labeled PRs (Section III-A). For participation, we count PRs per month and population; for size, we compare lines and files changed per PR and lines per commit; for changed files, we measure the share of PRs that touch each of fifteen IaC file kinds; and for merge outcomes, we compare merge rates with those of human PRs, first unadjusted, then adjusted for PR size, IaC tool, and month, and finally within repositories (Section III-D).

Fig. 2. IaC PRs opened per month, by population.
Results.
Bots and silent agents make up a large and growing share of IaC PRs. Of the 349,156 PRs, 57.1% are authored by humans, 31.8% by automation bots, 8.0% by silent agents, and 3.1% by disclosed agents: bots open about a third of the PRs that PR metadata labels as human, and silent-agent PRs outnumber disclosed-agent PRs 2.6 to 1. Monthly IaC PR volume almost tripled over the study period, from 12.7k PRs in January 2025 to 35.4k in May 2026 (Figure 2). Human and bot PRs grew moderately, whereas agent PRs rose from fewer than 100 per month before May 2025 to 8,057 in May 2026; disclosed-agent PRs appeared in June 2025 and stayed between about 700 and 1,300 per month, while silent-agent PRs kept growing and outnumber them since November 2025.
Silent agents lead in overall merge rates, but both agent modes lag humans within repositories. Silent-agent PRs have the highest overall merge rate (87.4%), compared with 78.9% for human PRs, 76.3% for disclosed-agent PRs, and 51.8% for bot PRs, consistently for Terraform, Ansible, and CloudFormation. However, raw merge rates do not account for differences across projects. Accounting for PR size, IaC tool, and creation month reduces the silent-agent advantage over humans from 8.5 to 6.2 percentage points. Further accounting for repository differences reverses this association (Table III): silent-agent PRs are merged 4.0 points and disclosed-agent PRs 10.4 points less often than human PRs within the same repositories. The overall lead of silent agents is consistent

Fig. 3. Agent PR merge rates by tool and attribution mode. Tools seen in only one mode and 1,967 silent PRs of unknown tool are omitted.
with where they are used: even human PRs are merged at 86.2% in repositories with silent-agent PRs, compared with 75.6% elsewhere. Bot PRs are merged 26 to 30 points less often under every specification, mostly because superseded dependency bumps are closed.
Agent-tool merge rates vary by attribution mode (Figure 3). Copilot PRs are merged at 86.6% when a developer pushes the agent's commits (3,786 PRs) and at 70.3% when the agent opens the PR (5,058); Devin shows the same pattern (65.9% vs. 42.8%, with only 88 silent PRs), while Claude is merged at similar rates in both forms (88.3% and 89.8%).
Agent PRs are larger and focus on infrastructure modules, while bots maintain dependencies. The median silent-agent PR changes 302 lines in 8 files and the median disclosed-agent PR 247 lines in 7 files, compared with 71 lines in 4 files for humans and 26 lines in one file for bots (Table III); the effect sizes are small for agents (Cliff's and 0.28 on lines) and medium for bots (-0.38). Agents deliver more code per PR rather than more commits: all three non-bot populations typically use two commits per PR.
The file-level comparison (Figure 4) shows that agents modify Terraform module skeletons more often than humans: main.tf (43% of silent-agent and 48% of disclosed-agent PRs vs. 37% of human PRs), variables.tf (34% and 38% vs. 28%), and outputs.tf (24% and 28% vs. 16%). Humans more often change other .tf resource files (42% vs. 34% and 22%). In Ansible, agents change role tasks more often than humans (13–15% vs. 8%). Bots concentrate on dependencies: 31% of bot PRs change the Terraform lock file and 30% change provider or backend configurations.

Fig. 4. Share of population PRs that change at least one file of each kind.
Summary of RQ1. Bots open about a third of ostensibly human PRs, while silent-agent contributions grow rapidly. Both agent modes lag humans in within-repository merge rates despite silent agents leading overall. Copilot and Devin PRs are merged more often when developer-pushed. Agent PRs are about four times larger and often change Terraform module skeletons; bots maintain dependencies.
TABLE IV ERROR-AWARE SHARE OF LABELED PRS PER POPULATION (%). BOLD: DIFFERENCE FROM HUMANS EXCLUDES ZERO; °: NOT UNDER THE CONSERVATIVE INTERVALS; †: TENTATIVE CLASS.
| Human | Bot | Silent | Disclosed | ||
|---|---|---|---|---|---|
| Action | Create | 21.4 | 0.5 | 19.9 | 34.0 |
| Extend | 20.2 | 0.8 | 18.8 | 7.5 | |
| Modify | 19.3 | 2.0 | 14.7 | 11.2 | |
| Fix | 8.6 | 0.0 | 15.4 | 16.1 | |
| Upgrade | 7.9 | 88.2 | 2.7° | 2.6° | |
| Migrate | 1.1 | 0.3 | 4.4 | 4.5 | |
| Refactor | 3.7 | 0.1° | 5.2 | 4.2° | |
| Remove | 4.7 | 0.2° | 3.7 | 1.8 | |
| Document | 6.5 | 4.3° | 6.5 | 3.3° | |
| Test | 6.7 | 2.3° | 4.6 | 8.2 | |
| Format | 0.2 | 0.6 | 0.7 | 3.5 | |
| Target | Compute | 26.0 | 7.1 | 25.2 | 23.3 |
| IaC plumbing | 13.5 | 78.5 | 9.0 | 13.4 | |
| Network | 11.8 | 4.2° | 9.1 | 14.3 | |
| Storage & data | 8.5 | 2.2° | 9.6 | 14.1 | |
| Identity & access | 7.6 | 2.4° | 10.8° | 5.8° | |
| Host config. | 6.3 | 0.4° | 8.9 | 5.9 | |
| Observability | 8.1 | 1.2° | 8.0 | 5.4 | |
| Flag | Permissions broad. | 9.8 | 0.2 | 14.2 | 9.5 |
| Destructive | 8.5 | 0.3° | 4.5 | 1.6 | |
| Security | 5.4 | 0.5° | 8.8 | 10.3° | |
V. RQ2 — CHANGES AND ACCEPTANCE
Motivation. RQ1 establishes who contributes to IaC and how often their PRs are merged, but merge rates do not reveal what changes contributors propose or why some PRs are not merged. Prior work has examined failed and rejected agent PRs [13], but how acceptance varies across infrastructure-specific changes remains unclear. Creating resources, extending modules, changing permissions, and upgrading dependencies involve different operations and risks. These differences raise questions about which IaC changes humans, automation bots, and agents propose, how acceptance varies by change type, and why some contributions are closed without merging.
Approach. Two LLMs from different vendors annotate 231,151 PRs with an action, target, and risk flags, and 38,262 refused PRs with rejection reasons. A stratified human audit corrects label shares for annotation error (Section III-B). We compare error-aware change and rejection-reason shares across populations and within-repository merge rates adjusted for action. We manually review 60 refused agent PRs from lower-acceptance actions and assess task delegation using exploratory acceptance and risk criteria (Section III-D). We consider population differences reliable when design-based and conservative confidence intervals indicate a difference.
Results.
No robust change-type differences between silent agents and humans were established; disclosed agents concentrate on creating new infrastructure. Silent-agent PRs resemble human PRs: the association between population and action is weak (Cramér's ; 0.07 for targets), and no difference from humans is established (Table IV). Disclosed agents create new modules, stacks, or environments more often than humans (34.0% vs. 21.4%; +12.6 points, 95% CI 4.7–20.4) and extend existing infrastructure less often (7.5% vs. 20.2%; -12.7, -22.0 to -3.4). Bots differ substantially: 88.2% of their PRs are upgrades and 78.5% act on IaC plumbing. Point estimates suggest that agent PRs are fixes about twice as often as human PRs and silent-agent PRs broaden permissions more often (14.2% vs. 9.8%), but neither difference is established.

Fig. 5. Within-repository difference in merge probability between agent and human PRs by action (repository-fixed-effects LPM; repository-clustered 95% CIs; at least 100 PRs per agent mode). Shaded: ±5 points.
Change type does not explain the lower within-repository merge rates of agent PRs. Among 211,985 codable PRs with final outcomes, silent-agent PRs are merged 2.1 points less often than human PRs within repositories (95% CI -3.4 to -0.8), and disclosed-agent PRs 8.4 points less often (-12.3 to -4.5). Adjusting for action leaves both gaps unchanged. These estimates differ from RQ1 because they use the screened, capped corpus.
Figure 5 and Table V show differences by action. Silent-agent deficits concentrate in upgrades (-11.6 points, 95% CI -15.1 to -8.1), tests, and documentation; for creations, extensions, modifications, fixes, migrations, and refactorings, intervals exclude deficits larger than 3 points. Disclosed-agent PRs are merged 6.1–12.2 points less often across actions, except tests, whose estimate is inconclusive. Across repositories, silent-agent PRs are merged 1.6 points more often (95% CI 0.7–2.4), consistent with concentration in repositories with higher human merge rates (RQ1). By target, silent-agent deficits remain within 3 points except IaC plumbing (-4.8, 95% CI -7.0 to -2.6); estimates for identity and access (-1.7, -3.6 to 0.3) and permission broadening (-1.6, -3.5 to 0.3) are small. Among PRs where both LLMs agree, the upgrade deficit persists (-14.2 points for all agents), but intervals for other actions include zero. Observational comparisons do not establish causes: PR quality, developer experience, and review practices may differ within the same repository.
Explicit maintainer rejection is rarely recorded among refused IaC PRs. Table VI shows error-aware rejection-reason shares by population. Explicit maintainer rejection accounts
TABLE V
EXPLORATORY IAC DELEGATION EVIDENCE. HUMAN: MERGE RATE; : WITHIN-REPOSITORY MERGE DIFFERENCE FROM HUMANS (POINTS, 95% CI; PRS PER POPULATION). PERM./DESTR.: POOLED AGENT PRS BROADENING PERMISSIONS OR POTENTIALLY DESTROYING STATEFUL RESOURCES. SMELLS: AGENT/HUMAN PRS IN MATCHED RQ3 PAIRS INTRODUCING SMELLS (). GROUPS FOLLOW SECTION III-D, USING SILENT-AGENT ACCEPTANCE AND POOLED RISK INDICATORS; ITALICS: TENTATIVE (, DESTR.); : ACCEPTANCE INCONCLUSIVE.
| Action | Human (%) | Silent | Disclosed | Perm. (%) | Destr. (%) | Smells (%) | Group |
|---|---|---|---|---|---|---|---|
| Modify | 90.1 | -0.6 [-2.0, +0.9] | -9.3 [-13.1, -5.4] | 10.4 | 7.5 | 0.9 / 2.7 | Delegate |
| Fix | 90.3 | -1.2 [-2.7, +0.3] | -6.1 [-9.9, -2.2] | 11.9 | 4.2 | 0.5 / 1.0 | Delegate |
| Format | 85.4 | +0.0 [-4.7, +4.8] | -6.9 [-12.8, -1.0] | 0.0 | 0.0 | - | Delegate |
| Create | 86.8 | -0.7 [-2.6, +1.2] | -10.1 [-13.6, -6.5] | 10.5 | 2.5 | 39.4 / 39.8 | Targeted review |
| Extend | 88.7 | -0.4 [-2.1, +1.3] | -10.4 [-13.9, -6.9] | 24.1 | 5.6 | 6.7 / 9.8 | Targeted review |
| Migrate | 89.7 | +0.8 [-1.2, +2.8] | -9.1 [-14.0, -4.1] | 12.3 | 25.3 | 12.0 / 14.9 | Targeted review |
| Refactor | 91.2 | +0.1 [-2.3, +2.4] | -11.2 [-18.9, -3.4] | 2.0 | 15.2 | 14.9 / 8.9 | Targeted review |
| Remove | 91.8 | -2.3 [-5.2, +0.5] | -7.8 [-13.4, -2.2] | 1.7 | 27.9 | 3.3 / 1.8 | Targeted review |
| Upgrade | 89.6 | -11.6 [-15.1, -8.1] | -12.2 [-19.2, -5.3] | 1.1 | 3.4 | 0.0 / 1.4 | Further evidence needed |
| Document | 89.3 | -6.5 [-10.1, -2.9] | -10.7 [-17.6, -3.8] | 0.4 | 0.1 | 0.0 / 0.0 | Further evidence needed |
| Test | 85.1 | -9.6 [-18.4, -0.7] | +2.7 [-22.8, +28.2] | 0.3 | 0.6 | - | Further evidence needed |
for 1.4% of refused bot PRs to 6.4% of disclosed-agent PRs; only 19 such cases appear in the audit, and conservative intervals extend to 8–12%, preventing reliable comparisons across populations for this and other rare reasons. Most refused bot PRs are superseded by newer versions (69.6%). Among refused human PRs, 28.7% (95% CI 14.5–42.9) were not intended to merge, compared with 3.4% of silent-agent and 0.6% of disclosed-agent PRs; uncorrected labels underestimate the human share at 5.3%. Most refused agent PRs have no stated closure reason (54.0% silent; 75.4% disclosed). Silent-agent PRs are also superseded more often than human PRs (21.7% vs. 12.8%; +8.9 points, 95% CI 6.5–11.3).
Delegation evidence varies by change type and risk, while many refused agent upgrades reflect cleanup or replacement. Table V applies the exploratory criteria. Delegate: modifications and, tentatively, fixes and formatting show comparable silent-agent acceptance and remain below risk thresholds. Targeted review: creations, extensions, and, tentatively, migrations and refactorings show comparable acceptance but carry risk indicators. Removals are also placed here, although their acceptance evidence is inconclusive. Creations introduce sustainability smells in 39.4% of agent and 39.8% of human PRs (mostly missing remote state); 24.1% of agent extensions broaden permissions, while roughly a quarter of agent migrations and removals may destroy stateful resources. Further evidence needed: agent upgrades and, tentatively, documentation and test changes are merged less often.
TABLE VI
ERROR-AWARE SHARE OF REFUSED PRS PER REASON (%; RAW SHARE OF THE PRIMARY'S LABELS IN PARENTHESES). BOLD AND ° AS IN TABLE IV.
| Human | Bot | Silent | Disclosed | |
|---|---|---|---|---|
| Rejected by maintainer | 5.0 (4.2) | 1.4 (1.3)° | 2.8 (3.7)° | 6.4 (7.3) |
| Discarded by author | 7.0 (7.8) | 3.4 (3.8)° | 10.7 (10.4)° | 2.5 (2.5)° |
| Superseded | 12.8 (14.1) | 69.6 (68.8) | 21.7 (21.1) | 10.8 (7.5) |
| Duplicate | 1.7 (1.2) | 0.0 (0.2)° | 1.2 (1.2) | 0.9 (0.9) |
| Abandoned | 2.9 (3.3) | 1.7 (1.9)° | 6.2 (6.2)° | 3.4 (3.4) |
| Not meant to merge | 28.7 (5.3) | 0.0 (0.0) | 3.4 (2.4) | 0.6 (0.6) |
| Unclear | 41.9 (64.0) | 23.8 (23.8) | 54.0 (54.9) | 75.4 (77.8) |
| Refused PRs | 14,778 | 20,482 | 2,012 | 990 |
A manual review of 60 refused agent PRs from lower-acceptance actions (pre-adjudication ) found 44 were intended to merge. Closure reasons were unavailable for 27, replacement PRs accounted for 12, objections to the approach or failing checks preceded 6, and only 4 closures, all disclosed-agent PRs, explicitly concerned agent-generated work. Among 20 upgrades, 18 were correctly classified; four of ten silent-agent upgrades were closed as stale by automation and three superseded by newer updates, suggesting cleanup rather than rejection on the merits. In contrast, only 7 of 20 documentation PRs and 7 of 20 test PRs were correctly classified, often because they accompanied feature work; their acceptance estimates cannot reliably characterize those tasks.
Summary of RQ2. No robust change-type differences were established between silent agents and humans; disclosed agents create more infrastructure, while bots favor upgrades. Within repositories, silent-agent PRs show comparable acceptance for most actions, whereas disclosed-agent PRs are merged 6–12 points less often; change type does not explain this gap. Explicit maintainer rejection is rare. Modifications show comparable acceptance and few risk indicators, while creations, extensions, migrations, and removals warrant targeted checks for smells, permissions, and destruction. Many refused agent upgrades reflect automated cleanup or replacement; documentation and test findings rely on unreliable labels.
VI. RQ3 — AGENT VS. HUMAN SUSTAINABILITY SMELLS
Motivation. RQ2 examines the types of IaC changes and their acceptance, but merge decisions do not reveal whether the resulting configurations contain resource-efficiency concerns. Infrastructure choices such as over-provisioning, missing autoscaling, and unmanaged state can persist beyond a PR's merge. Kosbar and Hamdaqa [6] characterize such patterns as sustainability smells. Whether agent PRs introduce these smells more often than human PRs within the same repositories remains unclear.
TABLE VII
SUSTAINABILITY SMELLS INTRODUCED IN THE 2,645 MATCHED AWS PAIRS. PRECISION: SHARE OF SAMPLED FINDINGS CONFIRMED BY BOTH AUTHORS (n). AGENT, HUMAN: % OF PRS INTRODUCING THE SMELL. A/H: PAIRS IN WHICH ONLY THE AGENT OR ONLY THE HUMAN PR DOES. OR: PAIRED ODDS RATIO, 95% CI (-: NO SUCH PAIRS). NO SMELL DIFFERS (MCNEMAR, HOLM-ADJUSTED p = 1.00 PER SMELL; ANY OF THE SIX: p = 0.92).
| Smell | Precision (n) | Agent (%) | Human (%) | All agents (2,645) | Silent (2,294) | Disclosed (351) | |||
|---|---|---|---|---|---|---|---|---|---|
| A/H | OR [95% CI] | A/H | OR [95% CI] | A/H | OR [95% CI] | ||||
| SS1 Over-provisioning | 1.00 (13) | 0.08 | 0.15 | 2/4 | 0.50 [0.11, 2.33] | 2/3 | 0.67 [0.13, 3.33] | 0/1 | 0.00 [0.00, 3.84] |
| SS2 Lack of auto-scaling | 0.86 (7) | 0.19 | 0.08 | 5/2 | 2.50 [0.56, 11.16] | 5/2 | 2.50 [0.56, 11.16] | 0/0 | - |
| SS3 Ignoring lifecycles | 1.00 (6) | 0.11 | 0.11 | 3/3 | 1.00 [0.23, 4.33] | 2/1 | 2.00 [0.26, 15.26] | 1/2 | 0.50 [0.07, 3.82] |
| SS4 Excessive logging | 1.00 (30) | 0.91 | 0.95 | 20/21 | 0.95 [0.52, 1.74] | 19/20 | 0.95 [0.51, 1.76] | 1/1 | 1.00 [0.10, 9.58] |
| SS5 State management | 0.97 (30) | 7.71 | 7.64 | 133/131 | 1.02 [0.80, 1.29] | 101/107 | 0.94 [0.72, 1.24] | 32/24 | 1.33 [0.79, 2.25] |
| SS6 Monolithic | 1.00 (30) | 2.12 | 2.31 | 42/47 | 0.89 [0.59, 1.35] | 36/38 | 0.95 [0.60, 1.49] | 6/9 | 0.67 [0.25, 1.80] |
| Any of the six | 0.98 (116) | 10.36 | 10.25 | 179/176 | 1.02 [0.83, 1.25] | 141/145 | 0.97 [0.77, 1.23] | 38/31 | 1.23 [0.77, 1.96] |
Approach. We match each agent PR to a human PR from the same repository and period, detect sustainability smells in every Terraform configuration a PR touches before and after the change, and compare smell introduction within pairs using paired odds ratios (OR) and McNemar tests (Section III-C). We analyze 12,737 of 13,376 matched PRs (95.2%), mostly losing PRs whose repositories can no longer be cloned. The main analysis covers the 2,645 pairs from 1,183 repositories in which both PRs change AWS configurations (2,294 silent-agent and 351 disclosed-agent pairs), including 2,039 pairs in which both PRs were merged. Parse failures and unavailable repositories affect the populations at similar rates. Sensitivity analyses use the 1,707 Azure and Google Cloud pairs, the published detection rules, and a repository-clustered bootstrap.
Results.
Agent PRs introduce sustainability smells as often as human PRs from the same repository and period. An agent PR introduces at least one smell in 10.4% of the pairs and its human counterpart in 10.3% (paired OR 1.02, 95% CI 0.83–1.25; McNemar p = 0.92; Table VII). The number of introduced smells is also similar (400 vs. 416; Wilcoxon p = 0.99), and agents introduce slightly fewer per touched configuration (0.055 vs. 0.064). The result holds for silent agents (9.6% vs. 9.8%; OR 0.97, 0.77–1.23) and for pairs in which both PRs were merged (8.9% vs. 8.8%; OR 1.01, 0.79–1.29). For disclosed agents, the estimate is less precise (15.1% vs. 13.1%; OR 1.23, 0.77–1.96), and for their merged pairs (242 pairs; OR 1.56, 0.87–2.79) the interval is too wide to rule out no difference or a substantial excess. Smells cluster in repositories: both PRs of a pair introduce a smell in 95 pairs, 3.4 times the 28 expected if smells occurred by chance.
No single smell differs between agents and humans; most are missing remote state. No smell shows a detectable difference (smallest unadjusted p = 0.45; Table VII). The most common smell is State management (SS5): a root configuration without a remote backend for its state. It appears in 7.7% of agent and 7.6% of human PRs and makes up 73% and 67% of the smells they introduce. Monolithic configurations (2.1% vs. 2.3%) and excessive logging (0.9% vs. 1.0%) follow; the other three appear in fewer than 0.2% of PRs.
Agents and humans introduce more smells than they remove. Agent PRs introduce 400 smells and remove 166, a net increase of 234; human PRs introduce 416 and remove 204, a net increase of 212. Removing smells is rare for both: an agent PR removes at least one smell in 3.7% of the pairs and its human counterpart in 4.5%, with no statistically detectable difference (paired OR 0.81, 95% CI 0.60–1.08; p = 0.18).
Most smells arise from creating or restructuring configurations, for agents and humans alike. Creating new infrastructure is the riskiest action: 39.4% of agent and 39.8% of human creations introduce a smell (Figure 6). Restructuring follows, with migrations (12.0% and 14.9%), refactorings (14.9% and 8.9%), and extensions (6.7% and 9.8%), whereas modifications, fixes, and upgrades rarely introduce smells (at most 2.7%). Creations alone account for 62% of the agent and 53% of the human PRs that introduce a smell. Comparing agent and human PRs of the same action shows no detectable difference (-1.0 points, 95% CI -2.5 to 0.6).
The detector is precise, and a quarter of confirmed smells come with a stated reason. Two authors checked a sample of 116 detected smells and confirmed 114 (precision 0.98, 95% CI 0.94–1.00). Not every confirmed smell is a mistake: for 28 of the 114 (25%), the code or repository explains why the configuration was chosen. This holds for agent PRs (12 of 56) and human PRs (16 of 58) alike. Examples include 11 of the 13 over-provisioned resources, such as large benchmark worker pools, and one-year log retention required for compliance.

Fig. 6. Share of agent and human PRs (AWS pairs) introducing a smell, by RQ2 action ( 50 PRs per side). Labels: smell-introducing / all PRs.
No statistically detectable difference appears across sensitivity analyses. We repeated the main comparison in four ways. Including example and test configurations gives OR 1.14 (0.95–1.38); using the published detection rules instead of our detector gives OR 1.10 (0.93–1.29); and analyzing the 1,707 Azure and Google Cloud pairs gives OR 1.27 (0.95–1.69). A repository-clustered bootstrap, which accounts for repositories contributing several pairs, widens the interval only slightly (0.80–1.28 instead of 0.83–1.25). Of the 42 sensitivity comparisons of introducing any smell, three reach p < 0.05 before correction, all on Azure and Google Cloud; none remains significant after correcting for multiple tests.
Summary of RQ3. Across 2,645 matched pairs, agent PRs introduce sustainability smells no more often than human PRs from the same repository and period (10.4% vs. 10.3%; paired OR 1.02, 95% CI 0.83–1.25), including silent agents and merged pairs; the disclosed-agent estimate is less precise. Smells depend on the task and the repository rather than on who writes the change: most are missing remote state, and they arise mainly when infrastructure is created. Sustainability checks should therefore target creation PRs and state configuration, whether an agent or a human authored them.
VII. Discussion
Our findings show that contributor provenance, maintainer acceptance, and sustainability smells capture distinct aspects of AI-agent participation in IaC. PR authorship alone misses silent-agent contributions and misclassifies automation bots, while aggregate merge rates obscure repository differences. Within repositories, disclosed-agent PRs are merged less often for nearly every change type, whereas silent-agent PRs are not; visible agent authorship may attract closer scrutiny, or disclosed agents may work with less developer oversight. Developer-pushed agent changes are merged more often than agent-opened PRs for some tools, potentially reflecting developer selection rather than submission mode. Change type does not explain the acceptance gap, and PR closure does not necessarily indicate rejection of agent work. Studies should therefore detect silent agents and not evaluate agents by PR metadata or merge rates alone.
For practitioners, agent-generated modifications appear promising for delegation, while creations, extensions, migrations, and removals warrant targeted checks of resource provisioning, permissions, and destructive changes. Sustainability smells occur at comparable rates in matched agent and human PRs, mostly when infrastructure is created, and some have stated justifications rather than indicating waste. Because missing remote state accounts for most of them, a repository-level CI check for a remote backend would catch most smells regardless of authorship. Tool vendors can improve transparency through machine-readable agent provenance and clearer explanations of proposed changes.
VIII. Threats to Validity
Construct validity. Agent use leaving no trace in PRs or commits is missed, as are bots running under user accounts, so silent-agent counts are lower bounds. Change types and rejection reasons are LLM labels; we froze the configuration, validated it on held-out PRs, and corrected population shares with a stratified human audit. Because the audit is small for rare classes, we draw conclusions only where differences hold under conservative intervals. Merge outcomes measure acceptance, not quality, and smells indicate potential waste rather than measured cost or energy. Our detector adapts published smell definitions; its precision is 0.98 (recall is unknown), and the published rules yield the same result.
Internal validity. Our comparisons are observational. To limit confounding, we compare PRs within repositories, match agent and human PRs by repository and period, and, because agent PRs are larger, report smells per configuration and by change type. Repository-clustered standard errors and a bootstrap account for non-independent PRs. We interpret confidence intervals rather than non-significant tests as evidence of similarity. Diffs were unavailable for 2.7% of PRs, more often agent PRs, which could bias RQ2 and RQ3 if these differ systematically. Undetected agent use among human PRs would bias comparisons towards no difference. Delegation criteria were set after examining results and are therefore exploratory.
External validity. We study public GitHub repositories from January 2025 to May 2026, dominated by Terraform, and RQ3 focuses on AWS. Azure and Google Cloud pairs point in the same direction, but private deployments, other tools, and later agent versions may differ.
IX. CONCLUSION
AI coding agents increasingly contribute to Infrastructure as Code, where changes affect deployed cloud resources, yet their contributions are often difficult to identify. This study analyzed 349,156 IaC pull requests from 49,241 GitHub repositories to examine who proposes such changes, which changes are accepted, and which sustainability smells they introduce.
Our results show three main findings. First, PR metadata does not reliably reflect contributor identity: automation bots open about a third of PRs attributed to humans, and a substantial share of agent contributions is undisclosed. Second, acceptance depends on how agent work is submitted: within repositories, silent-agent PRs are accepted at rates comparable to human PRs for most change types, whereas disclosed-agent PRs are merged 6 to 12 points less often, a gap that change type does not explain. Third, agent and human PRs introduce sustainability smells at comparable rates (10.4% vs. 10.3%), with no statistically detectable difference; smells arise predominantly when new infrastructure is created and reflect project conventions rather than authorship.
These findings suggest that empirical studies should account for undisclosed agent contributions and that maintainers should apply project-wide IaC checks independently of authorship. Future work should relate IaC changes to deployed resources and their operational cost.
REFERENCES
[1] A. Rahman, R. Mahdavi-Hezaveh, and L. Williams, “A systematic mapping study of infrastructure as code research,” Information and Software Technology, vol. 108, 2019.
[2] R. Chandramouli, “Implementation of DevSecOps for a microservices-based application with service mesh,” National Institute of Standards and Technology, NIST Special Publication 800-204C, 2022.
[3] C. Pahl, Ö. C. Sezen, and F. Hofer, “Artificial intelligence for infrastructure-as-code: A systematic literature review,” Electronics, vol. 15, no. 4, p. 755, 2026.
[4] A. Rahman, C. Parnin, and L. Williams, “The seven sins: Security smells in infrastructure as code scripts,” in Proceedings of the 41st International Conference on Software Engineering (ICSE), 2019.
[5] A. Verdet, M. Hamdaqa, L. D. Silva, and F. Khomh, “Assessing the adoption of security policies by developers in Terraform across different cloud providers,” Empirical Software Engineering, vol. 30, no. 3, 2025.
[6] S. Kosbar and M. Hamdaqa, “Smells-sus: Sustainability smells in IaC,” in Proceedings of the 22nd International Conference on Mining Software Repositories (MSR), 2025.
[7] M. Esposito, M. Robredo, A. Bakhtin, D. Taibi, and V. Lenarduzzi, “Generative AI as an infrastructure copilot: Automating infrastructure-as-code across the DevSecOps lifecycle,” Automated Software Engineering, vol. 33, no. 2, p. 58, 2026.
[8] H. Li, H. Zhang, and A. E. Hassan, “AIDev: Studying AI coding agents on GitHub,” in Proceedings of the 23rd International Conference on Mining Software Repositories (MSR), 2026.
[9] A. Khosravani and A. Mockus, “Detecting AI coding agents in open source: A validated multi-method census of 180 million repositories,” 2026, arXiv:2606.24429.
[10] T. Dey, S. Mousavi, E. Ponce, T. Fry, B. Vasilescu, A. Filippova, and A. Mockus, “Detecting and characterizing bots that commit code,” in Proceedings of the 17th International Conference on Mining Software Repositories (MSR), 2020.
[11] M. Watanabe, H. Li, Y. Kashiwa, B. Reid, H. Iida, and A. E. Hassan, "On the use of agentic coding: An empirical study of pull requests on GitHub," 2025, arXiv:2509.14745.
[12] R. Ehsani, S. Pathak, S. Rawal, A. A. Mujahid, M. M. Imran, and P. Chatterjee, “Where do AI coding agents fail? An empirical study of failed agentic pull requests in GitHub,” in Proceedings of the 23rd International Conference on Mining Software Repositories (MSR), 2026, pp. 807–811.
[13] S. Nakashima, Y. Ishimoto, M. Kondo, S. McIntosh, and Y. Kamei, "Why agentic-PRs get rejected: A comparative study of coding agents," 2026.
[14] P. T. J. Kon, J. Liu, Y. Qiu, W. Fan, T. He, L. Lin, H. Zhang, O. M. Park, G. S. Elengikal, Y. Kang, A. Chen, M. Chowdhury, M. Lee, and X. Wang, “IaC-Eval: A code generation benchmark for cloud infrastructure-as-code programs,” in Advances in Neural Information Processing Systems 37 (NeurIPS), Datasets and Benchmarks Track, 2024.
[15] R. Nekrasov, S. Fossati, I. Kumara, D. A. Tamburri, and W.-J. van den Heuvel, “IaC generation with LLMs: An error taxonomy and a study on configuration knowledge injection,” 2025.
[16] F. L. S. Vargas, R. B. Mansilha, and D. Kreutz, “Can language models generate secure Terraform code? A security-focused benchmark using static analysis,” in Proceedings of the Simpósio de Infraestrutura Digital/Nuvem para Pesquisa (Pesquisa@Nuvem), 2026, pp. 29–38.
[17] A. Rahman, E. Farhana, C. Parnin, and L. Williams, “Gang of eight: A defect taxonomy for infrastructure as code scripts,” in Proceedings of the 42nd International Conference on Software Engineering (ICSE), 2020.
[18] A. War, S. L. B. Nikiema, J. Samhi, J. Klein, and T. F. Bissyandé, "Security smells in infrastructure as code scripts: A taxonomy update beyond the seven sins," 2025, arXiv:2509.18761.
[19] Anonymous, “Replication Package for “Do AI Coding Agents Change Infrastructure Deployment Code Like Humans?”, https://zenodo.org/records/23650457, 2026.
[20] N. Nguyen and S. Nadi, “An empirical evaluation of GitHub Copilot’s code suggestions,” in Proceedings of the 19th International Conference on Mining Software Repositories (MSR), 2022.
[21] H. Pearce, B. Ahmad, B. Tan, B. Dolan-Gavitt, and R. Karri, “Asleep at the keyboard? assessing the security of GitHub Copilot’s code
contributions," in Proceedings of the IEEE Symposium on Security and Privacy (S&P), 2022.
[22] M. Wessel, B. M. de Souza, I. Steinmacher, I. S. Wiese, I. Polato, A. P. Chaves, and M. A. Gerosa, “The power of bots: Understanding bots in OSS projects,” Proceedings of the ACM on Human-Computer Interaction, vol. 2, no. CSCW, p. 182, 2018.
[23] M. Alfadel, D. E. Costa, E. Shihab, and M. Mkhallalati, “On the use of dependabot security pull requests,” in Proceedings of the 18th International Conference on Mining Software Repositories (MSR), 2021.
[24] T. Sharma, M. Fragkoulis, and D. Spinellis, “Does your configuration code smell?” in Proceedings of the 13th International Conference on Mining Software Repositories (MSR), 2016.
[25] N. Saavedra and J. F. Ferreira, “GLITCH: Automated polyglot security smell detection in infrastructure as code,” in Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering (ASE), 2022.
[26] A. Rahman, S. Elder, F. H. Shezan, V. Frost, J. Stallings, and L. Williams, “Bugs in infrastructure as code,” 2018, arXiv:1809.07937.
[27] M. Begoug, M. Chouchen, A. Ouni, E. A. AlOmar, and M. W. Mkaouer, “Fine-grained just-in-time defect prediction at the block level in infrastructure-as-code (IaC),” in Proceedings of the 21st International Conference on Mining Software Repositories (MSR), 2024.
[28] E. Ksontini, T. Ferreira, R. Khalsi, and W. Kessentini, “Understanding docker refactorings: Expanded taxonomy, operational trade-offs, and role-aware recommendations,” IEEE Transactions on Software Engineering, vol. 52, no. 3, pp. 786–808, 2026.
[29] A. Agresti and Y. Min, “Simple improved confidence intervals for comparing matched proportions,” Statistics in Medicine, vol. 24, no. 5, pp. 729–740, 2005.
[30] N. Cliff, “Dominance statistics: Ordinal analyses to answer ordinal questions,” Psychological Bulletin, vol. 114, no. 3, 1993.
[31] J. Romano, J. D. Kromrey, J. Coraggio, and J. Skowronek, “Appropriate statistics for ordinal level data: Should we really be using t-test and Cohen’s d for evaluating group differences on the NSSE and other surveys?” in Annual Meeting of the Florida Association of Institutional Research, 2006.
[32] Q. McNemar, “Note on the sampling error of the difference between correlated proportions or percentages,” Psychometrika, vol. 12, no. 2, pp. 153–157, 1947.
[33] S. Holm, “A simple sequentially rejective multiple test procedure,” Scandinavian Journal of Statistics, vol. 6, no. 2, pp. 65–70, 1979.
[34] E. B. Wilson, “Probable inference, the law of succession, and statistical inference,” Journal of the American Statistical Association, vol. 22, no. 158, pp. 209–212, 1927.