logoalt Hacker News

nostrebored • today at 4:55 AM • 6 replies • view on HN

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.


Replies

ttul • today at 5:41 AM

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.

➕ show 3 replies
schmuhblaster • today at 8:08 AM

My experimental harness framework [0] allows for defining a harness in terms of a Prolog-based DSL executed in a WASM runtime.

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.

[0] https://github.com/deepclause/deepclause-sdk

➕ show 1 reply
Yoric • today at 6:49 AM

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".

➕ show 3 replies
crowdhailer • today at 7:29 AM

> The entire gist of this can be summed up by saying that configs should be strongly typed and enforced.

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

➕ show 1 reply
stingraycharles • today at 5:22 AM

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).

➕ show 2 replies
rsalus • today at 5:08 AM

How do you use SMT constraints in your production systems?

➕ show 1 reply