Golden fixtures — provenance (IMMUTABLE)
Captured from the real upstream tooling. Do not edit or regenerate these fixtures from celld-ltx. A mismatch means the implementation is wrong.
| Source tool | Version | Provenance |
|---|---|---|
litestream | built from tag v0.5.11 (commit 016c3687…) | reference/litestream-go |
sqlite3 | 3.51.0 | system |
Files
replica/— a full file-replica tree produced bylitestream replicate -once(deterministic, no background timing). Layout:ltx/<level>/<minTXID>-<maxTXID>.ltx. Contents are L0-only (level0): a snapshot at TXID 1 plus 5 single-txn L0 files (TXIDs 2–6). The real binary restores this tree and the result equals the source under the logical equality oracle.- SQL sequence:
PRAGMA journal_mode=WAL;CREATE TABLE kv(k TEXT PRIMARY KEY, v TEXT NOT NULL); seed('a','1'),('b','2'),('c','3'); then 5 iterations eachINSERT ('k$i','v$i')+UPDATE kv SET v='upd$i' WHERE k='a', each flushed withreplicate -once.
- SQL sequence:
sample.wal— a raw SQLite WAL file (16,512 bytes) for thewal.rsparser (T1). Produced by sqlite3 3.51.0 in WAL mode withwal_autocheckpoint=0, 20 inserts + an update across 2 commits, copied while a second connection held a read transaction (so the close-time checkpoint could not truncate it). Header magic0x377f0682(big-endian salt variant), page size 4096.
How celld-ltx uses these
Reader tests decode these bytes and assert structural fields (TXIDs, page numbers, checksums, frame counts). Writer byte-fidelity is not asserted by comparison against these files because LTX headers embed timestamps and are not bit-reproducible. Differential test D1 proves it against the real binary.
Reproduce
scripts/capture-golden.sh regenerates an equivalent tree from a litestream
binary built at tag v0.5.11. The bytes are not identical run-to-run (timestamps),
but the structure and the round-trip property are.