The Tracer specification¶
The normative specification of the Tracer wire protocol. This page is the entry point: what is normative, how the layers relate, and in what order to read them. The specification itself is Protocol v1. The protocol is named Tracer; libtracer is its reference implementation, and the library, its packages and its repository keep that name.
What is normative¶
Normative status is not a property of a directory. It is declared by
v1.md, and it reaches outside docs/spec/:
Protocol v1 is the normative core — scope, terminology, the conformance procedure, and the static path-handle requirements.
Four reference documents are incorporated as normative annexes by v1.md §3. Their MUST/SHOULD/MAY clauses are clauses of the specification; their paragraphs marked informative are not:
01-data-format.md — frame layout, the
optbits, fixed-width lengths, the trailer.05-protocol-tlvs.md — the type-code registry and each core type’s byte-precise payload layout.
03-addressing.md §path syntax — canonical PATH constraints.
23-noise-link-binding.md — the Noise link binding (NNpsk0 over a datagram carrier: UDP, or a WebSocket connection since Amendment 2). It applies only to a link that uses the binding; a link that does not use it is unaffected (RFC-0033, amendment, accepted 2026-10-10; Amendment 2 accepted 2026-11-10).
A reader of
v1.mdalone cannot see the frame layout at all; the annexes are where the bytes are.Everything else is informative — the rest of the reference suite, the design notes, the C++ API reference, and the rationale record (ADRs) and change proposals (RFCs, listed in the ADR and RFC index). When an informative document and the specification disagree, the specification wins.
How the specification is layered¶
Three tiers, read in this order:
v1.md plus its incorporated annexes — what a conforming implementation must do.
RFCs (
docs/spec/rfcs/) — the change instruments. An accepted RFC is the record of why a normative clause reads the way it does; the clause itself lives inv1.mdor an annex.ADRs (
docs/adr/) — architecture decisions and their errata: the rationale behind the reference implementation and the protocol shape.
The RFCs are published on this site as change proposals and history, not as the standard; the ADR and RFC index lists every RFC and ADR with its status and supersession links. ADRs stay in the repository.
Versioning¶
Spec versions are integers (v1, v2, …). Once a version is published it is immutable — a correction that changes conformance behavior requires a new version. Editorial fixes (typos, clarifications that do not change behavior) are applied in place with a changelog entry.
Conformance¶
An implementation is “libtracer vN compatible” if and only if it:
Honors every MUST clause in
vN.mdand in the documentsvN.mdincorporates.Passes every test vector under
tests/conformance/tagged for vN.
That is the entire compatibility contract. There is no certification authority. The capability matrix records how far each known implementation is verified, and the implementation registry is where an independent implementation is listed.
Proposing a change¶
The instrument depends on what moves. An erratum corrects text that contradicts already-agreed behavior and never changes the wire surface; an amendment changes the normative surface itself and needs an RFC. See GOVERNANCE.md for the process.