Twenty Two Shades of Specs

Post at — Oct 23, 2026

When I began developing a tool for agents, designed to simplify the creation and management of specifications, I conducted research into the various types of specifications that exist. I identified 22 different forms, ranging from “living specs” to “implementation plans.” You can find them all in the table below.

Which specification formats should you choose for agent-based development? Clearly, “Formal Models” and “Contract Specs” are not universal solutions. They are best suited for highly specific, constrained scenarios.

The ideal way to maintain a final specification is within the source code itself. It is impractical to separate a vast number of technical details from the actual implementation. Source code describes these details far more effectively than any prose or specialized specification language.

Feature planning can begin with a proposal document (such as an RFC or PEP) and conclude with an “Implementation Plan.” This plan is essentially an “Issue-Tracker Item”, formatted in a way that is easily consumable by an agent. Tests and “Golden Files” (reference outputs) ensure that the implementation plan has been executed accurately and completely, covering both the “happy path” and various edge cases.

Bugs, as well as deferred ideas and features, are stored as backlog items, which, in practice, take the form of “Issue-Tracker Items”.

There are also documents and tools that define engineering practices, but that is a separate topic, I’ll save that for another time.

#Spec FormsHow it changesWhat is current truthExamples
1Source code is specRegenerated from code on every buildCode (spec is a view)OpenAPI generated from FastAPI/springdoc; rustdoc/Javadoc API reference; Tessl document –code
2TestsUpdated deliberately when behaviour is meant to changePast behaviour of the codeCharacterization tests (Feathers); golden/snapshot files; recorded traffic
3Issue-tracker itemMutable forever, with a field-level changelog; workflow state machine; no freezeThe item while open; after “Done”, nobody maintains it, but nothing stops edits eitherJira epics/stories/bugs/sub-tasks; GitHub Issues; Linear
4Disposable task specThrown awayCodeKiro; tickets/user stories with acceptance criteria
5Change request with review recordDescription editable before and after merge; review threads stay attached, marked outdated as the diff changesCode that was mergedGitHub/GitLab PRs and MRs; Gerrit changes; Phabricator Differential
6Proposal + separate living referenceProposal frozen after decision; reference livingReference / specificationPython PEPs/Rust RFCs + Reference
7Living-until-done proposalUpdated through its lifecycle, then settles (often without a formal end)The proposal, until implementedKubernetes KEPs; Google design docs; Amazon PR/FAQ
8Delta spec merged into living specDelta frozen and archived; main spec mutatedMain specOpenSpec
9Spec-as-sourceSpec mutable; code regeneratedSpecCodeSpeak; Tessl (SDD, Spec-Driven Development); MDD (Model-Driven Development); schema-first codegen at boundaries
10Living draft + periodic snapshotsLiving draft; frozen editions; defect reports attached to editionsDraft for implementers; edition for citation and conformance claimsECMA-262 (draft + yearly ES20xx); WHATWG Review Drafts; ISO C/C++ (cplusplus/draft + C++20/23 editions + DRs)
11Living standardEdited continuously, no versionsThe spec itselfWHATWG HTML
12Archival + errata + Updates/ObsoletesFrozen; corrections attached, never mergedNewest document in the obsoletes chainIETF RFCs; HTTP: RFC 2616 → 7230–7235 → 9110–9112
13Decision recordImmutable; only status changesLatest non-superseded recordADRs (Nygard), MADR
14Commit messageImmutable once merged (rewriting history is possible but rare)Code; the message explains one changeLinux kernel’s submitting-patches rules; Conventional Commits; Gerrit Change-Id trailers
15Reference implementation as specWhatever the implementation’s code doesThe implementationCPython (de facto semantics); Perl 5; Ruby MRI before ISO; Markdown.pl → CommonMark
16Conformance test suiteLiving; tests added as behaviour is clarifiedThe suite (implementers follow it when prose disagrees)Test262; web-platform-tests; ruby/spec
17Contract specVersioned, with compatibility rulesThe schemaOpenAPI, Protobuf, JSON Schema, Avro + schema registry
18Design by contractLives inside the codeContracts in code, checked at runtimeEiffel; pre/postconditions, debug_assert!-style invariants
19Formal model (design-time formal model)Written for a design; usually not maintained afterwardsModel at design time; code afterwardsTLA+, Alloy
20Formal model (proof-linked spec)Changes together with code; the build fails if they divergeSpec and code, bound by proofDafny, SPARK Ada, seL4 (Isabelle), Fiat Cryptography
21Executable specLiving; CI forces it to stay trueThe spec, verified by testsSpecification by Example book; Cucumber
22Baselined requirements under change controlLiving, but changed only via approved change requests; each approved state frozen as a baselineLatest approved baselineDO-178C, ISO 26262 programmes; IBM DOORS, Polarion