Repository navigation
A pair whose Macs run different versions converges and says so (0.10.9, draft) - #1795
Merged
Merged
Conversation
0.10.8: a Mac left with a saved pair start (its other Mac no longer taking part) ran its pair part as a cluster member with no ordinary models: online, no traffic. Every ordinary way back (start, the app's Go Online, Autopilot enroll, restart, start --solo) acted on the pair or was refused, and 0.10.9's update and watchdog guards read the same stale start. - Whether the pair runs here comes from what runs (ClusterPairWatch): the saved start, the other Mac's real answers over the link, and whether the pair has served. The cluster service publishes the verdict (pairRunning, pairNotRunning); ClusterService.pairServesHere uses it, so update and the watchdog restart and revive single-Mac serving on a Mac whose pair doesn't run, and keep the existing protection where it does. A 0.10.8 service with no verdict is read by its control mode. - start --solo is never refused for a stale start: it stops the leftover part (clears the saved start, waits for the serving lock), then serves alone, saying so in one line. A script, the app's Go Online (start --model) and Autopilot enroll do the same; in a terminal, start offers "Serve on this Mac alone" (the default when the other Mac isn't answering) or "Start the pair". stop and restart act on what runs here. - The leftover part doesn't hold the Mac forever: after 15 minutes without an answer from the other Mac the service stops its part (freeing the lock) and says why with the command to serve alone; it starts the part again when the other Mac answers. A reboot of a few minutes keeps the pair. - status says the pair isn't running here and the one command to serve alone. Tests (red: the new suites don't compile on 8e93178): ClusterPairWatchTests, UnpairedMacServesNormallyTests, stale-pair command runs in ClusterPairCommandsTests, and the reboot/give-up check over the real lease exchange in ClusterControlChecks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…round - two-mac-cluster.md: "Going back to serving on one Mac" (what "the pair runs here" means, start/stop/restart/update/watchdog on a Mac whose pair doesn't run, the 15-minute give-up, and the 0.10.8 steps: cluster pair --status, cluster pair --forget <pin>, start). - cli-reference.md: start, stop and restart while the pair doesn't run here. - agent-setup.md: rule 11 and a troubleshooting row for "online, no requests" after clustering stopped. - architecture/inference.md: ClusterPairWatch's verdicts and who reads them. - start's help text; changelog fragment unpaired-mac-serves-normally.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pair whose other Mac answers but that hasn't served in its first 15 minutes (notServing: a large first load, or the coordinator away after a pair restart) read as "not running here", so the app's Go Online or Autopilot enroll clicked by mistake, a script's start, restart, stop, and update with a leftover single-Mac job cleared the saved start and stopped the pair's part. - ClusterService.pairKeepsLock: update and the watchdog leave the serving lock to the pair while it runs here or its other Mac answers. - Start.pairStart, Restart.pairRestart and Stop.pairedStop: while the other Mac answers, only start --solo and the terminal's choice serve this Mac alone; the other forms act on the pair as while it runs (stop on a follower would otherwise be undone by the leader's next lease). A Mac whose other Mac is gone or whose pair is stopped is unchanged. Tests (red first): ClusterPairWatchTests.pairKeepsLockWhileTheOtherMacAnswers, UnpairedMacServesNormallyTests.loadingPairIsNotStoppedUnasked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…indows ClusterControlClock.seconds is CLOCK_MONOTONIC_RAW, which keeps counting while macOS sleeps, so a Mac waking after more than 15 minutes asleep could give up its part on the first tick, before the other Mac's next answer, and reload the model when it came back. - ClusterControlClock.awakeSeconds (CLOCK_UPTIME_RAW, paused in sleep). - ClusterPairWatch.tick(raw:awake:...): the windows run on the awake clock; each new answer from the lease clock is placed on it no earlier than the previous tick. ClusterService.watchPair uses it. A Mac whose other Mac stays gone still gives up 15 awake minutes after its last answer. Tests (red: tick(raw:awake:) doesn't exist): ClusterPairWatchTests .sleepDoesNotCount and .startWindowSkipsSleep. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…start its part again A following Mac records its leader's start from the leader's next accepted lease, so the start that serving alone clears there comes back while the leading Mac keeps the pair started; its part then waits for single-Mac serving to stop. The line said only "its saved start is cleared". - ClusterPairSummary.servingAloneLine on the following Mac adds: while the other Mac leads with the pair started, it may start this Mac's part again once single-Mac serving stops here; `darkbloom stop` on it stops the pair. - two-mac-cluster.md and the changelog fragment state it as a known limitation (and that sleep doesn't count toward the 15 minutes). The proper fix (the follower declines the leader's start after the person's choice, with a reason both screens show) is left for a follow-up. Tests (red first): UnpairedMacServesNormallyTests.followerServingAloneIsTruthful. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ease at once The pair's coordinated update moved an older Mac only at the shared 30-minute slot, and only the rollback was followed between slots. A Mac whose partner updated alone (single-Mac updater, watchdog, manual update, asleep at the slot) stayed behind, and after R5-4 the newer member waits quietly for a leader setup the older leader never makes. The minute's follow check now also returns .otherMacNewer when the other Mac runs a strictly newer release that is not quarantined here; with automatic updates on the supervisor runs the pair's cycle at the next tick (once per release, then the slots), which finds the other Mac ready (ClusterPairUpdate.partnerState: running == target). With them off it logs the version and `darkbloom update`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… `darkbloom update` The start-wait ✗ read the other Mac's whole service status but never compared its version (pairUpdate.running, published by supervisors from 0.10.7 on) with this Mac's, so a pair split across releases looped on 'its service reports its part running and no error…'. errorLines now leads with both versions and the command on the Mac that's behind, in either direction; one version or an unknown one keeps the lines as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
9 of 10 tasks
…nce, and single-Mac updates bring the pair along - ClusterOnboardingVersionSplit: both versions, the Mac behind and the build's own command (darkbloom-dev on DevNet). The leader's start reads it before the parts start, every few polls of the wait (before single-Mac serving), and before a Retry; it offers Check the versions again / Leave, never a Retry loop. The joining Mac's wait ends at once on it, from its own side. - The status line both Macs show carries a Mac-neutral reason; darkbloom status / cluster status --json read it as notServing with a final reason, and next names the Mac to update for each window. - The R5-4 member wait line and the leader's same-build wait line name the other Mac's version and the command (asked over the cable, at most every 30 s). - The follow check also follows a partner that is updating to a newer release. The provider's background updater, on a Mac whose pair actually runs there (ClusterService.pairServesHere), asks the cluster service to restart into the release with the other Mac; the watchdog never installs under a running pair. A Mac whose pair is gone simply updates. - Docs (two-mac-cluster.md: pair owners' top line, different versions) and the changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and follow-final branches The joining Mac reads the versions on its own cadence at the top of its wait loop, the final-reason check is its own line, and the checks file is listed beside the onboarding sources, so this branch merges cleanly with fix/solo-block-both-screens and fix/follow-final-outcome. No behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 of 20 tasks
This was referenced Nov 5, 2026
This branch had an error being deployed
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.
Summary
Draft, work in progress for 0.10.9. A pair whose two Macs run different Darkbloom versions no longer stays
split, and no longer loops silently. This was a production user's case: an M5 Max took 0.10.8 through the single-Mac
updater, while its M4 Max partner stayed behind. The M5 Max's part then restarted every 38 s, and the screens said
"Loading Gemma 4 26B on both Macs" forever. Diagnosis:
overnight/pair-version-split.md.Done so far:
0fa4f19b0f: when the other Mac runs a newer release, the older Mac starts the pair update within about a minute,instead of waiting for the shared 30-minute slot. It makes one immediate try per release and never goes into a
release blocked on this Mac. With auto-update off, it says to run
darkbloom updateon this Mac.99181ed70d: the start ✗ opens with "The two Macs run different Darkbloom versions: … runs 0.10.7, this Mac runs0.10.8", then "On , run
darkbloom update", in either direction.Coming in this PR:
statusand the ✗ title on both Macs;This branch is stacked on PR #1793 (
fix/unpaired-mac-serves-normally@a3be04881d). Its diff includes #1793'scommits until #1793 merges.
Test plan
ClusterOnboardingChecks,ClusterControlChecks, the pair-update and status suites at the final head, prod and dev identityComponents touched
Protocol / interface changes
Changelog
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.