Skip to content

cli: follow-ups to the bundle pull hardening (#2122) #2123

Closed

Description

@thiras

Follow-ups #2122 leaves out on purpose.

🤖 Generated with Claude Code

Activity

  1. added
    kind:feature
    area:cli
    on Sep 22, 2026
  2. thiras commented on Sep 24, 2026

    @thiras
    ContributorAuthor

    The two priming bullets are implemented in #2138, which is still pending review and merge:

    • Prime the multi-source probe: when the size is known before the first open (the bundle manifest's size, else the probe hint), the CLI opens the face's first unit and the scheduler's first-unit hook (SourceLane::first_unit) reserves it for the answering lane, which adopts the pull.
    • Prime the node's upstream handshake: handshake_total_bytes opens the pull leg's predicted first leg from the probe's size hint, and the first run adopts it (PrimeKey::answers). The buffered pull_from_candidate adopts its whole-blob handshake.

    With no size, or a wrong one, both fall back to the whole-blob open.

    The other four bullets are still open: stripe a range set across providers, a multi-range request, deferring boundary groups, and the entry floor on the multi-source path.

  3. thiras commented on Sep 24, 2026

    @thiras
    ContributorAuthor

    All six bullets are resolved:

    Bullet Resolution
    Prime the multi-source probe #2138
    Prime the node's upstream handshake #2138
    Stripe a range set across providers (#2119 B) #2143
    Entry floor on the multi-source path #2141
    One request, many ranges (#2119 C) Not doing — see below
    Defer boundary groups to the sibling (#2119 D) Already done by #2124, where a sibling can supply the group

    C (a range-list StreamRequest) stays out. The ~1,300 serial 16 KiB legs from #2119 are gone, and the fix is on the client side:

    Tempo for 02bd48… (original/model.safetensors) after #2124 (2026-09-23 19:12–20:21 UTC) shows about 20 serve_stream legs of 0.6–45 MB each, lasting 1.5–156 s, all completed. The same entry took about 700 streams across bcl, fra1 and lon1 in the 13:35–14:15 UTC run. A range list would save one stream open, one signed response and one residual voucher per leg. At this leg count and size, that overhead is noise. It would cost a wire change plus multi-range support through the node's miss path (claim_fill, FillSession, serve_leg, content_paid_frontier) and the client's AlignedRange, BlobSource::open and PrimedSource. Reopen only with a trace where per-stream overhead dominates wall-clock time.

    D is covered where it can apply. #2124 makes a seam between two spliced chunks free by splicing it from both sides (adr/appendix-bundles.md). The group left at the edge of a driven chunk can't come from a sibling:

    • Part of that group is the driven chunk's own bytes.
    • A driven chunk is either unique or assigned to this entry as its smallest holder, so no sibling fetches it.
    • align_range serves only whole groups.

    That edge group already travels in the same complement gap as its chunk, so it is not a separate leg.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clikind:feature

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions