Bret Taylor introduces Truss, a language for agent-written software
Bret Taylor announced Truss, a prototype programming language built around the assumption that code will be generated by AI agents rather than humans. The language shifts design focus from authoring convenience to compile‑time verification, requiring agents to produce formal proofs that contracts are satisfied.
Key points
- Truss treats code as agent‑written and requires compile‑time formal verification of contracts.
- Providers must supply a proof file that the compiler uses to validate correctness without re‑verification.
- A sample ReplaceElement contract demonstrates safety guarantees like buffer‑overflow protection.
A Truss package consists of a contract that defines data structures, functions, and provable behavior, and one or more providers that must supply a proof alongside their implementation. When a program depends on a contract, the Truss compiler uses the provider’s proof to validate correctness without re‑verifying the code, dramatically reducing verification effort for downstream users.
The article walks through a concrete example: a ReplaceElement contract that guarantees safe replacement of an element in a slice, along with an InlineReplaceElement provider that implements the contract. It shows the command‑line steps to generate a proof file and bind the provider in a program. Taylor frames Truss as a step toward rewriting legacy software to be provably correct, secure, and fast, and invites discussion about the platforms needed to realize that vision.
Coverage and discussion
1source- Hacker News discussion · 45 pointsnews.ycombinator.com
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- Apple reportedly developing AI agent to write code and control apps · 11 src
- Meta’s Muse agent sends users incorrect bank balances and private messages · 10 src
- Anthropic releases "Claude Ship" in beta: AI inspects and fixes pull requests, even approving them if they meet team rules | Will human review disappear? → Huma · 27 src
- Google releases Gemini 4 Neon with one-million-token context window · 15 src
- Claude’s 5-minute cache timer costs coding teams 23% more than GPT’s 30-minute default · 2 src
Comments
via GitHub Discussions