Skip to content

ADR 039: rewrite leaner as the single multi-source home, then implement the scheduler #1164

Closed

Description

@alpergundogdu

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.

Activity

  1. added
    design:adr
    prio:high
    rust
    on Jul 15, 2026
  2. altanoruc commented on Jul 20, 2026

    @altanoruc
    Contributor

    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.

  3. thiras commented on Aug 1, 2026

    @thiras
    Contributor

    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.

  4. alpergundogdu commented on Aug 5, 2026

    @alpergundogdu
    ContributorAuthor

    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.

  5. self-assigned this
    on Aug 5, 2026
  6. alpergundogdu commented on Aug 12, 2026

    @alpergundogdu
    ContributorAuthor

    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.

  7. removed their assignment
    on Aug 18, 2026
  8. moved this from Backlog to In progress in deCDNon Aug 20, 2026
  9. moved this from In progress to Done in deCDNon Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:adrprio:highrust

Type

No type

Fields

Priority

Medium

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions