- worker maintenance job (hourly, batch of 3 tasks/tick): terminal-only
(accepted/rejected) tasks keep the newest K=2 materialized generations,
older generation directories are reclaimed from disk
- ownership filter by artifact ID marker prevents cross-task deletion;
path traversal rejected at identifier level (Join-cleaning-proof) plus
reconstructed-path prefix containment
- source video artifacts, rework baselines (embedded data), and formal
records are never touched; artifact records stay as tombstones per
spec §7 graceful-degradation semantics; rescans are idempotent no-ops
- tests: K=2 retention + source/other-task isolation, non-terminal and
shallow-history skips, traversal rejection - all green