Skip to content

Compatibility rules

Applies to SEAM 1

These six rules govern every store. They are the rules the format has followed since its first stamp, and SEAM 1 readers and writers implement them.

  1. All earlier formats stay readable. Readers keep every older variant of every structure. No artifact is ever reinterpreted. This is why the pre-release layouts are still accepted.
  2. Refuse newer, before writing. A store whose store_format exceeds what the build supports fails at open with NewerFormat, and the directory is left byte-identical (SPEC V456). Any artifact revision above the build’s maximum is also NewerFormat (SPEC V457). Versions below the minimum, or bad magic, are Corrupt. See Error classes.
  3. No downgrade. The first open by a newer build rewrites the MANIFEST and stamps it, so an older build then refuses the store. See Rewrite and format stamp.
  4. Every artifact revision bump raises the store stamp and adds a golden fixture directory (SPEC V455), with one exception: the self-describing footer additions, which are footer revisions 4 and 5 and stats revision 2. Those were added without a bump, so builds that predate them report NewerFormat("sst footer") or NewerFormat("block stats") when they meet one.
  5. Logical encodings evolve additively. Row values, catalog extension tags, WAL auxiliary kinds, blob metadata, postings, and RESP and materialized-view keys change by adding a version byte, a tag or a kind. They are never migrated (SPEC V461). See Extension tags and Auxiliary record.
  6. A file’s stamp is the minimum of its sources. The per-file stamp is the lower of the writer’s current stamp and the stamps of every file whose blocks were copied verbatim; flush, compaction and rewrite outputs carry the writer’s stamp (SPEC V458). See Per-file stamp.
Structure Readable by
Anything written under a stamp up to the build’s own The build, via the older decoder
A store stamped newer than the build Nobody older: the open fails with NewerFormat
Footer revisions 4 and 5, stats revision 2 Builds that include them. Older builds fail with NewerFormat("sst footer") or NewerFormat("block stats").
Derived caches Not versioned: an unknown magic or unreadable file is ignored and rebuilt, never migrated (SPEC V454)