Skip to content

cache/node: advertise store-held PresentUnsized blobs using the store's own coverage #2869

Closed

Description

@yigitdot

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.

🤖 Generated with Claude Code

Activity

  1. added
    kind:feature
    area:cache
    area:node
    prio:low
    on Nov 11, 2026
  2. moved this from Backlog to In progress in deCDNon Nov 11, 2026
  3. yigitdot commented on Nov 13, 2026

    @yigitdot
    ContributorAuthor

    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.

  4. moved this from In progress to Done in deCDNon Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cachearea:nodekind:featureprio:low

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions