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
ADR 039: rewrite leaner as the single multi-source home, then implement the scheduler #1164
Disposition: SIMPLIFY spec + IMPLEMENT. Keeping this — large blobs are the first wedge (AI-model delivery).
ADR 039's multi-source scheduler (work-unit partitioning, dynamic assignment, per-unit hash verification, re-dispatch, endgame hedging) and set-valued selection are unimplemented; all fetch paths are single-source (crates/client-pull/src/lib.rs:315, discovery.rs:146).
Action: (1) rewrite adr/039-multi-source-parallel-fetch.md in a simpler form and fold in the set-valued selection (ADR 001 becomes set-valued up to max_sources); (2) implement the scheduler and diversity-aware candidate admission.
Filed from the ADR→implementation gap analysis. ADR edits must be made in place with no historical/tombstone text (no "planned but cut" sentences) per repo ADR convention.
Automated triage note for a later run: rewrite leaner is an architecture instruction, not a pinned result. Please land or state the exact present-tense ADR 039 scheduler semantics first, including work-unit sizing, source count/admission, reassignment, and hedging parameters, then split implementation into bounded issues.
Audit note (2026-08-01, HEAD b2a9651): the rewrite half is substantially done — ed1e32f condensed ADR 039 to STE100, 9563458 removed the endgame hedging, and the ADR now states set-valued selection ("selection becomes set-valued … up to max_sources", adr/039-multi-source-parallel-fetch.md:25,109). Still open on that half: status is "Draft" and the defaults are marked "modeled before locking" (:79).
The implementation half is untouched: zero hits for multi_source / max_sources / a scheduler in crates/client-pull; every fetch path is single-source.
Context: this (B) now depends on the range-minimized fetch foundation (#1621). B reuses that design's RangedStore / Source / Pacer and swaps the driver's sequential per-gap loop for a parallel piece-picker over multiple sources — nothing below the loop changes. The client's order-free gap-set (vs the node's window-paced forward walk) is what parallelizes cleanly, which is why A lands first and B is the scheduler on top.
Correction to an earlier note here: #1658 (un-saturate/tune the speed component of reputation) is related/complementary, not a prerequisite for this issue. The multi-source scheduler here measures each source's delivery rate live during the fetch, so it does not consume a persisted throughput prior from #1658. #1658 stands on its own as a single-source selection improvement.
Activity
altanoruc commentedon Jul 20, 2026
Automated triage note for a later run: rewrite leaner is an architecture instruction, not a pinned result. Please land or state the exact present-tense ADR 039 scheduler semantics first, including work-unit sizing, source count/admission, reassignment, and hedging parameters, then split implementation into bounded issues.
thiras commentedon Aug 1, 2026
Audit note (2026-08-01, HEAD b2a9651): the rewrite half is substantially done — ed1e32f condensed ADR 039 to STE100, 9563458 removed the endgame hedging, and the ADR now states set-valued selection ("selection becomes set-valued … up to
max_sources",adr/039-multi-source-parallel-fetch.md:25,109). Still open on that half: status is "Draft" and the defaults are marked "modeled before locking" (:79).The implementation half is untouched: zero hits for
multi_source/max_sources/ a scheduler incrates/client-pull; every fetch path is single-source.alpergundogdu commentedon Aug 5, 2026
Context: this (B) now depends on the range-minimized fetch foundation (#1621). B reuses that design's
RangedStore/Source/Pacerand swaps the driver's sequential per-gap loop for a parallel piece-picker over multiple sources — nothing below the loop changes. The client's order-free gap-set (vs the node's window-paced forward walk) is what parallelizes cleanly, which is why A lands first and B is the scheduler on top.alpergundogdu commentedon Aug 12, 2026
Correction to an earlier note here: #1658 (un-saturate/tune the speed component of reputation) is related/complementary, not a prerequisite for this issue. The multi-source scheduler here measures each source's delivery rate live during the fetch, so it does not consume a persisted throughput prior from #1658. #1658 stands on its own as a single-source selection improvement.
feat(client-pull,cli): multi-source parallel fetch scheduler (ADR 039, …