Home›Baby Steps›Article

'Trust but verify'; or, 'the correctness ratchet'

Oct 30, 2026

AI summary AI-generated, may contain mistakes

The article describes a 'trust but verify' technique for agentic development, where an agent making a decision that can't be mechanically checked must produce an evidence file documenting its inputs and rationale. CI gates then cheaply and deterministically verify that these evidence files exist and that the inputs are accurate, so any input change forces the agent to revalidate its reasoning. Over time, other agents can re-examine the documented rationale and catch overlooked issues, creating a 'correctness ratchet' that strengthens as agents improve.

The name of the game in agentic development is figuring out how to clearly tell agents what you want– and then how to be sure they follow through. Lately I’ve been tinkering with an interesting technique around this that I’d like to share.1 I call it “trust but verify”2.

The basic idea is that sometimes you have things you want to “verify” but they can’t really be mechanistically checked. In that case, you let your agent do its best. But you also have it create an evidence file that contains the inputs it drew on to make that decision along with its rationale. Then you gate your CI on checking that these evidence files exist and that the inputs are accurate. Those checks are deterministic and cheap. The rationale itself is natural language and can’t be checked.

Doing this “trust but verify” technique on its own is helpful. It creates a kind of hill-climbing towards correctness that is stronger than (e.g.) tests alone. It helps to check meta-reasoning like “is the set of tests sufficient to show this requirement is true”. Documenting the input also means that if any input should change, the CI check will start to fail, and the agent will be forced to revalidate its reasoning.

Keep reading

Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.

More from Baby Steps

What agents mean for Rust (and vice versa)

AI summaryThe author, a programming language designer, reflects on how the rise of LLMs has disrupted the traditionally stable act of programming, acknowledging both the excitement and existential concerns it brings. He concludes that humans will still have a role in programming and that language design remains relevant, arguing that Rust is already a good fit for agentic development though it could be made even better. The post accompanies a talk he gave at REASE/SPLASH and mentions related presentations, including work on the Rust Vision Doc and research shown at IWACO.

Why 'externalized' proofs of cyclic trait impls does not work

AI summaryThis post compares two approaches to handling supertraits: modular proofs, where the trait impl itself establishes that all supertraits hold, versus external proofs, where the code using the impl is responsible for proving the supertraits. The author explains that although modular proofs previously seemed unworkable, external proofs are incompatible with Rust as designed, making modular proofs the only viable option for supporting cyclic trait impls. The post also provides background on what proofs mean in this context.

Cylic trait implementations: motivation

AI summaryThe author announces a blog post series exploring cyclic trait implementations, a problem they have studied for years, with the hope of eventually producing a design suitable for an RFC. This introductory post focuses on the distinction between "internal" and "external" proofs and aims to motivate why the problem matters, connecting abstract ideas to concrete Rust examples.

Battery packs: Let's talk about crates, baby

AI summaryThe blog post introduces 'battery packs,' a concept of curated sets of Rust crates organized around common themes, such as building CLIs, backend web services, embedded development, and error handling. The author notes this is just the beginning, and a key part of the design is that anyone can create their own battery pack.

Only Bounds

AI summaryThe article introduces 'only bounds,' a feature currently being designed and developed by the Arm team as part of the Sized Hierarchy and Scalable Vector Extension project for Rust. The author describes it as potentially one of the most impactful yet little-known changes to the language. The post aims to explore the feature and address a specific design question about the scope of bounds, after first providing some background context.