apply Retention
Apply retention policy to delete old events.
Deletes the longest chain prefix whose events are all older than the cutoff, and records the last deleted seq and hash as the prune point in the same transaction. An event older than the cutoff that follows a newer one (backward clock step) waits until its predecessors expire. Rows are never deleted early, but a row written while the clock ran ahead blocks every later prune until the cutoff passes that row's timestamp, so data minimization depends on a sane device clock.