Bret Taylor, a Sierra co-founder and the chair of the OpenAI Foundation and OpenAI Group PBC boards, published a programming language called Truss over the Thanksgiving weekend. He calls it a personal project and says it assumes code is written by AI agents, so the compiler asks for proofs while the code is being written and a person checks the result.
I built the Truss toolchain on an x86-64 Linux VM, ran the proofs that ship with it, wrote a function the compiler had to reject, and gave five AI models the same two Truss tasks. The compiler did what the README says on everything I ran. The part that still needs a person is the contract, and one of the models showed why.
What Truss is
A Truss package is built around a contract, which lists the functions a package offers along with what each returns, what memory it can touch and what state it can change. A provider implements the contract and ships a proof that it keeps every promise, in a package.proof file beside the source. A program that uses the contract relies on the promises alone, and when it binds a provider the compiler replays the provider’s proof instead of rebuilding it.

The README frames the trade as a swap. Traditional languages optimise for human editing and short authoring time, while Truss optimises for human verification and spends tokens up front, on the reasoning that a one-time spend buys software that stays correct. Taylor writes that “Truss is just a prototype”, and the licence is Apache 2.0. Its worked example is a contract that replaces one element of a slice and returns 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) }
}
requires is what a caller must establish, ensures is what the function guarantees afterwards, terminates rules out an endless loop and effects lists everything the function may read or write. The provider is ordinary-looking code, and truss proof update writes the proof that it meets the contract.
What’s in the repository
1,005
library package manifests
261,000
lines of Truss
424
published proof files
160,000
lines of Rust in the bootstrap
The standard library covers SHA-256, HTTP/2 and TLS, SQLite and PostgreSQL, JSON, ZIP and regular expressions, and each package carries its own proof. The compiler is written in Truss. A Rust bootstrap builds it, the installer then builds the compiler with itself in successive stages and compares the last two builds byte for byte, and Lean models audit the proof rules. The docs say plainly that trust in the host and in any lowering the checks don’t cover remains a premise of running the result.
Installing it
Truss needs Rust, Cargo and a C linker, and supports ARM64 macOS, ARM64 Linux and x86-64 Linux. My machine was an Intel Xeon at 2.1 GHz with 4 cores, 15 GiB of memory, a 252 GB disk, Ubuntu 24.04.5 and Linux 6.18.44. The installer took 2 minutes 57 seconds and produced 75 MB containing two commands, truss (the self-hosted compiler) and truss-bootstrap (the Rust one, which also does independent checks).

The docs say x86-64 Linux was tested through translation on ARM64 and that qualification on physical x86-64 hardware is still open. Mine was a cloud VM, so it installed and ran there, and that is a data point rather than a qualification. The guide’s hello program built in about 20 milliseconds into a 367-byte static executable.
A wrong function is refused
The repository’s checked-store program has a contract that returns the word at one index and overwrites a different one. Its provider ran, and truss proof check replayed the contract’s proof. Then I changed the provider to write to the index it had just read. truss proof update refused with “package.proof write frame differs from its contract” in 13 milliseconds.
For a second case I wrote a swap contract. It passes truss check and runs:
function swap_words(words: &mutable Slice<UInt64>, first: UInt64, second: UInt64) -> ()
effects { read(words), write(words) }
requires first < words.len and second < words.len
ensures snapshot(words) == update(update(old(snapshot(words)), first, old(words[second])), second, old(words[first]))
terminates
{
let held = words[first]
words[first] = words[second]
words[second] = held
}
A swap with its last write deleted still compiles in most languages. Truss stops it with a source verification error and exit status 4.


Checking a proof costs little
The SHA-256 provider ships a 119,604-byte proof. The Rust bootstrap replayed it in 0.08 seconds and the self-hosted compiler in 1.2 seconds. The package’s test suite, which also includes the cases built to be rejected, took 40 seconds, the CRC-32 suite took 0.24 seconds and the sort suite took 6 minutes 25 seconds.

The README says validating a published proof can be an order of magnitude faster than constructing it. These numbers show replay is cheap. I didn’t time proof construction, so the ratio itself is the README’s claim.
Five models write Truss
Truss only makes sense if agents can write it, so I gave five models the same prompt in opencode 1.19.6, each in its own directory with a copy of the repository and the toolchain on its path. Kimi K3.1 Pro ran through Synthetic, DeepSeek V4.1 Flash through Morph, and Claude Opus 5.5, GPT-6.2 Sol and Gemini 4 Neon directly. Each had a 20-minute limit and one attempt on the same VM. This is the exact prompt:
Truss is a programming language where the compiler formally checks contracts. The toolchain is already installed: `truss` and `truss-bootstrap` are on your PATH. The Truss source repository, with its language guide in docs/language/ and its package-authoring skill in skills/truss-package-author/SKILL.md, is in ./truss-src. Read what you need from there.
Do two things, each in its own new directory under the current directory.
1. ./fib: write a Truss package whose program prints the first ten Fibonacci numbers (0, 1, 1, 2, 3, 5, 8, 13, 21, 34), one per line, then exits with status 0. Build and run it with `truss run`.
2. ./swap: write a Truss package with a function that swaps two elements of a mutable slice of UInt64 words, given two indexes. Give it a contract: both indexes must be in range, and afterwards the slice must equal the original with exactly those two elements exchanged. The compiler must verify that contract with `truss check`. Add a `main` that swaps indexes 0 and 2 of [1, 2, 3] and exits 0 only if the result is [3, 2, 1]. Run it with `truss run`.
Stop when both pass `truss check` and `truss run`, or when you have tried hard and cannot get further. Finish with a short report of what you ran and what the results were.
Afterwards I reran truss check and truss run on every package, read each swap contract, and deleted one write from each swap to see whether the compiler caught it.
| Model | Time to both packages passing | Swap contract |
|---|---|---|
| DeepSeek V4.1 Flash | 44 s | Full range, handles either index order and equal indexes with branches |
| GPT-6.2 Sol | 48 s | Full range, same statement as mine |
| Claude Opus 5.5 | 138 s | Full range, same statement as mine |
| Kimi K3.1 Pro | 158 s | Narrower, requires the first index below the second |
| Gemini 4 Neon | Stopped at the 20 min limit | Full range, same statement as mine |

Every package passed truss check and truss run when I reran it, including Gemini 4 Neon’s, and the compiler refused all five mutated swaps with the same postcondition error. Neon’s session hit the limit while it was still rewriting loop invariants for the Fibonacci program, which ended up at 63 lines against 17 for GPT-6.2 Sol, and the other four passed without those invariants.
The informative result is Kimi K3.1 Pro’s swap. It passes truss check, runs and exits 0 on the task’s own main, but its contract says requires first < second, so swap(words, 2, 0) is outside what it promises. The prompt asked for both indexes to be in range and nothing else. The proof is valid, and it proves a smaller promise than the one I asked for. DeepSeek V4.1 Flash took a different route to the full promise, using the transposed_elements predicate from the language guide and a branch for each order.
That is the design Taylor describes, with its weak point showing. The compiler guarantees the code meets the contract, and nothing guarantees the contract says what the person meant. A reviewer has to read the requires and ensures lines, which are short, and that is the human verification the README asks for.
This is a smoke test with two small tasks and one attempt per model. It shows that four of the five models could write and verify a swap function from the repository’s own docs in under three minutes. It says nothing about proving something like an HTTP parser.
Where it sits
Proof-carrying languages aren’t new. Dafny describes itself as a programming and verification language, F* as a proof-oriented language for programmers and coding agents, SPARK as formal verification for Ada, and Lean as a programming language and proof assistant. I didn’t run any of them here, so I can’t say how they compare in use. The Truss docs present the difference as packaging, since proofs are published files that sit beside each dependency’s source and are replayed offline by both the Rust and the self-hosted compiler, which means a program’s checks build on the proofs of everything it depends on.
Taylor’s stated reference point is Rust, which he calls “a small step” in this direction because it gives compile-time memory safety. He writes that he expects most software written before AI to be rewritten, since it is imperfect, insecure and slow, and that he wants agents to produce software that is provably correct, verifiably secure and incredibly fast.
What I didn’t run
- The Lean checks in
verification/and the full release gate intools/check-release.sh. - The macOS and ARM64 Linux targets, the HTTP service capstone and the web database program.
- Runtime speed of compiled programs. The README’s “incredibly fast” is a goal, and I ran no benchmark of it.
- Proof construction time, so the order-of-magnitude replay claim is untested here.
- Dafny, F*, SPARK and Lean.
Sources
- finiteloop/truss, README, language guide and compiler docs
- Bret Taylor on X, announcing Truss
- OpenAI, board announcement naming Taylor as chair
- opencode
Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.




