2026-11-26 15:39 UTC

Pickett proposes staged, policy-gated effects for coding agents

state: seedheat: mediumuncertainty: mediumrelevance: highagent-security operating-system-isolationJeremy Pickett

What is this?

On 30 October 2026, Jeremy Pickett published an essay arguing that coding agents can read untrusted content while acting with a developer’s permissions, without a complete, tamper-resistant check on every consequential action. It reviews a study of Claude Code, Codex CLI and Gemini CLI, and existing defenses including CaMeL, CXI, Concordat and FIDES. Pickett proposes staging file, Git and network effects so a deterministic policy engine can authorize changes before they reach the outside world, with credentials held by an executor rather than the agent. This is a design proposal and research plan, not a built system or completed evaluation; the essay’s claims about the three CLIs and cited studies are reported by Pickett and not independently verified in the supplied evidence.

Why it matters

As coding agents gain the ability to edit repositories, run commands and use credentials, security depends on more than whether a model follows instructions: the enforcement point must cover every route to an effect and resist bypass. Staging changes before deterministic authorization could make agent actions more auditable and constrain unintended releases or external requests. But the essay identifies unresolved engineering questions—especially how much of agents’ real-world activity can be staged—and proposes tests rather than demonstrating that its approach works or outperforms existing defenses.

Current assessment

New: Pickett’s 30 October essay adapts the idea of a commit boundary to coding agents. Its central proposal is to stage changes (for example, filesystem overlays, held Git pushes and proxied network writes), keep credentials with an executor, and let deterministic policy—not a model—approve the exact action before commit. The essay argues that containerization limits reachable resources but does not, by itself, determine which actions within that boundary are authorized. It cites a study mapping 116 operating-system mechanisms to agents and testing three coding CLIs; according to Pickett’s account, the study found missing or bypassable protections. These are claims relayed in the essay, not separately confirmed by the supplied sources. The proposal has not been implemented or empirically validated, and its proposed study has not been run. Staging coverage, task-success impact, bypass resistance and incremental benefit over existing mechanisms remain open questions. Pickett’s planned tests include at least 500 attack episodes, but zero violations in that sample would still imply a nonzero statistical upper bound and apply only to the tested distribution. Treat this as a security argument and testable research agenda, not a new tool, confirmed vulnerability disclosure or proven mitigation. The supplied web results chiefly return the essay and related material; they do not provide independent validation of its findings.

Measured heat

now 0 pts/hpeak 2 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 674h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-29 13:00⭐ origin echo-reconstructedThe essay argues that coding agents act with developer-level authority while reading untrusted content, reviews a study of protections in th
Jeremy Pickett on blog (echo) · attributed from hn.story.50498251
—
11-14 16:23first on hacker news · published · +387.4hThe Missing Ring-0 Protections for AI Agents
danielberanek
—
11-14 16:23amplified on hacker news 👑hn.story.50498251
danielberanek
peak 2 · 0 comments · 103% of case engagement
11-14 17:20our radar first saw it · +388.3hdiscovery anchor: hn.story.50498251—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnThe Missing Ring-0 Protections for AI Agents
Retrieved article excerpt

Open article · Retrieved 2026-11-14T17:21:30.509443+00:00

No. 07 · 30 October 2026 · Updated 30 October 2026 · Security · AI

# The Missing Ring-0 Protections for AI Agents

A coding agent reads untrusted text and acts with the developer's authority, and nothing it can't edit stands in between. The missing piece is a reference monitor, and for a coding agent it only works if effects are staged first.

Jeremy Pickett

## Abstract

If this isn't your field, here is the short version.

A coding agent is an AI program that works on a programmer's computer: it reads files and web pages, edits code and runs commands. Three examples are Anthropic's Claude Code, OpenAI's Codex CLI and Google's Gemini CLI. They act with the programmer's own permissions, and whatever they read can steer them, including text a stranger planted for them to find. That is called prompt injection.

Ring 0 is the most privileged mode of a computer's processor, where the core of the operating system runs with nothing above it to say no. A 2026 study from Nankai and Tsinghua universities, which tested those three products, argues that today's agents act in effect at ring 0: what the model decides, the computer does, and no independent check stands in between [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1).

This essay looks at the systems that already check an agent's actions from outside the model, proposes a gatekeeper that holds each change until fixed rules approve it, and sets out a study to test whether it helps. Nothing has been built. Why it matters beyond programmers: these agents act with real credentials, on code that gets released to other people.

A coding agent reads untrusted text and then acts with whatever authority its tools hold, which is usually the developer's. A study of three deployed coding CLIs (programs run from a text terminal) found that the checks they do have sit in individual tools, so a write the file tool refuses goes through the shell [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1). The missing piece has a name older than any of these products: a reference monitor, which every protected action has to pass and which the thing it judges can't tamper with [6](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-6). This essay looks at what already enforces outside the model (CaMeL, FIDES, CXI, Concordat), four existing systems covered in section 5, and at one proposal for gating changes on external evidence, Beránek's Commit Boundary [2](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-2). That proposal executes, validates, then commits or rolls back, which presumes effects that can be rolled back. A coding agent's effects mostly can't: a deleted file, a `git push` (publishing code changes to a shared copy others pull from), a POST to someone else's API (a web request that changes something on someone else's service). The essay's argument is that making those effects stageable is the actual work, and it sets out a study that would measure whether a deterministic supervisor built that way adds anything over the systems that exist. None of that study has been run.

## TL;DR

- The gap: In Claude Code, Codex CLI and Gemini CLI, access checks live in individual tools, sub-agents inherit their parent's permissions, and a forged transcript record loads as a user message on resume (a faked entry in the saved conversation is treated, when the session restarts, as if the user had typed it) [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1).
- The edge isn't the inside: Docker (software that runs programs inside a sealed-off container) by default (AutoGen) and sandboxing (Claude Code, shell commands only) narrow what the agent can reach. They don't decide which of its own actions it may take [7, 11].
- Not only prompts: The LangChain and LangGraph serialization CVEs (publicly catalogued security flaws in two toolkits for building agents; serialization is how a program saves its data and loads it back) reach secrets or code without persuading a model, though each has its own prerequisites [13, 14, 15].
- The proposal: Commit Boundary gates commits on external, claim-specific evidence[2](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-2). For a coding agent it only works if effects are staged first, the executor holds the credentials, and the decision is made by a policy engine, not a model.
- The arithmetic: Zero violations in 500 independent trials bounds the rate below about 0.6% at one-sided 95% confidence. It doesn't make it zero [16](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-16).

## Why you should care

- Engineers: does every path to a protected effect cross an enforcement point the agent can't edit? The shell, a restored session and a sub-agent count as paths.
- Executives: can you show that an agent can't exercise more authority than you delegated to it? "The model was told not to" is not evidence.
- Auditors: a log the agent can write is a diary, not an audit trail.

Those are the same question asked from three desks. The rest of the essay is about who answers it.

## How this essay was checked

Drafts here go through the Moot before I read them: a panel of frontier models I call by their lab bosses' first names (Dario, Sam, Sundar), plus Eddie, the house model that drafts. After publication three outside readers (Claude, OpenAI, Gemini) sent critiques, and this version is what came back from them. The first version planned a supervisor that was itself a large language model. Two of the three readers pointed out that this would let the agent's text back into the authorization path one layer up, and they were right.

## Section 01 of 7 The permission slip

Here's the problem without the operating-systems vocabulary. An agent is asked to bump a dependency in a repository. The README it reads along the way contains a line, written by someone else, telling it to edit `.github/workflows/release.yml` so the release job uploads the deployment credentials to an outside server. The agent has a file tool and a shell. Can it make that change? In most setups today, yes. And if it does, who authorized it?

Stamping His Own Form

Nobody did. The agent's own reasoning did, which is the same as the agent writing its own permission slip. The AaOS study puts it more formally: whatever the model outputs, whether it's following the user, a tool result or a downloaded skill, "runs with the full authority of the host user, in effect at ring 0" [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1). The agent process runs in user space (the ordinary, unprivileged mode where applications run) the whole time. The point is authority, not silicon.

## Section 02 of 7 What's missing has a name

AaOS takes the mechanisms of standard operating-system textbooks, 116 of them in 19 subsystems, and asks what each one looks like in a deployed agent [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1). Eleven are isomorphic, meaning present with the same semantics, so existing defenses carry over. Sixty-five, or 56%, are missing, and most of the missing ones are protections: privilege separation, transactions, tamper-proof audit [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1).

The verdict the paper calls most dangerous is the in-between one, degraded: the function exists but enforcement doesn't, because protection depends on the model following an instruction in the prompt or on a check another path bypasses, "because the system appears protected" [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1). To draw that line the authors use Anderson's reference-monitor criteria from 1972 (in a computer-security planning study for the US Air Force): the monitor must be non-bypassable, tamper-proof and verifiable [1, 6]. Rules written in the prompt meet none of them [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1).

The Display Case

The paper then tests 25 mechanisms in 13 experiments on Claude Code, Codex CLI and Gemini CLI [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1). Access checks sit in individual tools, so a file write the file tool refuses goes through the shell. All three CLIs load a forged transcript record as a user message on resume. A task id names a wrapper, so a reported stop can leave the process running. Sub-agents inherit their parent's permissions. And a model-based permission monitor receives text the agent controls [1](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-1).

That last finding is the one to keep in mind. A judge who reads the defendant's notes before ruling is not independent of the defendant.

## Section 03 of 7 The edge is not the inside

The frameworks have been moving toward safer defaults, and it's worth being precise about what those defaults do.

AutoGen made Docker the default for code execution in 0.2.8. If Docker isn't running it throws an error, and local execution is an explicit opt-in [7](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-7). CrewAI removed its `CodeInterpreterTool` entirely, including the Docker sandbox and the `SandboxPython` fallback, after CERT/CC (the CERT Coordination Center at Carnegie Mellon University's Software Engineering Institute) coordinated four vulnerabilities; [CVE-2026-2275](https://www.cve.org/CVERecord?id=CVE-2026-2275) was the fallback running code when Docker was unreachable [8, 9]. LangChain's security policy puts the decision on the developer: "Always assume that any system access or credentials may be used in any way allowed by the permissions they are assigned" [10](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-10). Claude Code's sandbox is off by default and covers shell commands and the processes they start. The built-in Read, Edit, Write, WebFetch and WebSearch tools follow permission rules instead[11](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-11).

The Two Doors The Sentry

The Sentry

All of that narrows what an agent can reach. None of it decides which of the agent's own actions should be allowed. A container can restrict users, capabilities, mounts and network, and that's real protection, but inside it the agent's choices about what to do with what it can reach are still the agent's. The call is coming from inside the trust boundary.

Microsoft's FIDES is the closest thing in a shipping framework to a decision outside the model: content carries integrity and confidentiality labels, and policies are checked before a sensitive tool runs [12](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-12). Its documentation is candid about the edges. It's Python-only and experimental. In Python it isn't supported with the Monty or Hyperlight CodeAct providers, and the .NET Hyperlight and Local CodeAct providers don't enforce it, because host-tool calls made inside generated code bypass the per-function middleware [12](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-12). That's the AaOS pattern again: a check in one path, a way around it in another.

## Section 04 of 7 Not only prompts

The Drilled Ice

Prompt injection is the attack everyone draws on the whiteboard. It isn't the only one.

[CVE-2025-68664](https://www.cve.org/CVERecord?id=CVE-2025-68664) is a serialization injection in langchain-core's `dumps`/`loads` that enables secret extraction [13](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-13). [CVE-2026-28277](https://www.cve.org/CVERecord?id=CVE-2026-28277) is unsafe msgpack deserialization when LangGraph loads a checkpoint (langgraph 1.0.9 and earlier, fixed in 1.0.10). On its own it needs an attacker who can already modify the stored checkpoint bytes; GitHub's advisory rates it moderate and calls it a post-exploitation issue [14](https://hwtn.io/essays/t0013-missing-ring-0-protections-ai#ref-14). Check Point Research chained it with a SQL
danielberanek20
🟧 echo.blog ⭐The essay argues that coding agents act with developer-level authority while reading untrusted content, reviews a study of protections in thJeremy Pickett——

Interpretation history

Decision trace