ProductsSelected

gdp-ts brings proof-carrying code to TypeScript API security

Why we picked it

Type-level authorization proofs shift security enforcement from human code review to the compiler, which matters most when AI coding agents generate code faster than teams can audit it. Teams building multi-tenant APIs in TypeScript can adopt the library and its AI skill to make unauthorized actions unrepresentable in code. Compared with raw lint rules or runtime checks, this catches violations before deployment.

Rauno Freitas-style release: gdp-ts is a library, linter and AI skill for TypeScript that implements Ghosts of Departed Proofs, a pattern from Haskell research by Matt Noonan and Ollie Charles.

Image · Guillermo Rauch
Body

Sensitive functions require compile-time proofs that the caller performed an authorization check, which the typechecker verifies.

The README models a real Vercel API constraint where changing a Project password requires proof of a specific role and entitlement.

The author argues agents writing code at scale thrive under hard constraints like these, where human review previously made such patterns impractical.

Original · Guillermo Rauch

Introducing gdp-ts: Ghosts of Departed Proofs for TypeScript. gdp-ts is a library, linter and AI skill for safer API design. Under this contract, sensitive functions require 'proofs' that the caller performed an authorization check. The typechecker verifies these proofs at compile time, preventing your team and agents from shipping catastrophic security (and other kinds of) bugs. While these patterns have existed for quite some time, especially in ecosystems like Haskell, ① human code review and ② cognitive and syntactic overhead made these solutions niche. The situation is now inverted. Agents are writing more code than we can review, and they *thrive* in tight loops with hard constraints that would frustrate us. We see this with the rise of Rust, borrow checker, code aesthetics debate and all. The README and examples model a real-world Vercel API product constraint: changing the password on a Project requires a proof of a certain role + a certain entitlement. Thanks to Matt Noonan and Ollie Charles for their research in this space. github.com/rauchg/gdp-ts

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Products" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison and AI regulation, compliance frameworks, and sovereign compute policy. Key entities and technical topics under continuous tracking include gdp-ts, TypeScript, Vercel, AI coding.

Source attribution: curated from Guillermo Rauch (@rauchg).