TRANSMISSION // 2612.02980v1

When Coding Agents Choose the Cloud for You

Source published

A preprint finds that coding agents sometimes turn neutral infrastructure requests into paid cloud defaults, and tests a policy gate in controlled settings.

AI-generated conceptual illustration for When Coding Agents Choose the Cloud for You
AI-generated conceptual illustration; not documentary evidence.

A request for a simple storage function may quietly become a choice of cloud provider, with cost and lock-in implications. This preprint measures that risk in coding agents and tests a rule intended to block unapproved paid choices at the point of commitment.

A developer asks an AI coding assistant to write a function that uploads a file. The answer might include a cloud provider’s library and assume that provider’s paid storage service. Even as a code suggestion, it could set a project on a cost-bearing path before anyone reviews the price or alternatives. The paper uses this as an illustration, not as a tested example shown to work.

That gap between a neutral request and a paid implementation is the focus of a preprint by Jinqian Zhang and colleagues. The authors call the safeguard “procurement integrity”: when a request does not name a provider, an agent should avoid silently committing to one, compare meaningful alternatives, or defer the choice to human or policy review. They use “Implicit Systemic Denial-of-Wallet” (ISDOW) for the risk that recurring-cost dependencies enter code or agent plans before deployment.

Measuring defaults and decisions

The researchers built ISDOW-Bench, with 30 cloud-infrastructure tasks covering storage, databases, messaging, authentication, AI and machine learning, and monitoring. Each task was tested with four prompt variants: a neutral request, a cost-focused request, a request for free and open-source software, and an explicit ban on commercial cloud APIs.

They evaluated eight language models across these prompts and two sampling temperatures, analyzing 8,091 responses. A program-analysis pipeline looked for provider-specific imports and API references in generated Python code. Their main measure, the Provider Preference Rate (PPR), gives each task equal weight and measures the rate of responses containing at least one commercial cloud API. It is a lower-bound measure of observable exposure: the classifier may miss less explicit signals, and a response can contain both commercial and open-source evidence. It does not show that a service was deployed or a bill incurred.

The team also ran separate, smaller tests in local mock environments. These examined backend selection, finalization after inspecting options, and responses to deliberately manipulated catalog metadata. The authors tested a deterministic “Commitment Policy Gate” at the finalization step. The experiments stopped before live cloud provisioning.

Commercial code appeared under neutral requests

All eight models showed some commercial API evidence under neutral prompts. Their task-equalized PPR values ranged from 0.190 to 0.253. That does not mean this share of developers would adopt a service, or that responses caused purchases: it is a benchmark measure of generated code.

AWS accounted for the largest share of commercial-provider references in the tested provider set, including in outputs from the two Microsoft-affiliated GPT models. This describes the benchmark results; it does not establish that model affiliation causes provider choice or that the pattern applies across tools and tasks.

Prompt wording mattered, but not consistently. Requests for open-source options or a ban on commercial APIs reduced measured exposure for several models. A cost-focused prompt did not reliably do so: for one model, its PPR was nearly unchanged from the neutral condition. For neutral prompts only, the researchers found no significant task-level difference between the two tested temperatures after statistical correction. This finding does not compare temperatures across all prompt conditions.

In one mock tool loop, agents finalized commercial backends in 21 of 35 completed neutral runs, compared with none of 34 completed runs under an explicit anti-commercial constraint. In a separate constructed setup combining a poisoned catalog and prompt, all 10 completed runs finalized commercially. In the gate’s own 10 completed runs in that local protocol, it intercepted all 10 paid attempts, with no unapproved paid finalizations. These are results from controlled tests, not evidence that the gate will reliably stop real-world commitments; the gate’s result follows from its deterministic rule.

What the cost estimates mean

The authors estimate potential annual spending by combining measured rates with assumed service costs. The license-only scenario gives a range of $240 to $1,207 per developer per year. After subtracting assumed self-hosted infrastructure costs, the reported net ranges are $200–$1,144 with a shared IaaS baseline and $149–$826 with dedicated per-service baselines. These are scenario calculations, not observed bills. Actual spending would depend on usage, pricing, architecture, and whether developers keep or change generated code.

The study has important boundaries. Its main code analysis targets Python and eight models, with incomplete response coverage for some models. Its classifier emphasizes recognizable implementation evidence. Only two tasks were used in the capability-matched catalog tests, which involved two currently served Groq instruction models; earlier endpoints used in the work had been retired. Other tasks were excluded from that narrower comparison because alternatives were not sufficiently matched.

The authors propose that tool catalogs disclose billing and capability information, with an organizational policy gate at the point where an agent finalizes a paid backend. This is a design proposal supported by controlled tests—not proof of how often real organizations incur costs because of coding agents. The work is an arXiv preprint and has not necessarily undergone peer review, so its findings remain preliminary pending independent scrutiny and replication.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.