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".
But I really, really don't want agents to look into my ~/.ssh, and I don't see any way to do this without "overzealous restrictions".
Anachronistic, no? I assumed everyone else was using containers or VMs for this basic level of isolation.
Watching subagents disrespect guardrails and executing python scripts and scanning my SSH keys is exactly what pushed me to never trust an agent harness again.
It does feel like a slightly overzealous restriction, though.
E.g. bash is turing complete, so trying to bound it is a very complex problem! Meanwhile high XX% of what you want a coding agent to do in bash can be bounded by piped configurations of sed awk and grep.
Unbounded agents are interesting with a HITL, but for fully autonomous agents my perspective is it's your job as a developer to specify the action space with a more restricted set of typed actions, the granularity of which may be very different depending on the task.
E.g. there is a curve between (single agent, bag of tools, compaction) -> (micro actions, highly parameterized tools, bounded contexts and nesting) where micro actions may be
"Given a social security number, full name"
-> ask for account number
-> ask for routing number
-> ask for 2FA
-> ask for recovery questions
--> (requires account, routing, 2FA | recovery) ask for recipient account number
--> (requires account, routing, 2FA | recovery, recipient account) ask for recipient routing number
and most existing implementations are closer to the former than the latter, or an explicit chain of arbitrarily bounded actions rather than a dynamic configuration of the action space.The harness itself is a REPL module for the prolog interpreter. When it’s asked to modify itself it snapshots the module, tries to build something, then either commits a new module version or rolls back. Eventually I hope to use the Prolog base to run some automated, deterministic verifications before anything gets executed. Maybe Prolog isn’t the right choice here given modern SMT solvers, but I do enjoy working with it somehow :-)
It seems to work alright, but I feel that “traditional” harnesses have a much better UX, as there are less layers in between.
How/where do you insert SMT into your current workflow(s)?
Each subagent specifies what it produces and requires, and SMT constraints validate solvability of goal based workflows.
The coding agent PoCs that I have are essentially like Claude's old todo lists but non-linear. It's easier to conceptualize for deep research -- let the LLM on a fresh context window specify the requirements it needs to specify and what the reconciler needs to know in order to actually reconcile information. Then the agent loop is just generate a plan, compile the plan, if it does not compile pass the validation errors back to the agent and repeat.
If this the case, should the new crop of strongly typed languages; Roc, Gleam, (My own contender EYG) be presenting themselves as replacements to YAML as much as JavaScript. I've always been unsatisfied why things like YAML are so prevalent as configs and assume that some typed answer might be different to a full language
Right now there's a lot of annoying stuff we do because of our initial choice of building in Python.
Pydantic has the very annoying property of not having an invertible .model_json_schema() which means we have a large library that should just be expressing serde and a few common behaviors.
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.
The acknowledgements section references "The Author", but the citations section and header list two authors. I know that I'm an outlier here coming from an academic background, but that's just an incredible number of red flags. An incredibly straightforward thing to get right is wrong.
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.
I think I would still have to build a management UI for scoped GitLab access and some way to stage outputs (as very few services I know have safe/undoable write APIs). And then I don't think I can have users use the cordium UI directly because they shouldn't have control over the HTTP allow/deny list, nor be able to control images, etc.
I'm tempted to try Octelium for my personal setups, although I'm sure it's overkill, would be interesting to play with zero-trust.
You can also tell it to access any Octelium Service (e.g. API, database) and act on your behalf. It's simply running inside its own Cordium sandbox and can just do anything as long as your Octelium policies allow it to do so. And you can also tell the Cordium agent something like: "run an archlinux Workspace/sandbox, clone github.com/org/repo and run the tests and show me a report". Also note that you don't really need a complicated multi-node k8s cluster to use Octelium and/or Cordium, you can install both on a single VM/VPS via the quick installation guide script on top of k3s that can run on any single machine.
https://github.com/nolabs-ai/nono
but not sure how high level you can limit )
[0] https://watch.ly
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.
"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?
It never is used with inanimate or unconscious objects, the fact that everything is they do has no intent is implied. You don't say "the asteroid inadvertently hit a city". If you say that you imply asteroid is conscious.
>> 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"