Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 5 min read

The bottleneck isn't writing code anymore. It's trusting what ships.

A number from this month stuck with me. A write-up of METR's 2026 developer survey data reported that 96% of developers don't fully trust the correctness of AI-generated code. Around the same time, LinearB's 2026 report

A number from this month stuck with me. A write-up of METR's 2026 developer survey data reported that 96% of developers don't fully trust the correctness of AI-generated code. Around the same time, LinearB's 2026 report found that AI-generated pull requests get accepted 32.7% of the time, against 84.4% for human-written ones, and wait roughly five times longer in review.

Read those together and the picture is uncomfortable. Writing code has gotten close to free. Checking it has become the expensive part. JetBrains' research this year put weekly AI-agent usage at around 90% of professional developers, so the agents are already in the building. Whether anyone trusts their output is a separate question, and mostly the answer is no.

I work on go-to-market with the small team behind Substrate, an open-source, self-hosted project (AGPL-3.0). This post is about the bet it makes: that the trust gap gets closed by a different loop rather than a smarter model. Every action leaves a receipt, and "it ran without errors" never counts as "it worked."

Exit code zero is not "it worked"

Most agent harnesses record that a step ran. Some record the output. Very few record whether the output actually satisfied the goal, and then use that verdict to change what the system tries next.

That distinction is the whole project. In Substrate:

  • Every execution is traced: inputs, outputs, which resolver did the work, cost, duration.
  • After a run, a judge reads the produced output against the goal and returns a reached verdict. A clean exit is not enough. A run that completes but produces something other than what was asked is reached: false.
  • On reached: false, the system penalizes that approach, excludes it, and tries a different one within a bounded number of attempts.
  • Verdicts recorded by a human are kept in a verification corpus that the judge itself is checked and calibrated against.

Success here is a graded claim about the output. Because every claim is traced, you can audit why the system did what it did instead of taking its word for it.

What the loop looks like

The mechanics are deliberately unglamorous. The README is explicit that nothing here is new on its own:

  1. You send a goal. Plain language, from a cockpit or the human surface.
  2. It chains backward. The system infers the shape of an answer that would satisfy the goal, then looks for activities that produce that shape, then producers of their inputs, until it reaches things it already holds. Where several producers fit, it chooses by learned posterior, using Thompson sampling over what has worked in similar contexts.
  3. Resolvers do the work. An LLM is one resolver among many. Deterministic tools handle what deterministic tools should.
  4. Everything is traced and graded. The verdict updates the posteriors. A pathway that reached its goal is recorded. A later goal with the same intent runs over it directly, and a similar goal reuses it and walks only the difference.

Code changes are goals too. A change to a source file is drafted, typechecked, landed as a traced commit, and then judged like any other goal. The system develops itself under a contract: a landing is judged after it lands, and dissent has to come with cited evidence rather than a silent failure.

The open question is the composition. Whether selection stays meaningful while the system keeps compressing its successful sequences into reusable actions. Whether grading stays grounded while the system changes its own work. The project treats that as unsettled, which is rarer than it should be.

A concrete goal

From the repo's own walkthrough:

run_goal_async  goal="list the HTTP routes activity-api serves, and which of them require authentication"

What comes back: a dispatch id immediately, then the shapes produced, the reached verdict, the execution trace holding the actual output, and a reasoning log reconstructing the walk. Which target it inferred, which producers it chose, and why. If the report doesn't pair each route with its auth requirement, the goal is not reached, however cleanly the steps exited.

Try it in one command

You need Docker or Podman (rootless works) and exactly one provider key: Anthropic, OpenAI, or OpenRouter.

docker run --rm --pull always ghcr.io/avigopal/substrate:dev install | ANTHROPIC_API_KEY=sk-ant-… sh

The installer launches the fleet, waits until it has reached a goal, and writes the client config. The human surface is at http://localhost:18310/.

What it costs: the software is free (AGPL-3.0). You pay your own provider for tokens. Bring your own key, no account, no hosted tier. The image is about 0.7 GB.

What it touches: it runs as one privileged container on your host. Nothing from your host is bind-mounted into it. Secrets are stored root-only and masked, and ports can be bound to 127.0.0.1. My honest advice: try it on a personal project or a sandbox first, and read the security section of the README before you decide.

What it is not

Substrate is not IDE autocomplete, and there's no hosted tier to sign up for. It's early, pre-1.0, and the team is small. There's no victory-lap benchmark to show you yet. The evaluation protocol is defined, though:

  • Randomly drawn goals, run against an agent in a conventional harness, with the protocol fixed before the run.
  • Improvement means fewer choices per goal as experience accumulates.
  • It means outputs that later steps actually use.
  • And it means useful work per operator intervention.

The results are what they are. I'd rather tell you that than sell you a demo.

What I want from you

If AI code has ever burned you in review, I want the specifics:

  • Where does a judge like this get it wrong? What would you need to see in a trace to trust a reached: true?
  • What's the most annoying class of task you'd hand to something like this first?
  • Would you run a privileged container for this, or is that an instant no?

Repo: github.com/AviGopal/substrate. We're launching publicly next week. Comments here and issues there both get read by actual humans.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.