Repository navigation
Description
The problem is supply concentration, not discovery for its own sake. A wide client fan-out (#1164, ADR 039) parallelizes the client's last hop but not its supply: every leg's upstream still converges on the couple of nodes that hold the whole blob. Fan-out width ≠ supply width. Nodes already cache and serve verified byte ranges — partial blobs via import_bao_bytes / export_ranges (ADR 037/038) — and proxy warming (#1174) manufactures partial holders as a side effect of normal fetches. But a partial holder only advertises on BlobStatus::Complete (crates/cache/src/engine.rs:300, :1055), so that accumulated supply is dark: undiscoverable, unpaid, and unable to relieve the full holders.
Goal: make the partial-holder population the serving supply. With partials discoverable, disjoint ranges source from many holders instead of funneling through the full-holder set — so both serve load and serve revenue distribute across the population. Distributed revenue is the point, not a side effect: it turns cache-and-hold-a-range into a paying tier, which strengthens the incentive to retain partials, which feeds more supply. That loop — not the one-time load relief — is the payoff.
Mechanism — split discovery by volatility:
- (a) Relax the advertise gate: provide
Hon any verified partial, not onlyComplete. - (b) Extend the probe from a
has_blobbool to a coarse coverage bitmap at a discovery-block granularity (e.g. 64 MiB), decoupled from the 16 KiB verification granularity. iroh-blobs already tracks the partial bitfield, so the answer is derivable and always fresh (pull, not stale push). Granularity is a real knob: coarse enough to stay cheap on the probe, fine enough to expose genuine disjointness — too coarse and "partial holder" collapses toward "has-something", losing the disjoint assignment that makes the spread real. - (c) Client range scheduler: assign disjoint ranges to candidates, verify each via
bao-range, stitch; fall back to origin only for genuine gaps. This is the ADR 039: rewrite leaner as the single multi-source home, then implement the scheduler #1164 scheduler consuming the wider candidate set — not new machinery of its own.
Free (already built): range verification (obao4), per-byte voucher payment, partial cache+serve. New work is the advertise-gate relax + probe coverage + scheduler admission. Single hash throughout — no new manifest, no derived blobs, no channel change. Node pulls stay single-leg and demand-driven; the partitioning intelligence is client-side, so nothing here parallel-pulls at the node.
Payoff is supply-gated, so this is post-v0.1. The distribution win only materializes once hot blobs have accumulated a diverse partial-holder population (holders covering different ranges) and full-holder upstream is the measured bottleneck — not the client's last hop. Concrete trigger to pull it in: measured upstream concentration on full holders under load, not "multi-source shipped." Full-holder multi-source (#1164) needs none of this and ships without it.
Related: #1164 (ADR 039 multi-source scheduler) is what consumes the wider supply. Builds on ADR 038 (obao4) and ADR 037 (partial range pull).
Supersession context: filed alongside the DECDNMAN retirement (#1505) — this is the "do it properly over obao4" path referenced there.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
alpergundogdu commentedon Aug 3, 2026
This is only an improvement after the scheduler is implemented, so it's blocked on multi-source pull scheduler
#1164
PS: Noticed this can still be an improvement even without the parallel pull scheduler, as-in, if a node is holding half the data, then it would only need to fetch the second half from the origin, and deliver the first half node-to-node. Although this still needs some work and investigation, so keeping it blocked.
[-]Proposal: range-keyed discovery over obao4 (make partial holders discoverable)[/-][+]Proposal: distribute serve load + revenue across partial holders (range-keyed discovery over obao4)[/+]12 remaining items
fix(node): inject a shared pool into the ranged-drive loop so runs sh…
fix(node): size partial-serve from the bitfield so advertised blocks …
fix(client-pull,node): clamp planned runs to the request/gap and coal…
fix(node): union-aware probe gather, no-progress + cancel + reassign-…
test(node,client-pull): two-holder ranged-assembly loopback and Work:…
docs(node,client-pull): present-tense canon sweep on the ranged-assem…
perf(client-pull): precompute rank positions in spread_segments assig…
feat: range-keyed partial-holder discovery — consumers (#1506 PR2) (#…
feat(client-pull): thread per-candidate coverage into the consumption…
feat(client-pull): add Downloader and Streamer consumption faces over…
feat(cli): route decdn fetch and bundle pull onto the consumption fac…
docs: replace planning labels in comments with plain descriptions (#2126