Skip to content
Breaking:

Bret Taylor Releases Truss, an Experimental Language Built for AI Code Generation

The prototype prioritizes formal verification and contract proofs over human authoring ergonomics, shifting reasoning to authoring-time token spend.

By The Company Wire3 min read
Share

Bret Taylor has published Truss, an open-source prototype programming language designed specifically for software written by artificial intelligence agents rather than human engineers, according to repository documentation on github.com (https://github.com/finiteloop/truss).

Traditional programming languages are engineered around human ergonomics, prioritizing convenience, concise syntax, and rapid manual authoring. Truss departs from that model by assuming human developers will no longer write code directly. Instead, the language trades away authoring convenience to demand rigorous formal reasoning up front, spending model tokens during generation to guarantee enduring program correctness, memory safety, and performance.

At the core of Truss is a contract-driven architecture. A contract specifies data structures, functions, and their formally verified behaviors—such as return values, memory access rules, and state mutations—using explicit preconditions, postconditions, and effect declarations. Independent implementations, termed providers, fulfill those contracts. Each provider must supply evidence of conformance stored in a separate proof artifact (`package.proof`) alongside the source code.

This separation allows the Truss compiler to scale formal verification across software dependency graphs. When a program imports an interface, the compiler verifies caller correctness against the contract claims alone, without re-verifying every provider implementation from scratch. When binding an implementation to a contract, Truss checks the supplied proof file—a validation step the project notes is an order of magnitude faster than constructing the proof itself. Verification extends through code generation, where compiler passes prove observable behavior is preserved down to native machine code.

The project's bundled standard library provides checked fixtures across several common systems tasks. Its examples include an HTTP client framer that identifies header boundaries across fragmented reads, an owned streaming SHA-256 implementation that verifies digest tracking over incremental inputs, a JSON validator that establishes exact token spans and Unicode escape offsets, and a rooted ZIP extraction provider that enforces byte budgets and publication guarantees during partial extraction.

Truss is structured around a dual-compiler toolchain: `truss-bootstrap`, written in Rust, which serves as an initial compiler and independent executable verifier, and `truss`, a self-hosted compiler written in Truss itself. The toolchain currently targets ARM64 macOS, ARM64 GNU/Linux, and x86-64 GNU/Linux environments, providing commands to lock dependencies, check types, run tests, and generate or inspect verification proofs.

Taylor framed the project as a prototype intended to initiate discussion on infrastructure requirements for agent-centric software engineering. Arguing that much of the world's pre-AI software remains insecure and error-prone, Taylor stated that future systems could be systematically rewritten to achieve provable correctness, verifiable security boundaries, and high execution speed as autonomous programming agents mature.

Sources

  1. github.com

Company: Truss

Written by

The Company Wire

Newsroom · San Francisco

Inside the companies building what’s next. Reporting on startups, technology, funding and the people shaping them.