Summary

The log entry arrived dressed for court: a nanosecond fraction, a declared TAI timescale, a clock class, an uncertainty, and a guarantee. The incident dashboard read that density as a verdict — service A ran before service B — and nobody asked the only question that matters at 3 a.m.: when did either clock last talk to a reference?

RFC 9581 lets a CBOR object carry a timestamp together with its timescale, clock class, accuracy, variance, uncertainty and a stated guarantee. It records what an emitter claims about time; it does not attest the emitter, the oscillator, or whether the discipline loop was closed this morning.

  • Three tags do the work: 1001 for extended time, 1002 for duration, 1003 for period. The fields around them preserve a claim. They do not preserve the proof.
  • Resolution, accuracy and event truth are separate receipts. Microsecond digits can sit beside a millisecond uncertainty, and a structurally flawless period still says nothing about causal order, deadline compliance or whether the work finished.

What RFC 9581 actually puts on the wire

RFC 9581 solves a real interchange problem, and it solves it cleanly. The older CBOR time tags carry an RFC 3339 string or a POSIX-style number and stop there. Extended-time tag 1001 puts one base time in a map and lets precision, timescale, clock-quality and display-intent fields hang around it. Tag 1002 is a duration. Tag 1003 is a period — start and end, or one endpoint plus a duration.

The paperwork is in order: the RFC Editor record, the Datatracker record, the history and the errata page establish the specification’s status and provenance. Not one of them establishes deployment in your rack.

A parser validates shape, not history

Tag 1001 requires exactly one unsigned base-time key. Key 1 carries POSIX-style seconds; keys 4 and 5 allow decimal-fraction or bigfloat representations. Negative keys are elective. A decoder must ignore an unknown negative or text key. Unknown unsigned keys are base-time or critical information and must raise an error.

That asymmetry is where operations get hurt. Two decoders can accept the same instant while one quietly discards supplementary meaning it does not understand — the machine equivalent of nodding along. The IANA CBOR registries define the shared vocabulary; RFC 8949 defines the data model underneath. A clean decode proves the object fits those rules. It does not prove who emitted it, whether the bytes were altered before authentication, or whether the source clock was sane.

The fraction keys set the classic trap. RFC 9581’s own example encodes a timestamp to microsecond resolution while declaring one millisecond of uncertainty. More digits describe the representation. They do not narrow the window in which the event probably happened.

UTC, TAI and a clock-shaped assertion

Timescale values separate UTC on the POSIX epoch from TAI on the PTP epoch; a missing scale implies UTC. Elective timescale keys may be ignored, while positive key 13 is critical. The RFC pointedly refuses “GPS” and “NTP” as scale names and specifies offset conversion to UTC or TAI instead — a small decision with large consequences for anyone who has ever tried to reconcile a GPS receiver’s output with a database column.

Clock-quality keys borrow class, accuracy and offset-scaled log variance from the PTP vocabulary in RFC 8575. Key -7 carries expanded measurement uncertainty at coverage factor k=2. Key -8 carries a stated maximum deviation from true time. RFC 9581 is refreshingly honest about the second: such a guarantee is theoretically unattainable, but systems such as the RFC 3161 time-stamp protocol need somewhere to put one.

The guarantee nobody signs

Read the word “stated” slowly. The map does not name the party underwriting the guarantee, the oscillator, the upstream grandmaster, the calibration chain, the network-delay model, the holdover interval, or the last alarm that fired. RFC 5905 describes NTP’s protocol machinery; the NIST Internet Time Service is a live source and operating service that lives outside the serialized object entirely. The BIPM/JCGM publications define how measurement uncertainty is supposed to be expressed. Filling key -7 is not the same as following them.

A timestamp is a photograph of a clock’s opinion of itself. The photograph travels well. The opinion was never audited.

Display intent is not location evidence

RFC 9581 can also carry a time-zone hint or RFC 9557 suffix information. An elective negative key may be ignored; its positive counterpart is critical. These fields help a recipient display or interpret an instant. They are not GPS coordinates, not proof of physical location, and not proof that the emitter operated under a particular jurisdiction — a distinction that starts mattering the moment a regulator asks where the log was written. The RFC also warns that converting an extended date-time to a POSIX base can lose the original numeric offset.

Time metadata leaks, too: zone, resolution and wall-clock offset each say something about the emitting system. RFC 9581 flags ambiguity in security-relevant freshness and validity spans, which means a collector needs two policies rather than one — a semantic policy and a disclosure policy.

Build the receipt chain

For an auditable event, keep the canonical CBOR bytes and the decoder result first. Then stack the rest: authenticated emitter identity, source and timescale realization, last successful synchronization, holdover state, estimated offset and delay, quality derivation, wall-clock value, a monotonic counter, capture latency and collector receipt time. Only with that stack in hand can an investigator compare two uncertainty intervals — let alone make a bounded ordering claim.

Periods deserve the same suspicion. Tag 1003 proves a payload holds a structurally valid start/end pair or endpoint-plus-duration. It cannot prove work began at the first instant, ended at the second, or met an SLA. That last receipt belongs to the application that accepted, processed and completed the work, and to nobody else.

Lu Heng’s reality-layers essay explains why a richer symbol must never consume authority from the physical system underneath it. Running-Code Primacy puts interoperability in the encoder and decoder but truth in operating evidence. Why BTW Media exists supplies the editorial obligation: point at the missing join instead of letting a precise-looking timestamp hide it.

Precision is cheap now. Discipline is the expensive part — and no CBOR tag has ever shipped with a quartz crystal attached.

Sources