db.parent file
db.parent holds the parent timeline after a restore. Its content and encoding are defined only by the backup code.
SEAM is specified from the source code. Where a behaviour is defined only by the code at a given location, is ambiguous, or disagrees with an older requirement, the spec marks it as unspecified and a conforming reimplementation must match the code. Each such item appears as a visible callout on its page and is collected here.
Two further groups are kept separate on purpose: points the spec author inferred, and points the spec does not state at all.
The behaviour is defined only by the code at the listed location, is ambiguous, or the code and an older requirement disagree. A conforming implementation must match the code.
db.parent holds the parent timeline after a restore. Its content and encoding are defined only by the backup code.
archive.anchor is the backup anchor and starts with the magic "STBK". Its remaining layout is defined only by the backup code.
The writer syncs file data but does not sync data/ between creating a data file and logging the MANIFEST edit that references it. Durability of the new directory entry relies on the filesystem ordering the create before the later MANIFEST fdatasync.
An older requirement (SPEC V29) says "per-file/chunk data key". The code uses one shared current data key for every new seal. A conforming implementation must match the code.
Spill run blocks are sealed with an 8-byte tag, the file id and a block index; an index-build run footer uses block index u64::MAX. The record encoding inside the blocks is defined only by the bulk-load code.
The "exactly 8 trailing bytes" rule for the resolves field and the zero-timestamp marker for auxiliary records are positional conventions with no version byte. New record kinds must be added as new auxiliary kinds (SPEC V461).
An authentication failure anywhere in the file is treated exactly like a torn tail: reading stops and later records are silently dropped.
Tag 3 is never written and decoders reject it. The reason and any history are defined only by the code.
The exact lifetime of a drop lsn relative to replay_from, and the exact moment a drop is retired, are defined only by the code.
An older requirement (SPEC V714) says a key-reference column keeps "an empty int stream". The code writes no int stream at all. A conforming implementation must match the code.
The object name is <id:016x>.stc under the configured prefix. The exact naming and prefix handling are defined only by the tier code.
An older requirement (SPEC V49) describes column deltas against the newer version. The code stores every version independently. The columnar cross-column delta works across columns of one row, not across versions.
The spec specifies only the view prefix and the 0x00 cursor key. The group key, kind byte and slot value layout described here come from the code.
Only the table definition value is specified. Users, verifiers, grants, work records, databases and blob metadata are defined by the code.
The body layout of the relations extension is defined only by the code.
The body layout of the search options extension is defined only by the code.
The bytes that follow the shape flag in a ZONES file entry are defined only by the code.
The layout of rcache/index and the *.rc files is defined only by the code.
Only the sealing and footer facts are specified. The run body layout is defined only by the bulk-load code.
The spec author inferred the behaviour from the code and no encoder or decoder confirms it directly.
The spec author inferred from the executor that key bytes are always ascending and descending order is served by reverse scans. No inversion exists in the encoder.
The source spec does not state this. The wiki records how it chose to present the point.
Planned for the first public release, not yet in the code: SEAM 1 is stamped 1 on disk, using a new MANIFEST header that carries a "SEAM" marker and the version 1. Stores with the current header and store_format 1 to 4 are pre-1 to pre-4 and are migrated automatically on open. Until that lands, builds at the spec commit write store_format = 4 for the SEAM 1 layout.
The spec says footer revision 5 is the default for every new file and lists revisions 1 to 4 as the choices when no stats frame is written, but does not say when a current writer omits stats. In the code only `SstOptions.stats = false` does, and no production path sets it, so revisions 1 to 4 are effectively pre-release layouts that SEAM 1 readers still accept.
The spec says the value upgrade hook is applied to every Put written, and that the current revision is 0xE5, but does not list which revision each index kind receives. In the code, revision 1 and the early 0x02 byte are read-only, and a writer emits revision 2 as the fallback, revision 3 from store format 2, and revisions 4 and 5 from store format 4, each only when it is smaller.
The spec dates only the structures it lists as added in a later stamp. Everything else, including column codecs, stats revision 1, catalog extension tags and the derived caches, is treated as part of the pre-1 baseline.
The spec calls tag 6 reserved but does not say whether a decoder rejects it like tag 3 or treats it as an unknown tag, which is Corrupt("manifest trailing bytes"). The code does the latter: there is no tag 6 arm, so it is rejected.
Flag 0x10 says the maximum was truncated, and bytes bounds are limited to 64 bytes. The spec does not say how a truncated maximum is made a valid upper bound.
The spec has no codec called timestamp scale. The scaling of typed key fields (flag 0x80 in the how byte) is the only scaling in the format and is documented on that page.