Pure local peer measurement algorithms.
This crate models two independent local relations:
- [
CreditRecord] records useful bytes exchanged with an authenticated peer and computes an aMule-compatible [CreditScore]. - [
ReliabilityWindow] records recent logical transport outcomes and derives a [ReliabilityClass] used only for advisory ordering.
Time, storage, networking, tasks, locks, and process lifecycle are effects.
Callers pass timestamps and explicitly attributable events into the pure
[MeasurementLedger] transition and persist [MeasurementSnapshot] values
outside this crate.