Expand description
Post-cycle responsibility pruning (Section 11).
On NeighborSyncCycleComplete: prune stored records and PaidForList
entries that have been continuously out of range for at least
PRUNE_HYSTERESIS_DURATION.
§Stored-record prune lifecycle
Each stored record is classified per pass against the current local routing table:
InRange: self is within the storage-retention width (close_group_size + STORAGE_ADMISSION_MARGIN, 9 at production parameters); any out-of-range state is cleared.HysteresisPending: outside the retention width, but not yet for the fullPRUNE_HYSTERESIS_DURATION. The first-seen timestamp is recorded immediately on leaving range — a retained commitment vetoes DELETION, never the start of this clock. The timestamp is process-local and is not persisted across restarts.Candidate: continuously outside the retention width for the full hysteresis. Candidacy is unconditional: it never depends on repair-hint proofs, bootstrap state, audit budget, or prior neighbor-sync contact.HeldByCommitment/BootstrapDeferred/Unauditable: candidate deferrals. They defer deletion, but never remove candidacy or restart the hysteresis clock. The request/candidate budget is a separate, later deferral applied after classification (not a disposition variant) so whole proof sets are either scheduled or deferred as a unit.FastDelete: after hysteresis, a complete self-inclusive width-20 lookup that excludes self permits deletion without a remote audit.AuditFailed: an audited candidate whose current strict close group returned fewer than the required positive possession proofs (prune_proofs_needed, 6 of 7 at production parameters). The record and its first-seen timestamp are retained and retried on later passes.Pruned: deleted after immediately re-passing the applicable checks against the then-current routing table.
Prune-confirmation audits challenge the CURRENT strict closest
close_group_size peers to the key, taken directly from the local
routing table — never filtered through RepairProofs or prior
neighbor-sync hints. The repair-proof maturity gate remains a
prerequisite for the responsible-chunk storage audit (see
audit_tick_with_repair_proofs), which is a different mechanism with a
different threat model.
Structs§
- Prune
Pass Context - Shared dependencies and switches for one prune pass.
- Prune
Result - Summary of a prune pass.
Functions§
- run_
prune_ pass_ with_ context - Execute one prune pass (see the module docs for the record lifecycle).