Conformance
sample-logbook/ is one week of a fictional person (Oslo, March 2026). Nothing in it is real. Its first sixteen lines are the v0.2 sample; the fifteen after them carry one payload of each profile added since (RFCs 0011–0024, and a location with a subject), fourteen on the Sunday and a keeper on the first photo's day, shaped as their RFCs describe, so a verifier meets every schema the reference implementation writes. Two of them reference an attachment by digest without a path, so there is nothing for verify to report missing. The 32nd line signs the first day on the last evening (RFC 0034, signed-day/v1): the ids of the seven lines on its page and the digest of the page as shown, so show 2026-03-01 prints signed in its header.
Your implementation is conformant with format v0.3, Level 1, when (the sample is a logbook/0.2 record, read as it is):
verifyonsample-logbook/reports valid and prints theseqandheadinexpected.json;- appending one line to a copy of it yields a logbook that still verifies, with
seq + 1; - changing any hashed field of any line (a content field of SPEC §3,
seq,prev,recorded_atorhash), or deleting any line, makesverifyfail (SPEC §6).idis outside the hash, and the stored form is not hashed: a change toid, or a re-serialisation that leaves the canonical form unchanged, is not detected.
Heads, as expected.json recorded them:
| Release | Lines | Head |
|---|---|---|
| unreleased (RFC 0034) | 32 | 58bfa9e704e3388d44d74e63f1d84765d24df79e92fce3b522fbef53b765d3df |
| v0.5.0 – v0.6.0 | 31 | 035a74e0027faa6872580c3c7b5f7a0efec92f15bb29cee400a6593814fd345c |
| v0.2 – v0.4.1 | 16 | 53d39fdad121ce8e448221bbdaa9c86396c16347d050bf630035d6f1d37088e6 |
The first sixteen lines did not change between the three, so an implementation that reproduced the v0.2 head reproduces every hash of those lines still; only the tail is new, and the 0.6.0 head is the prev of the 32nd line.
Level 2: the sealed sample
sample-logbook-sealed/ is the same week with its tiers 2–3 sealed (SPEC §2 and §4, RFC 0029) to two recipients: the identity published in identity.txt (it opens this fixture and nothing else; never use it for a record) and the recipient in recovery-recipient.txt, whose identity is published nowhere. Its logbook.json is logbook/0.3 and names both. The salts come from a seeded generator, so the head in expected-sealed.json is reproducible by anyone who regenerates the fixture; the ciphertext is not, and is outside the hash, so the files churn on regeneration while the head does not.
Your implementation is Level 2 conformant when, in addition to the three rules above:
verifyonsample-logbook-sealed/without the identity reports valid, prints theseqandheadinexpected-sealed.json, and counts its sealed lines;verifywithidentity.txtreports valid, the same head, and every sealed line opened and matching its digest;- changing any byte of a
payload_encleaves the keylessverifyvalid and makes the keyed one report invalid; - appending one tier-2 line to a copy seals it, and the other implementation opens it.
| Release | Lines | Head (sealed sample) |
|---|---|---|
| unreleased (RFC 0034) | 32 | 0ab4c3e79bacc9a7c19d074094e81d1674fdf6967ceaf0d1711679e3c11481db |
| v0.6.0 | 31 | c625fd32d553d6f2f64f04dd50858f63a894575f09d6d0d5063d74680e0b43e3 |
Regenerate with python conformance/make_sample.py (when the spec changes, or a profile is added; it changes the head, and this table gets a row).
The profiles: one fixture per frozen payload profile
profiles/<profile>/ holds, for each of the nineteen profiles RFC 0031 freezes (SPEC §5, §6.1), one record of one line (record/: logbook.json and its month file; the line is the one the profile's RFC gives as its example, with a fixed id and recorded_at), expected.json (the profile, its RFC, the line's canonical content form and content hash, its hash, which is the record's head, and its local day), show.txt (what logbook show <day> prints), day.json (logbook day <day> --json) and days.json (logbook show days --from <day> --to <day> --json). Nothing in them is real.
Your implementation passes a profile's fixture when verify on its record/ reports valid with that head; when the canonical form and the content hash of the line recompute to expected.json; and, with show, when it prints show.txt. One that carries a reader of SPEC §6.1's table prints that reader's JSON after dropping the fields §3.2 marks as a reader's own. The fixtures are regenerated by make_profiles.py, and tests/test_conformance_profiles.py holds them byte for byte.