docs-internal/engine/sqlite/vfs-brief.md
This page is intentionally brief. Full VFS rules live in ../sqlite-vfs.md, and the storage backend crash course lives in ../depot.md.
The VFS presents SQLite page reads and commits to the storage conveyer. It does not own PITR, fork metadata, or FDB compaction/reclaim. Those are storage-layer responsibilities under engine/packages/depot/.
For page reads, the VFS asks storage for pages by database id and generation. Storage:
The VFS should treat missing pages above EOF differently from storage misses below EOF.
For commits, the VFS passes dirty pages to storage. Storage encodes the pages into LTX chunks, writes DELTA/PIDX rows, updates COMMITS and VTX, and advances META/head in one FDB transaction.
The VFS does not write local SQLite database files. Local files would break the stateless storage invariant and bypass the branch machinery.
engine/packages/depot-client/src/