Skip to main content

Features

Generic history-sync admission policy (#1501) A new HistorySyncAdmission trait, re-exported from the crate root, gates inbound history-sync notifications before the client starts any history-sync activity. The policy receives a small HistorySyncMetadata view — sync type, chunk order, progress, sender-declared file length, inline payload length, and any peer-data-request session id — and returns Accept or RejectAndAcknowledge. A rejected notification sends a hist_sync receipt and is never enqueued. Register on either builder:
Leaving the policy unset keeps the default behavior at zero cost — the receive path only checks that the optional policy is None. The skip_history_sync toggle still takes precedence: when it is on, the client sends the receipt and never consults the policy. Device registration and require_full_sync are unchanged. See History Sync Admission Hook for the full contract, the metadata field reference, and worked examples.