A sufficiently detailed spec is code

An argument that a spec precise enough to generate code has become code.

Author
Gabriella Gonzalez
Published
17 March 2026
Kind
Personal blog post, with one hands-on test
Original
haskellforall.com/2026/03/a-sufficiently-detailed-spec-is-code
Subject
Checkable specs for coding agents
Themes
Saying it exactly

What it is

Gabriella Gonzalez argues against generating software purely from specification documents. The post names two misconceptions. One is that specs are simpler than code. The other is that spec writing must be more thoughtful than coding.

What it says

What evidence it gives

Gonzalez asked Claude Code to build Symphony in Haskell from the spec. The result had several bugs. Even once it ran, the agent spun without progress on a trivial ticket. The post also notes that most YAML implementations fail to conform fully.

Interests and limits

This is one attempt, in Haskell rather than a mainstream language. The post addresses that objection. Calling the spec AI-written is the author's inference from its style. The argument targets specs used to replace code, not checks used to test it.

Connections

These links are this wiki's own reading, not claims the sources make.