Repository navigation
Description
Parent: #2050 (investigation: BitTorrent-style chunk retrieval for graph objects), epic #2056. Follow-up B of the #2050 investigation. Depends on the holder-discovery follow-up A (provider table) — a hand-fed provider list is acceptable for the PoC's benchmarks.
Problem
Retrieval in pkgs/id is single-source: src/commands/get.rs does one store.remote().fetch(conn, hash) over one connection. iroh-blobs (0.103, in Cargo.toml) already supports the swarm-shaped pieces — (hash, ChunkRanges) requests per provider, bao verified streaming (each 16 KiB chunk group verified against the blob's BLAKE3 root hash as it arrives, from any source, in any order), partial-blob state in FsStore, and providers reporting the exact missing location when they close a stream for data they lack. What does not exist is the scheduling policy that uses several holders at once.
Scope — PROOF OF CONCEPT (review-gated; do not build the permanent feature on it)
Implement the #2050 §5 retrieval flow as a PoC in the get path:
- Wanted-set = chunk-group ranges of the hash; assign ranges rarest-first across the provider set; disjoint ranges per holder; start with ≤4 concurrent sources.
- Verified groups persist to FsStore immediately (resume + become servable partial state). Bad group → discard, requeue range, deprioritise that holder for the hash. Missing-range stream close → shrink that holder's ranges, requeue elsewhere.
- Endgame: duplicate-request trailing in-flight ranges; first verified copy wins.
- Works in both discovery modes from id: investigate: BitTorrent-style chunk retrieval for graph objects #2050: observe-informed (held ranges known) and optimistic (observe off/refused — learn from missing-range reports).
- Nobody-home case surfaces distinctly ("0 holders for ranges X–Y", resumable from persisted partial state), never as a generic transfer failure.
Benchmarks required (n0 notes multiprovider single-blob download efficiency is still maturing upstream — measure, don't assume)
- 1 vs 2 vs 4 holders, complete holders; a partial-holder mix (e.g. two 50% holders with disjoint ranges); one holder leaving mid-transfer; observe-off mode.
- Report wall time + bytes duplicated vs the single-source baseline on the same blob sizes.
Acceptance criteria
- PoC branch/PR demonstrates a zero-local-copy fetch of a blob from ≥2 holders with per-range provenance logged.
- Benchmark table posted on this issue; failure/stall cases above behave as specified.
- The PR is explicitly a PoC: a review round decides what (if anything) becomes the permanent retrieval path. Nothing merges to main as "the feature" without that review (program rule from id: investigate: BitTorrent-style chunk retrieval for graph objects #2050 / Drew 2026-10-28).
Activity
developing-today commentedon Oct 29, 2026
CODE-1124
dezren39 commentedon Nov 1, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 1, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 1, 2026
🤖 Agent note · parked
pkgs/id/src/commands/get.rsis still single-source (verified at mainf1ddfb3d);iroh-blobs = "0.103"is inpkgs/id/Cargo.toml:56; follow-up A id: holder discovery for blob hashes — provider table, gossip announcements, wire the blob gate #2260 (holder discovery / provider table) is OPEN and actively claimed by another lane — the issue permits a hand-fed provider list for benchmarks, so id: holder discovery for blob hashes — provider table, gossip announcements, wire the blob gate #2260 is not a hard gate, but its holder-set API is the preferred feed and is in flight.queue/5810-2261-swarm-pocbehind the existing get path; (3) build the benchmark fixture (local multi-provider FsStore nodes) before the scheduler, so measurements exist from the first working fetch; (4) post the benchmark transcript on this issue and open the PoC PR as explicitly review-gated.194 remaining items
dezren39 commentedon Nov 26, 2026
Coverage triage — OpenChamber lane oc-code-05, 2026-11-26.
Verdict: not a small fix; return to real work. The core scheduler and fixture-simulated matrix are present via merged PR #10660, but #2261's acceptance remains incomplete: the live
id-cliget path has not demonstrated multi-holder retrieval with per-range provenance, and the live-holder benchmark matrix is still outstanding. The issue's recorded Adapt decision is respected: any continuation remains an experimental PoC and must not be merged/described as the permanent feature without the review round.The previous queue tasks for this issue (#5810 and #21503) are done, not live coverage. Fresh
fleet shell targetsreports laptop and Codespaces unreachable (Actions and local reachable); this is noted for the implementation task, not treated as a reason to leave the issue uncovered.Enqueued a distinct continuation task for the remaining PoC integration and live measurements. It requires fresh premise checks, isolated worktree, targeted tests and review-gated PR/evidence.
dezren39 commentedon Nov 26, 2026
Progress — Lane oc-code-07 (task 24313)
Experimental PoC only; Adapt boundary preserved. Default
getpath untouched; no merge.oc-code-07/2261-live-poc, commit70b28729219: doc-only clarification inpkgs/id/crates/id-core/src/swarm.rs. Pinnediroh-blobs 0.103.1finding:Remote::fetchis whole-hash only and cannot drive holder-specific assignments; viable primitive isRemote::execute_get(conn, GetRequest::blob_ranges(hash, ChunkRanges)), with chunk/group alignment 16 KiB. Open gap named: progress reports bytes, so completion/error toVerified/Missing/BadGrouptranslation (including missing-vs-failed) is still unwritten.Part of #2261, draft, base main). It does not close id: PoC — multi-provider chunk-range retrieval in the get path (swarm scheduler over iroh-blobs) #2261.cargo test --manifest-path pkgs/id/Cargo.toml -p id-core --test swarm_bench, handlefp_1f040fe2a4cf55418491ccbd9f772b19). Stillin_progressat this checkpoint; compilation otherwise unverified. Parent did not run a local build.id-corescheduler-to-fetch driver module; holder(name, Connection, HeldRanges)identity decision; two-holder loopback proof test; opt-ingetwiring plusProviderTableinput; then live benchmark matrix. Parking this claim with those resume points; not awaiting a person.developing-today-fleet commentedon Nov 28, 2026
Re-check (code-f, task 24313): PR #15735 still OPEN on branch
oc-code-07/2261-live-poc(single commit 70b2872, no activity since 2026-11-26T22:02Z); #2261 still OPEN. Owning lane oc-code-07 still holds the branch — per one-writer rule, no second writer. Re-parked deferred-to-owning-lane; resume when #15735 merges/closes or the branch is released.developing-today-fleet commentedon Nov 28, 2026
Second-pass re-check (~00:57Z): owning lane still holds the branch — parking with a time-based resume, no second writer.
Fresh verification:
oc-code-07/2261-live-poc, sole commit, untouched since 2026-11-26T22:02Z.Per the one-writer rule the slice stays with oc-code-07. Parking task 24313 with
not_before2026-11-28T02:00Z for the next re-check; resume condition is time, not a person.PoC #2261: scheduler fetch driver + live two-holder loopback proof (o…
developing-today-fleet commentedon Nov 28, 2026
oc-code-06 PoC slice landed as draft #16409 (own branch
oc-code-06/2261-live-poc; oc-code-07's branch untouched; defaultgetpath untouched; review-gated, do not merge as the feature).What it proves (live loopback, real
Remote::execute_get+ChunkRanges, 8 groups = 128 KiB):duplicated_bytes=0, provenance names both holders, bytes match.waves=1, provenance names both).Scheduler fix in slice:
Missingon aCompleteholder downgrades to explicit ranges (a deadCompleteholder was otherwise retried forever);Unknownloses score. Prior stalled form of the leaving test hit 3x20s timeouts (60s wall); restructured to kill between waves so endgame is exercised and the suite runs in <1s.dezren39 commentedon Nov 28, 2026
Lane 1322-D triage disposition (queue task 24320, delta PRESS run 2026-11-28) — remainder in flight under owning lanes; no second writer.
Premise + ownership check, fresh firsthand this lane (gh CLI only, issue + all 62 comments read):
pkgs/id/crates/id-core/src/swarm.rs). The recorded decision (2026-11-24) is Adapt: the scheduler stays an explicitly experimental PoC; nothing merges as the permanent retrieval feature without the review round.oc-code-07/2261-live-poc, OPEN draft, untouched since 2026-11-26T22:03Z) and draft PR PoC #2261 (oc-code-06 slice): scheduler fetch driver + live two-holder loopback #16409 (lane oc-code-06, branchoc-code-06/2261-live-poc, OPEN draft, landed 2026-11-28T03:03Z with live two-holder loopback results posted on this issue at 03:04Z), both under continuation task 24313 whose lanes re-parked today deferring to the owning lanes (one-writer rule).Disposition: queue task 24320 parked. Ready condition (non-person): PR #16409 or PR #15735 merges or closes — then re-triage the remainder against the issue's acceptance criteria (benchmark table posted + review-round decision recorded).
dezren39 commentedon Nov 28, 2026
Lane 1422-F (delta PRESS 2026-11-28) concurs with lane 1322-D's disposition (comment 7244584679) after independent firsthand re-check: issue + all 63 comments read; draft PR #16409 and draft PR #15735 both still OPEN drafts / CLEAN / MERGEABLE, owned by oc-code-06/07, review-gated. Queue task 24320 re-parked with non-person wake: PR #16409 or #15735 merges or closes → re-triage remainder.
dezren39 commentedon Nov 29, 2026
🤖 Agent note · census 2026-11-29 (lane CEN-C03)
Census verified: status/in-progress is accurate; scope and PoC guardrails are fully specified (review-gated, do not build the permanent feature on it). Blocker: none — a hand-fed provider list is acceptable for the PoC per the body. Labels: added priority/normal (none existed).
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): full re-read (body, labels, all comments, native edges) in the CODE-6 recovery pass.
STRENGTHS: complete decision record (PoC landed review-gated via PR #10660; draft PRs #16409/#15735 carry the review surface); criteria 1-2 verified met in-thread.
GAPS: none material for pickup.
FIXES I APPLIED: none needed — priority/normal was added by the parallel census pass today; status labels are accurate.
REMAINS: criterion 3 is Drewry's Adopt / Drop / Adapt call on the swarm substrate — FOR DREWRY. It also gates #2262's remainder.
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Wave-2 census pass (group code-01409-03205): rechecked live state, body, labels and recent comments firsthand via
fleet ghimmediately before editing.Strengths: detailed body (2631 chars) with context a picker-up can start from; acceptance criteria present in the body; single taxonomy priority band (priority/normal) — verified against live labels.
Gaps found: none material.
Actions taken this pass: labels: +['kind/enhancement'] -[].
Priority: priority/normal — checked against content, unchanged (no reprioritization). No closing keywords used; issue left open.