Independent AI intelligence Two editions daily · ET
Fervor AI

Analysis · December 3, 2026 · repo

Trussfiniteloop/trussBret Tayloragent-securityai-skillsfrontier-models

Truss Makes Agent-Written Code Ship With a Proof

Bret Taylor's new prototype language flips the job of a programming language: optimize for checking code, not for writing it

Coding agents can now write more code in an afternoon than a team can review in a week. Most teams cope the same way: they skim the diff, run the tests, and hope.

A new language from Bret Taylor bets on a different fix: stop reading the code, and check a proof instead.

Every popular programming language makes that problem worse, by design. Python, JavaScript and Go were all built to make writing code fast and comfortable for a human. When a machine does the writing, that comfort buys you almost nothing. The expensive part is now the human checking what the machine produced.

Truss, Taylor's new open-source language, starts from that observation and follows it to an uncomfortable place. It assumes agents write the code, and it makes them do much more work up front so that you can trust the result without reading it line by line. Published packages ship with a proof file, and every build that depends on them checks it.

The result is a different picture of code review. You stop reading implementations. You read short contracts that say what the code is allowed to do, and a machine confirms the code does exactly that.

What Truss is, and what it is not

Truss is a systems programming language (the kind you would use for the same jobs as Rust or C) "optimized for agent-written software," in the words of its README. It is Apache-2.0 licensed. Its first commits landed only days before this review, it drew a Hacker News discussion on December 2, and it had about 690 GitHub stars as of December 3.

Taylor is blunt about its status. The README calls it "just a prototype" and says the goal is to "start a conversation about the platforms we need to design" for agent-written software. You should read it that way: a serious design you can install and poke at today, not something to ship production code in.

The README's comparison table makes the bet clear. Traditional languages optimize for human editing; Truss optimizes for human verification. Traditional languages optimize for convenience; Truss optimizes for correctness. And instead of minimizing the time a person spends writing, Truss is willing to "spend tokens at authoring time to improve enduring correctness and performance."

That last line is the whole idea. Tokens are cheap and agents do not get bored. Making the agent prove its work costs a few more dollars of compute once. Reviewing unproven code costs human attention every time someone touches it.

How it works, in plain words

Truss has three pieces worth knowing before anything else.

A contract is a short description of what a function promises. Not how it works, just what it guarantees: what it returns, what memory it may read or write, what conditions the caller must meet first, and that it finishes instead of looping forever.

A provider is an implementation of a contract. One contract can have several providers. The README's example is a Map contract with two providers, a HashMap and a SortedMap.

A proof is the evidence that a provider keeps every promise in its contract. It lives in a package.proof file next to the source code.

A useful way to think about it: the contract is the job description, the provider is the person hired, and the proof is a signed receipt that every duty was done. Truss refuses to build your program unless the receipts check out.

The receipts are also reusable. When your program uses Map, the compiler reasons only from the Map contract. When you pick HashMap as the provider, the compiler checks the existing proof file instead of proving everything again from scratch, which the README says can be "an order of magnitude faster than constructing the proof itself." That is how Taylor hopes formal verification (mathematically proving code correct, a technique usually reserved for aircraft software and cryptography) can scale to normal-sized programs. Package authors pay the proving cost once. Everyone downstream gets it for the price of a check.

What a contract looks like

The README walks through a tiny example: replace one number in a list and return the old value.

contract ReplaceElement {
    function replace(words: &mutable Slice<UInt64>, index: UInt64, value: UInt64) -> UInt64
        requires index < words.len
        ensures result == old(words[index])
            and snapshot(words) == update(old(snapshot(words)), index, value)
        terminates
        effects { read(words), write(words) }
}

You do not need to know the syntax to read it. requires says the caller must pass an index inside the list, which rules out the classic buffer overflow. ensures says the function returns the value that used to be there and that only that one slot changes. terminates says it finishes. effects says it only reads and writes that list, so it cannot sneak in a write to disk or a network call.

The implementation is three lines. Then you run one command in the provider's folder:

truss proof update

That generates the package.proof file. From then on, anyone who uses the package gets those guarantees checked on every build.

This is where review changes shape.

A human reviewer only needs to read the contract and ask, "is this what I wanted?" The question "does the code actually do it?" belongs to the checker.

The standard library is the real demo

Toy examples prove little. The more convincing part of the repo is the standard library, where the contracts make claims that are genuinely hard to get right by hand. A few from the README:

  • Sort proves that when you sort a table by one column, every key keeps its original row data, even when keys repeat.
  • SHA-256 proves the hash covers exactly the bytes you fed it, in order, however you split them across calls.
  • HTTP response framing (working out where a response's headers stop and its body starts) proves the parser finds where the headers end even when the final blank line arrives split across two network reads.
  • ZIP extraction proves that if extraction fails halfway, the reported counts cover exactly the files that were actually written.

Each of those is a bug class that ships in real software every year. Split-read parsing bugs and half-finished extraction bugs are exactly the kind of thing an agent will write confidently and a tired reviewer will miss.

The README also claims the guarantee survives compilation: the compiler proves its translation preserves the code's observable behavior, and a separate rule covers linking. A standalone Rust verifier, truss-bootstrap, can independently re-check the published evidence. Those are the project's own claims about its own toolchain, and checking them is a job for people who build compilers, but the design intent is clear.

The proof is supposed to hold all the way down to the binary.

Why this is aimed at agents, not people

Writing proofs by hand is miserable. That is the main reason formal verification never spread beyond niches. A function that copies a prefix of bytes needs, besides its code, a loop invariant (a statement that stays true on every pass through the loop) and a decreasing measure (a number that proves the loop eventually stops), as the proving chapter of the manual shows.

People hate writing those. Agents do not care.

The README even ships an agent skill, truss-package-author, that installs with the toolchain and walks an agent through authoring contracts, providers and proofs. Taylor's argument is that Rust was "a small step in this direction," a language that is harder for humans but a great target for AI, and Truss takes that several steps further.

The bigger claim in the README is worth quoting as a hedge, because Taylor frames it as one: he thinks "we will probably rewrite most software written before AI because that software is imperfect, insecure, and slow." You do not have to agree with that to find the smaller idea useful today.

Put this into practice

You can have a proved program running in about fifteen minutes, if you are on the right machine.

Check your platform first. Truss installs from source on ARM64 macOS (Apple Silicon), ARM64 Linux, or x86-64 Linux. You need Rust and Cargo, plus a C linker (on a Mac, the Apple command line tools). Windows is not supported.

Install the toolchain. Clone the repo first:

git clone https://github.com/finiteloop/truss.git && cd truss

Then run the getting-started guide's install commands from the repository root:

work=$(mktemp -d)
toolchain="$work/toolchain"
sh tools/install-truss.sh "$toolchain"
export PATH="$toolchain/bin:$PATH"
truss --version

The install lives in a temporary folder, so keep that shell open.

Run the hello program. Make a folder with a package.truss file containing package "hello" {} and a main.truss with the guide's three-line main function, then:

truss lock --offline "$hello"
truss check "$hello"
truss build "$hello"
truss run "$hello"

You should see Hi. Notice that even this function declares an effect, write_stdout. Truss will not let code touch the outside world without saying so.

Watch a proof fail on purpose. Work through the manual's prefix-copy example in chapter 10, then delete the loop invariant and run truss check again. Seeing the checker refuse code that looks fine is the fastest way to understand what the language is for.

Point your agent at the skill. The toolchain installs the package-authoring skill at share/truss/skills/truss-package-author/SKILL.md. Give it to Claude Code, Codex or whatever agent you use, and ask it to write a small contract and provider for something you care about, like parsing one line of a log format. Then read only the contract. If it says what you meant, truss proof check tells you whether the code agrees.

Keep your expectations honest. Treat this as a weekend experiment and a way to sharpen how you think about agent output, not a migration plan.

Honest limitations

It is a prototype, in its author's own word. The repo is days old, there is no versioned toolchain release, and the language could change under you.

A proof only covers what the contract says. The manual makes this point itself: its prefix-copy function proves the copied bytes are right, but says nothing about the bytes after them. A caller that needs that guarantee has to write it into a contract. A sloppy contract with a perfect proof is still a sloppy program.

Human review does not disappear. It moves to the contracts, and a wrong contract is now the most dangerous kind of bug.

There is no ecosystem. The standard library is broad for a project this young (collections, compression, HTTP, TLS, SQLite and PostgreSQL clients), but many pieces are bounded or platform-specific, and there are no third-party packages to speak of. You cannot pull in a library from npm or crates.io.

Platforms are narrow: ARM64 Mac and Linux and x86-64 Linux, source install only. The toolchain reference says x86-64 Linux has so far been tested through translation on ARM64 hardware, not qualified on physical x86-64 machines.

Proofs also stop at the edges. TLS, SQLite, PostgreSQL and parts of the operating-system interface rely on outside engines and host assumptions, and a Truss proof does not establish how those outside pieces behave.

And the deepest claims, that compilation and linking preserve every proved guarantee, are the project's own descriptions of its toolchain. They have not had outside scrutiny yet.

What to take from it even if you never write Truss

The useful idea here works in any language. When an agent writes code, the expensive part is no longer writing. It is trusting. Truss pushes that to the limit by making the agent hand over a proof, but you can apply a smaller version tomorrow: ask your agent for the contract first (inputs, outputs, what it may touch), review that, and make the tests check the contract rather than the implementation.

If the contract is right and a machine checks the rest, you have reviewed the part that only a human can review. That is the trade Truss is offering. Install it, break a proof, and decide whether you want it.

Sources: finiteloop/truss README · Truss language manual · Getting started · Proving a contract · Standard library and toolchain limits · truss-package-author skill · Hacker News discussion. Reviewed December 3, 2026, at the main branch (no versioned toolchain release yet).