docs-internal/engine/sqlite-vfs.md
Rules for the SQLite VFS implementation.
engine/packages/depot-client/. Core owns lifecycle, and NAPI only marshals JS types.@rivetkit/rivetkit-napi, but runtime behavior stays in engine/packages/depot-client/ and rivetkit-core.engine/packages/depot-client/src/. When changing its on-disk or KV layout, update the internal data-channel spec in the same change.journal_mode = DELETE, locking_mode = EXCLUSIVE, auto_vacuum = NONE. Source: engine/packages/depot-client/src/vfs.rs.BTreeMap state under one write lock with entry(...).or_insert_with(...). Avoid read-then-write upgrade patterns.0x02 subspace prefix with big-endian numeric suffixes so scan_prefix and BTreeMap ordering stay numerically correct./STAGE keys or a fixed one-chunk-per-page mapping in tests or recovery code.