What Agents-as-Code Actually Requires Before a Vendor Can Claim It
Five properties separate real agents-as-code from a YAML toggle.

AI coding agents are becoming a core part of the software development process. They are typically deployed as code — YAML files, configuration files, or the like — but what does that actually mean?
Why "agents-as-code" has become a vendor label rather than a technical specification
The term “agents-as-code” has been applied to any number of products, with any product that has a YAML field or configuration toggle for agents being able to claim it. This article aims to define what “agents-as-code” actually means and the properties that must be true for it to be a valid claim.
What version-controlled configuration actually requires, and why a committed YAML file is not enough on its own
The first and most common property claimed is that agent configuration is version-controlled. For most teams, this is a configuration file of some kind — agents.yaml, CLAUDE.md, or the like. The idea is that the agent’s behavior is externalized into a configuration file that can be versioned and audited.
This is a reasonable idea, and it echoes the shift that Terraform brought to cloud infrastructure: the separation of what the system does from how the system is built. But merely having a configuration file checked into version control is not enough. The configuration file must be the primary source of control for the agent’s behavior. The Infobip phased-workflow study found that for non-trivial tasks, agent effectiveness depends less on the choice of foundation model than on how practitioners configure the agent’s harness. That configuration file is the primary lever of control, and it must be treated as such.
A version-controlled configuration file means that the agent’s scope, tool permissions, and system instructions are defined in a file that goes through the same review and approval process as any other code change. It means that a change to the agent’s behavior is a change that can be audited, rolled back, and understood in context. It means that the agent’s configuration is as reviewable as the code it is writing.
In practice, this often means committing an AGENTS.md file and gitignoring an AGENTS.override.md file for local tweaks — a pattern similar to.env and.env.local, except AGENTS.override.md fully replaces (rather than extends) AGENTS.md in the same directory. The CI pipeline should validate the configuration file: schema validation, linting for disallowed patterns, secrets scanning on CLAUDE.md, and “Golden IO” integration tests against fixed inputs.
The gated spec-driven workflow study provides a useful illustration of what this looks like in practice. In that workflow, the executor subagent was restricted to the files listed in its task. Across nine features in seven projects, the executor subagent stuck to its declared files in almost every case. The control that made this possible was not a general instruction to “stay in scope,” but an explicit, per-task file list that the configuration enforced.
Why container isolation is not sufficient for agentic workloads and what the execution environment must actually provide
The second property is that agents run in isolated execution environments. This is a non-negotiable requirement, and it is where most “agents-as-code” implementations fall short.
Agents have access to private data (source code,.env files, cloud credentials, SSH keys), they interact with untrusted content (issues, web pages, third-party packages), and they have the ability to communicate externally (network requests, git push, opening PRs, sending messages). The combination of these three properties creates a threat surface that is unlike anything else in the CI/CD pipeline.
Container isolation is a reasonable starting point, but it is not sufficient. Agents need to run in sandboxes that provide a higher level of isolation than what is typically provided for CI workloads. The “propose/dispose” pattern in CI is a good start: the job that runs the agent has only read permissions and no deploy secrets, the agent proposes changes, and a separate, controlled step decides whether to apply them. This separates the agent’s reasoning environment from any environment that can cause production effects.
In production, the stronger approach is to run agents in microVM-based sandboxes, where each agent session gets its own kernel, filesystem, network stack, and private container daemon. This allows the agent to run real integration tests against real databases without touching the host runner or any other session’s state. The sandbox should be treated as a threat-modeling exercise: decide what the agent must be isolated from — the host filesystem, developer credentials, the internal network, production deploy keys — and then choose the isolation tier that matches that threat model.
The key property is that each agent session starts in a clean environment, is isolated from other sessions, and leaves nothing behind. If a vendor’s “agents-as-code” offering does not provide this level of isolation, the claim is not fully realized.
Why credentials must be minted per session and revoked on completion, not shared or long-lived
The third property is that agents have ephemeral credentials. This is perhaps the most important property, and it is the one most often overlooked.
Agents need credentials to do their work — to access repositories, to call APIs, to deploy changes. But those credentials must be ephemeral: they must be minted for the specific session, scoped to the specific task, and revoked when the session is complete. A long-lived service account token that is available to all agent sessions is a security risk.
The principle is the same as for any other privileged access: credentials should be granted for the minimum time and with the minimum permissions necessary for the task at hand. For agents, this means that the credential provisioning system must be integrated with the agent orchestration layer, so that credentials are minted when a session starts and revoked when it ends. This is the same principle that underlies short-lived IAM role sessions in cloud infrastructure. But it is a principle that is often ignored in the rush to get agents working.
What hard budget controls require, and why post-hoc spend monitoring is not a control
The fourth property is that agents have hard budget controls. AI coding agents use far more tokens than chat tools, and without budget controls, a single misconfigured agent session or reasoning loop can generate a bill that no one anticipated.
The root-cause identified in research is that cumulative token expenditure remains largely unmeasured until after task completion. The formal framework for Budget-Aware Agency treats computational budget as an active control signal that agents must internalize throughout execution.
In practice, budget controls mean that the agent orchestration layer can enforce hard limits on token usage, model calls, and tool calls. The limits should be configurable per session, per developer, and per time period. The system should be able to downgrade the agent to a less expensive model as the budget depletes, apply context compression at a lower threshold, and gracefully terminate the session when the budget is exhausted. These features are the difference between a system that can be run in production and a system that is a financial liability.
What a full audit trail requires, and why debugging logs do not satisfy it
The fifth and final property is that agents have full audit trails. Every action that an agent takes — every tool call, every file edit, every API request — must be logged in a way that can be reviewed and understood after the fact.
This is not just a matter of compliance. It is a matter of understanding. When an agent makes a change that causes a problem, the team needs to be able to reconstruct what the agent did, why it did it, and what the consequences were. Without a full audit trail, debugging an agent’s behavior is a matter of guesswork.
In practice, this means structured logging of every model invocation, tool call, memory read/write, and decision branch, along with execution traces that link each action to its causal antecedents. For teams with compliance requirements, this often means two tiers of logging: operational logs (tool calls, token counts, latency, error codes) that contain no PII, and conversation or prompt logs that may contain user data, with field-level redaction before storage, tiered retention, and deletion endpoints. The gated spec-driven workflow study is a good example of why this matters: the workflow’s controls left written traces — gates appearing in Status fields, reviewer calls in transcripts, block checks in logs — and those traces were what allowed the researchers to establish where the controls held and where they did not. Without them, the study would have had only the agent’s own (unreliable) reports of its behavior.
Without structured observability, the harness remains a static scaffold rather than an adaptive system. Every tool call, diff, and token must be attributable to a specific person or trigger, so that when a reviewer or auditor asks what authorized a particular action, the answer is traceable to a configuration state and a human or automated trigger.
How to apply the five-property checklist when evaluating a vendor claim

These five properties — version-controlled configuration, isolated execution, ephemeral credentials, hard budget controls, and full audit trails — are the minimum requirements for a valid “agents-as-code” claim. A vendor that does not meet all five of these requirements is providing something other than agents-as-code, and the team should evaluate it on those terms.
The practical test is simple. For each property, ask the vendor a specific question:
For version-controlled configuration: “Does a change to the agent’s scope, tool permissions, or system instructions go through a pull request and pass CI validation before it affects any running agent?” For execution isolation: “Does each agent session start in a clean environment with no shared state from prior sessions or other users, and what specifically is the isolation mechanism?” For ephemeral credentials: “Are credentials minted per session, scoped to the declared task, and revoked on session end — and can you show me the revocation log?” For budget controls: “Are hard limits enforced before or during execution at the session, developer, and time-period level — not only reported after the fact?” For audit trails: “Is there a durable, append-only record of every tool call and state change, attributable to a specific person or trigger, separate from operational debugging logs?”
The Infobip phased-workflow study reinforces that harness configuration is the primary determinant of agent reliability on non-trivial tasks. That means the infrastructure that governs that configuration is not an optional layer on top of the agent. It is the agent’s reliability guarantee. Running Claude Code or a similar agent on a laptop or a generic cloud VM is a prototype. It may satisfy the configuration property if the developer commits a CLAUDE.md, but it satisfies none of the remaining four without deliberate infrastructure choices.
A managed platform built for agents-as-code — where YAML config files are checked into the repository, agents run in isolated cloud sandboxes with per-session ephemeral credentials, hard budget caps are enforced at the session and developer level, and every tool call and diff is logged to an append-only audit trail — is the production implementation of all five properties. It is the difference between a system that can be trusted with production code and a system that cannot.


