Status: Accepted (2026-11-27). Narrow exception to the table ownership in 0021 (compactor owns page_snapshots).
api.md requires file creation to insert an empty canonical snapshot. If a page could exist without a snapshot, the realtime index load, doc workers, the compactor and the snapshot route would each need a “no snapshot” special case.
page_snapshots row: seq 0, format 1, codec gzip, DOC_RULES_VERSION, node_count 1, sizes, sha256 content hash, blob_key NULL;page_snapshot_chunks rows: the gzip snapshot (part 0) and the structure section (part 1), about 40 bytes each.The bytes come from @linorahq/doc/empty (emptyPageSnapshot(), emptyPageStructure()), computed and gzipped once at startup.
Every live page always has a loadable snapshot, byte-identical to createDoc().encodeSnapshot() of an empty page (WP-A tests that equality).