Skip to content

ADR-0037 — Patch storage is on by default; rollback is a command

  • Status: Accepted
  • Date: 2026-11-12
  • Supersedes: none
  • Authors: project maintainers

Context

The project's reason to exist is a measurable improvement over upstream. Of the three levers measured, compression in the serde (18 % smaller), upstream's DeltaChannel (needs a graph change) and patch storage (5.4–7.4× smaller on 400-step threads), only patch storage is both large and automatic (measured before public release; architecture.md §1). An earlier working rule was that rolling back should only be an import change, which a saver that writes patches cannot meet.

Decision

Patch storage is on by default. Two-way compatibility with upstream is given up; rolling back is the rehydrate command, not an import change.

Alternatives considered

  • Patches opt-in — rejected: most users would never get the saving that is the project's point.
  • Keep two-way compatibility (rows upstream reads, plus compression) — rejected: it ties upstream on disk by construction, or weakens rollback anyway when compression is in the serde.

Consequences

  • Upstream must not be used on a thread this saver has written, and must fail loudly if it is (compatibility.md).
  • Adopters who deploy replica by replica start in full-copies mode (ADR-0009).

References