The on-disk format, structurally close to the in-memory CSR layout so a reload is nearly a read.
Done when
- Versioned header. A file stamped with a newer version is refused, loudly — never read optimistically.
- Checksums over the arrays, verified on load. Corruption fails to open and names the offset.
- Atomic replacement: write beside, fsync, rename. A file is the old state or the new state, never a third thing.
- Round-trip property test: save/load preserves every node, edge, property and id.
Constraint
The layout is a one-way door the moment anything outside a test writes a file. It is the reason this issue exists before any consumer stores anything.
Reference
docs/graph-lite/persistence.md
The on-disk format, structurally close to the in-memory CSR layout so a reload is nearly a read.
Done when
Constraint
The layout is a one-way door the moment anything outside a test writes a file. It is the reason this issue exists before any consumer stores anything.
Reference
docs/graph-lite/persistence.md