Find out more

Problem, solved.

Every rule passed. The agent still got through.

The Background

In October I connected Ainodis to NVIDIA OpenShell, free software that runs each AI agent in its own sealed box, called a sandbox. OpenShell decides where an agent can connect. Ainodis records what each connection means for the business, and how far each agent is allowed to go: only suggest, filter, decide, or act on its own.

The result was a check that works while things happen. When someone approves a request that goes beyond what an agent is allowed to do, the approval is refused, with the reason and the name of the agent’s owner. I wrote about that test in “The agent asked. The rules said no.”

But a check like that looks at one request at a time. Agents don’t gain power in one request. They gain it in small steps, each of which looks harmless. So the next question was: if every step passes its check, can the steps still add up to something nobody agreed to?

I ran this test in a lab on my own computer, from 26 to 28 November 2026, with the same sample agent as before: a free coding assistant from OpenShell’s tutorial. It is allowed only to suggest. No client systems or client data were involved.

OpenShell is NVIDIA’s project. Ainodis is a member of the NVIDIA Inception program. The integration is my own work, and NVIDIA hasn’t reviewed or endorsed it.

The Problem

Checking one request at a time answers a narrow question: is this request, on its own, within the rules? Governance needs a wider one: is there any way, through any series of changes, for this agent to do something it isn’t allowed to do?

The two questions give different answers, and the gap between them is where trouble hides. Here’s what I found.

Two harmless steps added up to spending money. The agent uses OpenRouter, a paid service for AI models. In Ainodis, I had recorded what reaching OpenRouter means: “Spend on your OpenRouter account”. That counts as acting, which this agent isn’t allowed to do. But the meaning only applied when the agent connected with a credential, a stored login. So approving plain access to the address was marked “not checked” and let through. Adding the credential happens somewhere else in OpenShell, and nothing checked it at all. Each step passed. Together, an agent allowed only to suggest could spend money.

The real agent was already over its limit. When I read the sample agent’s actual settings, the credential was already there, from the tutorial’s setup. That’s normal for a tutorial. But it had never gone through an approval, so no check had ever seen it.

Two known holes were still open. Changing an agent’s rules directly, instead of through a request, isn’t checked. And if the Ainodis extension is down, everything goes through unchecked.

None of this was visible from a single request. A reviewer reading each approval would have found every one of them fine.

That’s the uncomfortable part. The flaw wasn’t in someone else’s software. It was in mine, in the check I had just written about.

The Solution

I built what I call an authority prover. It doesn’t look at one request. It searches every possible series of changes, up to 6 steps, and asks: after any of them, could this agent reach something above its agreed level?

It uses a solver, software that answers whether any combination exists that breaks a set of rules. I used Z3, a free solver from Microsoft Research. The prover gives one of three answers, never a guess:

  • No path found: no series of up to 6 steps leads above the agent’s level, under the stated assumptions.
  • Path found: here it is, step by step, in plain words.
  • Not settled: the agent can reach places nobody has described yet, so the answer isn’t known.

Its first run found the OpenRouter path. I fixed the extension in two ways. An approval is now checked against the strongest meaning an address can have, with or without a credential. And adding a credential is now checked when it happens. I tested this against the running OpenShell, and it was refused.

The open question was speed. My OpenShell setup gives the extension half a second to answer. If proving takes longer, it can only report afterwards, not prevent. So I put the prover into the decision itself, as a small service that stays loaded on the same machine.

On 150 test requests it answered in 12 milliseconds at the median and 74 at the slowest. In the live test, it refused adding the credential on its own, in 125 milliseconds, with the ordinary checks switched to report-only.

If the prover is slow or down, the ordinary checks decide alone. It can stop a change, but it never blocks work by failing.

The Benefits

It found a real flaw, in my own product. The prover found a way past the check I had built and written about, on its first run. The fix took a day. Without the prover, I wouldn’t have known to look.

It looks at combinations, not just single requests. The question “can this agent, by any path, do more than we agreed?” now gets an answer from a proof, not from someone reading logs afterwards.

It’s fast enough to prevent, not just report. The proof runs while the change is being made, in tens of milliseconds, well inside the half-second window.

It’s honest about what it doesn’t know. An address with no recorded meaning is reported as “not settled”, never assumed safe. Every proof states the assumptions it rests on.

Once the model included every way a rule can change, the prover also found both known gaps as one-step paths, without being pointed at them.

Some things aren’t covered yet. Direct rule changes in OpenShell still aren’t checked, and the prover finds that path every time. If the extension is down, changes go through unchecked. When a credential is refused, OpenShell’s command line only shows “permission denied”. The full reason, naming the owner, is in the log and in Ainodis. And with only one system in the model, a simpler search would have found these paths too.

That’s why the next step is a second system. An agent in Jira acts with the permissions of the person who started it. Combine that with what its sandbox allows, and the paths get hard to see by hand. That’s where proving them matters most, and where the solver earns its place. I also want a university partner, to check the model and the claims independently.

Most tools for OpenShell check each request against rules. This test asked a different question: whether any series of allowed steps can lead somewhere the rules forbid. It answered in time to prevent the step, and it started by finding a hole in my own work.

“A check that looks at one request can’t see where the steps lead.”

–  Ainodis design principle

Digital
problem
solver…

Let’s get together and talk about your unique challenges – I’m friendly, approachable and love to work with other people to quickly solve digital problems using innovative technology.

Contact me

Oops! We could not locate your form.