3.4 Extension and Conformance

A format or protocol chapter closes with two articles: one saying how the thing it specifies can grow, and one summarizing what conformance requires of each role.

3.4.1 Extension #

A chapter specifying a wire format, a file format, or a protocol SHOULD close with an extension article stating how the thing can grow.

An extension article SHOULD distinguish three kinds of change:

  • Additive changes. Changes an implementation of the current version can ignore safely, such as a new optional field or a new entry in an open-ended set.
  • Changes requiring a version bump. Changes it cannot ignore, such as a new required field, a new value in a closed enumeration, or any change to an algorithm the format has frozen.
  • Reserved space. Room the format deliberately leaves, and what an implementation does when it encounters a value there.

A specification MUST state, for every enumeration it defines, whether that enumeration is closed. An implementation cannot decide whether to ignore or reject an unknown value without being told.

3.4.2 Conformance #

A chapter SHOULD close with a conformance article summarizing, per role (§3.2), what that role must do. The article is a summary and MUST NOT introduce a requirement stated nowhere else.

A conformance article SHOULD also state plainly what conformance does not require. A reader who has been given a list of obligations benefits more from knowing where their freedom lies than from a longer list.

Edit this page