What is SEAM
SEAM is the on-disk format of the LUMA database (formerly called strata). This wiki describes every byte LUMA persists for a database store: which files exist, how each file is laid out, how it is encrypted, how rows, indexes and catalog entries map to keys, and which rules readers and writers follow across versions.
- S orted
- E ncrypted
- A ppend-only
- M ulti-version
The four ideas
Section titled “The four ideas”Sorted. Inside a data file every entry is ordered by user key, bytewise ascending, and then by timestamp, newest first. Keys are built so that bytewise order equals the order the database wants: integers, floats and timestamps are flipped to big-endian with the sign bit adjusted, and text is escaped. See Key encodings and Order-preserving values.
Encrypted. Every region that touches disk is sealed with AES-256-GCM: WAL blocks, MANIFEST records, data-file frames and footers, and the derived caches. Each seal carries a 32-byte trailer, and the additional authenticated data binds a block to its file and position, so a block moved to another place fails authentication. See Encryption at rest.
Append-only. Data files are immutable once written. New data goes to the write-ahead log and is later flushed into new files; compaction writes new files and retires old ones. The only place that records which files are live is the MANIFEST, an append-only log of edits whose last good record is the commit point. See Lifecycle and atomic install.
Multi-version. The engine stores (user key, timestamp, kind, value). Each version of a key is its own entry, and a read at a timestamp returns the newest entry at or below it, so AS OF reads work. Deletes are tombstones. See Internal key and MVCC.
What is covered
Section titled “What is covered”- The store directory and its files, and which of them are authoritative or derived.
- Encryption, the WAL and the MANIFEST.
- The SEAM data file: frames, footer, block index, bloom filter, row blocks, columnar blocks, stats and every column codec.
- Postings for trigram and full-text search, key encodings and catalog records.
- Versions and compatibility: the rules, the version matrix, and how to compare formats.
Objects outside the store directory, such as blob chunks in object storage, backup containers and cluster snapshots, have their own formats and versions and are outside SEAM, except where a page says otherwise.
Versions in one paragraph
Section titled “Versions in one paragraph”SEAM 1 is the first public version. A store written by any earlier build carries one of four internal pre-release stamps, and SEAM 1 adopts the layout of the last one unchanged. Readers keep every older variant, a build refuses a store newer than it understands before it writes a single byte, and there is no downgrade. Read Versions for the full story and Pre-release formats for the old stamps.
About this wiki
Section titled “About this wiki”It was written from the LUMA source at master commit d9adad939. File paths in code references are given as they are on that commit (crates/strata-*); the crates are being renamed to luma-*, and the file structure inside them is unchanged. Statements that are defined only by the code, or where the code and an older requirement disagree, are shown as visible callouts and listed on Open questions.