It all boils down to isolation level. If you give an agent and ephemeral sandbox, the only thing you care about is the input they get or output they can produce. It could be as minimal as mounting a read only network attaches s3 bucket (input) and them writing to another bucket (output). In between the case of internet access could be monitored by an egress proxy via socket.
In my harness, the sandbox is isolated completely and the network egress happens through a socket that I spy on and can setup my own rules.
There is an entire domain of classical planning that people developing harnesses are rediscovering. We have had SMT constraints running in production for two years, and it is largely a useful endeavor.
The entire gist of this can be summed up by saying that configs should be strongly typed and enforced.
The fact that people run agents without these constraints or this level of auditability should be concerning! The harnesses that people use and solutions built for them are generally just a sandbox and a prayer.
Even for relatively simple agents, building these SMT constraints should give people a healthy fear over the amount of branching that they have in their agents today. Relatively simple agents can have state spaces that overflow 2^64 (and that is only if you're asserting on presence and not value).
Cool to see people poking around here, jump in, the water is warm.
I’ve been building a software factory for our internal use for the last two months. Early on, I added an egress proxy intercept that records every network request made. These are now categorized using a decision model along four axes (alignment with the task, exfiltration risk, etc.). Marginal confidence scores are sent to a big model for a deeper dive. Significant events are flagged for human review. It’s amazing how often agents try to do surprisingly unaligned things in pursuit of their goal. These requests are all blocked (so far), but it has convinced me that most of us are entirely unaware of how big of a risk we are taking by running something like Claude Code on our desktop.
I’m not blocking network calls. Agents can directly reach certain things they need, but HTTPS is fully proxied so that, for instance, access secrets can be injected in transit so that agents never see them in their own environment. Web browsing is available but only via a headless browsing API, which tracks all requests. Access to git repositories is controlled via a special git proxy that applies fine-grained access control rather than relying on git providers upstream controls (which would not be fine-grained enough anyway).
Something cool: The decision model prompts are being hill-climbed by an agent that checks every decision made against a more powerful model, then adds any failing cases to an evaluation set and grinds new prompt iterations against the evals to improve accuracy. This is saving a billion tokens a day.
Actual example of crafty agent behavior I caught in the last 12 hours: an agent was trying to build blocked packages from source. npm ci failed with a 401 from npm.internal (our package repo). The agent read .npmrc with the token hidden, then used curl to test the package link directly. Next it searched the docs to find which repository the packages come from, looked that repository up, and tried to clone our internal package site repo so it could build them itself. The clone was refused with a 403 (because that repo is blocked to agents). It then set up a separate dependency folder, linked it into a second copy of the repo so it could type-check against main, and tried to request a test build, which policy again refused. It filed a fault about the registry and stopped there. The reviewer cleared it as reasonable dependency troubleshooting.
One of the difficulties with enforcing guardrails is that there are many ways for an agent to achieve the same task, at least when we're speaking of effects on the same system. When Claude is forbidden from calling the Unix or language-specific tool that performs a specific task, it will often write a Python script that calls a library to workaround the rule.
That's how my "trusted" agent will regularly try to extract my ssh keys from ~/.ssh despite what superficially looks like strong rules to prevent it from even accessing that directory. At network level boundaries, one could imagine an agent working around HTTP limitations by reimplementing everything at socket layer.
All this to say that I'm a strong believer in strong typing, but I think that the hard part in what you write is "enforced".
I’ve always found that these constraint solvers etc are very difficult to justify spending a lot of time and effort on from a business perspective. Maybe now in the age of AI that’s a bit different, but I still have large difficultly in envisioning just how any moderately complex software project would be fully verified using SMT. Ie to bring your number of state spaces down considerably.
Let’s take a database as an example. How would that work? They arguably have far more failure modes (with far more disastrous consequences).
We aren't doing full verification, but we are verifying that before we call an API or move between subagents that a transition is valid. Not letting the LLM call submit_order(OrderRequest) without calling the subagents or tools who together satisfy OrderRequest stops an entire class of failure modes.
Not letting the LLM even see the fields it's putting into OrderRequest lets you run a much more secure system!
Both of these are possible to do as long as you define common models across agents.
Imagine you have many different goals, with an arbitrary set of producers. What is the most effective, allowed way to get there? This can be expressed as a set of SMT constraints with a provably optimal min-cost solution.
Because they want to use Claude (it's what all the cool kids are using, after all), but API prices are prohibitively expensive, so they have no choice.
TLDR; you must use an unmodified Claude Code binary to take advantage of subsidized pricing. Pi or something calling Claude Code either with -p or Claude Agent SDK: okay. Pi logging in as an OAuth client: not okay.
Now that people can throw in whatever visualization they want, they'll have to relearn restraint one day. I can't trust the noise in the age of LLMs because I have no idea what's actually a useful visualization or just something they threw in because they could (if they chose it at all and didn't just say "add some visualizations"). Less is more, people.
The design is inspired by how eBPF works including the hooks and verification aspects. From the article:
>> This is the design we adopt in ext, inspired by eBPF [21]. Just as Linux lets developers attach programs at specific hooks and verifies each program before loading it, ext exposes narrow, typed hooks for decisions such as compaction, tool-output shaping, and reasoning effort. The agent writes a policy before the run (and can optionally revise it mid-run), and the harness invokes it whenever that decision arises. Before any policy or revision takes effect, a verifier first checks it against both the harness’s built-in rules and the operator’s project-specific rules. In doing so, ext keeps safety-critical mechanisms fixed and protected inside the harness while offering flexibility and extensibility.
EDIT: The title of that section is also important - "Towards a verifiable policy interface"
In my harness, the sandbox is isolated completely and the network egress happens through a socket that I spy on and can setup my own rules.
The entire gist of this can be summed up by saying that configs should be strongly typed and enforced.
The fact that people run agents without these constraints or this level of auditability should be concerning! The harnesses that people use and solutions built for them are generally just a sandbox and a prayer.
Even for relatively simple agents, building these SMT constraints should give people a healthy fear over the amount of branching that they have in their agents today. Relatively simple agents can have state spaces that overflow 2^64 (and that is only if you're asserting on presence and not value).
Cool to see people poking around here, jump in, the water is warm.
And how is it still functioning if you are blocking all the network calls?
Something cool: The decision model prompts are being hill-climbed by an agent that checks every decision made against a more powerful model, then adds any failing cases to an evaluation set and grinds new prompt iterations against the evals to improve accuracy. This is saving a billion tokens a day.
Actual example of crafty agent behavior I caught in the last 12 hours: an agent was trying to build blocked packages from source. npm ci failed with a 401 from npm.internal (our package repo). The agent read .npmrc with the token hidden, then used curl to test the package link directly. Next it searched the docs to find which repository the packages come from, looked that repository up, and tried to clone our internal package site repo so it could build them itself. The clone was refused with a 403 (because that repo is blocked to agents). It then set up a separate dependency folder, linked it into a second copy of the repo so it could type-check against main, and tried to request a test build, which policy again refused. It filed a fault about the registry and stopped there. The reviewer cleared it as reasonable dependency troubleshooting.
That's how my "trusted" agent will regularly try to extract my ssh keys from ~/.ssh despite what superficially looks like strong rules to prevent it from even accessing that directory. At network level boundaries, one could imagine an agent working around HTTP limitations by reimplementing everything at socket layer.
All this to say that I'm a strong believer in strong typing, but I think that the hard part in what you write is "enforced".
Let’s take a database as an example. How would that work? They arguably have far more failure modes (with far more disastrous consequences).
Not letting the LLM even see the fields it's putting into OrderRequest lets you run a much more secure system!
Both of these are possible to do as long as you define common models across agents.
TLDR; you must use an unmodified Claude Code binary to take advantage of subsidized pricing. Pi or something calling Claude Code either with -p or Claude Agent SDK: okay. Pi logging in as an OAuth client: not okay.
"inadvertently" is an excuse word.
excuse requires ability to be intentional.
are they seeing software as having intention of its own and trying to excuse it?
>> This is the design we adopt in ext, inspired by eBPF [21]. Just as Linux lets developers attach programs at specific hooks and verifies each program before loading it, ext exposes narrow, typed hooks for decisions such as compaction, tool-output shaping, and reasoning effort. The agent writes a policy before the run (and can optionally revise it mid-run), and the harness invokes it whenever that decision arises. Before any policy or revision takes effect, a verifier first checks it against both the harness’s built-in rules and the operator’s project-specific rules. In doing so, ext keeps safety-critical mechanisms fixed and protected inside the harness while offering flexibility and extensibility.
EDIT: The title of that section is also important - "Towards a verifiable policy interface"