Skip to content

Artifact version numbers

Applies to SEAM 1

Each artifact records its own number. The columns below give where it lives, what a current build writes and what it reads. The numbers inside structures are revisions; the store number is the stamp.

Artifact Where recorded Current Readable
Store MANIFEST header field store_format SEAM 1 (store_format 4 today; planned: 1 under a new “SEAM” header) pre-1 to pre-4 and SEAM 1
MANIFEST header field manifest_format 1 1, plus the legacy 8-byte header
SEAM data file MANIFEST tag 5, per file pre-4 1 to 4
Footer footer field version revision 5 revisions 1 to 5
Columnar block block byte 0 revision 3, 4 or 5 (the lowest the block needs) revisions 1 to 5
Stats frame stats byte 0 revision 2 revisions 1 to 2
Posting block value byte 1 0xE2 to 0xE5 (per block) unmarked revision 1, 0x02, 0xE2 to 0xE5
WAL segment file name 1 1
Keyring header 1 1
Derived caches magic stzones2, stspans1, STH1, SWM1, SRC1 stzones1 is also read; any other unknown magic means rebuilt
  • The store row is the only one that is a SEAM version. Its on-disk value today is the stamp of the layout SEAM 1 adopted.
  • A value above the “current” column is NewerFormat; a value below the minimum, or a bad magic, is Corrupt. See Error classes.
  • Posting block revisions are recognised by their first bytes: a value not starting with 0x00 is the unmarked revision, and 0xE6 to 0xEF are NewerFormat. See Block head.
  • The WAL format is recorded in the segment file name, seg-<id>.wal for format 1; see Segments.