| 1 | # celld-ltx |
| 2 | |
| 3 | celld's in-process SQLite-to-object-store replication engine. It reads each |
| 4 | cell's SQLite WAL, writes LTX files to a fleet bucket, restores a database from |
| 5 | that bucket, and — as it grows — exposes the replicated position so celld can |
| 6 | gate a write's response until it is durable. This is the foundation of celld's |
| 7 | durability goal: RPO=0 for every cell write, matching Durable Objects. |
| 8 | |
| 9 | ## Provenance and attribution |
| 10 | |
| 11 | Seeded on 2026-08-03 from a read-only snapshot of rustyriver |
| 12 | (https://github.com/mikenomitch/rustyriver), a from-scratch Rust |
| 13 | reimplementation of Litestream v0.5 and the LTX file format. celld owns and |
| 14 | evolves this snapshot as first-class celld source; it does not track an |
| 15 | upstream branch. |
| 16 | |
| 17 | Attribution for the vendored and ported work: |
| 18 | |
| 19 | - **rustyriver** — Copyright 2026 The rustyriver authors, licensed under the |
| 20 | Apache License, Version 2.0. |
| 21 | - **Litestream** (https://github.com/benbjohnson/litestream), pinned by celld |
| 22 | to tag v0.5.15 — Copyright (c) Ben Johnson and the Litestream authors, |
| 23 | licensed under the Apache License, Version 2.0. Replication behavior and test |
| 24 | vectors are ported for wire-compatible interoperability. |
| 25 | - **LTX file format and reference implementation** |
| 26 | (https://github.com/superfly/ltx), tag v0.5.1 — Copyright (c) Superfly, Inc., |
| 27 | licensed under the Apache License, Version 2.0. |
| 28 | |
| 29 | The full Apache License, Version 2.0 text is in [LICENSE](LICENSE). |
| 30 | |
| 31 | ## Tests |
| 32 | |
| 33 | The suite ports the upstream conformance vectors. `differential_xtool` checks |
| 34 | LTX read and write byte-for-byte against the real Litestream binary in three |
| 35 | directions; it self-skips when the binary is absent, so the fast CI stays green |
| 36 | while the release gate (which builds the pinned Litestream) runs the real |
| 37 | oracle. |