Sponsored Content
The pace of frontier model development leads us to assume the next model will fix every problem with the current model. Today’s coding agents sometimes do unexpected, destructive things, but frontier labs are making models smarter every few months, so surely the misbehavior will fade. At Tech Field Day at KubeCon North America 2026, Coder’s Jiachen Jiang argued the opposite, and I think they are right. The incidents making headlines are not caused by weak models. They are caused by weak infrastructure and poor security practices, which is good news, because we already know how to fix those.
Two Things a Smarter Model Won’t Change
Jiang, a staff product manager at Coder focused on AI governance, pointed to two properties of AI agents that no amount of model improvement will remove. The first is that agents are non-deterministic. An agent can perform a task correctly nine times and go off the rails on the tenth, because everything it does is based on probability. The second is that large language models take in instructions and data through the same channel, with both as natural language. An agent has no reliable way to tell the instructions it should follow from the content it happens to be reading, so something in that content can override what it was told to do.
If those two properties are permanent, then telling an agent not to do something is a request, not a control. Jiang compared it to the difference between asking someone not to enter a room and locking the door. Only the locked door is enforcement, and the door is in the environment, not in the model.
The Lethal Trifecta
To describe when an agent becomes dangerous, Jiang used Simon Willison’s “lethal trifecta”:
- Access to private data.
- Exposure to untrusted content.
- The ability to communicate externally.
An agent with one of these is usually acceptable; an agent with none is not much use. Permitting two is risky, and Jiang suggested a regulated business should not allow that combination. All three should never be allowed, not even for a prototype.
Jiang then walked through three incidents with increasing numbers of legs. In the PocketOS incident in April 2026, a Cursor agent tasked to fix something in staging hit a credential mismatch, found a forgotten, broadly scoped access token, and used it to delete the production database and the backups on the same volume in under nine seconds. Only one leg was involved, and no attacker. One of the delegates pointed out that the agent effectively had root access, and that was precisely the point: excessive access was the problem, not the intelligence. The second story involved a phished finance employee at a bank, their long-lived Copilot session, and Copilot helpfully explaining to the attacker how to keep data transfers under the threshold that the bank’s data loss prevention controls would flag. The third example was the Nx “s1ngularity” attack, where malicious npm packages prompted developers’ own coding assistants to find credentials on their machines and publish them to public GitHub repositories.
None of these needed a smarter model to prevent them. Each needed an agent that couldn’t access what it shouldn’t have because it was treated as a risk, not a trusted employee.
Controls We Already Have
Jiang’s session offered remedies that mostly aligned with familiar IT security principles. Jiang listed six layers:
- Environmental separation
- Short-lived scoped credentials
- Identity-aligned access control
- Agent sandboxing
- A model proxy layer
- Audit logging.
Apart from the model proxy, enterprise infrastructure teams have applied all these controls to human users and service accounts for years. Jiang’s point was that they take on new importance when the actor operates at machine speed, where one mistake can be repeated thousands of times before a human notices.
Coder maps most of these to its workspaces, which are isolated, ephemeral agent environments deployed from Terraform templates. Environmental separation means the agent runs in a workspace with no standing path to production rather than on a developer’s laptop, where it inherits everything the developer can reach. For credentials, Coder does not issue cloud or database credentials itself; it passes the user’s identity to systems that do, such as HashiCorp Vault. A template can create a temporary credential for each workspace that is destroyed when the workspace is deleted. The model proxy layer and audit logging run through Coder’s AI Gateway, which customers can replace with tools such as LiteLLM or Kong. Dave Ahr, Coder’s developer relations engineer, described the templates as orchestrating layers of safeguards in the spirit of James Reason’s Swiss cheese model, where a hole in one layer is caught by the next.
No Perfect Protection
Jiang closed with a caution I wish more vendors would offer: be wary of anyone promising complete protection for AI agents. Layered controls reduce risk and shrink the blast radius when something does go wrong, but they don’t eliminate it. Even one leg of the trifecta was enough to wipe out PocketOS’s production data.
That is also why I find the infrastructure control more convincing than the hope of better models. If we are waiting for a model that never guesses and never follows the wrong instruction, we will be waiting a long time. If instead we treat an agent like a new, fast, and occasionally careless employee, we already know what to do. We give it its own workspace, short-lived credentials scoped to the task, no route to production, and a record of everything it does.
The lesson I take from Coder’s session is that the AI governance problem is mostly an old problem moving faster. The controls exist, and most organizations already own them. The work is to turn them on for agents before the agents find the forgotten token.
You can watch Coder’s presentations on the Tech Field Day at KubeCon North America 2026 appearance page, and find more Field Day events at TechFieldDay.com.

