Skip to content

A pair whose Macs run different versions converges and says so (0.10.9, draft) - #1795

Merged
jonathan308 merged 9 commits into
devfrom
fix/pair-version-split-converges
Nov 5, 2026
Merged

jonathan308 merged 9 commits into
devfrom
fix/pair-version-split-converges

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

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 update on this Mac.
  • 99181ed70d: the start ✗ opens with "The two Macs run different Darkbloom versions: … runs 0.10.7, this Mac runs
    0.10.8", then "On , run darkbloom update", in either direction.

Coming in this PR:

  • the split named in the live line, status and the ✗ title on both Macs;
  • every wait ends at once on a split, and Retry checks the versions again;
  • the wait lines name the other Mac's version;
  • the single-Mac updaters on a paired Mac make the pair follow;
  • docs, and a changelog line for pair owners.

This branch is stacked on PR #1793 (fix/unpaired-mac-serves-normally @ a3be04881d). Its diff includes #1793's
commits until #1793 merges.

Test plan

  • Red first, then green: the pair-update suite (16), the related update-service tests, and the start-error tests (23), filtered and sandboxed
  • ClusterOnboardingChecks, ClusterControlChecks, the pair-update and status suites at the final head, prod and dev identity
  • DevNet: a pair with one Mac on an older build converges, and both screens name the split

Components touched

  • provider-swift (Swift CLI)
  • docs (coming)

Protocol / interface changes

  • None with the coordinator. The pair's own update check uses the version the other Mac already reports.

Changelog

  • Fragment coming with the final commits.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

jonathan308 and others added 7 commits November 4, 2026 15:44
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>
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Error Error Nov 5, 2026 1:16am UTC
d-inference-console-ui-dev Error Error Nov 5, 2026 1:16am UTC
d-inference-landing Ready Ready Preview Nov 5, 2026 1:16am UTC
darkbloom-status Ready Ready Preview Nov 5, 2026 1:16am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 5, 2026 1:16am UTC

Request Review

jonathan308 and others added 2 commits November 4, 2026 16:59
…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>

This branch had an error being deployed

2 failed and 3 active deployments
Preview – eigen-homepages-darkbloom — 88740bd4 Deployed Nov 5, 2026 by vercel[bot]
Preview – d-inference-landing — 88740bd4 Deployed Nov 5, 2026 by vercel[bot]
Preview – darkbloom-status — 88740bd4 Deployed Nov 5, 2026 by vercel[bot]
Preview – d-inference — 88740bd4 Deployed Nov 5, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 88740bd4 Deployed Nov 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant