ADR-0013 — Lifecycle on DeltaChannel threads keeps each chain
- Status: Accepted
- Date: 2026-11-12
- Supersedes: none
- Authors: project maintainers
Context
A DeltaChannel stores per-step updates as writes and a full snapshot every so often, so reading a
checkpoint's value walks back through ancestor checkpoints to the snapshot. Upstream's prune
refuses any thread that uses a DeltaChannel. Deleting an ancestor a kept checkpoint walks through
would silently lose state.
Decision
prune, thinning and delete_for_runs will keep each kept checkpoint's chain back to its
snapshot, and will never refuse a DeltaChannel thread.
Alternatives considered
- Refuse, as upstream does — rejected: retention would not work on the graphs that most need it.
- Rewrite a fresh snapshot at the cut — rejected: lifecycle operations never rewrite a stored value, and the saver cannot run reducers to build one.
Consequences
- On a
DeltaChannelthread an operation may keep more checkpoints than its policy names; the extra ones are the chain. - The closure rule is in architecture.md §7, and a property test
(
tests/integration/test_lifecycle_property.py) checks that every kept checkpoint reads back as before.
References
tests/integration/test_prune.py,tests/integration/test_delete_for_runs.py