DigestAI news desk

Cut through the AI noise.

Agents & Tools5 min read

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.

1 source primary source HN 45

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.

Full story from github.com · via Hacker News primary sourceOpen source ↗
Pass it on WhatsApp Telegram Email

Coverage and discussion

1source
Topics · follow one to build your own front page

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.

Comments

via GitHub Discussions

More in Agents & Tools

All →

Related stories