Repository navigation
ci: run the darkbloom-cluster test suites in PR CI - #1737
Merged
Merged
Conversation
Adds a cluster lane to provider-ci-build and its cache keys, and a temporary discovery job that learns which cluster tests the Blacksmith macOS VM can run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
LongContextLimitsTests, RequestScopedRefusalTests and PrefixCacheContractTests built an observation of a 128 GiB Mac but took the loading headroom or the prefix-cache ceiling from the Mac running the test. On a Mac with less than 96 GiB (the 48 GiB CI VM) the headroom scales down and the ceiling halves, so the asserted 128 GiB figures failed. The tests now take the margins of the Mac they describe, as decisions on an observation do. QwenStagePrefixCache.budget and refreshBudget take the ceiling as a parameter that defaults to this Mac's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DarkbloomClusterRuntimeTests runs in selections that scripts/cluster-test-plan.py defines, each in its own process through run-nested-suite.sh: base selections for every test without a switch, and opt-in selections for the tests one switch enables. Cluster Runtime Tests (three shards) runs the selections that pass on the Blacksmith macOS VM and joins the Provider Tests gate. Cluster GPU Tests (two shards) runs the rest, the long-running test and the benchmarks, and reports without failing the workflow. Cluster Focused Checks runs the runner scripts under libs/darkbloom-cluster/Tests that Cluster Metadata Checks does not, and Cluster Metadata Checks now also runs PrefillScheduleChecks in its retained native build. test-cluster-test-plan.py checks that the plan names each gated test and each runner once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… job The first run with MLX_QMV_BATCH_INVARIANT=1 passed the GLM paged-KV and row-invariance tests and two each of the depth-invariance and census tests; they move to Cluster Runtime Tests shard 2. The fused residual-norm sum test and the paged prompt-frame transient test move to the non-blocking job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run the TF32 forward comparison in its own MLX_ENABLE_TF32=0 selection, so it runs on any Mac the route grants instead of skipping on an M5. Strip every test switch prefix from inherited environments, scan test subdirectories, drop the unused shards subcommand, match the gate's needs list by name, and correct run-nested-suite.sh's description of what it runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng job Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai
marked this pull request as ready for review
November 3, 2026 13:37
jonathan308
added a commit
that referenced
this pull request
Nov 3, 2026
Retargets #1706 at dev, where 0.10.7 work merges. Pins libs/mlx-swift-lm at e97b6575 (feat/gemma4-tensor-parallel with SDK main 2311af6e merged, which holds dev's pin). Conflicts: - docs/architecture/inference.md, docs/developer/test.md: freshness stamps; kept dev's 2026-11-03. - TensorParallelCheck.swift: kept this branch's `gemma` subcommand and dev's qwen-rows, qwen-wavefront and qwen-decode, in the usage comment and the dispatcher, each with its own return. - Gemma4StateBudget.swift, Gemma4PrefillTransient: the layer overload keeps dev's decodeRows/decodeLayers (#1710) and forwards to this branch's bytes(fullAttention:queryHeads:...decodeRows:decodeFullAttention:), so both sides' callers compute the same bytes as before. - DistributedInstalledPlan.swift (doc comment): dev's saved-width text for Qwen tensor parallel, this branch's GLM and Gemma 4 lane text. - PlacementChecks/Main.swift: kept dev's checkGemmaRoutedExperts and this branch's checkGemmaTensorParallel. - Gemma golden layouts: this branch's are dev's (#1704's routing) plus the tensor-parallel facts, field for field, so they were taken. - Both expected.json: dev's MiMo digests and this branch's Gemma digests. Every digest was recomputed with the plan tool (`check tool plan ... --json` and `--hand-off-modes`) on the merged code: all 44 equal the file. - libs/mlx-swift-lm: e97b6575, which holds both a4f67fa5 and 2311af6e. Interactions with dev fixed here: - GemmaRoutedExpertChecks (#1704) expected no tensor-parallel share; Gemma TP divides 11,678,515,200 of the QAT 4-bit expert bytes. - DistributedInstalledLanesTests (#1704) expected no default lanes for any Gemma mode but the pipeline; Gemma TP serves defaultBatchLanes. - scripts/cluster-test-plan.py (#1737) requires every gated runtime test in a selection: diagnosticShardOperationsEqualWholeOperations (GEMMA_TP_DIAG) runs in blocking shard 2, and GEMMA_TP_ switches are not inherited. - The focused GLMImageAdmissionChecks and ProcessChecks runners (run in CI since #1737) compile DistributedResidentExecution.swift, which now reads ClusterModelFeaturePolicy.capturesLogprobs: both compile that policy, and ProcessChecks gets a stand-in for the configuration error it throws, as GLMImageAdmissionChecks already has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai
added a commit
that referenced
this pull request
Nov 3, 2026
Keeps dev's cluster suite jobs (#1737) and the build-default guard (#1741). The #1737 jobs (Cluster Runtime Tests, Cluster GPU Tests, Cluster Focused Checks) move to blacksmith-12vcpu-macos-27 like the other macOS jobs: their route fallback was already that label, so no job needs another runner. The per-shard route lanes from #1691 go away with the route's macOS lanes. cache-swift stays removed. The provider shards stay at eight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 3, 2026
Merged
Closed
14 of 17 tasks
Gajesh2007
added a commit
that referenced
this pull request
Nov 4, 2026
…); reverses #1733 part 1 (#1771) * ci: route the macOS CI jobs through Darkbloom again (Blacksmith fallback) Reverses only part 1 of #1733, which pinned the macOS jobs of ci.yml to blacksmith-12vcpu-macos-27. The route job again requests a Darkbloom lane for each macOS job that will run, and each job runs on its lane's decision: - test-provider-1..3 (one per shard), test-provider-summary - test-provider-sdk - test-cluster-checks, test-cluster-1..3, test-cluster-gpu-1..2, test-cluster-focused This is dev's wiring from just before #1733 (per-shard lanes from #1691, cluster lanes from #1737) with today's matrices and conditions: 3 provider shards (#1749) and the cluster component gate. The fallback label, the shard matrices, SAVE_CACHES and #1752's .git and SwiftPM caches are unchanged. A lane that the plane does not grant, including one missing from its approval, keeps Blacksmith. #1733's reasons were slow sandbox checkouts, a full Actions cache and shards that never got a runner. #1752's lighter checkouts and master/dev-only cache saves, the images' zstd and CONNECT retry, and the add-on's local cache address them. The route, provider CI, cluster plan and component-path tests pin the lane lines to each job's matrix and condition again; build.md and test.md describe the routed macOS jobs. * ci: refactor pass: call the shard lane test-provider-<shard>; reflow two wraps Comment and Markdown wrapping only; no workflow behaviour changes. The test-provider comment called its lane test-provider-K, while scripts/test-darkbloom-route.py and build.md write <job>-<shard>; the test.md paragraph kept a one-phrase line from the routing-link edit.
davidtai
added a commit
that referenced
this pull request
Nov 6, 2026
…re retries, and provider TP work (post-0.10.9) (#1837) * fix(provider): single-Mac serving that blocks a pair is named once, with `stop --solo`, never retried On 0.10.8 a pair's start looped "this Mac's part ended (exit 1: another update operation owns the lock (pid 9523, provider-instance))" on the leader while the follower's single-Mac provider (process 2282) refused its worker; the leader read the follower as "no error reported", and the guidance said `darkbloom stop`, which on a paired Mac stops the pair and leaves single-Mac serving running. - UpdateProcessLock names its owner: a single-Mac provider serving (with `stop --solo`), this Mac's part of the pair, an update, a rollback, a stop. - ProviderInstanceHolder tells a single-Mac provider from a pair part (argv and the parent's argv, no files read). - Each cluster service holds its part back while single-Mac serving runs (no exit-1 restart loop) and reports it in its status (`soloServing`, child lastError), so the other Mac's screen gives the real reason. - `darkbloom cluster` checks both Macs before starting the parts and during the wait: one ✗ naming the Mac and process with `darkbloom stop --solo`, and "Stop single-Mac serving on both Macs and start the pair" (new `stopSolo` command), acting only with consent. No Retry for this cause. - local_provider_running guidance and the worker's refusal say `stop --solo`. - `darkbloom update` on a Mac whose pair is started restarts the pair, not a leftover single-Mac job; the watchdog no longer revives that job there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * cluster: the leader publishes the start's progress and shows each Mac's part The owner asked that the Mac that joins a pair show progress at each step, "maybe a progress bar and so on". This is the half that does not touch the follow screen: the published fields, the leader publishing them, the leader's own per-Mac rows, and the shared step, bar and row components. - ClusterOnboardingStartProgress (new, optional everywhere) travels in the leading Mac's status reply (ClusterControlReply.start) and its setup record. It carries the phase (downloading, copying, stopping, loading, testing, registering; a later one reads as unknown), a copy's or download's bytes as the sending Mac counts them, and each rank's part (ready, loading, starting, ended with its restart), with its layer range. A mark fences it by the publishing process; a copy's, download's or load's figures count for 30 s. - The leader publishes bytes about once a second from the copy (either way) and the download, "stopping" before a model change drains both Macs, the parts on each readiness poll, then testing and registering. It clears them when the start ends. - ClusterServiceStatus.Session.readyRankList (optional) names the ready ranks. - The leader's load wait shows one row per Mac: "This Mac: ready (layers 0-46)", "The other Mac: loading its share (layers 47-93)". A row that does not fit drops its layers, then shortens; a plain window says each row once. The wait's ✗ counting still reads the line without the rows. - Shared components: the bar (real bytes only, never 100% before the last byte), the step rows with "Next: …", and the plain log that says each change once. All fit the room a live row has (the window less 6 columns). Onboarding checks: 1260 passed (the new plain-row checks failed 3 on the base with only the components present). Filtered swift test: 20 tests in 2 suites, including the wire tests (older shapes decode; later values read as unknown). docs-check OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): the cable port removal undoes every port Darkbloom set up, service first, and says what is left R5-2 (pair-2, 2026-11-04): - `darkbloom uninstall` on the MacBook gave up with "More than one port qualifies (rdma_en2, rdma_en1, rdma_en6); choose one, for example … --device rdma_en2", naming a disconnected port, after it had already forgotten the pairing. - The restore wrote the port's bridge entry before it removed Darkbloom's service, which left en6 in saved bridge0 and in its own "Darkbloom Cluster Link (en6)" service ("not isolated: member of bridge0"). - The restore ran every command (joined with "; "), yet a failure said "the commands after it did not run". Fix: - ClusterLinkRepair.removeIsolation undoes every port Darkbloom set up (its records, and its own services whose record is gone) under one approval (ClusterLinkIsolationRequest.Purpose.restore takes them all; the prompt names them); `--device` still names one. The uninstall and `cluster link --remove` without `--device` never ask for a choice. - ClusterLinkIsolationRestore.commands: the keeper, Darkbloom's service, a leftover address, then the bridge entry, the services switched back on (which apply it) and the live bridge member. - A restore stops at the first failing command (`set -e`, as an isolation and the manual script). What is left is read per port: done ports are forgotten, the rest are named (ClusterLinkRepairResult .remaining, JSON `remaining`) in a message that now says truthfully the commands after the failure did not run. - The uninstall forgets the pairing before the cable step (it tells the other Mac over the cable); a failed cable step now says the pairing is already forgotten, that only the cable port setup is left, and that `<cli> uninstall` again finishes it (ProviderUninstall.cableLeftNote). Not changed: the first version's address-only removal still asks for a port among several recorded aliases. Docs: two-mac-cluster.md (Uninstall) and cli-reference.md. Changelog: one bullet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): the member waits for the leader's setup after an update After the pair restarted into 0.10.8, the member started its part from the setup saved for 0.10.7 six times; each ended within a second with "Installed input identity or SHA-256 differs" until the leader synced the new setup (R5-4, about 2 min of the 2 min 33 s outage). ClusterService.supervise now compares the member's installed worker with its saved setup's pin before a cluster part starts. When they differ it starts nothing, rewrites nothing, and says once "waiting for the other Mac's setup for v<version>". The part's own identity and SHA-256 checks are unchanged. The control leader, waiting for both Macs to answer with one build, checks again every 5 s instead of every 60 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): end `darkbloom update` once this Mac runs the new release On the M5 Ultra pair, Mac B's `darkbloom update` waited its full 600 s and ended "Still waiting after 600 s" although Mac B had restarted into 0.10.8 (R5-3). The command waited for its own request to reach `restarting`, but the restarted service had already published `idle` with no request, running 0.10.8. ClusterServiceUpdateRequest.restart now also ends, with a new `.restarted` outcome, as soon as the service's progress says this Mac runs the target release, and says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): `cluster stop --service` stops this Mac when the other is off On pair 2, the leader's `darkbloom cluster stop --service` failed (exit 1) once the MacBook's service was already off, and left the leader's service and login agent running (R5-1). Only `--local-only` finished it, and the error did not say so. OnboardingLive.localStop now marks the one failure where this Mac stopped serving and the other Mac did not answer (ClusterOnboardingFailure.otherMacUnanswered). Cluster.Stop.finishStop then still removes this Mac's service and login agent and says what happened on each Mac. A local drain that did not finish, and a stop forwarded to the leading Mac, still fail and keep the service. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * terminal: every live line stays one row, its reason shortened, never wrapped A 0.10.8 leader started Gemma 4 26B tensor parallel next to an M4 Max. Its live line repeated end to end ("▗ Loading Gemma 4 26B on both Macs (starting; this Mac's part ended (exit 1: another update operation owns the lock (pid 952 ▖ Loading …"). The row was cut to a character count, but the terminal drew it wider (a petal or ellipsis shown two columns wide, a wide character, a control character in the reason). So it wrapped, and each turn of the petal climbed back only one row and left the wrapped start behind. The two shared renderers now draw every live row the same way: ClusterOnboardingTerminal, used by the cluster screens, and DarkbloomCommandLook, used by start, stop, restart and update. - ClusterOnboardingBrand.liveText fits a row to the room (width - 6). It counts wide characters as two columns and turns control characters into spaces. A row that ends with its time (" · 1 min 3 s") keeps the time and shortens the reason before it. - Line wrap is turned off for each redraw and back on in the same write (ESC[?7l … ESC[?7h), so a row the terminal counts wider is cut at the edge, never wrapped. The cluster console's signal handler turns wrap back on too. - DarkbloomCommandLook reads the window width at each redraw, as the cluster console already does. Download progress (ModelDownloadProgress) already re-reads the width, clips its ASCII line and prints only on change when plain, so it is unchanged. Onboarding checks: 1305 passed. They include the user's long line in a pty at 80 and 40 columns with the petal turning, and plain mode (NO_COLOR, TERM=dumb). Red on the previous commit with only the interface stubbed: 8 failed. swift test: DarkbloomCommandLookTests (a new 40-column test with a narrowed width), ClusterOnboardingPeerLabelTests, ClusterServiceStopReasonTests and ModelDownloadProgress: 63 passed. DarkbloomCommandLookRunTests has 5 issues with the dev identity ("darkbloom-dev start" against "darkbloom start"); the same 5 fail on the base. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: every live line is one row; changelog bullet The CLI reference now says how the live line stays one row: - it is fitted to the width at each redraw; - control characters become spaces; - a long reason is shortened and keeps its time; - line wrap is off while the row is drawn. The fragment gains the user-facing bullet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * cluster: the joining Mac shows the start's steps, bar and each Mac's part The owner asked that the Mac that joins a pair show progress at each step, not sit in the dark. On top of the follow screen's wait (merged), the joining Mac now reads the start's progress the leading Mac publishes (its status reply's `start`, carried in ClusterOnboardingLeaderStatus). - Once the start publishes a step, the joining Mac opens its own "4/4 Start" heading. Right under it the live rows show the step and its time, a bar of the real bytes during a copy or download, each Mac's part (this Mac first, with its layers), and what comes next. Each finished step is said once ("✓ Files (9 min 12 s)"). Every row fits the room a live row has (window less 6) at 80 and 40 columns. - A plain transcript says each step, each part change and a copy's bytes about every 10% and 30 s, once each, with no bar or escapes. - Each new step gets the follow's whole bound again, and copy bytes that still move reset the wait for the start, so a long copy no longer ends in a ✗. - With an older leading Mac (no `start`), the screen is unchanged. Onboarding checks: 1354 passed (the joining-Mac checks failed 22 before the wiring, with only the interface in place). Filtered swift test: 21 tests in 2 suites. docs-check and changelog-check OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(integration): the round 5 runners compile and the onboarding checks close each terminal once - OnboardingChecks: TerminalRun closed its pseudo-terminal in release() (follow-wait) and again in deinit (screen-sharing note); the second close hit a later run's reused descriptors, so random flows hung at "Checking the cable". Closed once now. - ClusterService: a comment named the DevNet display name literally, which test-provider-identity.py refuses outside the identity JSON. - ClusterLinkApproval.request(wiredLimit:) moves beside GLM5NextWiredLimitRequest, so the link runner compiles without the GLM memory closure. - run-flow.sh compiles ClusterOnboardingSoloServing.swift, as the other runners do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): a port whose only service is Darkbloom's: reconfigured in place, removed through SCPreferences R5-2 on pair-2's MacBook (macOS 27.0): `networksetup -removenetworkservice` refuses a port's last service ("You cannot remove Darkbloom Cluster Link (en6) because there aren't any other network services on Thunderbolt 2."). On a Mac whose Thunderbolt ports start in the Thunderbolt Bridge, Darkbloom's service is always the port's only one, so the restore stopped at its first command every time, and the setup's repair (remove, then create) failed the same way. - Setup (ClusterLinkIsolationPlan.commands): an existing Darkbloom service is reconfigured in place (switched on, -setmanual, -setdnsservers Empty, -setv6LinkLocal), never removed and made again. - Restore (ClusterLinkIsolationRestore, ClusterLinkLastService): where Darkbloom's service is the port's only one, it is removed through one `scutil --prefs` session (remove the service and its link in the current set, the IPv4 order without it, commit, apply), after PlistBuddy guards on its name and device and with a read-back that it is gone. The service ID, the set and the order are read before the prompt (`plutil -extract` of the world-readable preferences: new read-only tool commands); only validated IDs reach the commands, and every removal in one approval leaves all removed IDs out of the order. Unreadable preferences guess nothing (probeFailed). A port with other services keeps `networksetup -removenetworkservice`. - The AppleScript line now escapes backslash and double quote. - Kept: `set -e`, "Still to undo", `remaining`, one approval for every port, the service before the bridge. Proven by hand on p2-max as root with the same command shape: en6 (22:31:33Z) and en1/en2 (22:32:11Z) exit 0, no Darkbloom service left, macOS put en6 back into bridge0 live by itself, both Thunderbolt Bridge services enabled. Not run through the app's prompt there (Darkbloom is uninstalled on it). Docs: two-mac-cluster.md (Uninstall), cli-reference.md. Changelog: one bullet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): a service still there after the SCPreferences removal stops the restore; IDs are ASCII Review of bac9a58c4f (r5-2-lastservice-review.md): - Finding 1: `scutil --prefs` exits 0 even when its `commit` fails, and the read-back `! PlistBuddy … Print …` does not stop a `set -e` script, so the bridge entry and the services were still switched on beside Darkbloom's service: the port in both, R5-2's own bug, and "the commands after it did not run" untrue. The read-back is now `if PlistBuddy … Print …; then exit 1; fi`. - Finding 5: ClusterLinkLastService.isID accepts ASCII 0-9, A-F and a-f only (Character.isHexDigit accepted fullwidth digits). Check: the cluster link checks run the generated restore line in /bin/sh with stubs for PlistBuddy, scutil, networksetup and ifconfig (paths rewritten in the check's copy only): with scutil removing nothing it exits non-zero and no later step runs; with the service gone it runs to the end. A fullwidth digit is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(integration): the runners compile the start progress, and the onboarding checks fit the merged flows - Control, installed-session, diagnostics, console and placement-flow runners compile ClusterOnboardingStartProgress.swift (member progress), which ClusterControlLeadership now uses. - The onboarding checks' own alarm is 600 s: with follow-wait, solo-serving and start-progress checks the run takes about 300 s, the old bound. - The plain start-progress check counts each row once per wait: a start through Darkbloom restarts both parts as cluster members after the registration, and that second wait shows the rows again, truthfully. - StartProgressChecks.swift ends without a blank line (git diff --check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(integration): the GLM image admission runner compiles the start progress CI's Cluster Focused Checks (PR #1792, job 126919032698) failed to compile focused-GLMImageAdmissionChecks: ClusterOnboardingFlow.swift:1199 names ClusterOnboardingStartProgress, which fix/cluster-member-progress added in its own file. 888b43e041 added that file to five runners; this is the sixth that compiles ClusterOnboardingFlow.swift. Locally: exit 0, 40 CPU checks pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): the pasted fallback runs as the script: one root shell under set -e Integration review of 6a3874827c: where no manual script could be written, the fallback printed each command behind `sudo `. Two of the SCPreferences removal's lines then failed when pasted: `sudo if …; then exit 1; fi` is a syntax error, and in `sudo printf … | scutil --prefs` only printf ran as root, so scutil's commit failed. ClusterLinkIsolationRequest.manualCommands is now one block: `sudo /bin/sh -e <<'DARKBLOOM_CLUSTER_LINK'`, the same commands one per line, and the delimiter. No generated line can be the delimiter (each starts with a path or a shell keyword). Setup's and every restore's fallback take the same form; the first version's single commands (ClusterLinkPrivilegedRequest) are unchanged. Check: the printed block, pasted in /bin/sh with the stubs of the 6a3874827c check and `sudo` passing through, runs exactly the script's steps and stops where it stops; setup's and the restore's blocks are one root shell with the commands unchanged. The removal's doc comment is rewrapped to 120 columns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): a Mac that stopped clustering serves normally again 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 8e931784cb): 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> * docs(cluster): going back to serving on one Mac, and the 0.10.8 workaround - 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> * fix(cluster): a loading pair is never stopped without asking 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> * ci: the cold-retry test follows the two remaining build directories Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): time asleep doesn't count toward the pair's 15-minute windows 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> * fix(cluster): serving alone on the following Mac says the leader may 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> * ci: test each tree once, one plan routes every job, no audit-only Macs - provider-plan.yml (new, shared by CI (dev) and CI (master)): the classifier, the tested-tree lookup (scripts/ci-tested-tree.py) and the run's one route request, with the caller's Linux lanes. A run whose tree a completed, successful run of the same workflow file from this repository recorded (artifact ci-tested-tree-<tree>, uploaded by the gate) selects no component; any doubt tests. - provider-tests.yml takes the plan as inputs. Pull requests and pushes run the same jobs; only pushes save caches. A push of a tested tree runs one build-only job, Refresh build caches, for the components it changed. - The classifier selects pushes by their diff like pull requests (no full-run rule for default branches, no push-only cluster rule). - Cluster GPU Tests run whenever the cluster jobs run. - Provider Unit Tests Summary is folded into the shards: each audits its own selections against `swift test list` of its own build (provider-test-shards.py audit-job; the last shard checks that the plans cover the list once) and reports its own coverage. - Cluster Metadata Checks run first in Cluster Focused Checks. - Release Integrity and Docs Lint read their Linux lanes of the plan's route. Only the lookup, the component choice and the gate stay GitHub-hosted. - CI (dev) pushes are no longer collapsed: each push runs, and a tested tree costs only the plan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: a third Swift build cache tier keyed on the toolchain and the MLX pins Keys nest MLX tier > dependencies > recipe > commit (v3), so a restore key matches each tier by prefix. The MLX tier binds the toolchain, the checkout path and the libs/mlx, libs/mlx-swift and libs/mlx-swift-lm gitlinks (nested ones included); restore-mtimes keeps SwiftPM to rebuilding what changed, and a failed build over it builds once from nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): a pair Mac follows the other Mac forward to a newer release 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> * fix(cluster): the start's ✗ names a version split, the Mac behind and `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> * fix(cluster): Connect's first line says "Allow macOS permissions." The owner asked to rename "allow macOS password" to "allow macOS permissions". ClusterOnboardingDriver.approvalsLine now reads "Allow macOS permissions." and, over SSH, "Allow macOS permissions here and on this Mac's screen (Screen Sharing if headless)." The lines that say what each prompt literally asks are unchanged. The onboarding checks and a ProviderCore test assert both lines word for word; the docs that quote the line and the 0.10.9 Screen Sharing changelog fragment are updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(cluster): two idle M5 Ultra 256 GB split GLM's pipeline about evenly The M5 Ultra pair's mode question offered GLM-5.3-Flash's pipeline as "this Mac 1 layer / the other Mac 44 layers". On the recorded M5 Ultra, both Macs sampled idle, the forced pipeline is cut 24 (24 / 21 layers), both ranks loading now and admitting 65,536 tokens: a split that degenerate comes from a Mac whose sample admitted about 10 GB, not from the planner's arithmetic. This check pins the even split on idle Macs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(provider): a pair's lanes go on, and are counted, while a request reserves (red) A pair's reservation holds the engine queue until both ranks answer at their next step boundary. Every running lane's token is answered on that queue, and rank 0 waits a bounded time each step for those answers, so a reservation stalls every lane. And a request reserving, or waiting to, is counted nowhere: the heartbeat advertises its lane as free, the coordinator sends one more, and the engine refuses it for capacity. Four checks, red on this base: - a running lane's token waits for another request's reservation; - a capacity read counts neither the request reserving nor the one queued behind it (`waitingRequests` 0); - a request beyond the lanes waits for that reservation before it is refused; - the heartbeat's `num_waiting` is 0 while a request is being reserved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): single-Mac serving blocking the pair is said on both screens, and nothing loops on it 0.10.9 DevNet, pair-2 (f1): with single-Mac serving (process 68099) on the joining MacBook, the leader showed the block, but the joining Mac said "registering with the coordinator" for minutes; `cluster status` said "Both Macs keep trying by themselves"; and the leader's part ended and restarted every 38 s. - The joining Mac's window reads single-Mac serving on both Macs before each look of the leader and shows the same ✗, naming its own provider, `darkbloom stop --solo`, and that the leading Mac offers the stop. The leader's block line is the block (`followed` .soloBlocked), never an offered pair to wait on. It follows the start by itself once single-Mac serving stops. - Each Mac's status reports single-Mac serving whenever no part of its own holds the lock, not only once a part is wanted, so the leader sees it before starting; it also publishes `heldBack`, why its part can't start. - The leader's service reads the member's held-back reason at each sync and doesn't start its part while the other Mac reports one (`ClusterControlPartChoice. waitsForOtherMac`): no 38-second start-and-end loop. Serving alone never waits. - `next` says what to run on both Macs; a scripted `darkbloom start` ends its wait at once for this reason (`isFinalReason`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(provider): the usage history's warning goes to the running identity's log subsystem It named production's `dev.darkbloom.provider` in every build, so a DevNet app's `darkbloom-dev logs` never showed it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): each mode's line fits the window as it is now, and redraws on resize R6-2 (M5 Ultra pair, DevNet branch.81): each mode's line in the mode question was cut at 120 columns ("… the other Mac 44 layers) · ser…"), losing how many requests the mode serves at once, and a window widened to 220 columns never redrew it: the list fitted its rows once, to the width it opened at. - ClusterOnboardingConsole.chooseFitting: options asked for their text at every draw with the room a row has then (nil: the whole line). The default (and a plain terminal) shows the whole lines. - The colour list (pick) reads the width at every draw, redraws when it changes (checked between keys, every 100 ms), turns wrap off while it draws (ESC[?7l … ESC[?7h), and climbs back by the rows a narrower window shows each drawn row on, as the live rows do since 1693f0c70a. Lists of plain strings keep their cut, now counted in display columns. - ClusterOnboardingDriver.modeLine(_:recommended:room:): too wide, a line loses the split, then what each Mac does, then the long words ("106 tok/s", "serves up to 8 at once", "recommended"), as the recommendation's line does. The mode's name and how many requests it serves at once are never cut: where one row cannot hold them they take two. The mode question uses it. Onboarding check modeLinesFitTheWindowAsItIsNow: GLM-5.3-Flash's two modes in a colour pty at 220, 120, 80 and 40 columns, and one list resized 120 -> 220 -> 80 -> 40 -> 120 while open: redrawn each time, every row within the window, no mode row cut, each mode's name and concurrency whole, the whole pipeline line where it fits; plain at 40 columns prints the whole lines. Red on the previous commit with only modeLine(room:) stubbed: 47 of 71 failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(cluster): the mode question's lines fit the window (inference.md, changelog) Docs Impact on PR #1797 asked for the canonical inference doc; this documents d3d2e76911's fitting and adds the changelog bullet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * cluster: the joining Mac ends with the leading Mac's outcome, never its own verdict 0.10.9 DevNet, pair-2 (f2, 00:23:20Z): 6 s after its part registered with the coordinator, the joining Mac's window ended with "✗ Not serving: This Mac isn't verified by Apple yet …" and "Choose Retry on the other Mac". The leading Mac kept waiting and showed "✓ Serving Qwen 3.8 27B through Darkbloom on both Macs" 41 s later. On an offered status the joining Mac had run its own pairServing wait and ended on its own App Attest state. - A state that clears by itself keeps the joining Mac waiting: Apple's verification, the coordinator's pairing, registering, the leader still deciding. The live row reads "Waiting for Apple to verify this Mac (Darkbloom retries by itself) · n of 15 min"; plain output says it once. Offered is its own stage with the whole bound, as the leader's wait. followPair is gone and the joining Mac never calls pairServing. - Its final ✓/✗ is the leader's. ✓ comes from the leader's status. The leader's screen ✗ is published as ClusterOnboardingStartProgress.failed (title, lines, retry) in ClusterControlReply.start, each Mac's name kept as a token, so the joining Mac shows the same ✗ named from its side. It counts for 30 minutes after the leader's screen ends; a new step published by a leader screen clears it. A later phase reads as unknown on an older Mac. - "Choose Retry on the other Mac" appears only under that ✗, when the leader's screen shows Retry: no longer mid-start, nor in the joining Mac's timeout. - An older leader publishes no outcome: the joining Mac waits until the stage's bound, then "✗ Not serving: The other Mac (…) didn't say how its start ended within 15 minutes.", the last state, and where to look. - The joining Mac's own blocking reasons (a different build) still end it at once; the single-Mac serving path is untouched (fix/solo-block-both-screens). Onboarding checks: 1540 passed, 0 failed. FollowFinalChecks failed 20 on the base with only the data interface present (the f2 run printed the field's exact ✗); seven older checks that encoded the old verdict were rewritten to these rules. Filtered swift test (ClusterOnboarding), sandboxed away from ~/.darkbloom*: prod 28 tests in 2 suites + 1, dev the same. docs-check and changelog-check OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): only the leading Mac waits on the other Mac's held-back reason The leader keeps the other Mac's reason (`peerHeldBack`) in memory and refreshes it only while it leads and runs the cluster (`syncMembers`). If control moved to the other Mac, that reason stayed, and this Mac's part, now a member, never started: the new leader's part then waited for its missing follower and ended every 38 s, the loop the rule exists to stop. `waitsForOtherMac` now takes `leads`, and the service passes `leadsAndRunsCluster()`. Red: ClusterControlChecks failed to compile (no `leads`), and the new check "no longer leading: never waits". Green: 682 passed, 0 failed. Docs: the rule and the status fields in docs/architecture/inference.md, the block's `reason`, `next` and exit 3 in docs/provider/cli-reference.md (Docs Impact), and a missing full stop in the agent-setup troubleshooting row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): single-Mac serving steps aside for a started pair unless chosen; blocked ends never set the approval aside From "none of the steps worked" (solo-steps-failed.md §3–§5): - Self-heal for the 0.10.8 → 0.10.9 rollout: when the pair is started and wants this Mac's part ("cluster:" key) while single-Mac serving holds the lock, and no choice of single-Mac serving stands (`ClusterSoloChoice`), the cluster service runs `stop --solo` once per process, logs it and leaves a note `darkbloom status` shows. `start --solo` / "Serve on this Mac alone" record the choice; an explicit pair start here (onboarding serve, `start` → pair) and `stop --solo` clear it; a Mac updated from 0.10.8 has none, so the pair wins. Never when no part or only the degraded server is wanted, so it never fights #1793's "pair isn't running → serve alone". - Ends caused by the held lock (either Mac held back, or the lock's words) don't count toward the local-only fallback; when the blocker clears (step aside, offer, or the other Mac's held-back reason gone) the count resets and a `failing` set-aside approval is dropped, so the pair is offered to Darkbloom again at once. - The version split is said before the single-Mac ✗ (`blockApplies`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): a version split is named everywhere, ends the wait at once, 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> * fix(cluster): a pair the coordinator's catalog won't pair says why DevNet 2026-11-05 (0.10.6-dev.branch.81): a Gemma 4 26B tensor-parallel pair offered under devnet/gemma-4-26b-qat-4bit/s1 sat on "waiting for the coordinator to pair both Macs" (cluster status: loading, exit 3) for 11+ minutes. The coordinator refused it on every one-second pass with `serves_model`: its pair check needs a model-catalog row for each member's model (modelAllowedByCatalogLocked), and DevNet's catalog has no Gemma, though its pair-approval catalog does. The coordinator tells neither Mac. The member registration was not the cause: a member already sends an empty ordinary inventory and exactly its setup's model in cluster_models (ClusterMemberRegistrationTests cover it). - An offered part reads the coordinator's public /v1/models/catalog once after it registers; when the catalog doesn't list its model it writes "Notice: The coordinator does not pair Macs for <model>: its model catalog does not list it" (ClusterLocalServing.catalogRefusal). An unreadable catalog says nothing; the part keeps running. - The service reads that notice as the part's current one; the setup screens on both Macs end at once with it (pairLook, pairServing), and cluster status reports not serving with it instead of loading (ClusterPairSummary.ownState). Tests (red first): ClusterLocalServingTests.aPartOfferedForAModelTheCoordinatorsCatalogDoesNotListSaysSo, ClusterPairCommandsTests.ownState. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): `stop --solo` on the wrong Mac stops it on the other Mac; a blocked pair's `start` never serves alone - `stop --solo` where nothing runs here asks the other Mac (its status) and, with consent or `--yes`, stops single-Mac serving there (`.stopSolo`); declined, it says where to run it and exits 1. Its "nothing to stop" line no longer suggests plain `stop` (solo-steps-failed.md §3.3). - #1793 coordination: while single-Mac serving blocks a started pair whose other Mac answers, `start` goes to the pair (`.openScreen` / `.startPair`), never `.choose` or serve-alone (pinned by a test); "set up" means the job is loaded (`LaunchAgent.singleMacSetUp`), not that the plist exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): the version split's hunks sit apart from the single-Mac 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> * fix(cluster): an orphaned pair part is never single-Mac serving; a check proves the stop sticks - `ProviderInstanceHolder.singleMacServing` excludes the part this Mac's cluster service recorded, even once launchd adopted it (its arguments read like `start --local`), so nobody is told to `stop --solo` what it can't stop. - `SoloStopSticksTests`: after the stop, a watchdog tick doesn't revive it, an update restarts the pair and not it, and a login or 0.10.8's updater that starts it anyway meets the step aside while the pair's blocked ends never cost its approval. - Docs: the step aside, the recorded choice, the reset of the fallback, and `stop --solo` on the wrong Mac. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(cluster): the agent's troubleshooting row says single-Mac serving steps aside by itself Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(provider): a pair's lanes stream while it reserves, and count what is being admitted A GLM-5.3-Flash tensor-parallel pair on branch.81 decoded at 7.5 tok/s (min 2.7) under DevNet's soak and refused 6 dispatched requests for capacity. Two causes in DistributedCBv2Engine, both on the pair's one serial queue: - A reservation ran on the engine queue and held it until both ranks answered at their next step boundary. Every running lane's token is answered on that queue, and rank 0 waits a bounded time each step for those answers, so a reservation stalled every lane and the step that answers it. Since R4-9 the bridge awaits admissions, so several queue back to back. Reservations now wait on `admissionQueue`, one after another; the engine queue only checks, holds a lane and completes the admission. - A request waiting for its reservation, or in it, was counted nowhere: the published capacity said its lane was free, the coordinator sent one more, and the lane check refused it. A submission now holds a lane from acceptance (`holdLane`, `admitting`): the lane check counts it and `capacity()` reports it as `waitingRequests` (heartbeat `num_waiting`). A cancel of another request now lands at once; a cancel of a request in its reservation, or waiting for it, stops it once admitted; a shutdown waits for a reservation in flight and stops its request. The R4-9 check that pinned a cancel waiting for another request's reservation now pins it landing at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * cluster: the joining Mac never ends on an earlier start's published ✗ Review of #1798. The leading Mac's ✗ (ClusterOnboardingStartProgress.failed) counts for 30 minutes regardless of its process, and a new pairing keeps the record; only the new screen's first step clears it. The joining Mac's follow read it on its first look, so pairing again within 30 minutes of a ✗ that was left ended the joining Mac at once with that ✗ and "Choose Retry on the other Mac", before the leading Mac had chosen a model (its first step comes after its own service start). A ✗ now counts as this start's outcome only once this follow saw the leading Mac's screen publish a step (which clears any earlier ✗ in the same write); before that it is not shown, not even as the 4/4 heading. Red: the new check ended with "✗ Not serving: This Mac isn't verified by Apple yet." and Retry; onboarding checks 1557 passed, 2 failed. Green: 1559 passed, 0 failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(cluster): notServing's doc comment back on notServing #1798 split the ✗ block out of notServing (notServingBlock) and left notServing's comment stacked above the new function's. Comments only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): GLM on 128 GB Macs: offer only what loads; gpu-limit step or "needs more memory" Owner: "ensure it only shows the option that is possible, i.e. for there only pipeline is possible as an option" (a user's M4 Max 128 + M5 Max 128 could not load GLM-5.3-Flash). - One rule for the Macs whose GPU limit Darkbloom raises: ClusterGPUMemoryLimit.raisedByDarkbloom (M5 Macs with 128 or 256 GB, by the chip's own name). GLM5NextGPULimitEligibility delegates to it, and ClusterDeviceProfile.withGPUMemoryLimitRaised is nil on any other Mac, so the memory verdict never counts a raise on an M4 Max that gpu-limit refuses. - The model row, when nothing fits as the Macs are: plans again with the eligible Macs raised; if a placement fits, the row is blocked with the `darkbloom cluster gpu-limit` step (the Mac, its part's GPU need, macOS's limit, the raised limit); otherwise "Needs more memory" with the reason (the GPU limits, or the model's size) instead of "Too large ... even with every application closed". Nothing loads before. - The mode question is unchanged: GLMPairOfferChecks pins exactly the modes it offers on M4 Max + M5 Max, M5 Max x 2, M3 Ultra + M5 Max and M5 Ultra x 2, default and raised, and that each offered placement fits every Mac's GPU limit and its memory at rest. Red first: 5 placement checks and 3 provider tests fail without the fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(integration): the cluster runners compile ClusterOnboardingBrand.swift The mode lines' fit (#1797, d3d2e76911) measures rows with ClusterOnboardingBrand.textColumns in ClusterOnboardingFlow.swift; the control, installed-session, diagnostics, console and placement-flow runners compile that file without it and stopped at "cannot find 'ClusterOnboardingBrand'". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(provider): publish a pair's capacity once its admission is settled `releaseLane` published the capacity on its own, so `complete` published a snapshot with the admitted request's lane free and not yet in `actives`, and published again a moment later. The caller now publishes once: `complete` on return (as it already did), the refused reservation after its release. The same queue turn, so the lane check and every count are unchanged. Also the bridge's comment on `submitAwaitingQueue` no longer says a reservation holds the pair's queue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): two Macs of the same hardware are planned at the same speed, so the first pipeline offer is the split that loads R6-3 (M5 Ultra pair, DevNet branch.81): with nothing serving, right after production's pair stopped, the mode question's first offer for GLM-5.3-Flash's pipeline was "this Mac 1 layer / the other Mac 44 layers"; 24 / 21 loaded, and every later offer said 24 / 21 (R3-3, R4-7 and R4-13 saw the same flip). Why: until a model has served on the pair, ClusterHardwarePrior.absolute gives each Mac the rates of its own device index, about a second of GPU work sampled when the profile is read (and slow beside other GPU work, such as another app's pair unloading). A pipeline's time is each Mac's layers at that Mac's rate, so between two identical Macs any difference moves the whole cut to one end. In a placement check on two M5 Ultras 256 GB with GLM and the keyed link measured, an index 0.1% lower on one Mac turns 24 / 21 into 1 / 44. Once the pair has served, speeds are keyed by chip and OS build, the same for both, and the cut is balanced: the later offers. No cached plan or stale memory sample was involved; the adopted plan is still the one shown (83bc9b9480). Fix: ClusterHardwarePrior.sameHardwareIndex. Macs with the same chip, GPU cores and OS build take the fastest index any of them measured with the same benchmark, as the speed estimator already takes their ratio as 1. Other hardware keeps its own index. Order-independent, so both Macs compute the same plan. Checks: placement check "glm first offer" (indices equal: 24 / 21; this Mac's 0.1% or 3% lower, the other Mac's 0.1% or 10% lower: the same 24 / 21 and one rate; fewer GPU cores keep a slower rate). Red without the fix: 8 of 1586 failed (1 / 44 and 44 / 1). Two DistributedAutomaticBatchPlannerTests modelled a faster Mac by its index alone on the same hardware; their faster Mac now has more GPU cores. Changelog: cluster-mode-question-and-local-network-row.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * cluster: each paired Mac names its part at the top, "Leading Mac" or "Joining Mac" The owner, 2026-11-05: "at the top of the Dark Bloom logo, if it's darkbloom cluster, put lead and or member … So the user always knows which machine is the leader, and which is the member." - A paired Mac's opening (darkbloom cluster, and the screen start, stop, restart and update open in a terminal) is titled "Darkbloom cluster · Leading Mac" or "Darkbloom cluster · Joining Mac" (ClusterOnboardingDriver .title(_:)), the screens' own words for the two Macs. Beside the mark it is the second row; without room for the mark, the heading line; in plain output, the first line, once. It is read from the saved role at each run, so a lead that moved is named as it is now. - A first setup, before the two Macs pair, keeps "Darkbloom cluster" alone; the pairing's own line then says which Mac leads. - Rendering only: no screen's text below the title changes. Onboarding checks: 1589 passed, 0 failed (the new role checks, both Macs at 80 and 40 columns and plain, failed 12 on the base; one older check updated to the new title). Filtered swift test (ClusterOnboarding|ClusterPairCommands| DarkbloomCommandLook), sandboxed: prod 28 + 105 tests passed. Dev: 28 passed; ClusterPairCommands has 72 issues in dev identity, the same 72 on the base without this change (its expectations name `darkbloom`, the dev build says `darkbloom-dev`). docs-check and changelog-check OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(cluster): gpu-limit on every Apple silicon Mac with 128 GB or more Owner, 2026-11-05: "yes widen, why wouldn't we". - ClusterGPUMemoryLimit.raisedByDarkbloom is capability-based: Apple silicon of any M generation (the chip's own name, no generation allowlist) with 128 GB or more. GLM5NextGPULimitEligibility delegates to it and gives the plain refusal (not Apple silicon; under 128 GB); the command prints it and exits 2. The planner's memory verdict counts an M4 Max's (or M3 Ultra's, M2/M1 Ultra's, M3 Max's) raise where it makes a split fit, so the model row names `gpu-limit` on that Mac first. - The values are the planner's ceiling (memory less 16 GiB, a sixteenth from 512 GB) and 95% wire limits; GLM5NextWiredLimitRequest still refuses any other value. - A Mac that does not report iogpu.wired_limit_mb or a wire limit is never changed: refused with the setting's name before any question. - Consent, macOS's administrator prompt, the boot job, the read-back before ✓ and --undo are unchanged; the prompt's "leaving macOS N GB" is computed. - Wording everywhere: "Apple silicon Macs with 128 GB or more". Red first: 5 placement checks and 3 of 20 provider tests fail on the M5-only rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): ✓ through Darkbloom only for a pair the coordinator serves publicly DevNet 2026-11-05 (0.10.6-dev.branch.82): a Gemma 4 26B tensor-parallel pair committed under the model approval devnet/gemma-4-26b-qat-4bit/s1 and both screens said "✓ Serving … through Darkbloom", cluster status `serving`, while every public request got 429 `cluster_not_public … (unqualified)`. The coordinator serves a session to any account only under a promotable parity qualification of its approval and mode family. Qualifications attach only to a build-pinned approval and a release derives them only for the models it declares public (ClusterPublicModels), so a model approval or a pair approval saved by hand serves its owner only. Branch.82's release block had no Gemma (DevNet's catalog lacked it when it was published), so the Macs could only take the hand-posted model approval. - ClusterPublicServingCheck.ownerOnlyReason applies that rule to the saved approval and the setup's mode family; each offered part writes the reason to its log after it registers (ClusterMemberPreparation.ownerOnlyReason). - pairLook and ClusterPairSummary.ownState: a pair that serves with that notice is "Not serving publicly: the coordinator paired both Macs but doesn't send public requests to this pair (…)", with what to do (ClusterOnboardingNotServing.notPublicRemedy), never ✓. The provider still can't see the coordinator's other public checks (account, data plane, member verification). Tests (red first): ClusterPublicServingCheckTests (DevNet's own approval entries), ClusterPairCommandsTests.ownState. Onboarding checks: 1508 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cluster): the coordinator's wait says only what the Macs report, can be left, ends on a stop; the joining Mac follows a model change DevNet pair-2 (branch.81/82, 2026-11-05): - The 15-minute ✗ blamed Apple verification on two authorized Macs (the coordinator refused serves_model): pairServing kept the first reason it ever saw. ClusterOnboardingPairWait decides look by look; at the bound with nothing reported it says the coordinator didn't pair both Macs within 15 minutes (its own reason when known, e.g. #1799's catalog refusal). A trust word on Macs that report their authorization is the coordinator's, never Apple's. - q/Esc did nothing in the coordinator's wait: awaitPairServing now leaves on them, saying the pair keeps trying and to check with `darkbloom status`. A `cluster stop` from anywhere ends the leader's wait at once (its saved start is off) and the joining Mac's once the leader's status stays Stopped 20 s: 'Stopped (by `darkbloom cluster stop` on one of the Macs) …'. - R5-8: `darkbloom cluster` on the joining Mac follows a start the leading Mac publishes (a model or mode change, a Retry) instead of 'This Mac runs its part by itself … Close'. Onboarding checks (WaitHonestChecks.swift) failed first: 8 behaviour failures against 88740bd446's flow, the pure checks by compile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(cluster): the coordinator's wait, leaving it, a stop, and the joining Mac following a model change Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * cluster: a color screen folds each finished step to one line; the whole flow goes to a log The owner, 2026-11-05: "Is there any way to also capture all of the flow in one space, instead of the next line keeps dragging down … instead of keep dropping down a million lines in the CLI." In a color terminal at least 40 columns wide (ClusterOnboardingTerminal only): - When the next step's heading comes, the step that finished folds to one line, "✓ 2/4 Pair (1 min 12 s)", above the lines that stay: the question before each choice with the answer taken (the pairing code among them) and any outcome block. The last step and the outcome stay whole. - It folds only when all of the step is still in the window (its rows, counted at the window's width now, under the window's height now): rows that scrolled off can't be redrawn, so a taller step is left as it is. A step that showed a ✗, or during which another command wrote to the terminal (sudo, darkbloom login, through `suspended`), never folds. - Each run's whole flow, plain and line by line, goes to ~/.darkbloom/cluster-setup/screens/screen-<UTC time>Z-<pid>.log (owner-only, the 20 newest kept). Its path is the last line ("Full log: …"); a ✗ block names it instead. - Plain output (pipes, NO_COLOR, TERM=dumb, narrower than 40 columns) is byte for byte unchanged, and writes no log. - Both Macs; the role title (2d702ae1d9) and the joining Mac's progress rows are unchanged. No screen text changes, so other branches' text merges. Onboarding checks: 1630 passed, 0 failed. The new fold checks (leading Mac at 80 and 40 columns and through a resize, joining Mac at 80, a step taller than the window, plain unchanged and no log, the ✗ block's log line), checked on a small terminal emulator of the raw output, failed 14 on the base with only the interface; one older check's bloom test now matches the bloom's own redraw. Filtered swift test (ClusterOnboarding|ClusterPairCommands|DarkbloomCommandLook), sandboxed: prod 28 + 105 passed. Dev: 28 passed; ClusterPairCommandsTests keeps its 72 dev-identity issues, as on the base (`darkbloom` vs `darkbloom-dev`). docs-check and changelog-check OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(provider): a pair's batch replan that cannot be swapped in is proposed again and again (red) Pair-2 (M3 Ultra + M5 Max, Gemma 4 26B tensor parallel served locally) logged proposal lanes=8 -> prepared -> rollback_prepared every ~35 s, each cycle draining the lane and reloading the old setup (~15 s). Gemma has no tensor-parallel batch quote, so queued demand priced an 8-lane pipeline. The local server swaps in only a session with the same endpoint contract, and Gemma captures committed-token logprobs in tensor parallel only, so the swap fails after the drain, and nothing remembers the failure. Four checks, red against stubs that keep today's behaviour: - the planner's endpoint predicate allows a tensor-parallel Gemma generation to be replaced by a pipeline; - it disagrees with the session profiles the server compares; - a replacement that failed after release is allowed again at once; - the factory proposes a width that just failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(provider): a pair's batch replan keeps the API's features and remembers a failed width Pair-2 (M3 Ultra + M5 Max, Gemma 4 26B tensor parallel served locally) repeated proposal lanes=8 -> prepared -> rollback_prepared every ~35 s. Each cycle drained the lane, adopted a setup on both Macs, failed, and reloaded the old setup (load_ns ~15 s), so queued requests waited minutes (4 at once: 118 s; a health request: 412 s). - Gemma has no tensor-parallel batch quote, so its batch scope prices only the pipeline, and the planner proposed an 8-lane pipeline. The local server swaps in only a session with the same profile, and Gemma captures committed-token logprobs in tensor parallel only, so `prepareGeneration` refused it (`replacementIdentityChanged`) after the drain. The planner now refuses a width whose mode changes the endpoint contract before anything drains (`keepsEndpointFeatures`; `cluster.batch_replan refused`, `reason=endpoint_features`). - Nothing remembered a replacement that failed after release. The factory now records it when the host asks for the restore (`cluster.batch_replan failed`), and proposes that setup and width again only after 2 minutes, doubling per repeat, at most 30; a changed setup is tried at once (`DistributedAutomaticBatchFailures`). The memory-based width choice is unchanged: only widths both Macs admit now are proposed. The logprobs rule, the factory's Gemma eligibility and the binding check date from 8197ff922e (v0.10.6), not 0.10.9. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(cluster): a Gemma TP pair serves one request at a time, and a cancel in its prompt keeps that lane Option (a), pricing a Gemma tensor-parallel batch width, is not safely possible in this window. Gemma's TP runtime does run batched lanes (`Gemma4TensorParallelLaneReservation`, `pagedHost(lanes:)`, the lane contract), but nothing prices them: there is no Gemma tensor batch quote (`ClusterPlacementTensorBatchQuote.runtimeModelIDs` is Qwen only), no saved `batchLanes` for Gemma TP (`ClusterConfiguration`), and the TP-to-TP replacement path (incumbent shares) is Qwen only. The wording was already truthful: the mode question and the setup's lanes come from `DistributedInstalledPlan.batchLanes`, which gives Gemma TP its default of one. Two guard checks pin it (green on this base; no source changes here), and the docs now state the known limitation: at one lane a cancel during the prompt is a clean stop at the first token, so the lane is held until the prompt is read (~68 s for 15.8K tokens on pair-2), as on a GLM pipeline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Provider toolchain: build and release with Xcode 27.2 (SDK 27.2, Swift 6.4.2) The Darkbloom Sandbox macOS CI base moved to Xcode 27.2 (27B52), which has no SDK 27.0. prepare-provider-release-toolchain.sh accepted only SDK 27.0, so every provider CI job failed in its first step. - DARKBLOOM_PROVIDER_TOOLCHAIN=release (release-provider.yml, provider-signing-validation.yml, master and dispatched release preparation) accepts SDK 27.2 and Apple Swift 6.4.2 only. - The default, qualification (ci.yml, pull-request release preparation, the sandbox base check), accepts SDK 27.2 or 27.0 and Swift 6.4.x. SDK 27.0 stays while production runs the Xcode 27.1 base (issue 1790). - The step tries the image's Xcode, then each installed Xcode, newest first, and takes the first with SDK 27.2. It exports DEVELOPER_DIR when it selects another Xcode, so Metal, xcodebuild and signing match. - PROVIDER_SDK_VERSION is the selected SDK. The older-macOS smoke and the release resume expect 27.2. - The signing validation workflow uses the same step and wrapper. - mise pins Swift 6.4.2. Docs and a changelog fragment follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Provider toolchain: refactor pass on Xcode selection Behavior-preserving cleanup of the 27.2 toolchain step: - One path for an explicit toolchain root and an image CLT; the Xcode candidate search is the select_xcode function. - The Applications folder is read once. - No ticket number in the script, build docs or changelog fragment; the removal condition for SDK 27.0 stays stated. - The toolchain tests share one GITHUB_ENV reader. Accepted SDK and Swift versions, modes, outputs and messages are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * CI: route the macOS jobs through Darkbloom again (Blacksmith fallback); reverses #1733 part 1 (#1771) * ci: route the macOS CI jobs through Darkbloom again (Blacksmith fallback) Reverses only part 1 of #1733, which pinned the macOS jobs of ci.yml to blacksmith-12vcpu-macos-27. The route job again requests a Darkbloom lane for each macOS job that will run, and each job runs on its lane's decision: - test-provider-1..3 (one per shard), test-provider-summary - test-provider-sdk - test-cluster-checks, test-cluster-1..3, test-cluster-gpu-1..2, test-cluster-focused This is dev's wiring from just before #1733 (per-shard lanes from #1691, cluster lanes from #1737) with today's matrices and conditions: 3 provider shards (#1749) and the cluster component gate. The fallback label, the shard matrices, SAVE_CACHES and #1752's .git and SwiftPM caches are unchanged. A lane that the pla…
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
PR CI did not run the
libs/darkbloom-clustertest suites.DarkbloomClusterRuntimeTests(about 920 tests) and 22 of the 26 runner scripts underlibs/darkbloom-cluster/Testsran only on their authors' Macs. This PR runs them on the existing Blacksmith macOS runners, on every pull request that changes provider code.scripts/cluster-test-plan.pyis the one place that says which CI process runs each test. Base selections run every test that needs no environment switch. Opt-in selections run only the tests that one switch enables (for exampleQWEN_TP_MTP_GPU=1), each in a process of its own, asdocs/developer/test.mdrequires. Every process starts withMLX_QMV_BATCH_INVARIANT=1, as every cluster process does. Every selection goes throughscripts/run-nested-suite.sh, which fails when a selection runs no test or skips one. The base selections pass--skipfor exactly the switched and model-gated tests, so a new gate that the plan does not name fails the job.Provider Testsgate.PrefillScheduleChecksnow, in its retained native build.provider-ci-buildhas aclusterlane:swift build --build-testsinlibs/darkbloom-cluster, its own cache key, and the source-matched metallib.scripts/test-cluster-test-plan.py(Release Integrity) checks that the plan names each gated test in the sources and each runner once. It also checks that the selections' filters cover every test exactly once and that the workflow matrices match the plan's shards.Real failures fixed
Three runtime tests failed on the 48 GiB VM because they depended on the memory of the Mac that ran them:
LongContextLimitsTestsandRequestScopedRefusalTestsbuilt an observation of a 128 GiB Mac but added the host's loading headroom. Below 96 GiB the headroom scales down.PrefixCacheContractTestsasserted 128 GiB budgets against the host's prefix-cache ceiling, which is a thirty-second of the host's memory.The tests now use the margins of the Mac that they describe.
QwenStagePrefixCache.budgetandrefreshBudgettake the ceiling as a parameter (maximumBytes), which defaults to this Mac's ceiling. Production behavior does not change.Not blocking
residualRMSNormEqualsTheUnfusedOps,gatedDeltaConvolutionEqualsTheUnfusedOps,gatedDeltaQKNormEqualsTheUnfusedOps,cpuStreamSumIsBitwiseOnGPU,chainWithCPUHopsIsBitwiseOnGPU,transposedCPUSumWaitsBeforeTheCopyOnGPUapplyreturns nil.wideKernelRowsEqualEachRowsOwnWindowCalleveryDepthAndKeptPatternIsTheDepthTwoDecode,loadPolicyLanesAreEachRequestAloneAtDepthTwo,windowWidthCensusfullHistoryGatherIsOnePromptFramesTransientrowsEqualTheirSoloStepsAndWindowPositionsAtRealWidthsverifyAndPrefillAttention,throughputAgainstMLXCalls,wideKernelVariantThroughput,encodingThroughputAtTheBetaShapewideKernelVariantThroughputalso asserts equal bytes and fails for the wide-kernel reason.The tests that need a model directory, an artifact or its metadata (
REQUIRES_MODEL: 15 tests and 2 suites) run in no job, because CI has no model.Before
After
Validation
CI run 41641011298 on head 54687f1 (branch merged with dev 031cb87) was green. Times are job wall times and include the build:
QwenTensorParallelBatchSessionTestson the CPU, 11 testsPrefillScheduleChecksdevbefore this PR, a provider run took about 12 to 16 minutes (runs 41578401364, 41596429243).ci.ymland build-action changes invalidated the provider build cache, so the provider shards built cold (up to 20 minutes).scripts/test-cluster-test-plan.pyand the updatedtest-provider-ci-workflow.py,test-ci-component-paths.pyandtest-darkbloom-route.py. On the run before the dev merge, the audit failed as designed: three new gated tests from cluster: Qwen tensor-parallel prompts prefill in merged steps that overlap their sums (bitwise identical) #1725 were not in the plan. They are now in the plan and pass in shard 3.Limitations
fullHistoryGatherIsOnePromptFramesTransientcan be a real underestimate on M4-family Macs, not only a VM effect. The ledger's prompt transient was measured on M5. I did not change the ledger: that is a capacity-semantics decision for the owner.libs/darkbloom-cluster-worker) are outside this PR.Refactor Pass
An independent subagent reviewed the diff. Verdict: PASS with listed changes. Applied:
MLX_ENABLE_TF32=0selection, so it does not skip on an M5 sandbox.shardssubcommand is removed.run-nested-suite.sh's header is corrected.Not applied: the truth-table cost note (about 3,000 bash processes, roughly 10 s), which is for information only.
🤖 Generated with Claude Code