Repository navigation
cluster pull: a file that would stay held in part is refused, unless the caller allows unverified bytes - #3074
Merged
Merged
Conversation
Owner
Author
|
Review: ready to land after #3043, which it's stacked on. A pull that would leave a file held only in part is refused unless the caller allows unverified bytes, and the default is off. A pull that will end up whole still resumes. No shipped code calls the cluster loader yet, so nothing changes for users today. One thing for the next caller:
|
ashhart
marked this pull request as ready for review
November 12, 2026 23:26
ashhart
force-pushed
the
security/cluster-pull-hash
branch
from
November 13, 2026 00:03
a03f283 to
a5e95b0
Compare
…the caller allows unverified bytes The manifest's hash is of a whole file, so a copy held in part can never be checked against it. Such a copy was mapped anyway and its bytes only counted, and a later run that pulled nothing new mapped the same bytes and counted none. A load now refuses, before it asks a peer for a byte, any file with a manifest hash that would not end up whole. A caller that wants a sparse copy sets `unverified`, and every byte mapped from such a copy is counted, whenever it was pulled. No command passes a peer to the loader yet, so nothing that ships changes.
ashhart
force-pushed
the
security/cluster-pull-verified
branch
from
November 13, 2026 02:04
21c8653 to
8d66697
Compare
ashhart
added a commit
that referenced
this pull request
Nov 13, 2026
Figures and scope corrected to the PRs (#2948, #2863, #2934, #2933, #2921, #2906, #2878, #2892, #2851, #2728, #3072, #2915, #2864, #2854 and others), promises of later work removed (#2903, #2875, #1630, #1720), #3074 and #3047/#3046 said as their PRs scope them, the duplicate #2861, #2585, #2321 and #2719 entries and two copies of released 1.2.5 lines removed, #1953's line named for its PR, and a line for #3255. Released sections unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Before: the manifest's hash is of a whole file, so a copy held in part can never be checked against it. With #3043 such a copy was mapped and its bytes counted, but a later run that pulled nothing new mapped the same bytes and counted none. After: a load refuses, before it asks a peer for a byte, any file with a manifest hash that would not end up whole. A caller that wants a sparse copy sets
unverified, and every byte mapped from such a copy is counted, whenever it was pulled.SECURITY.mdasks for private reports, so there is no public issue.atc overlap --json: not run.Checks on this head
21c865344951c09b32d15813047bb62c9eb6968fpython3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.zig fmt --checkandgit diff --check: passzig build test-cluster-loader-host test-pull-host: 9/9 steps succeeded; 52/54 tests passed (2 skipped)zig build native: 66/66 steps succeededzig build test-golden test-server-security test-pull-security: 76/76 steps succeededsecurity: a file that would stay held in part is refused before a byte is pulled, unless that is allowedzig build testand every step that runs on a GPU were not run: this Mac's GPU was serving a model, and no CUDA, ROCm or Intel hardware was available.Receipt
n/a. This change cannot reach inference: it is the cluster's weight pull, and no command passes a peer to the loader yet, so nothing that ships changes.
Checklist
expected 4096, found 0).Notes for the reviewer
Suggested changelog line
Cluster: a pulled file that would stay held in part is refused unless unverified bytes are allowed by name, and such bytes are counted on every run.