Summary
- RFC 8610, June 2019, defines "a notational convention to express Concise Binary Object Representation (CBOR) data structures", whose main goal is "a unified notation that can be used when defining protocols that use CBOR".
- Its goals pair two audiences: it should "provide an unambiguous description of the overall structure of a CBOR data item" and also "provide a single format that is both readable and editable for humans and processable by a machine".
- Because the description is machine-processable, it can "enable automatic checking of CBOR data items for data format compliance" and "enable extraction of specific elements".
Description as an artefact
Every protocol ships two descriptions, and sooner or later one of them is lying. Prose is written for the reader: it records intent, and nothing checks it. Code is written for the parser: it checks, and explains nothing. The gap between them is where interoperability goes to die — quietly, one edge case at a time.
CDDL collapses the pair into one file. The same text a human reads to understand a message can be handed to a tool that rejects a message which does not match. Documentation stops being a claim about the format and becomes a test of it.
Unambiguous but flexible
The stated goals look contradictory until you read them together. One demands an unambiguous description of structure; another demands flexibility "in expressing the multiple ways in which data can be represented".
That is the actual hard problem with schemas. A format that permits optional fields, alternative shapes and open extension points cannot be pinned down by a single canonical example — and describing it by example breeds implementations that accept the example and nothing else.
Where schemas go wrong
A schema written for code generation drifts into a template: it names every field and forbids everything else. A schema written for documentation drifts into a shrug: it names the important fields and waves at the rest.
CDDL tries to be neither, which is why group choices, wildcards and extension hooks live in the notation itself rather than in a paragraph of prose caveats that nobody enforces.
Compliance checking changes the argument
Once a schema can be run against data, arguments about what a format allows become testable. A disputed field stops being a mailing-list opinion and becomes a line in a file that either matches or does not.
That is the quiet value of the notation, and it generalises: it moves interpretive disputes into a form somebody can execute. Validity becomes something a participant checks locally, not something an authority grants.
The side effect worth naming
The document notes that describing JSON structures works too, because JSON's data model is a subset of CBOR's. One notation, two encodings, and the description survives a change of wire format.
That is the same separation the CBOR work had already made: the model is the contract, the encoding is a detail. CDDL gives the model somewhere to live.
The lesson about executable descriptions
A description nobody can run will drift from the thing it describes, because drift is free and checking is not. A description that can be run pays for itself the first time two implementations disagree — which is to say, almost immediately.
The general lesson: when you can make the documentation machine-checkable, do it. The alternative is a second description that slowly stops being true, and a room full of people who cannot tell which one is which.
The same logic scales past wire formats: specify the minimum, make validity locally checkable, and let adoption rather than publication decide what is real. Lu Heng makes the longer version of that argument about Internet coordination systems.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






