Summary
- RFC 8949, December 2020, sells CBOR as "a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation".
- The goals are a rebuke to earlier binary encodings — the document distinguishes CBOR from "ASN.1 and MessagePack" — and it ranks them out loud: "data compactness is secondary to code compactness", with decoding possible "without a schema description".
- Uniqueness is explicitly optional at the start: "there is no requirement that all data formats be uniquely encoded; that is, it is acceptable that the number '7' might be encoded in multiple different ways" — which is why the same document later has to add a deterministic encoding section.
Every schema is a meeting nobody wanted
A format that requires a schema forces an agreement before the first byte moves. A format with a version number forces a second agreement, and a third every time the version changes. CBOR's design goal is to cancel the meetings.
The data describes itself, so the decoder can be tiny. Extensibility comes from structure rather than a version field, so a new field does not demand a new protocol, a new handshake, or a new working group.
Code size is a ranking, not a slogan
RFC 8949 does something specifications rarely do: it ranks its own goals in public. Compactness of data sits below compactness of code, and neither is allowed to justify general-purpose compression or heavy bit manipulation.
That ranking is the interesting part, because it is a claim about where the scarce resource lives. Not bandwidth. Not storage. The interpreter. A format designed this way assumes a sensor with a few kilobytes of flash on one end and a server pushing millions of messages a second on the other, and insists that one library serve both.
Then someone signs it
The moment a message is hashed or signed, two encodings of the same value become two different messages. A hash does not see a value; it sees bytes. Two byte strings, two digests, two signatures over something a human would swear was the same document.
So the document that says uniqueness is not required turns around and specifies a deterministic encoding for the cases where it is. Section 4.2 of the same document exists precisely because the flexibility was real.
That is the tension worth naming: self-description buys flexibility, and signatures spend it. A format built to avoid negotiation ends up specifying, in detail, exactly how to be identical.
Well-formed is not valid
RFC 8949 draws a line most formats blur. A well-formed item parses. A valid item obeys the rules of its type and of the tags attached to it. Parsing is syntax; validity is meaning.
That distinction is how an extensible format keeps its promises. A decoder that has never heard of a tag can still carry it across the network intact, and the application on the far side decides what it means. Unknown structure gets transported, not destroyed — the thing a version field would have forced you to negotiate first.
The bill for extensibility always arrives
Extensibility without negotiation is bought by making the data carry its own structure, and paid for by giving up the simplicity of one fixed encoding. Signatures then buy the fixed encoding back, for the subset that needs it.
The instinct is right: specify the minimum that must be common, and let structure carry the rest. The mistake is assuming the minimum never has to grow.
So the general lesson is not about CBOR. Every format that wants both to evolve and to be signed has to specify two things — how to be flexible, and how to be identical. Skip the second and you get the classic bug report: the signature verifies in one library, fails in another, and nobody can see why, because both libraries are right.
Flexibility sends the bill. The only question is whether the specification pays it in advance or the implementers pay it in production.
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.






