Skip to content

Open questions

Applies to SEAM 1

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.

Implementation-defined (19)

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 file

db.parent holds the parent timeline after a restore. Its content and encoding are defined only by the backup code.

Page: Small files · Defined by: crates/strata-backup/src/layout.rs:10

archive.anchor file

archive.anchor is the backup anchor and starts with the magic "STBK". Its remaining layout is defined only by the backup code.

Page: Small files · Defined by: crates/strata-backup/src/layout.rs:11

Durability of the new directory entry

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.

Page: Lifecycle and atomic install · Defined by: crates/strata-lsm/src/sst.rs:1382

Data keys are per keyring, not per file

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.

Page: Key hierarchy · Defined by: crates/strata-crypto/src/keyring.rs:180-215

Spill run AAD and block contents

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.

Page: AAD per object · Defined by: crates/strata-sql/src/bulk/sort.rs

Commit and auxiliary record disambiguation

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).

Page: Auxiliary record · Defined by: crates/strata-txn/src/lib.rs:190-200, crates/strata-txn/src/lib.rs:621

Authentication failure in the middle of the MANIFEST

An authentication failure anywhere in the file is treated exactly like a torn tail: reading stops and later records are silently dropped.

Page: Reading and the torn tail · Defined by: crates/strata-lsm/src/manifest.rs:500

MANIFEST tag 3

Tag 3 is never written and decoders reject it. The reason and any history are defined only by the code.

Page: Tag 3: never written · Defined by: crates/strata-lsm/src/manifest.rs:217-245

Range drop lsn lifetime and retirement

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.

Page: Tag 7: range drops · Defined by: crates/strata-lsm/src/drops.rs:286-330

Key-reference columns write no int stream

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.

Page: Key references · Defined by: crates/strata-lsm/src/columnar/mod.rs:398-408, crates/strata-lsm/src/columnar/mod.rs:2228-2244

Object name of a remote file

The object name is <id:016x>.stc under the configured prefix. The exact naming and prefix handling are defined only by the tier code.

Page: Remote files and sidecar · Defined by: crates/strata-tier/src/lib.rs

No delta between versions of a key

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.

Page: Internal key and MVCC · Defined by: crates/strata-lsm/src/sst.rs:861-885

Materialized view group keys

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.

Page: Materialized view keys · Defined by: crates/strata-sql/src/matview.rs:214-225

Values of non-table catalog records

Only the table definition value is specified. Users, verifiers, grants, work records, databases and blob metadata are defined by the code.

Page: Other catalog records · Defined by: crates/strata-sql/src/engine/accounts.rs, crates/strata-sql/src/engine/grants.rs, crates/strata-sql/src/engine/dbs.rs, crates/strata-blob/src/meta.rs

Body of ext tag R

The body layout of the relations extension is defined only by the code.

Page: Ext R: relations · Defined by: crates/strata-sql/src/relations.rs:117-185

Body of ext tag X

The body layout of the search options extension is defined only by the code.

Page: Ext X: search options · Defined by: crates/strata-sql/src/ftindex.rs:320-400

ZONES shape layout

The bytes that follow the shape flag in a ZONES file entry are defined only by the code.

Page: ZONES · Defined by: crates/strata-lsm/src/zonedir.rs:491-640, crates/strata-lsm/src/sst/zone.rs:110-170

Cold-tier frame cache layout

The layout of rcache/index and the *.rc files is defined only by the code.

Page: rcache/ · Defined by: crates/strata-lsm/src/remote.rs

Spill run layout

Only the sealing and footer facts are specified. The run body layout is defined only by the bulk-load code.

Page: Spill runs · Defined by: crates/strata-sql/src/bulk/sort.rs

Inferred from code (1)

The spec author inferred the behaviour from the code and no encoder or decoder confirms it directly.

Descending index order

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.

Page: Order-preserving values · Defined by: crates/strata-sql/src/exec.rs:1499

Not stated in the spec (7)

The source spec does not state this. The wiki records how it chose to present the point.

On-disk stamp of SEAM 1 (planned)

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.

Page: Pre-release formats

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.

Page: Choosing a footer revision

Which posting revision a writer emits

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.

Page: Postings

Introduction of undated structures

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.

Page: pre-1

Decoder behaviour for MANIFEST tag 6

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.

Page: Tag 6: reserved

How a truncated bytes maximum is derived

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.

Page: Column stats

No separate timestamp scale codec

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.

Page: Scaled key fields (timestamp scale)