ADR-0010 — Disk needed by rehydrate
- Status: Accepted
- Date: 2026-11-12
- Supersedes: none
- Authors: project maintainers
Context
rehydrate rewrites every patch and saver-compressed copy as a plain upstream row
(compatibility.md). Plain rows are what patching saves space against, so a
rollback grows the database. On the 400-step benchmark graph it may need up to about 7× the disk
(measured before public release).
Decision
We will give rehydrate a dry run that reports the space it will need, and rehearse a rollback in
CI. It will not stop itself at a disk limit.
Alternatives considered
- A disk-limit stop inside
rehydrate— rejected: the right limit depends on the server's free space and other tenants, which the saver cannot see; the dry run gives the operator the number to decide with.
Consequences
- An operator checks the dry run's figure against free space before running the rewrite.
tests/integration/test_rehydrate.pycarries the rehearsal: real graph threads with patches, rewritten, then read back by upstream's saver.