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
client-pull does not distinguish NotFound from InternalError, so the serve path's reason codes are inert #1144
#1129 made the serve path report InternalError ("do not retry this node") rather than NotFound ("node lacks the blob") when a node is degraded by an origin/store fault. That distinction is currently inert on the requester side: nothing consumes it.
crates/client-pull/src/lib.rs bails identically on every refusal, in both the buffered and progressive paths:
if !resp.body.ok{
anyhow::bail!("delivery refused: {:?}", resp.error);}
The StreamError variant is formatted into a string and discarded — no typed sentinel, no branch.
NodeOrigin::classify_pull_failure therefore cannot see it either: any refusal that is not one of the typed sentinels (BlobTooLargeClaim, PullTimeout, UpstreamVoucherRejected, HashMismatch) falls through to Outcome::Unreachable → local EWMA hit + gossiped observation.
Note this also means a pre-existing comment on ServeRejectReason::wire_error is inaccurate — it claims NotFound is kept "reputation-benign" because "the requester folds a node fault into the node's score". The requester does no such discrimination today. That comment should be corrected or made true.
Suggested work
Introduce a typed sentinel for a refusal carrying its StreamError (mirroring BlobTooLargeClaim), so classify_pull_failure can downcast_ref it.
Exonerate a wire NotFound refusal (a reachable, honest, empty provider is not Unreachable) — it should at most be a negative-availability signal, not a reputation hit.
Let InternalError deprioritise/skip the candidate.
Activity
test(node): guard the fixes — 3 of 4 were passing on reverted behavior
fix: address the second multi-agent review of #1145
fix(node): a cancelled pull lost the money it had already spent (#1145 …
fix: bound the requester's fetch loop, and classify what comes back (#…