Repository navigation
cluster: a node takes only the nodes its file names and believes a node only about itself - #3039
Merged
Merged
Conversation
Owner
Author
|
Review: ready, with one fix pushed (3eb17c4).
Legitimate cluster files still work. The roster matches every valid full-mesh file of up to 16 ranks, and a wrong peer is refused by name. The one behaviour change is intended: a closed cluster drops relays and news about third nodes, so two nodes whose own link fails lose each other within about 3 s.
|
ashhart
marked this pull request as ready for review
November 12, 2026 17:33
…de only about itself A host at the far end of a link could add members, choose the leader, say another node's goodbye and replace its plan. On a real host a node now holds a roster from the cluster file, counts a message only from the node the file puts on that link, and takes a node's word only about itself. Incarnation and epoch arithmetic saturates.
… lists test-cluster-membership-host was in no CI list, so its new tests never ran.
ashhart
force-pushed
the
security/cluster-roster
branch
from
November 13, 2026 00:05
3eb17c4 to
1114afe
Compare
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: a host at the far end of one cluster link could add members, name the leader, say another node's goodbye and replace its plan, and a dead claim at the highest incarnation overflowed in the node it named. After: on a real host a node holds a roster from the cluster file, counts a message only from the node the file puts on that link, and takes a node's word only about itself. Incarnation and epoch arithmetic saturates.
SECURITY.mdasks for private reports, so there is no public issue.atc overlap --json: not run.Checks on this head
c2c3b82938fcae63c6b254226506d8e4ead0eed9python3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.zig fmt --checkon 7 files: passesgit diff --check: passeszig build test-cluster-membership-host test-pull-host: 9/9 steps succeeded; 67/68 tests passed (1 skipped)zig build native: 66/66 steps succeededzig build test-golden test-server-security test-pull-security: 76/76 steps succeeded; 31/31 tests passedsecurity: a member's lies add no node, make no leader and end no other member's runsecurity: a closed cluster takes no member, leader, goodbye, death or plan on another node's wordsecurity: a node the roster puts elsewhere is refused by name and never joinssecurity: a hello or an inventory speaks only for its sendersecurity: a peer's incarnation or epoch at the top of its range overflows nothingzig build test-clusteralso runs Metal tests, so the newtest-cluster-membership-hoststep ran instead.zig 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 cluster membership and bring-up, before any model is served.
Checklist
zig build test-cluster-membership-host: exit 1. It does not compile: the new tests setMembership.roster, which the fix adds, so this base shows no failure on behavior. On the earlier baseb38a4dd02the tests failed with the fix taken out.Notes for the reviewer
test-cluster-membership-hostis a new host step and is in no nightly list yet.Suggested changelog line
Cluster: a node on a real host takes only the nodes its cluster file names, each on its own link, and believes a node only about itself.