Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Concepts

  • Commit: one recorded world state, identified by a content-addressed Blake3 hash over its parents, creation time, and delta (log shows them oldest first, using the store’s local record order). Commits store only fresh rows; reads resolve effective state through fallback, so metadata grows with changes, not with universe size. Recording the same commit twice is idempotent.
  • Ref: a named, movable pointer to a commit - sekai’s branch. One ref is active, and new commits hang from it.
  • Chunk hash (CAS key): the normalized digest of a decompressed chunk, over a canonical encoding with volatile tags such as LastUpdate excluded. It is independent of the order of the chunk’s top-level keys and of the compression codec; keys sekai does not read never affect it. entities/poi payloads have no level-chunk schema, so they key on their exact bytes. Identical content shares one stored copy across all commits; checkout restores the captured bytes verbatim, rewinding volatile tags to capture time.
  • No separate diff hash: diff compares the very same digest recorded at commit time, read straight from history. Only well-formed NBT is a chunk: a region/ payload must decode as a level chunk, and an entities/poi payload must be well-formed NBT. A payload that cannot be normalized gets no key and fails ingest instead of being stored under a byte-level identity.
  • Tombstone: an explicit “chunk absent” row. A chunk deleted between commits is recorded as a tombstone, not as silence — this is what lets checkout delete it again faithfully.
  • No derived state table: region fingerprints are not persisted. Every commit rereads in-scope files and writes rows only for chunks whose blob changed. The region-image cache is derived state outside the metadata schema: wiping it costs performance only, never history correctness. See Cache.

The authoritative definitions are in ARCHITECTURE.md (“Data & Hashing Model” and “History and State Model”).