ADR-0012 — delete_for_runs is not an erasure guarantee
- Status: Accepted
- Date: 2026-11-12
- Supersedes: none
- Authors: project maintainers
Context
delete_for_runs deletes the checkpoints of the named runs. With patches, a value a deleted run
wrote may be the base of a patch a kept checkpoint names, and on a DeltaChannel thread a kept
checkpoint's history walks through earlier checkpoints, which may belong to a deleted run
(architecture.md §7).
Decision
We will not guarantee erasure. A deleted run's full copy stays while a kept patch rests on it, and
so does any checkpoint a kept checkpoint's DeltaChannel history walks through. The method's
documentation says so.
Alternatives considered
- Rewrite dependent patches as full copies before deleting — rejected: lifecycle operations touch SQL only and never rewrite a stored value, which keeps them cheap and safe to retry.
- Refuse when a dependency exists — rejected: callers would see failures for an ordinary retention call.
Consequences
- An application that needs erasure (for example, a legal deletion request) deletes the thread.
delete_for_runslogs how many checkpoints matched and how many it deleted.
References
tests/integration/test_delete_for_runs.py