You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cache/node: advertise store-held PresentUnsized blobs using the store's own coverage #2869
Follow-up from the #2867 review (origin probe tri-state, #2827).
Advertise store-held PresentUnsized blobs using the store's own coverage
The remaining #2827 harm: on an origin-only node, a compressed-origin blob that is FULLY present in the local store is still neither announced (the republish walk skips PresentUnsized) nor shown in probe answers (origin_probe_size folds it to None), even though the store itself knows the blob's exact length and could sign has_blob coverage from its own bytes.
The skip is deliberate today: origin-sourced probe coverage needs a size to sign, and announcing what the probe handler cannot confirm is an "announced but probe-denied" reputation cost (documented at the walk in crates/node/src/dht/publish.rs and in resolve_candidates in crates/cache/src/engine.rs). But when the store holds the complete blob, the probe handler's store-backed branch can confirm it — only the origin-only announce gating routes around the store.
Touches the probe handler's origin-only branch (crates/node/src/handlers/probe.rs), holder_snapshot (crates/node/src/dht/publish.rs), and the announce gating; needs a design pass on the reputation trade-offs before implementation.
Implemented by #2885: PresentUnsized is deleted, and the republish walk announces from coverage_sized (node/src/dht/publish.rs fetch_coverage), which derives coverage and size from the store's own bitfield, gated on a size proof the cache builds from the local store's last chunk group. A fully store-held blob is therefore announced and probe-answerable from its own bytes, which is what this issue asked for.
Activity
fix(cache): size unsized holds from the store and re-probe degraded o…
yigitdot commentedon Nov 13, 2026
Implemented by #2885: PresentUnsized is deleted, and the republish walk announces from coverage_sized (node/src/dht/publish.rs fetch_coverage), which derives coverage and size from the store's own bitfield, gated on a size proof the cache builds from the local store's last chunk group. A fully store-held blob is therefore announced and probe-answerable from its own bytes, which is what this issue asked for.