Skip to content

Sync master (provider 0.10.10, waitlist) into dev - #1855

Merged
jonathan308 merged 12 commits into
devfrom
sync/master-v0.10.10-into-dev
Nov 6, 2026
Merged

jonathan308 merged 12 commits into
devfrom
sync/master-v0.10.10-into-dev

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Brings provider 0.10.10 (master @ 102ba6f74b, tag v0.10.10) into dev, so 0.10.11 keeps the waitlist. One signed merge commit (no rebase).

What comes in from master:

Conflicts (31) and how each was resolved

Git's merge base (d0eeeee8f9) is older than the 0.10.8 and 0.10.9 squash releases. So in every conflict, master's side was an older copy of dev. I redid the merge with 3d636268b3 as the base. That's the dev commit the 0.10.9 release snapshot matches; the only differences are release-only content. With that base, the merge goes through with no conflicts.

27 files take dev's text unchanged. Master had no change of its own in these:

4 files take dev's text plus master's changes. The result is identical to master's file, because dev hadn't touched these since the snapshot:

Merged without a conflict, but the plain merge got them wrong; fixed here:

  • 55 changelog.d fragments that 0.10.8/0.10.9 already rendered stay deleted. The plain merge would have brought them back as pending, which would duplicate them in 0.10.11's notes. Each one was deleted by Prepare provider 0.10.8 #1789 or Prepare provider 0.10.9 #1835.
  • provider-swift/Package.swift and BuildEnvironmentTests.swift keep dev's "dev" default build environment, not master's "prod".

Also checked:

  • feature-waitlists.md is rendered in CHANGELOG.md 0.10.10 and not pending. make changelog-check sees only dev's 10 newer fragments.
  • Version is 0.10.10.
  • All of dev's engine and cluster work since the snapshot is kept: the redo is a clean three-way merge. The dev..merge diff is only master's content.

Tests

Run at nice -n 19 with Xcode 27.2, DARKBLOOM_RELEASE_ENVIRONMENT=prod as CI sets it, and isolated state files. No GPU tests.

  • DarkbloomCLITests, 282 tests in 32 suites: the waitlist, cluster waitlist gate, sandbox setup/--disk/status/add-on/eligibility, and the cluster CLI suites (pair commands, status, console, service update, login agent, doctor cluster).
    • 279 passed.
    • 3 failed, all in ClusterPairCommandsTests (darkbloom start/restart without a terminal). They fail because of this machine, not the merge. The code calls the real ClusterService.running(). This Mac's production pair runs its cluster service from a terminal, so the code prints an extra line: "runs from a terminal session: replacing it with its login agent". The test file and the code are unchanged from dev.
  • ProviderCoreTests ClusterConfigurationTests, ClusterOnboardingPeerLabelTests, ClusterOnboardingStartProgressWireTests: 34/34 passed.
  • Tests/ClusterOnboardingChecks/run.sh: 1829 passed, 0 failed.
  • scripts/check-date-comparisons.py: OK, 1943 files.
  • make changelog-check: OK. scripts/docs-check.sh: 208 files OK. docs-impact-check --base origin/dev: OK.
  • test-{ci-component-paths,cluster-test-plan,darkbloom-route,provider-ci-workflow,provider-test-shards,changelog,docs-impact-check,docs-check-historical-links}.py: OK.
    • test-cluster-test-plan.py needs Python ≥ 3.10, so it was run with 3.14; system 3.9 fails on type | None.

Supersedes #1742 (feat/cluster-waitlist), together with #1850.


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


Review notes (2026-11-06, independent review: approve with nits): the 3 local ClusterPairCommandsTests failures come from this Mac's production cluster service, which runs under its login agent (not a terminal) and holds the real ~/.darkbloom/cluster-setup/service.lock; the tests don't isolate that lock. Both suites pass on CI. Counts after #1844 landed on dev: 11 fragments pending for 0.10.11; 54 already-printed fragments stay deleted. Heads-up for 0.10.11: the changelog.d fragments of #1828/#1831 shipped in 0.10.9 (via #1809) and must not be listed again.

Gajesh2007 and others added 12 commits November 3, 2026 22:38
…); 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.
* test(cluster): an admission deadline ends that request, not the pair

Production, 2026-11-03 23:07-23:19Z: six drops of the GLM-5.3-Flash pair
in 19 minutes, and the same trigger on 2026-11-01 03:37Z (0.10.6). A
request arrived with little of its first-content budget left, rank 0
answered its reservation at its next step boundary, after that admission
deadline, and the leader ended the whole pair.

These checks are red on origin/dev (0f99ddb18) and green with the fix
that follows:

- ClusterWorkerPairAdmissionDeadlineTests (scripted ranks in process): on
  a lane pair, a reservation answered after the request's admission
  deadline ends that request with a deadline outcome while the decoding
  lane finishes and nothing is fenced; a request ended before rank 1 was
  asked never fences rank 1; a closed link still ends the pair.
- LinkWorkerChecks: the same deadline through both real owners and the
  link control channel (the follower printed the production line "fenced
  leader fenced: the request was cancelled before it started"), and a
  relayed reservation past its delivery deadline (the 23:10:25Z variant,
  "fenced command refused").
- PartialAdmissionTests and ProviderDeadlinePipeCheck asserted the old
  behaviour (pair quarantined, both ranks fenced) and now assert that
  only the request ends. missingProof keeps its contract with a rank that
  misses the pair's own admission wait.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): an admission deadline ends that request, not the pair

A request that arrives with little of its first-content budget left can
see a busy rank answer its reservation at its next step boundary, after
that admission deadline. The leader treated that as a pair failure: it
invalidated the pair (every lane in flight failed with "distributed peer
readiness lost"), fenced rank 1, which was never asked ("leader fenced:
the request was cancelled before it started"), and its follower closed
its worker. Production, 2026-11-03 23:07-23:19Z: six drops of the
GLM-5.3-Flash pair in 19 minutes (and 2026-11-01 03:37Z on 0.10.6).

- ClusterWorkerPair.reserve: a deadline during admission, once the
  request's own deadline has passed, is that request's outcome. It is
  cancelled with `.deadline`, so its cleanup retires alone: an answer
  still on its way is read and an admission given back within the lane
  wait, and the pair stays valid. A rank that does not give it back in
  time still ends the pair; every other failure keeps the catch-all.
- ClusterWorkerRequest.admit: a reservation is delivered within the
  pair's admission wait, not with the request's admission deadline.
  Each rank's owner (ClusterWorkerOwnerService) fences a worker whose
  reservation is unanswered past its delivery deadline, so with the
  budget as that deadline rank 0's own owner still ended the pair (the
  link check shows it with the other fixes alone). The request's
  deadline still bounds how long reserve waits for the answers; a rank
  is not asked once it has passed, and a send closed only because its
  deadline passed is that deadline.
- ClusterWorkerRequest.cleanup: a rank never asked is acknowledged,
  never fenced, whatever ended the request.
- ClusterLinkWorkerServer: a relayed reservation that reaches the
  follower past its delivery deadline is that request's refusal
  (commandRefused, deadline), not a fence of the follower's session.

No wire format changes. docs/architecture/inference.md states the rule;
docs/developer/test.md names the checks; changelog fragment added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): cluster link isolation on three Macs after pairing

Three isolated Macs captured read-only on 2026-11-03 after their cable
ports paired (Mac A on en3, the M5 Max and the M3 Ultra on en6). Each
route table holds macOS's host route for the port's own address on the
loopback, `10.219.13.112  <MAC>  UHLWIi  lo0`, which macOS adds once the
address has carried traffic. The link checks run each table through the
inspection, the summary, the guided flow and a dry run of the fix; the
diagnostics checks run Mac A's through the doctor.

On origin/dev every one of them reports the port as not isolated
(clusterSubnetInUse), as the three Macs do; the next commit fixes that.
An address in 10.219/16 on a VPN tunnel, a route into it through utun,
bridge0 or another en port, and a loopback route for an address the port
does not carry still block, and are checked to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Offer Pair again in darkbloom cluster for a pairing it cannot use

On 2026-11-03 both Macs of our pair held a pairing made with the other
app's Secure Enclave key: `darkbloom cluster` showed its usual menu while
every start of the part ended "This Mac's Secure Enclave key is not the
one it paired with; pair again", and recovery took the hidden
`cluster pair --status --json` and `--forget` on both Macs. A Mac that
still holds a pairing its other Mac no longer has says "Nothing to do
here" (member) or offers no way out (leader), while that other Mac waits
at 2/4 Pair.

- `OnboardingLive.resume` reports `keyChanged` when the pairing's local
  pin is not this Mac's current key, read without creating or repairing
  a key (`ClusterPairingProvider.existingPin`).
- A resumed Mac asks the other Mac once over the cable
  (`otherMacAnswers`); when it is silent, the member offers Try again,
  Pair again or Quit and the leader adds Pair again to its list.
- Pair again runs `ClusterUnpairing` (the steps `cluster pair --forget`
  takes, now shared with that command, whose output is unchanged), then
  the ordinary pairing.

Checks fail first on 0f99ddb18 (44 failures, only in the new checks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Document Pair again for moving apps, reinstalling and re-pairing

The two-Mac guide gains "Pairing again" (moving between the Darkbloom
and DevNet apps, reinstalling, a reset or replaced Mac) and the 2/4 Pair
symptom; the CLI reference, troubleshooting and the inference
architecture page say what `darkbloom cluster` checks and offers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): a paired Mac's own loopback route leaves its cable port isolated

Once a cable port's own address has carried traffic, which pairing does,
macOS reaches it through the loopback with a cloned host route
(`10.219.13.112  <MAC>  UHLWIi  lo0`). The isolation check counted that
route as the cluster subnet used on another interface, so every paired
Mac said "not isolated: the cluster subnet 10.219/16 is already used on
this Mac", `cluster doctor` failed localLinkIsolation.<device>, and
`cluster link --fix` (also --dry-run) refused with isolationRefused.
Seen on three Macs on 0.10.7 and on an end user's Mac (rdma_en1); the
M3 Ultra was isolated before it paired and not after.

The route reader now counts a loopback host route to an address that an
interface carries in `ifconfig -a` on that interface
(ClusterLinkNetworkFacts.clusterSubnetRouteInterfaces), and the readiness
probe hands the inspection the listing it already read
(ClusterLinkIsolationInspection.machine(run:interfaceListing:)). Only
interface names leave the reader, and status is unchanged. An address in
10.219/16 on another interface, a route into it through utun, bridge or
another en port, and a loopback route to an address that no interface
carries still block. The repair paths read only services and bridges
from that reading and pass no listing.

Checks: ClusterLinkChecks 2502 expectations in 46 groups (21 failed on
origin/dev, all on the three captured tables); ClusterDiagnosticsChecks
passes with Mac A's table through the doctor (failed on origin/dev).
docs-impact, docs-check and changelog-check pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(provider): keep route destinations inside the link network facts reader

ClusterLinkNetworkFacts.routeInterfaces(_:where:countedOn:) passed each
route's destination, an address, to a caller's closure and returned
whatever that closure made of it. A private row reader, routes(_:), now
keeps destinations inside ClusterLinkNetworkFacts.
defaultRouteInterfaces and clusterSubnetRouteInterfaces filter its rows
and return interface names only. The loopback rule now lives entirely in
clusterSubnetRouteInterfaces, and the defaulted countedOn closure is
gone. The rows, their order and the nil for text that is not a route
table are unchanged.

ClusterLinkIsolationInspection.machine(run:interfaceListing:) keeps its
empty default. Without the listing a loopback route stays on the
loopback, so status can only be stricter (clusterSubnetInUse); it never
passes a port that is not isolated. The doc comment now says so, and
says that the repair leaves the listing out because it reads only
services and bridges. Making the listing required would touch the repair
paths, and --remove would still need an explicit empty listing or one
more ifconfig -a.

The fixture MAC addresses move to the EUI-48 documentation block
(0:0:5e:0:53:xx, RFC 9542). The gateway column is not read, so no
assertion changes. One test-local name, tunnelRoute, becomes
loopbackRoute, because the route goes through lo0. The README notes that
the cluster addresses are as captured and that the Wi-Fi address was
replaced. The architecture section now says that any loopback route to
an address the port does not carry still blocks, including utun4's. The
changelog fragment is one operator sentence.

Checks: ClusterLinkChecks (2502 expectations in 46 groups) and
ClusterDiagnosticsChecks pass, as do docs-check,
docs-impact-check BASE=origin/dev, changelog-check and git diff --check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): say Serving and Done only once the pair is loaded

On 2026-11-03 the owner's M3 Ultra + M5 Max and an end user's 2x M4 Max
both printed "Serving" and "Done" while nothing was loaded: a pair offered
for pairing counted as tested, and register() discarded awaitReady's result.

The driver now waits for a pair offered for pairing to serve (operation
pairServing: rank 0's pair slot published, both ranks loaded, first request
answered) before it says Serving or Done; a start that does not serve, the
restart after the registration included, says why in one line and stays
open with Retry, Change model, Serve locally only and Diagnostics; q exits 1.
A Mac without a Darkbloom login is named before the Start step starts
anything, with darkbloom login or local-only serving offered.

Onboarding checks (a)-(d) fail first (30 failures on the driver as on
origin/dev) and pass after (765 passed, 0 failed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): report the pair's real progress and why it does not serve

Rank 0's coordinator-paired part writes its pair's progress to its log
(Pair: starting / serving (first request in N s) / stopped (<guidance>)),
from serveCommittedStart and the pair slot's publication and retirement.
Each cluster service publishes the latest line, the member's App Attest
authorization from the coordinator's trust status, and whether the Mac has
a Darkbloom login (ClusterServiceStatus.Child.pair, Child.appAttest,
loggedIn; all optional, nil from an older build).

OnboardingLive.pairServing waits up to 15 minutes for rank 0 to serve; a
missing login ends it at once, App Attest, memory or a stopped start after
90 s. The status line of a registered pair says Serving only while it
serves, else "<model> is not serving yet: <reason>." with what to do.
missingLogins and login back the login check before the Start step.

Docs: two-mac-cluster, troubleshooting, architecture/inference; changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cluster): tighten the admission-deadline comments, docs and changelog

Behavior-preserving cleanup of the admission-deadline fix (the required
refactor pass). No source logic, wire format or test assertion changes.

- ClusterWorkerRequest.admit: drop the claim that every command is delivered
  within the pair's admission wait (start and token decisions use the
  request's generation deadline, cancels the cleanup wait). Say why a send a
  still-serving endpoint closed is a deadline, not a lost rank.
- ClusterWorkerRequest.cleanup: state the never-asked rule once, at its
  branch, instead of in three overlapping comments.
- LinkWorkerPairCheck: one local helper relays each leader command in the
  expired-reservation check, instead of three hand-built wires.
- ClusterWorkerPairAdmissionDeadlineTests: drop the task-list labels (a)
  and (c) from the doc comments.
- docs/architecture/inference.md: fold "a rank not yet asked is not asked"
  and "only a rank that does not give the reservation back in time ends the
  pair" into the sentences they belong to, with the same facts; restamped.
- changelog: the heading and one plain sentence for pair owners.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test that an attestation already with Apple survives a disconnect or a stop

Apple attests a key once. When the exchange running attestKey is cancelled
by a connection end or a planned stop, the provider drops Apple's answer,
retires the key and refuses a replacement for an hour (production,
2026-11-03: a pair leader answered busy for the whole hour, so the
coordinator refused its MiMo, Qwen 3.8 and Gemma pairs).

- CancelledAttestationTests: a connection end 0.2 s into a one-second Apple
  call keeps the proof for the next connection; a prepare that arrives
  meanwhile waits for it and Apple is asked once; a call cut off by a
  process exit is still retired; an Apple timeout is still retired.
- ProviderLifecycleTests: the lifecycle drain (SIGTERM, darkbloom stop, a
  cluster part stop) waits for Apple's answer before it completes.

These fail on origin/dev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): end the setup with an unmistakable outcome and show progress

From the owner's call with an end user (2x M3 Ultra and 2x M4 Max on 0.10.7):
the setup "just ends", step 4 gave no sense of time, and a failure gave no
reason.

The Start step now opens with "Loading takes a few minutes for a large
model; both Macs show progress here." and, on a color terminal, the waits
draw one live row per Mac with the time since loading began (no bar or
percent: no load fraction is reported). The setup ends with its outcome as a
block between two rules: "✓ Serving <model> through Darkbloom on both Macs
(<split>)" or "✓ Serving <model> on this Mac's local API only", with the API
and test response under it, or "✗ Not serving: <reason>." with the next step
before the choices. The other Mac's window says where to look and shows the
same block from the cluster's status. A Mac Apple has not verified yet is
named with when Darkbloom retries by itself, and to restart neither Mac.

Onboarding checks (e)-(h) fail first (15 failures on the previous driver)
and pass after (796 passed, 0 failed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): say when Apple verification retries, and each Mac's load row

Each Mac's cluster service now also passes the end of its member's local
App Attest key-generation safeguard (ClusterServiceStatus.Child
.appAttestRetryAt, read only from the daemon state's AppAttestKeyState
.generationBlockedUntil; nil when nothing blocks it or from an older build).
The not-verified reason names that time in local time ("… retries by itself
at about 00:34. Don't restart either Mac until then."), or "within minutes".
An end user's M4 pair was refused this way for an hour after the setup's own
restart cut its leader's attestation (production telemetry, 2026-11-03).

pairLook's progress carries one row per Mac (registering, registered,
loading its share once rank 0's part reports the committed start); the
status line keeps only the wait's first line.

Docs: two-mac-cluster (Start notice, live rows, outcome block, the reason's
time), troubleshooting, architecture/inference; changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Name the next step on paired Macs and offer Start over

Real evidence from 2026-11-03. The owner's second pair: the M5 Max kept
pair-3ef77b9cb92b (10-23, 0.9.22) and said "Nothing to do here", then
showed the leader's menu; the M3 Ultra waited at 2/4 Pair, and "3/4
Model" spun with no message (0% CPU, no child). An end user's 2x M3 Ultra
session: the run ended at "Cable port set up", the next run said
"Nothing to do here", and starting over took wiping files by hand.

- Reading both Macs says each new reason the other Mac has not answered
  (reachMembers gains a waiting callback; the reasons were computed and
  dropped). On a Mac paired before this run it ends with Try again,
  Pair again or Quit; right after pairing, Try again or Cancel as before.
- Setting up a cable port from the member's screen or the leader's list
  continues to that screen instead of ending.
- The member's last line names the Mac it follows and the command to run
  there; its one choice is Start over (pair again), enter quits.
- Every paired Mac whose pairing works offers Start over (pair again)
  with one confirmation (No by default), then the Pair again steps. A
  pairing that cannot be used keeps Pair again, without the question.
- The silent sentence now says to run `darkbloom cluster` on the other
  Mac first (its cable port may need setting up too).

Checks fail first on 9f9ddf1ed (47 failures, new and changed
expectations only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Document Start over, the member's next step and the reach wait

The two-Mac guide, CLI reference, troubleshooting and the inference
architecture page describe Start over (pair again), the member's line
naming the Mac it follows, the cable step that continues, and the reach
wait's reasons; the changelog fragment says what operators now see.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep an App Attest attestation that a disconnect or a stop cut off

Apple attests a key once, so a key whose attestation answer is lost must
be retired and replaced, and a replacement waits an hour. The exchange that
ran attestKey was cancelled by a connection end or a planned stop:
CallbackDeadline resumed it with CancellationError, dropping Apple's
answer, and the catch block retired the key. A process that exited mid-call
left attestationStartedAt without a proof, which the next prepare retires.

- attestToCompletion runs attestKey in its own task, outside the exchange's
  cancellation. The exchange still waits for Apple's answer, bounded by the
  existing 25 s callback deadline, and records it exactly as before: the
  proof with its original enrollment session and status, or a retirement
  for a definite failure or a timeout. A cancelled exchange starts no new
  Apple call.
- While such an answer is outstanding, a new exchange waits for it (at most
  outstandingAttestationWaitSeconds, 30 s) instead of answering busy, so the
  next connection finds the cached proof.
- stopAppAttestWorkerAndWait (every drain: SIGTERM/SIGINT, darkbloom stop,
  a cluster part's stop) and stopAppAttestWorkerForUpdateAndWait wait for it
  with the same bound before the process ends. Past the bound they proceed.

Unchanged: a crash, SIGKILL or Apple timeout still retires the key under
the one-hour rule; the generation budget and per-key cooldown; assertions;
the stall restart; the coordinator's verification of every proof.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Document that an attestation outlives its cancelled exchange

The canonical enrollment rules (reference/app-attest-shadow.md: Failed
one-time enrollment, Cancellation) now say that a cancelled exchange keeps
waiting for Apple's answer and caches the proof, that the next exchange and
planned stops wait for it at most 30 s, and that only an attempt the
process did not outlive leaves a key to retire. The security architecture,
provider component and operator pages link to them. Changelog fragment
added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cluster): one source for the not-serving words and the live wait

- The check runners that compile ClusterOnboardingFlow.swift (control,
  placement flow, diagnostics, installed session, console, GLM image
  admission) also compile ClusterOnboardingPairServing.swift: the driver
  uses its types, and those runners stopped compiling at 5a604f83be.
- ClusterOnboardingNotServing owns the status line, its read-back on the
  other Mac and the outcome's title (statusLine, reason(inStatusLine:),
  title(reason:)), and isMissingLogin for the remedy and the wait's hold.
- One live-rows wait (waitWithRows) for the parts and for the pair; one
  local-only rule (ClusterOnboardingReady.servesLocallyOnly) for the
  outcome block and servesWords; missingLogins(peer:) shared by pairLook.
- Checks: the member's status fixtures come from the producers; the
  screen budgets are constants with one comment; the status-line
  contract is asserted. Every transcript is byte-identical.
- Docs and changelog: the joined line's quote, live rows, the hold's
  wording, the split's place; a shorter fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test that App Attest survives the self-update's app swap

Report 6024: after updating to 0.10.7 an M5 Ultra answered every App Attest
ready with is_supported_false for 70 minutes, in the GUI session, across
0.10.7's automatic restart and five manual restarts, then recovered inside a
running process. DeviceCheck also reads macOS LaunchServices' record of the
running app, and the update swaps Darkbloom.app in place without refreshing it.

These tests fail on dev:
- AppleAppAttestService re-registers the running bundle once per process on an
  unsupported answer and asks Apple again (no seam exists yet);
- SelfUpdater registers the installed app with LaunchServices after a commit,
  and not after a refused one (no seam exists yet);
- doctor stops sending a provider that already runs in the GUI session to
  Screen Sharing and a restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): darkbloom uninstall keeps or removes, inside Darkbloom's folders

An end user on provider 0.10.7 ran `darkbloom stop --uninstall`, saw
"Provider service uninstalled", and still had the cluster setup, the
pairing and the settings; his agent then wiped things by hand to start
over. These checks describe the command that replaces that: one
`darkbloom uninstall` that either keeps models and settings or removes
everything, and never deletes outside Darkbloom's folders.

ProviderUninstallTests runs on a fake home in a temporary root: the real
provider, watchdog and cluster service agent removals go through a fake
launchctl (LaunchctlControl's task-local runner and home), and the drain,
`cluster pair --forget` and `cluster link --remove` are recorded stand-ins.

- (a) keep: every agent is booted out and its file removed; every other
  file is unchanged; nothing is unpaired.
- (b) everything: settings, caches, Darkbloom's models, the cluster model
  store, the command link and ~/.darkbloom (last) are gone; forget and
  link remove run once each, forget first; another tool's model and a
  chosen model folder stay.
- (c) dry run: lists every action and path with sizes; no file and no
  launchctl call changes.
- (d) a model folder linked to another disk, settings linked elsewhere,
  a foreign command link and a link inside ~/.darkbloom: refused or not
  followed, and what they point to stays. A model cache that is a link,
  or shared with another install, is kept.
- (e) without a terminal, no mode (or no --yes) refuses with one line.
- (f) a paired leader and member end with the right line about the
  other Mac, in both modes.
- (g) a failed step is reported and the safe steps after it still run;
  a service that did not stop keeps every file; a provider that did not
  drain keeps its agents. A second run fails nothing.

UninstallCommandTests parses `uninstall` and its flags, refuses
conflicting flags, and keeps `stop --uninstall` as it is.

Red on origin/dev (0f99ddb180): ProviderUninstallTests does not compile
("cannot find type 'ProviderUninstall' in scope"); with it set aside,
UninstallCommandTests fails 3 of 3 (unexpectedExtraValues "uninstall",
"Unknown option '--keep-data'", stop's help names no uninstall).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(provider): add a setup prompt for AI agents (one Mac or a two-Mac pair)

docs/provider/agent-setup.md is the file a person hands to their own AI agent
("point your agent at this file"). It walks the agent from install to a Mac,
or a two-Mac Thunderbolt pair, that serves through Darkbloom: the official
installer and signature check, login, doctor, one-Mac start, cable/link check,
pairing, model choice (tensor parallel vs pipeline), start, and verification
that does not trust the setup screen alone (status lines, the pair's log, a
self-routed test request). It lists the human-only actions up front, explicit
STOP points, the agent's safety rules, troubleshooting signals (App Attest
safeguard, the pre-0.10.8 link isolation false alarm, stale pairings, memory,
login), reporting and uninstall. Lines that describe 0.10.8 behavior still on
unmerged branches carry <!-- 0.10.8: confirm after merge --> markers.

One pointer line each in docs/README.md and README.md; changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Refresh LaunchServices so App Attest survives the self-update's app swap

The self-update swaps Darkbloom.app in place (renameatx_np RENAME_SWAP) and
never tells macOS LaunchServices. DeviceCheck also reads LaunchServices' record
of the running app (our native qualification harness registers its candidate
with lsregister -f for this reason), so isSupported stays false in every
process until LaunchServices re-registers the bundle. Fleet data: 12-15% of
updating macOS 27 Macs at the 0.10.6 and 0.10.7 rollouts, cleared after
minutes to hours. 0.10.7's automatic restart recovered 1 of 117 such Macs,
and 52 Macs without the MDM profile sat at trust_floor (report 6024).

- AppleAppAttestService.checkAvailability: the first unsupported answer in a
  process re-registers the running bundle (LSRegisterURL, as lsregister -f)
  and asks Apple again, so the exchange that meets a stale record succeeds.
  This covers the first update to this version, which the old updater runs.
- SelfUpdater.commitStagedBundle registers the installed app right after the
  swap, on the signature-verified path only; tests inject an observer and
  never write the machine's LaunchServices database.
- doctor: is_supported_false inside the GUI session no longer advises Screen
  Sharing and a restart; it names the self-update cause and the lsregister
  command. Background and unknown sessions keep the old advice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(provider): darkbloom uninstall, keeping models and settings or removing everything

`darkbloom stop --uninstall` printed "Provider service uninstalled" and
left the cluster service, the pairing, the cable port setup, the
settings, the models and the app on the Mac. An end user (provider
0.10.7, four Macs in two pairs) could not start over without having his
agent wipe files by hand. The team's call: "never coming back (remove
config & weights); might be coming back (keep the config & weights)".

`darkbloom uninstall` does that. In a terminal it shows what each choice
removes, with sizes, and asks 1, 2 or 3:

1. Keep models and settings: the drain of `darkbloom stop`, then
   `darkbloom cluster stop` (with `--local-only` when the other Mac does
   not answer), then the provider, watchdog and desktop API agents as
   `stop --uninstall` removes them. Every file stays. The summary ends
   with how to come back: install again, then `darkbloom start` or
   `darkbloom cluster`.
2. Remove everything: also `cluster pair --forget` for each pairing (one
   call each, before the cable is touched, so a leader still tells its
   member), `cluster link --remove` (the same macOS prompt), and then
   Darkbloom's folders one step each: settings, encrypted caches, the
   models Darkbloom downloaded (a receipt or an unfinished download in
   the default cache), the cluster model store, the `/usr/local/bin`
   link the installer made, and ~/.darkbloom last, since the app this
   command runs from is in it. The summary says what was removed and
   the space freed on the home volume.
3. Cancel.

For scripts and agents: `--keep-data` or `--everything` with `--yes`,
`--dry-run` (with `--json`), and stop's `--timeout`/`--force`. Without a
terminal, no mode (or no `--yes`) prints one usage line and exits 64.

Safety. ProviderUninstall.inventory lists every target with its size and
a verdict. A target is deleted only when its resolved path is one of
Darkbloom's roots or inside one (ProviderUninstallPaths.roots); a link
to elsewhere, or a folder with another disk mounted inside, is refused
and reported. FileManager removes links inside a folder without
following them. A model or cache folder the person chose, a default
model cache that is a link, other tools' models, and models another
install (~/.darkbloom-dev) shares are kept and listed. Keep mode never
reaches a delete. Keychain items are never touched; the summary says so.
Each step is idempotent and reported as done, skipped or failed with its
reason; a failure stops only what depends on it (a provider that did not
drain keeps its agents; a service that did not stop keeps every file).
On a paired Mac both modes end with a line about the other Mac, by name
and role: run `darkbloom uninstall` there too, or `darkbloom cluster` on
it to pair it with another Mac.

`stop --uninstall` is unchanged; its help now points to `uninstall`.
WatchdogAgent.plistPath follows LaunchctlControl.homeDirectory(), as
LaunchAgent and ClusterServiceAgent do, so tests can bind a fake home;
production paths are the same.

Docs: cli-reference (`darkbloom uninstall`), installation (Uninstall),
two-mac-cluster (Uninstall), troubleshooting (Uninstall and start over),
and changelog.d/provider-uninstall-keep-or-remove.md.

Green: ProviderUninstallTests 9/9 and UninstallCommandTests 3/3; with
DARKBLOOM_RELEASE_ENVIRONMENT=prod (as CI), the LaunchAgent removal and
lifecycle, watchdog adapter and cluster service agent suites pass too
(75 tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(provider): clear the outstanding-attestation flag only with busy

attestationOutstanding was cleared in two places: in the exchange's defer,
together with busy, and after a serverUnavailable answer was saved, just
before the 2/8 s retry backoff. Clear it only with busy. The flag then
always means "the exchange holding busy has handed Apple an attestation".

The second clear point bought nothing:
- Nothing waits on the flag while an exchange is still live. The serve
  loop starts a new exchange only after it has cancelled or finished the
  previous one, and the stop paths cancel before they wait.
- Cancellation ends the backoff at once, because the real sleep throws.

All it did was open a short window while that throw unwound. In it, the
next connection's prepare could see the flag cleared while busy was still
held, and answer busy instead of waiting.

Every other path behaves as before. The defer runs after the success and
failure paths, so Apple's answer is still recorded before the flag clears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(provider): tighten the attestation page and changelog wording

- docs/architecture/security/attestation.md: name the callback deadline
  rather than restating its value, which the canonical reference row owns
  (docs/AGENTS.md principle 7). Say "an attestation" rather than "that
  call": assertions and key generation still drop a cancelled answer. Say
  the answer is "recorded" as an uncancelled exchange would record it,
  which also covers the key kept after serverUnavailable.
- Changelog fragment: "A Mac restarted" read as a reboot, which the fix
  does not guarantee to cover. It now names provider stops and restarts.
  Two overlapping bullets are merged, and the SIGTERM jargon is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): the uninstall's line about the other Mac reads the saved setup

Check (f) composed the last line from a role and a name handed in. This
one writes the leadership record `darkbloom cluster` keeps
(ClusterSetupStore) in a private temporary home, as a leader and then as
a member, and expects the role and the other Mac's name to come from it:
"The other Mac (Apple M4 Max, 128 GB) followed this one" on the leader,
"… led this pair" on the member. With no saved setup, or one saved for
another pairing, the pairing's own name is used and no role is claimed.

Red against the previous commit: "type 'ProviderUninstallPairing' has
no member 'describing'".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cluster): print --forget's unpairing at once; fix stale docs

Refactor pass on feat/cluster-wizard-repair-stale-pairing.

ClusterUnpairing.run returned every result at the end, so `darkbloom
cluster pair --forget` printed the member's line and "Unpaired from ..."
only after the cluster service left login, which waits while this Mac's
part releases its model (up to the job's exit allowance). origin/dev
printed them before that wait. run now hands the removed pairing and the
member's line to an `unpaired` callback as soon as the store forgets it,
and --forget prints them there. The lines, their order, their streams and
the error path are unchanged. Outcome keeps only what follows the unpairing.
Pair again in `darkbloom cluster` uses the default callback and is
unchanged.

Docs and comments the branch left stale:
- two-mac-cluster.md: the re-run paragraph still said the Mac that
  follows ends with "Nothing to do here"; "Pairing again" put
  otherMacAnswers and existingPin in ClusterOnboardingFlow.swift and now
  links the architecture section; the "2/4 Pair" symptom also names the
  sentence this build says, as troubleshooting.md does.
- changelog.d/cluster-pair-again.md: drop the quoted screen sentence.
- OnboardingChecks.swift: two doc comments described the member's old
  "Nothing to do here" screen.
- ClusterPairCommand.swift: one plain comment instead of a garbled one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(provider): read the other Mac's name and role through one seam

ProviderUninstallPairing.read now loads the pairings and hands the peers,
the latest pairing and this Mac's link pairing to describing(peers:
latest:home:local:), which reads the leadership record and the control
claim as before. Behavior is unchanged; the previous commit's check now
drives the reader with a leadership record saved as a leader and as a
member.

Green (DARKBLOOM_RELEASE_ENVIRONMENT=prod, as CI): ProviderUninstallTests
10/10, UninstallCommandTests 3/3, and the LaunchAgent removal and
lifecycle, watchdog adapter and cluster service agent suites (76 tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cluster): one rule for what fits a pair: MiMo on 128 GB Macs, the GPU limit, pressure and mixed pairs

Placement checks, red on origin/dev: MiMo V2.6 Flash on two busy 128 GB Macs is
refused as too large even with every application closed (the planner's at-rest
ceiling keeps out the file cache the gate counts: 75.6 GiB of 128); a split whose
GPU part exceeds macOS's default working set is offered on idle Macs; a member at
warning pressure is called fitting on cache the gate will not count; an M3 Ultra +
M5 Max pair is refused for a model it holds unevenly. The verdict checks
(fits / needs the GPU limit raised to N / does not fit) need the new API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): plan with the load gate's own at-rest rule and the GPU limit; say when a raise would fit

- ClusterDeviceProfile.atRestAdmissibleBytes: physical memory less what macOS
  wires, as the gate counts every file-backed page (58d7371a); 120 GiB of a
  128 GiB Mac instead of 75.6.
- hardwareFits compares the GPU-resident part (the withinGPUWorkingSet figure)
  with the GPU limit and the gate need with the at-rest figure; a candidate the
  live gate admits now is possible only within the GPU limit.
- ClusterDeviceMemory.fit: no 'gate counts less' when the gate counts no file
  cache (pressure above normal); applications must release memory first.
- ClusterGPUMemoryLimit (physical less 16 GiB, or a sixteenth from 512 GB) and
  ClusterPlacementMemoryVerdict (fits / needsGPULimitRaise / doesNotFit, with
  each Mac's numbers and the question to ask) as data for the setup screens.
- Existing checks updated where they encoded the old at-rest figure or 'gate
  counts less' at warning pressure; m3ultra-m5ultra golden hashes re-recorded
  (alternatives reorder on the capacity tie-break; every chosen plan unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): the menu's switch of scope says Serving only once it serves

The refactor pass found the universal false success on the menu path: "Serve
through Darkbloom" (and "Serve locally", and `darkbloom cluster local` on a
serving cluster) waited for the parts, then printed ready.summary. With a
cluster approval saved that is an offered ready, so the screen said "✓ Serving
<model> (<split>): Registered with the coordinator…" for a pair that was only
registered: an end user's session 2 (he pressed p on the status screen; it
said Serving and nothing loaded).

changeScope now ends through finishStart (registers: false), as the start
does: a registered pair is awaited until it serves, a pair on the leader's
API is tested, then the outcome block; otherwise ✗ with the reason and the
choices. The audit of the other paths:
- summary(model:) of an offered ready no longer starts with "Serving";
- the status screen says a Mac serving alone is still loading until its
  solo server answers (as the setup's wait already counted it);
- the menu's Test on a registered pair that doesn't serve names why.
awaitReady and offerDiagnostics had no caller left and are removed.

Onboarding check (i) fails first on the refactor head e3c15773ba (5
failures: "✓ Serving …: Registered …", exit 0) and passes after: 808
passed, 0 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cluster): the pair fields of the service status cross builds

Covers Child.pair, Child.appAttest, Child.appAttestRetryAt and loggedIn in
ClusterServiceStatus: a new-to-new round trip keeps all four, a status from
an older build (without them) decodes them as nil, and nil fields are left
out of the JSON, so an older build reads a newer status unchanged.

Ran sandboxed (no-darkbloom.sb, swift test --disable-sandbox --skip-build
--filter ClusterLeaderFailoverFinishTests): 14 tests passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(cluster): the planner's at-rest and GPU-limit rule and the memory verdict

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cluster): check that disk checks count only the space free now

The two-Mac setup offered MiMo-V2.6-Flash's 172.9 GB download on the owner's
M3 Ultra with 54.1 GB free: macOS's "important usage" capacity (256.6 GB)
counts purgeable space such as local snapshots as free.

The checks drive the copy-or-download plan, the receiver of a copy over the
cable, the statfs fallback and the real probe with macOS's three figures, and
the setup's model list with a choice that has no room on disk. They need one
seam: `ClusterDiskSpace` (free now, purgeable) from `ClusterModelStore.diskSpace`,
carried by `ClusterModelProvisioningMac.disk`, the receiver's `diskSpace`, the
setup report's `modelStorePurgeableBytes` and the offer's `fitsOnDisk`. The
seam keeps today's rule (important usage first, then statfs), so the checks
fail: provisioning 156 passed, 8 failed; onboarding 707 passed, 4 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): count only the disk space free now for a model copy or download

The setup offered MiMo-V2.6-Flash's 172.9 GB download on the owner's M3 Ultra
with 54.1 GB free. Its disk check read macOS's "important usage" capacity,
256.6 GB there, which counts what macOS could purge (local snapshots, files
iCloud keeps elsewhere) as free; the M5 Max read 551.4 GB with 161 GB free.

- `ClusterDiskSpace` takes the volume's available capacity (statfs's free
  blocks when that is not read, as before) as the free figure; the rest of the
  important-usage capacity is purgeable, said but never counted.
- The download, the copy to the other Mac, the copy from it and the receiving
  Mac's cluster service all refuse on the space free now plus the 2 GiB kept
  free. When the purgeable space would make room, the refusal says so:
  "this Mac has 54.1 GB free; the model needs 172.9 GB and 2.1 GB to spare.
  macOS could free up to 202.5 GB more (purgeable files such as local
  snapshots), but Darkbloom doesn't count on it."
- The model list puts a model a Mac has no room for after the ones that fit,
  its line ending "not enough free disk" (`ClusterOnboardingProvisionOffer
  .fitsOnDisk`); chosen anyway, it says why and downloads nothing.
- The setup wizard's "Disk" fact and its low-disk warning read the same figure.

Checks: provisioning 164 passed, 0 failed; onboarding 711 passed, 0 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): a declined cable prompt keeps the app so the uninstall can run again

`cluster link --remove` needs an administrator's approval. When it is
declined, or cannot be shown (over SSH it prints
`sudo sh ~/.darkbloom/cluster-device/link-remove.sh`), the cable port
setup stays. Its record, that script and the app that can undo it are
all in ~/.darkbloom. So --everything must keep ~/.darkbloom and the
command link, saying why, and still delete the settings, caches and
models.

Check (g) now expects exactly that.

Red against the previous commit (DARKBLOOM_RELEASE_ENVIRONMENT=prod):
the folder holding the pairing and the command link are deleted, and
no step says it was kept (3 issues in (g)).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(provider): rename AppAttestSupportProbe and tighten the docs

Behavior-preserving cleanup of the LaunchServices refresh.

- AppAttestSupportProbe becomes AppAttestSupport (file renamed). It also
  writes LaunchServices, so "probe" read as read-only, and it was easy to
  confuse with ProviderLoop.appAttestSupportProbe, the unsupported-restart
  monitor's live isSupported read, which deliberately never re-registers.
- Drop its hand-written init; the synthesized memberwise init is the same
  internal init. Its closures are let.
- refreshRegistration returns Void. Nothing read the OSStatus: asking Apple
  again is the check. LaunchServicesRegistration.refresh still returns it.
- The registrationRefreshed comment says what holds: once per service, and
  a provider process keeps one service.
- troubleshooting.md no longer gives a bare `lsregister -f` (lsregister is
  not on PATH); it points at the full command doctor prints, and drops a
  duplicated link. attestation.md drops a changelog-style "now" and says the
  manual command changes no Darkbloom file or key. The app-attest-shadow.md
  row cites each claim's own code.
- The changelog fragment is in plain operator words; same facts and numbers.

Unchanged: the support check order, once-per-process refresh, updater
registration on the signature-verified path only, doctor advice outside the
GUI session, the unsupported-restart policy, and every test assertion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(cluster): the disk check counts only the space free now

Free disk in the two-Mac guide: what a download or copy needs, what macOS
could purge (not counted), the list's "not enough free disk", the refusal's
words and what to do. The cluster stages explanation names the figures and the
code that reads them. One changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): keep ~/.darkbloom when the cable port setup could not be undone

ProviderUninstall.inventory marks the two items whose deletion takes the
`darkbloom` command away: the command link and ~/.darkbloom, which holds
the app, the cable records `cluster link --remove` reads, and the
administrator's link-remove.sh it writes when no prompt can be shown.
ProviderUninstall.run skips both when the cable step failed. The reason
reads: "kept, so the uninstall can run again and undo the cable port
setup". Settings, caches, models and the cluster model store are still
deleted. Running it again offers only what is left.

The marker is not part of the JSON plan. The docs' step table, the
installation section and the troubleshooting row say what happens.

Green (DARKBLOOM_RELEASE_ENVIRONMENT=prod): ProviderUninstallTests 10/10,
UninstallCommandTests 3/3, and the LaunchAgent removal and lifecycle,
watchdog adapter and cluster service agent suites (76 tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): a Mac reinstalled over a stale update record

The official installer replaces Darkbloom.app and never touches
recovery/state.json. On the pair-2 M5 Max (provider 0.10.7) the record
still said 0.9.22 installed, 0.10.6 pending and a rollback copy recorded
as 0.9.22 that is really a 0.10.2 app. These tests rebuild that state in a
temporary install root and pin what the cluster service supervisor must do:

- reconcile the record before its service starts (0.10.7 installed,
  nothing pending, rollback off until a new copy exists);
- treat the running release as up to date at the update slot (it said
  "v0.10.7 -> v0.10.7 available" and tried to reinstall and restart);
- never restore that rollback copy after three service ends, and never a
  copy whose app is signed as another release than its record;
- record a rollback copy as the release its app is signed as, and keep a
  copy of the installed app when the updater installs over a stale
  pending release;
- keep the normal install, promotion and rollback path unchanged.

They fail on origin/dev and pass with the fix that follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): the member's 49 GiB refusal was the compression limit, not pressure

The 128 GB member's Qwen3.8 27B shard refusal (2026-11-03T23:48:44Z) ends
"no file cache: 515 MiB was compressed ... (limits 512 and 64 MiB)": the
load gate's compression limit at normal pressure, after the part start had
read the model into the file cache. The comment in ClusterDeviceMemory.fit
and memory-fit check (c) called it warning pressure.

- ClusterDeviceMemory.fit: the comment names the compression limit and its
  remedy (drop the model's cache before a load). The two
  afterApplicationsRelease branches are merged, with the same answers.
- atRestAdmissibleBytes: says the ceiling assumes the share loads into free
  pages, and dates the old rule instead of naming an unreleased version.
- Check (c) reproduces the recorded refusal with the gate's own policy (515
  MiB compressed since the first check, pressure level 1, the worker's
  words) and keeps the pressure rule as a separate safeguard.
- PlannerChecks: pins the cut-24 plan's rank order again (the 128 GiB Mac
  takes the lighter first half by the capacity tie-break), restoring the
  assertion the fix dropped; one description no longer says "smallest".
- inference.md: a live fit cannot foresee a mid-load withdrawal, and the
  memory verdict is data that no screen uses yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cluster): no GPU-limit raise in user docs; stale check comments

Nothing in the product presents or performs a GPU-limit raise yet, so the
provider guide and the changelog no longer describe a raise question or a
plan that says so. GoldenPlanChecks' comments now match the plan both
builds print (MiMo's phase split, the M5 Ultra within its 240 GiB at-rest
ceiling), and RouteChecks' description names both limits its assertion
checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cluster): share the disk rule mid-copy and word the refusal in one place

- The receiver's mid-copy check (`checkFreeDisk`) asks `ClusterDiskSpace.holds`
  with half the reserve, as `begin` and the plan ask it with the whole reserve,
  instead of its own `free < remaining + keep`. Same free-now figure, same
  threshold; the sum is now overflow-safe like the others.
- `ClusterDiskSpace.purgeableNote`, which returned a sentence, becomes the
  predicate `purgingWouldMakeRoom`. `ClusterModelProvisioning.diskShortWords`
  now holds the whole refusal, so the disk value type keeps figures and rules
  and the words live in one function.

No message, figure, threshold or wire field changes.
Checks: provisioning 164 passed, 0 failed; onboarding 711 passed, 0 failed;
`swift build --target ProviderCore` complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cluster): a part and a load start with the model's pages out of the file cache

Checks that go red on dev (0f99ddb180):

- ClusterServicePartStartCacheTests: the actual service loop starts the
  follower's part with its model folder (a 64 MiB weight file and a 32 MiB
  file in audio_tokenizer/) read into the file cache. At beforePartStart
  both must be under 10 % resident, and their bytes unchanged. On dev
  both are 100 % resident: the part-start prefetch keeps them cached.
- ClusterModelProvisioningChecks: dropCachedPages drops regular files one
  folder down too, never through a link, nothing deeper. The prefetch
  checks go with the prefetch.
- CheckpointPayloadCacheCheck, run by CheckpointChecks/run.sh and by
  CheckpointPayloadCacheTests in the runtime tests: after
  bypassTensorPayloadCache a weight file read into the cache is under
  10 % resident, config.json keeps its page, checkUnchanged passes and
  the uncached aligned read returns the original bytes. On dev the
  weight file stays 100 % resident.
- StageLoadFileCacheGuardTests: the darkbloom-load-memory-v1 line names
  the rule that settled a load gate and the figures of the decision it
  rests on (the 2026-11-03 M5 Max refusal: 515 MiB compressed).
  ObservabilityChecks: that line in a worker's tail is never read as a
  failure (green before and after).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): keep check (c)'s pressure sample one the old rule called fits

The previous commit gave check (c) a member sample shaped like the
record (61 GiB of cache). Under it only about 20 GiB of cache lies above
the kernel's minimum, so origin/dev's fit already answered
afterApplicationsRelease and the pressure check no longer failed there.
The branch's original sample (95 GiB of cache) is back: the pressure
check fails on origin/dev again and the recorded refusal reproduces the
same way. The comment no longer claims the sample's cache and
application split.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cluster): two member checks meet the merged member screen

After the merge of fix/cluster-start-verifies-serving, the member's screen
shows start-truth's outcome block (showOutcome) above re-pair's leader line
and its Start over (pair again) / Quit list, where enter quits. Two checks
merged cleanly but each assumed the other branch's member screen:

- cableStepContinuesToTheNextStep (re-pair) looked for the status as the
  plain line "  Serving Qwen3.8-27B-4bit-mtp". The status is now the block's
  "✓ Serving Qwen3.8-27B-4bit-mtp" line. The asserted order is unchanged:
  the port, then the status, then the next step.
- memberSeesTheOutcomeOrWhereToLook (start-truth) expected the member to end
  by itself (finish() == 0). It now waits at its list, so both runs wait for
  the list under the block and press enter. That adds 2 assertions; the
  block assertions are unchanged.

Onboarding checks: 919 passed, 0 failed (917 from both branches, plus these
2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): reconcile the update record with the installed app before acting on it

The official installer (and a copied app) replaces Darkbloom.app without
touching recovery/state.json. On the pair-2 M5 Max the record kept saying
0.9.22 installed and 0.10.6 pending, with a rollback copy recorded as
0.9.22 that is a 0.10.2 app, while 0.10.7 ran. The cluster service
supervisor then started "candidate v0.10.6", tried "v0.10.7 -> v0.10.7"
at every update slot, and three unrequested service ends would have
restored the 0.10.2 app next to a 0.10.7 Mac, a pair that cannot form.

- Before each start of the cluster service and before an end counts
  toward a rollback, ClusterCandidateRecovery reconciles the record under
  the update lease (UpdateRecoveryStore.reconcileWithInstalledApp). A
  record that does not name the installed app (its recorded hashes, and
  the version its signed Info.plist names) is re-based on the installed
  app as the running release; the stale pending release is dropped and the
  rollback copy removed: pairs need the same build on both Macs, and that
  copy is no release the other Mac keeps. A copy whose app is signed as
  another release than its record is removed too. Rollback is off until
  the next update keeps a copy. The supervisor logs one plain line. The
  record stops naming the copy before the copy goes, and names the
  installed app last, so a reconcile that dies part-way is finished at the
  next start; a copy on its way out is renamed aside first.
- SelfUpdater.checkForUpdate: a candidate older than the running process
  is not pending, and a release is offered only when it is newer than the
  running and the installed release, so the running release is never an
  update target.
- preparePredecessor records the copy as the release the installed app is
  signed as (the record's label only when it agrees), and an update over a
  pending release that is not installed keeps a copy of the installed app,
  not the stale copy.
- Docs: cluster-always-on (an install outside the updater), installation,
  cli-reference, test.md; changelog fragment.

install.sh is unchanged: the provider-side reconcile covers every way an
app is replaced, including installers already served, and install.sh is a
platform-served snapshot that needs a coordinated update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): drop the model's file cache before a part starts and before a load reads it

MiMo V2.6 Flash never served on two 128 GB M4 Max Macs: 680 of 680
starts were refused by the load gate ("needs 25.79 GiB, has 0.09"). A
16 GB Qwen 27B rank was refused once on a 128 GB M5 Max ("0.17 GiB free
plus no file cache: 515 MiB was compressed ... limits 512 and 64 MiB").

The gate counts free pages plus every file-backed page, and counts no
cache once a load has compressed more than 512 MiB. Every part start
(and every retry) read the whole model folder into the file cache
(prefetchPagesInBackground, db88e554c8). Loading a share against a
cache that is mostly its own model makes macOS free it page by page by
compressing other memory, so the guard fired, the start was refused,
the part restarted, the prefetch refilled the cache, and so on.

- A. ClusterService.supervise drops the model folder's cached pages,
  synchronously, before this Mac's part starts, instead of reading them
  in. ClusterModelStore.dropCachedPages also drops regular files one
  folder down (MiMo's audio_tokenizer/), opened through the folder's
  descriptor, never through a link. prefetchPages,
  prefetchPagesInBackground and ClusterModelPrefetchFolders go: nothing
  else used them. The comments that said the gate can count that cache
  are corrected.
- B. VerifiedCheckpoint.bypassTensorPayloadCache drops each weight
  file's cached pages through its pinned descriptor when it turns the
  payload reads uncached. The MiMo, Qwen, Gemma and GPT-OSS pipeline and
  tensor-parallel loads take this path; GLM's prepared load still reads
  through the cache on purpose.
- C. Observability only: QwenDenseStageLoadAdmissionSummary.logLine,
  and the worker writes one darkbloom-load-memory-v1 line per load gate
  after the load or before the failure that ended it (rule, required,
  admissible, free, file-backed, counted, kernel minimum, compression
  and swap-out since the first sample). Its words match no incident
  rule. The dead room-making pass stays, for the reasons in the report.

Both drops use msync(MS_INVALIDATE) over a read-only shared mapping: no
privileges, no purge, the files' bytes and identity unchanged, and only
the model's own files. The gate's rules, its 512 MiB limit and the
placement are unchanged. A load now reads its weights from the SSD, a
few seconds more on a warm restart.

Docs: inference.md (the gate), two-mac-cluster.md, test.md. Changelog:
cluster-drop-model-cache-before-load.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): uninstall offers remove everything or keep models

The owner's spec (2026-11-04): "darkbloom uninstall should have 2
options, 1 uninstall all items or uninstall but leave models". Both
options now stop serving, remove every background service, revoke the
account token (best effort), unpair, undo the cable port setup and
delete settings, logs, caches, ~/.darkbloom (the app last) and the
command link. The only difference: --keep-models keeps the model folders
Darkbloom downloaded and the cluster model store, so a reinstall finds
them.

ProviderUninstallTests:
- (a) keep models: everything but the models is removed, including the
  pairing (forget) and the cable setup (link remove). The model folders,
  locks and cluster store are unchanged, their receipts and refs are
  byte-identical, and a fresh `ModelScanner.scanAllModels` over the fake
  cache finds the model again. The summary says what was kept and where,
  and gives the install command, then `darkbloom start` or
  `darkbloom cluster`.
- (b) everything: as before; revoke, forget and link remove once each.
- (c) dry run for both choices, the approved screen's lines, and the
  JSON plan.
- (e) sizes are clone-aware: a model cloned into the cluster store counts
  once, and not at all while a clone outside Darkbloom's folders holds
  the blocks.
- (f) the token is revoked once, best effort: an unconfirmed revocation
  is reported as skipped and blocks nothing. A provider that did not
  stop keeps its token.
- Every earlier safety check stays: outside targets, shared or linked
  caches, the terminal rule, the other Mac's line, failed steps and
  idempotency.

UninstallCommandTests parses `--everything` and `--keep-models`, and
refuses `--keep-data` with the usage.

Red against 120975d5cd (DARKBLOOM_RELEASE_ENVIRONMENT=prod, tests
sandboxed with no-darkbloom.sb):
- ProviderUninstallTests does not compile: 43 errors, such as
  "type 'ProviderUninstall.Mode' has no member 'keepModels'", "extra
  argument 'revokeToken'" and "type 'ProviderUninstall' has no member
  'uniqueBytes'".
- With it set aside, UninstallCommandTests fails 2 of 3 (5 issues):
  "Unknown option '--keep-models'", `--keep-data --yes` parsed, and the
  usage does not name `[--everything] [--keep-models]`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Make darkbloom cluster on a set-up pair say what is what

Proof (2026-11-03/04, real Macs): the owner ("running darkbloom cluster
on one after setup really does not do much even when selecting change
model ... it needs to be much clearer of what is what, and how it
works"); Dylan's call (status with no reason, "Nothing to do here", no
clear running signal); pair 2's M5 Max ("Nothing to do here", then a
menu with no hint); the pair-2 validation (no mode choice on a release
build: Qwen always tensor parallel, Gemma always pipeline).

- Opening: both Macs and the cable ("This Mac (Studio A) leads · the
  other Mac (Apple M3 Ultra, 256 GB) follows · cable ready"); the other
  Mac is asked before the opening is drawn.
- Leader: the status as start-truth's outcome block, how it works, and
  one line per item saying what it does (Change model first; Check
  memory is freed only once stopped).
- Member: the same block, "This Mac runs its part by itself", the
  command to run on the leading Mac, Start over or Quit.
- Change model: the list marks the model serving now and gives each mode
  with the speed this pair served it at (ClusterServedModes) or "not
  measured on these Macs yet"; a model that runs more than one way asks
  how both Macs split it (fastest measured first); one confirmation
  before the running model stops (No by default); "Stopped <model> on
  both Macs" after the adopt; start-truth's progress and block follow.
- Modes come from the plan's own shard assessment (runnable verdicts,
  one per family); the person's family is placed with the planner's
  family filter (ClusterPlacementFlow.decide chosenMode), keeping
  feature parity, memory fit and qualification records.
- Fresh setup: what it will ask and how long, before 1/4.

Onboarding checks: red 928/39 (all in the 6 new checks), green 967/0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(provider): uninstall's two choices, remove everything or keep models

The owner's spec (2026-11-04): "darkbloom uninstall should have 2
options, 1 uninstall all items or uninstall but leave models". The
approved screen:

  1) Remove everything
     The app, settings, pairing, logs and all models · frees 412 GB
  2) Keep models
     Removes everything else; a reinstall reuses the 410 GB of models

  Choose 1 or 2 (Esc cancels):

Steps. Both choices run the same steps:
- drain, then `cluster stop`, then remove the agents;
- revoke the account token best effort, through `darkbloom logout`'s own
  `Logout.revokeSavedToken`, once the provider has stopped; it is
  reported as done or skipped and never fails the uninstall;
- forget the pairing, then undo the cable port setup;
- delete settings, caches, the command link and ~/.darkbloom, the app
  last.
`--keep-models` keeps every item of kind `model`: the receipted or
unfinished model folders in the default cache, their download locks and
the cluster model store. Their `refs/` and receipts are untouched, so a
reinstall's `ModelScanner` finds them again.

Sizes. They are clone-aware. `measure` records each file's
`ATTR_CMNEXT_PRIVATESIZE`, `_CLONEID` and `_CLONE_REFCNT`, and
`uniqueBytes` counts a pure-clone family's shared blocks once, and only
when every clone of them is being deleted. The cluster store's clones of
the downloaded models are therefore counted once. The screen reads one
key (Esc, q, Ctrl-C or Ctrl-D cancel). Its lines below the choices
appear only when this Mac has folders no choice deletes, or parts with
their own uninstall.

Summary. It says what was removed, what was kept and where, and the
space freed. After keep models it gives the way back: the install
command, then `darkbloom start` or `darkbloom cluster`, with the models
found automatically. A chosen model folder needs
`darkbloom models location`. Chosen, external or shared model folders
and Keychain keys are listed as never touched. On a paired Mac it ends
with the line about the other Mac.

Flags and cleanups:
- `--everything` | `--keep-models`, with `--yes`, `--dry-run` and
  `--json`. `--keep-data` is gone, so the parser refuses it with the
  usage; nothing had shipped. Non-TTY without a mode still prints the
  one-line usage and exits 64.
- `Report.items` is dropped. The `removesTheCommand` marker becomes
  `ProviderUninstallItem.kind` (`data`, `model`, `command`), which the
  JSON plan carries.
- Docs: the CLI reference (the screen, the steps, a deletion table per
  choice, a note on prod and dev sharing cluster files), installation,
  two-mac-cluster and troubleshooting are updated, and the changelog
  fragment is rewritten for the two choices.

Green (DARKBLOOM_RELEASE_ENVIRONMENT=prod, sandboxed with
no-darkbloom.sb): ProviderUninstallTests 12/12, UninstallCommandTests
3/3, and the LaunchAgent removal and lifecycle, watchdog adapter and
cluster service agent suites, 78 tests in all. No sandbox denial
touched ~/.darkbloom.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cluster): the everyday commands on a paired Mac, red on the old behavior

Checks for what `darkbloom stop`, `start`, `restart`, `status`, `doctor` and
`darkbloom cluster status`, `cluster --help`, `cluster link --remove` and
`cluster stop` say and do on a Mac in a two-Mac cluster (UX audit
2026-11-04, P4/P5/P11/P12). The pair is a fixture read through
`ClusterPairSummary.readerForTesting`; command runs are exit tests with
launchctl recorded and the provider state isolated.

The new pair summary and its words are here; every decision keeps the
old behavior (stop never refuses, start and restart never ask, link
--remove n…
Version 0.10.8; the 20 changelog.d fragments rendered into CHANGELOG.md
(scripts/changelog.py render --version 0.10.8 --date 2026-11-04, verbatim, in
filename order) under the candidate heading, with the upgrade and rollout
notes; v0.10.7 marked published (2026-11-03); the 0.10.8 section of
docs/operations/provider-release.md. Base: release snapshot ffacffc.

Co-authored-by: jonathan308 <5055076+jonathan308@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…-disk, a drive list, the ownership fix), and show work disks in status (#1759)

* Sandbox setup: put the VM images and jobs on external drives (--disk)

`darkbloom sandbox setup --disk <volume>` (repeatable) passes each drive,
as an absolute path, to the add-on installer's plan and install. Before
anything is downloaded, setup checks each drive with statfs: mounted at
its /Volumes/<name>, APFS, ownership on. With ownership off it prints the
exact `sudo diskutil enableOwnership <volume>` line and stops; it never
runs sudo or formats a drive.

--disk goes only to an installer that names it; otherwise setup says work
disks need add-on 1.2.0 or later and changes nothing. A set-up Mac offers
--disk only when its add-on's status reports disks. The plan's `disks`
render as one Work disk line each, and a plan that refuses a disk stops
setup with the installer's fix and exit status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Sandbox setup --disk: refactor pass (shared option and job-count helpers, relative-path guard, clearer stop lines)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Sandbox --disk tests: keep the exit test's refusal text static (exit tests capture no locals)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Sandbox setup: offer the external drives, turn ownership on when the owner agrees, show work disks in status

- A first setup without --disk, at a prompt and from a release with work
  disks, lists the drives mounted at their own /Volumes/<name> that show in
  Finder and are local, writable and APFS, with room for the floor and a
  Linux job. Enter keeps the internal disk; a chosen drive gets the work disk
  check and goes to the plan and the install as one --disk.
- With ownership off, at a prompt and without --yes, setup offers to run
  sudo diskutil enableOwnership in the terminal's foreground process group
  (sudo asks for the password), then checks the drive again. Otherwise it
  prints the command and stops, as before. Setup never formats a drive.
- darkbloom sandbox status reads the add-on's disks and shows one Work disk
  line per disk (state, free space, slots, and the add-on's detail when a
  disk is not online) when an external drive or more than one disk is in use.

Refs Layr-Labs/darkbloom-sandbox#193

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Sandbox setup work disks: refactor pass (one statfs per drive check, one unreadable line)

- checkWorkDisks reads each drive's volume once and gives it to both the
  Work disk check and the ownership offer; it read the volume twice before
  the offer.
- SandboxWorkDisk.check builds the "cannot be read" refusal once for the
  nil volume and the unreadable problem, so the two cannot drift.
- The type's comment says the drive check runs before setup installs
  anything: a drive picked from the list is checked after install.sh is
  downloaded.

No change to output, flags or the add-on contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…t 6.4.2); CI also accepts SDK 27.0 for now (#1791)

* 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>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…); refuse them in source and release binaries (#1807)

* Provider: no back-deployed Date >= / <=; refuse them in source and in release binaries

SDK 27.2 declares Foundation's Date.>= and Date.<= with
@backDeployed(before: macOS 27.2). Swift 6.4.2 compiles each comparison
into a weak import behind a (27, 2, 0) OS check. Pre-release macOS 27.2
builds (26B5091g) pass the check but do not export the symbols, so the
call jumps to address 0. DevNet build 0.10.6-dev.branch.87, the first
SDK 27.2 build, crashed 11 times in 20 minutes on such a Mac (#1804).

- Every Date >= / <= in shipped provider source is now
  a.timeIntervalSince(b) >= 0 / <= 0. The 25 sites are the functions that
  nm/otool name in branch.87's darkbloom-dev and darkbloom-enclave-dev:
  Schedule, AppAttest key history, stall restart, shadow key and
  enrollment, cluster service, cluster model store, pair commands and
  desktop earnings. Results are the same: Date compares
  timeIntervalSinceReferenceDate, and a rounded
  difference of two finite Doubles has the sign of the exact one.
- scripts/check-date-comparisons.py refuses the pattern in shipped Swift
  source (Release Integrity).
- scripts/check-provider-weak-imports.py runs in the release lane of
  provider-release-build on every built binary. It fails on any import of
  the two symbols and names the calling functions.
- Tests use real nm/otool lines from branch.87. Docs and the toolchain
  changelog fragment say what to write instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Docs: the SDK 27.2 Date failure mode in provider trust and the threat model

Provider trust names the crash loop that a back-deployed Date >= / <= causes
on pre-release macOS 27.2 in the App Attest checks, and the release check
that refuses such a binary. The threat model records the availability
review (A-018) in its review log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Date comparison check: resolve names by the declaration in scope

The first version missed `day >= since` in DesktopAccountEarnings.insights,
which branch.87's binary shows as a Date.>= call. `day` is bound from
date(from:) in a closure that shadows a String `day`, and `since` from a
ternary; file-wide name sets cannot settle either.

- A bare name takes the kind of the nearest declaration in scope: a typed
  let/var, a function or closure parameter (visible in its body only), or a
  let/var whose value is a Date (Date initializer or constant, a Foundation
  member that returns a Date, a Date function, a ternary branch, a ?? side,
  max/min of Dates). Other names keep the file-wide and shipped-wide rule.
- Calls are matched with balanced parentheses, so
  Date(timeIntervalSince1970: TimeInterval(x)) counts.
- An operand such as Calendar.current.startOfDay(for:) is no longer skipped
  as another type's member, and Self.x is not another type.
- `>=` or `<=` passed as a function (sorted(by: >=)) is refused: it has no
  operand types.

On the merge-base source the check now reports 26 comparisons (25 lines);
on this branch it reports none. Tests cover the missed form, parameter
scope, nested initializers and operator references.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Docs: the SDK 27.2 Date failure mode in inference and the CLI reference

The cluster service timers and the pair start, stop and earnings waits
now compare Dates with timeIntervalSince(_:). Add the crash as an
inference failure mode, with the source check, the release-binary check
and how to fix a hit. State in the CLI reference that the pair waits and
the desktop earnings windows keep their limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…es (#1826)

* CI: run the Darkbloom watchdog from master, where GitHub runs schedules

GitHub runs scheduled workflows only from the default branch (master).
darkbloom-watchdog.yml was only on dev, so it never ran and stranded
Darkbloom runs were never rescued (dev push run 42078464492 and PR
#1825's run 42086980363 each waited about an hour). Same file as on dev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Route self-test: classify the Darkbloom watchdog on master, as on dev

The watchdog names the labels it looks for and routes nothing, so it is
exempt from the no-self-hosted-label check. Port dev's watchdog test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cluster): DevNet round 2 integration: one CLI name, one app name, this install's incidents, per-Mac login line

The integration edits after merging the six DevNet round 2 branches.

1. One CLI name: ClusterOnboardingCommand.name starts from
   BuildEnvironment.current.cliName in the package (#if SWIFT_PACKAGE; the
   checks that compile the screens alone keep "darkbloom" and set theirs
   with use), and OnboardingLive.cli reads it. The wizard's and main.swift's
   own use(...) calls set the same value again and go. Production bytes are
   unchanged.
2. One app name: ClusterService.appName (the identity's appDisplayName)
   everywhere. The screens' seam starts from it and the link follower's
   refusal reads it; Cluster.LinkFollower.localNetworkApp(cli:) goes.
   Production's hint now says "Allow Darkbloom under ..." (decided), as the
   ✗ does. The DevNet exit test that pinned "darkbloom" through the helper
   now checks the follower's real output.
3. The follower writes the words the service reads from ClusterService's
   constants (followerLinePrefix, followerConnected, followerSessionOpened,
   followerLinkRefused); followerLinkOpenedLines and followerLinkRefusedLine
   are built from them. Bytes unchanged.
4. A-4 reads this install's incidents: OnboardingLive.ownWorker passes
   ClusterIncidentLog.forThisInstall() (its file and install filter)
   instead of production's defaultFile; the static reader takes the log, and
   F1's real-records test passes it, its records and expectations unchanged.
5. P2-11, the ✓ card's login line (loginLine): "on both Macs" only when this
   Mac's service outlives its window and the other Mac's status says
   startsAtLogin; otherwise it names the Mac that doesn't, or says the other
   Mac doesn't say. The new operation otherMacStartsAtLogin reads the other
   Mac's status over the cable (default true). The guide's card line holds
   (an example; verify checks each Mac).
6. P2-2 in onboarding: the member's Local Network hint names the app; its
   command and the stop line already named OnboardingLive.cli, which now
   follows the identity in exit tests too.

7. Found in validation: placement flow-run and setup didn't compile on
   the CLI branch's changes (its validation didn't run them). run-flow.sh
   now compiles ClusterIncidentLog+Install.swift and BuildEnvironment, as
   the CLI branch did for the diagnostics runner; the setup runner gets
   OnboardingCommandStandIn.swift (production's name), in its stand-in
   pattern.

The development-build check (developmentBuildKeepsTheWindowsOpen) now says
the other Mac's service doesn't start at login either, as in a real
development pair; the card then says to keep both windows open, as before.
The changelog's A-4 sentence says the ✗ names this Mac's worker too, so it
doesn't read as contradicting the earlier "names the other Mac's side".

Red first:
- theLoginLineNamesTheMacThatDoesNot against the merged screens with only
  the knob added: 6 failures; green with the change.
- onboardingTextsNameTheIdentity (DevNet identity): 3 issues;
  followerWritesTheWordsTheServiceReads: 1 issue ("Allow darkbloom under").
Guards: onlyThisInstallsRecordsNameThisMac, theNamesAreThisBuildsWithoutBeingSet.
Docs: two-mac-cluster.md (the login line), architecture/inference.md (one
CLI name, one app name, the follower's phrases); changelog: a bullet in
cluster-candidate-findings.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cluster): the configuration check compiles again with the command's stand-in

ClusterConfigurationChecks compiles ClusterConfiguration.swift without the
onboarding screens. Since the CLI branch, its tensorAssistantServesLocally
names the command with ClusterOnboardingCommand.named, so the check stopped
compiling ("cannot find 'ClusterOnboardingCommand' in scope"), as the
placement setup check had; neither runs in CI.

It now compiles the setup check's OnboardingCommandStandIn.swift
(production's name), as it already compiles the installed session's
AttestationSignerStandIn.swift.

Red: on the integrated head 5732dda926 the check fails to compile. On dev
6497e8e7a8 it passes (9 file groups, the provider config file, 14
configuration groups). Green with this change: the same three pass, and
placement setup still passes 264.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(changelog): a start's card says whether it starts at login on each Mac

Read as a user, the 0.10.8 section contradicted itself: the console's
bullet said every start ends with "Starts by itself at login on both
Macs.", and P2-11's bullet says the card says so only when the cluster
service on both Macs does, and otherwise names the Mac where it doesn't.

The console's bullet now names the line by what it tells (whether it
starts by itself at login on each Mac), as the guide does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): plain words in the ✗ line for this Mac's own worker

The ✗ line for a worker that ended on this Mac named the incident code ("worker_crashed in its incident log"). It now says "its worker ended unexpectedly"; the incident list in `cluster status` keeps the code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(cluster): keep non-production identity values out of source comments

Release Integrity's test-provider-identity.py allows the DevNet and staging names only in the generated identity. Three doc comments added in this round quoted them; they now say the value comes from the build identity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): uninstall beside the other install removes its own incident log

Pair-2 re-test (R-6): `darkbloom-dev uninstall --keep-models` keeps the
shared ~/.darkbloom/cluster* for the production app, and so left the
DevNet-only incident log (its log and lock, and a corrupt copy if any)
behind. As a test, both directions, with the files named by the log's own
`ClusterIncidentLog.defaultFile(homeDirectory:install:)`:

- uninstalling the non-production install removes its own incident files
  and names them in the summary; the other install's files and every
  shared cluster file stay;
- uninstalling production beside it keeps production's log: it is the
  shared folder's `incidents.json`, which an older build of the other
  install still writes.

Red at 6940be379c: the non-production install's three incident files stay
and no summary line names them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): status says a Local Network refusal, and a stopped pair reads stopped (red)

From the pair-2 re-test of dev @ 6940be379c:
- R-1: with the member's link follower refused by macOS, both Macs'
  `status` and `cluster status` read `loading` with no reason. They must
  read not_serving with the setup screens' words: on the refused Mac its
  own service's state, on the leading Mac the other Mac's refusal under
  the ✗'s 20 s rule.
- R-5: a stopped pair whose other Mac is gone read other_mac_away; it
  must read stopped, with a line that the other Mac isn't answering.
Adds, at today's behavior, ClusterLocalNetworkAccess.Refused,
otherMacRefused, refusalCanBeCurrent, otherMacStatus and statusWords, and
ClusterPairSummary.read(localNetworkRefused:).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cluster): the pairing screens name the app; the Local Network ✗ says its refusal once (red)

The pair-2 re-test of DevNet 6940be379c, R-3 and R-4:
- R-3: the 2/4 Pair hint's firewall bullet said "Darkbloom" in the DevNet
  app, whose firewall entry is its own name. pairingLinesNameTheApp (the
  onboarding checks) runs the pairing with the DevNet app's name;
  thePairingLinesNameThisBuildsApp checks this build's name (DevNet in a
  dev-identity build).
- R-4: the leader's Local Network ✗ added the follower's own instruction
  as a fourth line, cut at 300 characters inside a parenthesis.
  theLocalNetworkCrossSaysTheRefusalOnce and
  aLongLineIsCutAtAWordOutsideAnyParenthesis.

The seams the tests call are added with today's behaviour, so they fail
on what they check: ClusterConsoleText.boundedAtWord cuts as bounded
does, and errorLines' refusalSaid is ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): status says a Local Network refusal, and a stopped pair reads stopped

From the pair-2 re-test of dev @ 6940be379c:
- R-1: `status` and `cluster status` read not_serving (exit 3) while
  macOS keeps a Mac's link follower off the local network, by the setup
  screens' rule and in their words: on the refused Mac its own service's
  state (ClusterLocalNetworkAccess.serviceState, as `start` reads it); on
  the leading Mac the other Mac's status, asked over the cable only while
  the pair has been starting past the ✗'s 20 s settle time. reason and
  next come from localNetworkBlockedLines and localNetworkRefusalLines,
  ending with `<cli> start` or Retry in `<cli> cluster`
  (ClusterLocalNetworkAccess.statusWords). A script start on the leading
  Mac ends its wait on it, as the ✗ does.
- R-5: a stopped pair reads stopped (exit 4) whatever the other Mac's
  presence, with "<the other Mac> isn't answering over the cable." after
  the stopped line; other_mac.answers is false.
ClusterOnboardingLive.swift is unchanged: ClusterLocalNetworkAccess calls
its internal refusal rule and words (otherMacRefused, refusalIsCurrent,
localNetworkRefusalLines, answerSeconds).
Docs: cli-reference (exit table, the refusal's words, the stopped
precedence), two-mac-cluster, architecture/inference; changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): the pairing screens name the app; the Local Network ✗ says its refusal once

The pair-2 re-test of DevNet 6940be379c:
- R-3: the 2/4 Pair hint's firewall bullet and the line that asks to pair
  again after a reinstall name the app (ClusterOnboardingCommand.app):
  Darkbloom Dev in the DevNet app. The prose that means the service
  stays. Production's text is unchanged.
- R-4: the Local Network ✗ already says what macOS did and what to do, so
  its line for the refused Mac now says only that its part can't reach the
  local network (errorLines' refusalSaid), instead of the follower's own
  instruction; every other ✗ keeps the part's reason (A-3). Each
  lastErrors line is cut at a word, never inside a parenthesis, and ends
  with "…" (ClusterConsoleText.boundedAtWord).

Docs: two-mac-cluster.md (the leading Mac's Local Network ✗) and
architecture/inference.md (the app's name; the ✗'s lines). Changelog: one
bullet in cluster-candidate-findings.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): uninstall removes this install's own incident log beside the other

R-6: with another install on this Mac, the uninstall keeps the shared
cluster folder for it, which held this install's own incident log (A-13:
each non-production install keeps its own file there).

- `ClusterIncidentLog.files` names the files a log keeps, in order: the
  log, its lock sidecar and the copy a corrupt log is moved aside to (the
  log's own rename now uses the same name).
- When the shared folder stays for the other install, the inventory lists
  this install's own incident files, from
  `ClusterIncidentLog.defaultFile(homeDirectory:install:)`, as items to
  delete before the install folder, so the summary names them ("This
  install's incident log"). Production's log is the shared
  `incidents.json`, which an older build of the other install still
  writes: it stays with the folder. When the whole cluster folder goes,
  nothing changes.
- `ProviderUninstallPaths.environment` records the install the paths are
  for.

The CLI reference, `docs/architecture/inference.md` (where the incident log is
described) and the changelog fragment say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(provider): agent setup guide matches its second literal run (G-R1 to G-R4)

An agent set up pair-2 on DevNet 0.10.6-dev.branch.77 by following the guide,
end to end. Its four differences and the status gap (R-1), fixed with the
strings of fix/cluster-status-truth (f92a578950), which ships in the same dev
round:

- G-R1: after installing the other app on a paired Mac, choose Pair again
  when the screen offers it ("This Mac's Secure Enclave key changed after it
  paired (…)", Pair again / Quit), otherwise Start over on both Macs.
- G-R2: `darkbloom status --solo` on a paired Mac with nothing beside the
  pair prints "Single-Mac serving: off (this Mac serves in its two-Mac
  cluster: `darkbloom cluster status`)": go on.
- G-R3 with R-1: during a Local Network refusal, `cluster status` says
  not_serving (exit 3) with the screens' reason; the verify table now stops
  and asks the person to turn the setting on, on the Mac `next` names,
  instead of waiting 15 minutes on loading. The troubleshooting row shows the
  status signal (the leader's once its part has run 20 s). A stopped pair
  reads stopped even when the other Mac isn't answering (R-5).
- G-R4: stop, restart and a scripted start say their waiting lines only if
  the wait lasts.

fix/cluster-ln-wording (97005b1167) changes no line the guide quotes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(provider): agent setup guide's refactor pass on its round-3 fixes

- Step 1.4: after installing another app on a paired Mac, the agent acts on
  what each Mac's `darkbloom cluster` shows (Pair again on a Mac that offers
  only Pair again and Quit, else Start over), instead of one choice "on both
  Macs": one Mac can offer only Pair again while the other offers Start over,
  as the screen itself says after Pair again.
- Step 4.3: while the pair's own part runs, `status --solo` shows `Daemon:
  running` with "This is the cluster's part on this Mac, not single-Mac
  serving (…)": go on, instead of asking to stop single-Mac serving that
  doesn't run.
- Verify, the Local Network row: ask the human (the page's word for the
  person) to turn the setting on, on the Mac `next` names; the agent then
  starts the pair, so the two don't both run `darkbloom start`.
- Verify, the `loading`/`unknown` row: after 15 minutes, STOP, and the human
  runs `darkbloom cluster` on the leader. Split from the old exit-3 row, it
  had no end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cluster): one public entry for the leading Mac's refusal; the ✗'s step as a parameter

The refactor pass over the DevNet round 3 integration (R-1 with R-4).

- `ClusterLocalNetworkAccess.otherMacRefused()` is the leading Mac's one
  entry, beside `serviceState()`. It asks the other Mac's status
  (`otherMacStatus`) only once this Mac's part has run the ✗'s settle time,
  then applies the ✗'s rule (`otherMacRefused(member:own:now:)`). That rule
  and the status request are internal again, and `refusalCanBeCurrent` is
  gone. ProviderCore's public API grows by `Refused`, `otherMacRefused()` and
  `statusWords` only, and the CLI no longer runs the rule in three steps.
- `OnboardingLive.localNetworkRefusalLines(otherMac:app:then:)` takes the step
  after the instruction, as `localNetworkBlockedLines(app:then:)` does.
  `statusWords` passes the start command instead of replacing the screen's
  "Then choose Retry here." in the text, which a reworded ✗ would have left
  in `cluster status` without a sound.
- A test pins the ✗'s own step; the rule's test reads
  `OnboardingLive.refusalIsCurrent` directly.

Behaviour-preserving: the ✗'s lines, `cluster status`'s reason and next,
and when the other Mac is asked are as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): a script start on the leading Mac ends its wait on a Local Network refusal

R-1 made a leading Mac's script `start` end its wait once `cluster status`
reads the other Mac's refusal (`ClusterPairCommands.waitUntilServing`), as the
✗ ends the screen's wait; no test covered it. The new test gives the wait a
"Starting" look, then the refusal, then a serving look: the start ends at the
refusal with its ✗ line and next step, and exits 3.

With R-1's condition in `waitUntilServing` taken out, it fails: the wait goes
on to the serving look and exits 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(changelog): the Local Network ✗'s change isn't DevNet-only

The round's bullet in `cluster-candidate-findings.md` began "In the DevNet
app, …", which also scoped the Local Network ✗'s change to the DevNet app,
although every build's ✗ changed: its last line no longer repeats the
instruction cut off mid-sentence, and a ✗ line too long for the screen is cut
at a word, marked with "…". The bullet now says that first, then the two
DevNet-only names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): status keeps the Local Network refusal across the leader's restarts; JSON lines agree; DevNet's local command

Three findings from the pair-2 re-test of the DevNet build of 3ac8dd76a6:

- R-7 (`status` on the leading Mac):
  - While the other Mac is refused, the leading Mac's part ends after its 32 s wait for the link and starts again.
    `refusalIsCurrent` timed its 20 s from the current part only, so `status` and `cluster status` on the leading Mac
    said `not_serving` in only 6 of 29 samples, and `loading` with no reason the rest of the time.
  - The cluster service now publishes how long its last part ran (`ClusterServiceStatus.Child.lastRunSeconds`, a new
    optional field that older readers ignore).
  - A status read also counts the refusal when this Mac's last part ran 20 s (`acrossRestarts`), so it holds across
    the leading Mac's part restarts.
  - A start's own wait, both the wizard's and `darkbloom start`'s looks, keeps the strict rule, so a Retry just after
    the setting is turned on never ends at once on it.
  - A refusal the follower got past still never counts.
- R-9 (`cluster status --json`): during the refusal, `lines` were still "Starting …" while `state` was `not_serving`.
  They now hold the ✗ line, "Not serving: <reason>.", as the plain output does. The plain output is unchanged.
- R-8 (the DevNet command name): a stopped local-only DevNet pair said "API key: `darkbloom local`".
  - The scope's line, the API line of a pair the other Mac serves, and the missing-login remedy reach `cluster status`
    without the console's rename. They now name this build's command themselves (`ClusterOnboardingCommand.name`).
  - Production's text is byte-identical.

Red first:
- `ClusterStatusTruthTests`: 8 tests with 3 issues (R-7 1, R-9 2).
- The onboarding checks: 1211 passed, 3 failed (R-8).

Green:
- Prod: the truth suite 9, CLI pair 72, neighbours 114, look 22, ProviderCore 52, onboarding filter 80, #1774's 67.
- Onboarding 1214/0.
- Dev identity: the truth suite 9, which prints "API key: `darkbloom-dev local`".

Docs: cli-reference.md, two-mac-cluster.md, architecture/inference.md, and the changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(provider): agent setup guide's Local Network timings (G-R5, G-R6)

The guide's third literal run on pair-2 passed; its two timing wordings follow
from R-7, fixed on fix/cluster-status-truth-2 (bfdda272d5):

- G-R6: the leader's ✗ comes within about 20 seconds of its part starting
  (refusalSettleSeconds), not at once. The same wording in step 7.3's
  Retry paragraph is corrected too.
- G-R5: `darkbloom cluster status` names the refusal on the Mac kept off at
  once, and on the leading Mac from about 20 seconds into its part, steadily
  after that while that Mac stays refused (the status read keeps it across
  the leader's part restarts).

The guide quotes neither the JSON `lines` during the refusal nor the stopped
local-only pair's "When it starts: …" line, so neither needed a change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(cluster): say what lastRunSeconds holds after a stop, and where a status read asks for it

Comment-only refactor pass on R-7 (no code or output change):

- `ClusterServiceStatus.Child.lastRunSeconds` is set only when a part ends by itself; a stop the service makes
  (`stopChild`: a planned restart, `cluster stop`, the service's own stop) leaves it as it was. The wire field's doc
  now says so, since `refusalIsCurrent(acrossRestarts:)` reads it.
- `ClusterPairSummary.live(config:bounded:)`: `bounded` (a person's `status` or `cluster status`) also selects the
  status read's rule for the other Mac's refusal; nil keeps the strict rule of a start's looks.
- `ClusterLocalNetworkAccess.otherMacRefused(member:own:now:acrossRestarts:)` names its `acrossRestarts` case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(release): a squash-promoted release's notes must list its dev pull requests

Regression test, red on purpose: a synthetic local history (dev pull
requests, a master-only pull request, a master-into-dev sync, a squash
promotion, a dev pull request merged after the promoted commit and a
Prepare pull request) publishes v1.1.0 through publish_github_release.
Today the notes file holds only the header, and the pull request list is
left to --generate-notes, which lists master's pull requests only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): status names the serving mode and split for every mode (red)

From the round-3 re-test (branch.78), R3-4: serving GLM-5.3-Flash in
pipeline, `cluster status --json` gave mode and split as null and the
"Model:" line had no mode, though the ✓ line said "(pipeline)". The
deployment line is read from its first ": ", which GLM's display name
("Z.ai: GLM-5.3-Flash") already holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cluster): the mode question's split is the one that loads; the follow reads the login state at its end (red)

The M5 Ultra pair's round-3 re-test of DevNet 3ac8dd76a6 (branch.78):
- R3-3: GLM's mode question offered "this Mac 1 layers / the other Mac
  44 layers" while Qwen served, and 26 / 19 while GLM's tensor parallel
  served; 44 / 1 loaded both times. theModeSplitIsTheOneThatLoads: each
  share is named for the Mac that runs it, in either order; one layer is
  "1 layer"; no number while a model serves.
- R3-2: the joining Mac's window ended "After a restart, this Mac serves
  again by itself" with a session service in place.
  theLoginStateIsReadWhenTheLineIsSaid.

The seams the tests call are added with today's behaviour, so the tests
fail on what they check: modeSplit words the shares as screenMode does
(ignoring serving, "1 layers"), startsAtLogin(now:setUp:) returns this
run's setup, and the phrase constant exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): status names the serving mode and split for every mode

R3-4: serving GLM-5.3-Flash in pipeline, `cluster status --json` gave mode
and split as null and the "Model:" line had no mode, though the ✓ line said
"(pipeline)". ClusterPairSummary read the leader's deployment line ("Serving
<model> across both Macs: <mode>, <split>") from its first ": ", which GLM's
display name ("Z.ai: GLM-5.3-Flash") already holds. It now takes the first
": " that a mode's words follow, so every mode comes back whatever the
model's name. Without a recorded line, the mode is the ✓ line's own marker
(the saved setup's mode, as the serving line marks it), with no split.
Docs: cli-reference's mode and split rows; changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Release notes list every pull request a release contains, including dev's

GitHub's generated notes list only the pull requests merged into master
between two tags, so a squash promotion of dev (0.10.7's #1754) showed as
one pull request and the 45 dev pull requests it carried were missing.

scripts/provider_release_notes.py builds the GitHub release body from the
release's contents in Git: the retained header, the version's CHANGELOG.md
section at the tag (candidate heading and note left out), the pull requests
that reached master through dev and those merged directly into master, the
release pull requests named once (promotions, preparation, syncs of master
into dev), and the compare link.

- The carried dev commit is the newest dev first-parent commit that the tag
  or a promotion head contains. A promotion is found by its history: its
  head (merge commit's other parent, or the squash's refs/pull/N/head,
  fetched read-only) holds a dev first-parent commit master lacked. A
  release without a promotion carries what the release before it carried.
- dev pull requests are dev's first-parent commits between the previous
  release's carried commit and this one's, not a date window.
- Titles and authors come from one GraphQL query per 100 numbers.
- Over GitHub's 125,000-character limit the body keeps the upgrade notes and
  every pull request and links CHANGELOG.md. A generation failure logs a
  warning and still publishes the release.

publish_github_release creates the draft with that body and drops
--generate-notes. Only prod publishes a GitHub release; the dev, dev-branch
and staging lanes create none, so they need no change. The release callers'
push paths include the new module and scripts/changelog.py, which it imports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(release): how the GitHub release notes are built; changelog entry

docs/operations/provider-release.md gains "GitHub Release Notes": the four
parts of the body, how the carried dev commit, promotions, preparations and
syncs are found, the size fallback, the failure behavior and the read-only
command for checking or previewing a release's notes. docs/developer/test.md
lists and describes scripts/test-provider-release-notes.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Release notes count the release pull requests they name instead of listing

The line that names the promotions, the preparation and the syncs now says
how many there are, so a reader sees what the list leaves out and why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): the mode question's split is the one that loads; the follow reads the login state at its end

- R3-3: the labels weren't swapped: each share is named for the Mac
  that runs it (its device). The split was stale: the list plans with the
  serving model's memory taken, and the adopt stops that model and plans
  again with its memory free (A-8). While a model serves, the mode
  question now says the split is decided when it loads (modeSplit). One
  layer reads "1 layer" wherever a layer count is printed: the mode
  question, the deployment line on the card and in status, and the
  setup's "cut after" lines.
- R3-2: afterRestart and serviceOutlivesWindow read this Mac's login
  state when a line says it: the running service's startsAtLogin (its
  published status), else this run's service setup. They returned the
  setup's value from the start of the run. The leader's card reads its
  own half the same way.

Docs: two-mac-cluster.md (the split while a model serves) and
architecture/inference.md. Changelog: one bullet in
cluster-candidate-findings.md. refusalIsCurrent is untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(release): a release whose preparation promoted dev must list its dev pull requests (red)

The synthetic history gains v1.4.0, whose only promotion is its Prepare pull
request cut from a dev snapshot. Its contents already hold #19 through dev,
but the body renders the dev group only when a commit is classified as a
promotion, and the preparation label wins, so #19 is silently left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(release): list the dev pull requests whenever a release carries any

render() showed the dev group only when a commit was classified as a
promotion. A Prepare pull request whose head carried dev commits is labeled
the preparation (and named once as such), so a release promoted only by it
lost every dev pull request from its body while its contents and summary
still counted them. Contents now records every commit that promoted dev,
preparations included, the dev group renders whenever there are dev pull
requests and names those commits, and a promotion with no dev pull request
left no longer prints an empty "0 pull requests" group. The labels and the
v0.10.7 output are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(release): the release notes test needs git 2.31, not 2.38, and says so

The fixture squashed with git merge-tree --write-tree (git 2.38). A squash
merge with git merge --squash writes the same commit on any git, so the
test's floor is now the notes' own: git log --diff-merges (2.31). The module
checks that floor first and stops with a message naming it and the runner's
version, instead of an unknown-option traceback, since the Release Integrity
runner's git (a Darkbloom Sandbox) is unverified. docs/developer/test.md
describes the fifth synthetic release and the floor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(release): release notes treat titles as text and say why git or GitHub failed (red)

Three checks fail on the current code:
- a pull request title or commit subject goes into the body as markdown, so
  "<!--", "[text](url)" or "<b>" in one changes the published page. v0.10.7's
  page already shows #1650 "Gemma 4 and <think> models" as "Gemma 4 and
  models". A code span (#1729's `darkbloom update --rollback`) must stay code;
- a git failure surfaces as CalledProcessError, whose message omits git's
  stderr, so the release job's warning cannot say why the notes are missing;
- a GraphQL error other than NOT_FOUND is ignored, so a pull request it hid
  would be listed as a commit without a pull request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(release): release notes treat titles as text and say why git or GitHub failed

- Titles and commit subjects are escaped outside their code spans: HTML,
  links, images, emphasis and stray backticks show as typed, and "#N" and
  "@login" stay references. On real data this changes one v0.10.7 line:
  #1650's "<think>", which the published page drops, now shows; #1729's
  code span stays code.
- Repository.git raises with git's stderr, so the release job's warning (and
  the command line) say why git failed instead of "exit status 128".
- A GraphQL error other than NOT_FOUND fails the lookup, and with it the
  notes, instead of listing the pull request it hid as a commit without one.
  The owner and name go in as GraphQL variables.
- --no-fetch says that a squash promotion is then found only through
  --pull-head. docs/operations/provider-release.md says what the four-release
  look-back does past its limit, what a missing promotion head would do, how
  a preparation that promoted dev is shown, and the escaping.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cluster): the round's layer count and mode list in one place each; one serving read per list

The refactor pass over the DevNet round 4 integration (R3-3, R3-4).

- The six-step wizard's "cut after" line calls
  `ClusterOnboardingDeployment.layers`, the one wording of a layer count,
  instead of repeating it. `ClusterPlacementSetup` keeps its own: the
  placement checks compile it without the onboarding sources.
- `ClusterOnboardingDeployment.layers` and
  `ClusterOnboardingMode.decidedWhenItLoads` are internal: only ProviderCore
  and its tests use them, as with `shownMarker` beside them.
- `OnboardingLive.localPlanModels` reads whether the pair serves once for the
  whole list instead of once per model (each read opens the setup record),
  so every model's modes in one list follow the same answer.
- `ClusterPairSummary` derives both the mode words it parses and the ✓ line's
  markers from one list of modes.

Behaviour-preserving: every string, the JSON and the list are as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(release): without GitHub's API the notes must still list every pull request (red)

The release job's token has contents: write and actions: read only, so
GitHub may refuse the GraphQL title lookup ("Resource not accessible by
integration"). Today that drops the whole changelog and pull request list.

The new publication test answers the lookup with FORBIDDEN and expects
every pull request of v1.1.0 with its title from git, escaped as on the
API path, and an author only where a GitHub noreply address names it.
Fixture titles now carry HTML, emphasis and a code span, and two commits
carry noreply authors. Two more tests pin GitHub's answer as the first
choice and titles from git on request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(release): without GitHub's API the notes take every title from git

The release job's token (contents: write, actions: read) may not read pull
requests through GraphQL. A refused lookup dropped the whole changelog and
pull request list; it now falls back to git, and no permission changes.

- GitHub's answer stays the first choice. When the lookup fails, each title
  comes from git: the first line of a merge commit's body (GitHub writes
  "Merge pull request #N from <branch>", a blank line, the title), or a
  squash's subject without " (#N)". Escaping is the same on both paths.
- The author is a login only where the pull request's oldest own commit (a
  squash: its commit) has a GitHub noreply address that names it. The
  newest commit of a branch is not used: on v0.10.7 it named David for 18
  of jonathan308's 45 dev pull requests (his merges of dev into them).
- The job's warning says the titles came from git and why GitHub did not
  answer; repeated GraphQL errors are listed once. --git-titles takes the
  titles from git on request, and the CLI prints the source.

On v0.10.7, git-only lists the same 48 pull requests: 47 titles equal
GitHub's (#1691's squash subject keeps a parenthetical its title lost),
and 34 authors, all equal to GitHub's; 14 are left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(release): titles and authors from git when GitHub's API does not answer

provider-release.md says when the notes take titles from git (the release
token may not read pull requests), how a merge commit's body and a squash's
subject give the title, that git-derived authors are commit authors shown
only where a noreply address names the login, what the warning says, and
the v0.10.7 measurement. test.md describes the refused-lookup test. The
changelog entry says authors are shown where known.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(changelog): the split while a model serves may not be the one that loads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(release): name the title source once, as "GitHub" or "git (why)"

The warning reads "pull request titles from git (GitHub did not answer:
…)" and the command prints "pull request titles from GitHub", instead of
repeating "titles". Two lines are wrapped to the module's width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: remove provider tests that dependencies already run, and low-value tests

Class A (exact duplicates; the dependency's own Fork Tests run them on the
pinned commits): the GPTOSSOptimizationTests target, whose twelve files were
symlinks into libs/mlx-swift and libs/mlx-swift-lm; the provider copies of the
SDK's GLM5NextAlignedPayloadReaderTests, GLM5NextArtifactCachePolicyTests and
GLM5NextArtifactLoaderTests and their namespace file; SequenceStateMachineTests
(the SDK suite covers every case); EvalProbeTests (mlx-swift EvalProbeTests).

Class D (little value, David's ruling on the defaults): tests that assert only
a constant or a default, a sleep-bound test that could not detect what it
names, a reconnect test whose sibling runs the same steps and more, a
supervisor restart test that a faster test covers, a no-assertion diagnostic
that no lane runs, and redundant parameter cases (SSDBlockIndex counts
4097/20000, three --help cases of the upgrade notice test).

The shard weights drop the deleted suites' entries; docs/developer/test.md
no longer describes the removed SDK copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: drop the reload seam and section header the removed tests left behind

FlashNextReclaimDiagnostics was the only caller that passed a beforeReload
closure to runReloadLifecycle, so the parameter and its call are removed.
The coordinator reconnect section header had no test left under it. The
GLM5Next test-guide paragraph is rewrapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: split CI into ci-dev.yml and ci-master.yml over one reusable test workflow

The test jobs (component classifier, route, provider shards and summary, SDK
lane, cluster jobs, Provider Tests gate) move unchanged into
.github/workflows/provider-tests.yml (workflow_call). CI (dev) runs it for
pull requests into and pushes to dev, and nothing else. CI (master) runs it
for master, plus Release Integrity and Docs Lint as top-level jobs, so the
check that master's ruleset requires keeps the name Release Integrity.

Release Integrity and Docs Lint keep their former fallback label: the plane
routes a run attempt once, and the test workflow's route job holds that
request. docs-impact.yml (Contribution Policy) runs only for pull requests
into master. ci.yml is removed; the scripts, tests and docs that read it name
the new files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: fewer, fuller macOS jobs; loose build-cache tier; macOS lane cap

- Provider Unit Tests: 2 shards instead of 3. Each shard builds once and
  runs PROVIDER_TEST_PROCESSES=3 selections of the 6-selection plan at the
  same time, each serial in its own process with its own TMPDIR and
  provider state files (scripts/run-provider-tests.sh). The isolated
  processes and native gates still run after them, alone; Prompt Parity
  moves to shard 1, the shard of selection PARITY_SHARD. Without
  PROVIDER_TEST_PROCESSES (release qualification) nothing changes.
- Cluster Runtime Tests: 2 shards instead of 3. Shard 1 runs `base` alone;
  shard 2 runs two ordered groups at once (batch-session + GLM/TF32/Gemma;
  the Qwen GPU chain), then the share probe alone, after
  qwen-tp-batch-gpu (scripts/cluster-test-plan.py `group`).
- Cluster GPU Tests (report only) run on pushes only.
- CI (dev): pushes share one concurrency group (one running, newest
  waiting).
- Route: DARKBLOOM_MACOS_LANES caps the macOS jobs one run asks for, in
  the caller's lane order; provider-tests.yml lists the critical path first.
- Swift build cache: a loose restore tier without the CI recipe, one cold
  rebuild after a failed loose restore (scripts/provider-ci-cold-retry.sh),
  and one saved build per lane and UTC day on Darkbloom hosts.
- MiMo metadata downloads are cached by their pinned SHA-256.

No test, selector, KEPT_APART pair, order constraint, audit or gate
condition is removed. The shard weights file is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: refactor-pass fixes for the sandbox lanes

- run-provider-tests.sh: read K and N before the process-count match
  replaces BASH_REMATCH (every sharded run failed with an unbound
  BASH_REMATCH[1] under set -u).
- cluster-test-plan.py: grouped selections pass --ignore-lock, so the
  groups of shard 2 run at the same time instead of taking turns on
  SwiftPM's .build lock.
- ci-component-paths.py: pushes to dev run every component, as pushes to
  master do; CI (dev) cancels waiting push runs, so a dev push run stands
  in for them.
- provider-test-shards.py: PROVIDER_TEST_PROCESSES makes the plan
  job-aware: Prompt Parity's and the isolated processes' seconds load
  every selection of the job that runs them after its processes. Reports
  record the process count and the audit plans with it. One process per
  job (release qualification) plans as before.
- The diagnostics artifact keeps each process's whole output.
- verified_download_cache.py: the MiMo fixture scripts share one
  content-addressed cache; the image script's cache has a test.
- A test counts the new metadata cache restore; Docs Lint's cited path
  names ci-master.yml; the GLM group wording is exact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: remove the Provider SDK Tests lane (David, 2026-11-04)

226 of its 236 test seconds repeated the SDK's own Fork Tests
(Layr-Labs/mlx-swift-lm), and it never gated. Removed with it: its route
lane, the `sdk` component of the classifier and component-changes.yml,
the `sdk` build lane of provider-ci-build and provider-ci-cache.py, and
the libs/mlx-swift-lm/.build cache path.

Its one step that Fork Tests skips, MiMoV26NativeMediaDeadlineTests, is an
SDK-only test (no provider import), so no provider shard can run it; it is
left for the SDK's Fork Tests to un-skip. Release qualification still
builds and tests the provider, with the SDK compiled in, under SDK 27.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): a pair's stalled reservation must not hold back cancels, capacity reads or challenges (red)

A two-Mac pair's reservation waits on the engine queue until both ranks
answer at their next step boundary, up to 30 s. On dev a capacity read and
a cancel wait for it, a submission whose caller already left still asks the
ranks, and a cancel waiting on the engine stops the provider's coordinator
work FIFO, so an attestation challenge and the next request wait behind it.

- DistributedCBv2StalledReservationTests: an owner whose reservation is
  held; a capacity read, a cancel and the cancel of the reserving request
  must return at once and land once it returns; a lost peer reads as no
  capacity at once; a submission cancelled while it waits for the queue
  must never reserve. All five fail on dev.
- ServeLoopCancelBesideFIFOTests: with the engine held under a cancel, a
  challenge must be answered and the next request accepted, and the cancel
  must still land with one terminal. Fails on dev.
- ServeLoopColdLoadTests: a cancel for a request queued behind another
  admission runs only after its own admission (a guard; passes on dev).
- PrefillScriptEngine: an optional capacity hold, and cancel finishes the
  cancelled request's own stream.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): switching a pair to Darkbloom plans it for Darkbloom, and nothing says it serves there unless offered

The DevNet traffic run on pair-2 (an M3 Ultra leads, an M5 Max follows; dev 79051ff73a, branch.79): "Switch to
serving through Darkbloom" on a pair serving Qwen 3.8 27B locally only kept the local plan's unequal tensor-parallel
shares [2, 3]. The coordinator can't register such a setup (ClusterApprovalAttachment refuses it), the switch never
asked it anyway (finishStart(registers: false); the cluster service asks only at the first check of its run), and
still the screen said ✓ "Serving … through Darkbloom on both Macs" while status and cluster status said serving,
exit 0, "earning through Darkbloom".

- changeScope: a serving pair switched to Darkbloom goes through chooseAndServe for its model with the public scope.
  It is planned for Darkbloom (equal shares, no speculative assistant under mtp_mode auto), adopted before anything
  stops, the scope saved after the adopt, then started, tested and registered as a start is. ✓ only once the
  coordinator has the pair (awaitPairServing).
- A start set to serve through Darkbloom whose pair isn't offered ends with the leading Mac's status (a new
  operation, notOfferedStatus): ✗ "Not serving: not offered to Darkbloom (<why>)." and where it answers meanwhile.
  Retry asks the coordinator again.
- OnboardingLive.localStatus: a pair on the leading Mac's API with the public scope says "<model> is not serving yet:
  not offered to Darkbloom (<why>)." instead of "Serving … (earning through Darkbloom).". servesWords never says
  earning: a pair on that API is never offered. The adopt clears the replaced setup's approval note.
- The joined Mac's follow ends with that ✗ at once; it said "Offered to Darkbloom…" and waited for the pair.
- Choosing the serving model again while the status says it isn't offered asks once and starts it again from a plan
  for Darkbloom; it said "✓ Already serving" from a test on the local API and planned nothing.
- ClusterPairSummary: the not-offered reason ends darkbloom start's wait and has its own next step, the plain Serves
  line says "(not offered)", and this Mac's own view reads a ready local API in the public scope as not offered.

Red, against origin/dev 447b230367: its five onboarding sources with a shim that adds only the new names,
1217 passed, 20 failed, all in the four new and three updated checks; the two new CLI tests with the summary's two
files as on origin/dev, 5 issues. Green (prod identity; swift test filtered, --skip-build, sandboxed): onboarding
checks 1237 passed, 0 failed; the new tests 3; ClusterStatusTruthTests 9; ClusterStatusModeTests 3;
ClusterServiceStopReasonTests 21; the CLI pair suites 74 in 11; onboarding-side 87 in 9; neighbours 37 in 8; the
approval suites 53 in 8, whose only failure is the next commit's red test. docs-check, changelog-check and
docs-impact pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): the not-offered refusals name a step the list has, not the key m

The DevNet traffic run (2026-11-04): the refusal of a plan the coordinator can't register said "press m in
`darkbloom cluster` to plan equal shares" (and, for Qwen's speculative assistant, "to plan without it"). No item of
the list starts with m, so ClusterOnboardingChoice.match took nothing and the prompt came back. v0.10.7's menu had no
m either.

- ClusterApprovalAttachment.unequalTensorSharesServeLocally and ClusterConfiguration.tensorAssistantServesLocally say
  to choose the model again in `darkbloom cluster`, which since the previous commit starts a pair that isn't offered
  again from a plan for Darkbloom. Both are named for this build's command (the shares one was always production's).
- Both stay within 240 characters after the other Mac's refusal prefix and the link's "the other Mac refused: ", so
  the leader still gets them whole. The first wording didn't: the test caught "…to plan witho".
- docs/provider/two-mac-cluster.md and the pending fragment cluster-pair-equal-tensor-shares.md said "press m" too.

Red: theRefusalsNameAStepTheScreenHas before the text change, 4 issues ("press m", no step). Green (prod identity,
filtered, sandboxed): it and ClusterApprovalTensorSharesTests, ClusterApprovalTensorAssistantTests and
ClusterApprovalSyncTests, 18 tests in 3 suites.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): the status of an offered pair names no screen's Retry

The DevNet traffic run (2026-11-04), during the update: `cluster status --json` carried "Then choose Retry, or serve
locally only now." under "This Mac isn't verified by Apple yet; …". `cluster status` has no Retry; neither has the
other Mac's window, which shows the same lines.

- OnboardingLive.localStatus no longer appends ClusterOnboardingNotServing.remedy under an offered pair's reason
  (offeredWaitLines). The leading Mac's setup screen still adds it under its own ✗ (notServing), where Retry is a
  choice, and `cluster status` says what to do in Next: as before. Its plain output already dropped the line; its
  JSON `lines` and the other Mac's window no longer get it.
- docs/provider/two-mac-cluster.md's status table and the fragment say so.

Green (prod identity, filtered, sandboxed): anOfferedPairsWaitNamesNoScreenChoice with ClusterOnboardingPeerLabelTests
(18) and ClusterStatusTruthTests (9). No red run: the test reads the new seam; the tester's u1-watch sample at 17:22:54Z
is the before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(cluster): the agent guide's check of a pair names the not-offered reason

The DevNet traffic run (2026-11-04) followed this table: ✓ in the result block, then `serving`, exit 0, so "Go on",
for a pair the coordinator never had. Since the first commit of this branch such a pair reads `not_serving`, exit 3,
with `reason` `not offered to Darkbloom (…)`; the table now says what that means and what the human does (choose the
model again in `darkbloom cluster` on the leader), instead of leaving it to "another reason".

docs-check passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): a pair's stalled reservation no longer holds back cancels, capacity reads or challenges

A two-Mac pair's reservation waits on the engine queue until both ranks
answer at their next step boundary, up to 30 s each. Capacity reads and
cancels waited for that queue, and the leader's coordinator work FIFO
awaited each cancel, so attestation challenges and new requests queued
behind it (DevNet pair-2: a request waited 17.9 s before it was read).

- DistributedCBv2Engine: capacity() off the queue answers from the
  snapshot the queue publishes after every change, with readiness read
  live, and queues one refresh for its checks. cancel() and the deadline
  timers hop onto the queue without waiting, so a stop is applied in
  queue order. A submission whose caller went away while it waited for
  the queue never reserves.
- ProviderLoop: the connection reader answers attestation and
  code-attestation challenges and routes coordinator cancels. A cancel
  for a request whose admission has not returned is held and applied
  when it returns, where the serial FIFO applied it; any other cancel
  runs beside the FIFO.
- Tests that check a cancel's effect wait for the engine queue first.
- Docs (engine queue, process boundaries, connection control) and a
  changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(cluster): wait a minute before acting on stopped during a change or an update

R4-16 (the DevNet runs, 2026-11-04): during a model or mode change, or a pair update, `status` and `cluster status`
can read `stopped` (exit 4) or `unknown` for a minute or two while the pair is actually reloading. The fix needs a
marker shared by both Macs and goes to 0.10.9. Until then, the agent guide's `stopped` row, the `cluster status`
reference and the two-Mac guide's status table say to wait about a minute and check again before running
`darkbloom start`, rather than interrupting the reload.

Docs only; no code. make docs-check, make docs-impact-check BASE=origin/dev and git diff --check pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): the bridge must answer while a pair's submission waits for its reservation (red)

A pair measures no prefill rate, so the bridge submits its requests
without a projected admission, synchronously on its actor. While another
request's reservation holds the engine queue, the bridge's actor waits
there too, and a cancel or a capacity read through the bridge waits with
it: the engine-level fix alone leaves R4-9's cancels as late as before.

The new check holds a reservation and expects the bridge to answer a
capacity read and a cancel at once, the cancel to land once the
reservation returns, and a request cancelled while it waited never to
ask the ranks. It fails at the previous commit: the bridge answered only
after the ranks' step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): a pair's submission no longer holds the bridge actor while it waits for its reservation

A pair measures no prefill rate, so the bridge submits its requests
without a projected admission, and it did so synchronously on its actor.
While another request's reservation held the engine queue (up to 30 s),
the actor waited there too, and every cancel and capacity read through
the bridge waited with it. R4-9's cancels would still have landed only
after every reservation queued ahead of them.

- DistributedCBv2Engine.submitAwaitingQueue runs the same admission on
  the engine queue, in order, without blocking its caller, and trips the
  admission cancellation when the caller goes away. A request cancelled
  while it waits never reserves; one cancelled during its reservation is
  stopped before its prompt starts. It replaces submitWithRetirement,
  which nothing else used.
- EngineV2Bridge awaits it for a pair's submission without a projection,
  so the actor stays free for cancels and capacity reads. The atomic
  path already had this suspension point, and the bridge's pending-cancel
  latch and teardown cover it unchanged.
- One more HTTP test that reads a cancel's effect waits for the engine
  queue first.
- Docs (the engine queue paragraph) and the changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cluster): the scope switch's local-only wording has no dead Darkbloom branch

Since the switch to Darkbloom of a serving pair re-plans through chooseAndServe,
changeScope's last finishStart is reached only for the switch to local only, so its
"Switching to serving through Darkbloom: the leading Mac's part starts again that
way." branch was dead. finishStart's doc comment no longer says the switch leaves
registering to the cluster service, and the guide quotes the lines the switch says
now. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): the mode question's split is the plan that loads, on both Macs

R4-13 (the M5 Ultra pair's DevNet run, branch.80): with nothing serving,
GLM-5.3-Flash's mode question offered Pipeline as "this Mac 1 layer / the
other Mac 44 layers", and 44 / 1 loaded. The question showed the pipeline
in the listed tensor-parallel plan's own assessment; the start then made
another plan in the chosen mode, from new samples (this Mac's memory and
speed index are read again at every plan), and loaded that one.

- ClusterSetupPlanning.decide plans each other mode the question offers
  as the start plans it once chosen (ClusterPlacementFlow.decide with
  chosenMode), from the same samples, and keeps that plan with its setup
  (ClusterSetupModelOption.familyPlans, Decision.familySetups).
  ClusterSetupPlanning.offered shows each mode's split from the plan that
  loads for it; a mode that can't be planned on its own shows no split.
- localAdopt adopts the plan the question showed for the mode chosen
  when nothing serves (OnboardingLive.adoption), and LiveContext.adopt
  takes it by its plan key. While a model serves it still plans again
  once that memory is back, and the question still says "decided when it
  loads" (round 4's R3-3).
- On both Macs: an adopt forwarded from the joining Mac carries the mode
  chosen on its screen (ClusterControlRequest.mode,
  OnboardingLive.adoptRequest); before, the leader adopted its own list's
  default. The fit check before a start checks the plan that mode loads.

Docs: two-mac-cluster.md and architecture/inference.md. Changelog:
cluster-mode-question-and-local-network-row.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): the mode question says how many requests each way serves at once

R4-15 (the M5 Ultra pair's DevNet run, branch.80): GLM-5.3-Flash's
pipeline served one request at a time (its owner's concurrentRequests
defaults to 1, DistributedEngineFactory's maxConcurrentRequests), so
DevNet queued every other request for about 6 s and answered 429 "at
capacity": 1 of 4 and 1 of 8 in the sweep. On the same pair, tensor
parallel served 8 at once with no 429, each about 2.6x faster (105.6
against 40.8 tok/s alone). The question offered Pipeline as an equal
choice and didn't say so.

- Each mode the question offers says it, from the plan that loads for it:
  "serves one request at a time" or "serves up to 8 requests at once"
  (ClusterSetupPlanSummary.Mode.concurrentRequests, from the setup through
  DistributedInstalledPlan.batchLanes(configuration:capability:environment:),
  which the installed plan's batchLanes now calls; ClusterOnboardingMode
  .requestsWords in modeLine).
- Wording only: the modes offered and the defaults are unchanged.
  cluster status isn't changed: its Model line and JSON split come from
  the deployment line, which ClusterPairSummary parses.

Docs: two-mac-cluster.md says to choose tensor parallel on a GLM pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): the Local Network hints name the row macOS shows, and what to do without one

R4-4 (the M5 Ultra pair's DevNet runs): the screens, status and the link
follower's log told the owner to turn on a "Darkbloom Dev" row under
Privacy & Security -> Local Network. Both apps share the bundle ID
io.darkbloom.provider, so macOS lists the DevNet app as "Darkbloom"; and
where macOS never recorded an answer for the app there is no row at all:
it asks on that Mac's own screen the next time the app dials, and someone
must click Allow.

- ClusterService.localNetworkRow: the row's name in every build, the
  production app's name (BuildEnvironment.prod.appDisplayName);
  ClusterOnboardingCommand.localNetworkRow reads it.
- Every hint names that row, says when it is the DevNet app's ("macOS
  lists Darkbloom Dev as "Darkbloom""), and what to do when it isn't
  listed: ClusterOnboardingDriver.localNetworkBlockedLines (through
  localNetworkSteps), OnboardingLive.localNetworkRefusalLines (and so
  cluster status, through ClusterLocalNetworkAccess.statusWords),
  OnboardingLive.localNetworkHint, and the follower's refusal line
  (Cluster.LinkFollower.refusalLine). The production app's words still
  name "Darkbloom".

Docs: two-mac-cluster.md, agent-setup.md and cli-reference.md, which
quote these hints. Changelog: the DevNet bullet of
cluster-everyday-commands-on-a-pair.md no longer says the hint names
Darkbloom Dev; one bullet in cluster-mode-question-and-local-network-row.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(changelog): fragment wording that renders right; plain words in the two-Mac guide

D2's review of the 0.10.8 Prepare (refactor-prepare-0.10.8.md, section 3):
- cluster-console-clarity.md: the screen's words are in a code span, so
  GitHub keeps "<model>" (it read "Offered to Darkbloom as a pair for ;
  waiting...").
- cluster-candidate-findings.md: the title says each ✗ names the Mac
  where the problem is.
- cluster-everyday-commands-on-a-pair.md: "stays refused" says what it
  means: macOS keeps the other Mac off the local network.
- provider-uninstall-keep-or-remove.md: "(and the files kept beside it)".
- cli-darkbloom-look.md: "its one-line live status".

docs/provider/two-mac-cluster.md: "an older build" (twice) is an earlier
Darkbloom release, "a scope switch" (twice) is switching between local
only and serving through Darkbloom, "tensor assistant" is the
speculative assistant. "The planner's mode" went with the paragraph the
mode question's fix rewrote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cluster): a start through Darkbloom says ✓ only once the coordinator has the pair; an offered part reads loading

The refactor pass on this branch (overnight/round5/r4-7-validation.md):

- B1: past the registration, a start through Darkbloom whose pair isn't offered fell back to the old "✓ Serving …
  through Darkbloom" when the leading Mac's status read didn't say "not offered". A pair on the leading Mac's API
  never earns, so startOutcome now always ends it with ✗: the status's reason when it gives one, else
  ClusterOnboardingReady.notOfferedLines (no approval attached, or a coordinator that can't take a cluster member),
  with where it answers meanwhile and the test's time. ✓ comes only from awaitPairServing, as for every start the
  coordinator takes.
- The onboarding checks' scripted world now models that start: by default the coordinator serves an approval, the
  parts start again as the pair's members and the pair is awaited, so every default start ends with ✓ through
  Darkbloom and "No local API". Sequences, the refused registration (now ✗, not offered) and the leader's line and
  word budgets (+2 lines, +25 words for the offered line and the restart) follow.
- B2: this Mac's own view read a member part registered with the coordinator, before its pair line, as not offered;
  it now reads loading (child.notice == ClusterLocalServing.offeredNotice).

Red: aStartTheCoordinatorDidNotTakeNeverEndsWithATick against the flow before this commit, 4 failures (✓ shown);
ownStateOfALocalAPI before B2, 1 issue. Green: onboarding checks 1245 passed, 0 failed; prod identity, filtered,
sandboxed: new tests 5, ClusterStatusTruthTests 9, ClusterStatusModeTests 3, ClusterServiceStopReasonTests 21, CLI
pair suites 74 in 11, approval suites 53 in 8, onboarding-side 88 in 9, neighbours 37 in 8; dev identity:
ClusterStatusTruthTests 9 and the new tests 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): a pair's long prefills no longer read as a wedged slot

The wedge monitor marks a slot crashed when three requests have had no
first token for 10 s while the engine's step counter stands still. A
two-Mac pair's engine has no step counter, and its ranks prefill one
prompt at a time and send nothing before a prompt's first token, so any
burst of three long prompts on a pair with lanes read as crashed after
10 s, a plausible cause of the coordinator's member_not_idle pair ends.

- WedgeMonitor.marksCrashed keeps wedgeSuspected for engines with a step
  counter. For a pair's engine it marks the slot crashed only when a
  waiting request is still without a first token 40 s past its own
  first-token allowance, which grows with the prompt: by then the
  engine's own deadline should have failed it, so a hang of the engine
  itself is still reported. The bridge records each admit's allowance.
- wedgeSuspected still feeds the step_wedge telemetry and heartbeat
  field unchanged.
- Tests: three pair prompts without a token for 11 s read running (red
  before); a single-Mac engine whose steps stop under three waiting
  requests still reads crashed; the monitor's allowance rule.
- Docs and a changelog line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cluster): one source for the Local Network row's DevNet note

The three Local Network hints (the blocked and refusal lines, the
unanswered-Mac hint and the follower's refusal) each spelled out
"(macOS lists <app> as “<row>”)" for a build whose own name differs
from the row. ClusterOnboardingDriver.localNetworkRowNote now says it
once, and all three read it. The words are unchanged in both
identities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): a pair's first-token allowances leave with their own requests

The wedge monitor kept each hanging admit's first-token allowance in the
admit FIFO and dropped the oldest one whenever any request ended without
a first token. A pair prefills one prompt at a time, so a short request
behind a long prompt ends at its own allowance first, the long prompt
inherited that expired allowance, and the pair read crashed 40 s later
while it was still prefilling normally.

- Allowances are keyed by request id: recorded at admit, removed by that
  request's own first token or end. The count rule keeps its FIFO.
- A first token on another lane no longer untracks a hung request, and
  an entry whose request already left the bridge never counts.
- A pair request without a coordinator budget is tracked by the
  allowance its engine arms (its first-token deadline, else its request
  deadline).
- Tests: the reviewer's probe (600 s and 20 s, the short one ends, +61 s)
  as a regression test, red before; the escapes above; a pair request
  without a budget is tracked and its first token clears it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(cluster): the mode question recommends one mode for these Macs

The owner (2026-11-04): "it also does not suggest which one to select for
the hardware like it should." The question listed each mode, its split
and its requests at once, but never which to pick for these two Macs. On
two M5 Ultras, GLM-5.3-Flash in tensor parallel served 8 at once and each
request about 2.6x faster than its pipeline; on a memory-tight pair a mode
may not fit at all.

- ClusterOnboardingModeAdvice.advise picks exactly one mode, or none with
  the reason, from what the plans know. Only modes whose own plan fits
  now count (while a model serves, its memory is freed first). One that
  fits alone is "the only one that fits these Macs now"; through
  Darkbloom a mode served publicly comes first
  (ClusterSetupPlanSummary.Mode.publicTraffic). Then, through Darkbloom,
  more requests at once wins (the rest are turned away at capacity);
  locally, the clearly faster one (measured, else the planner's
  prediction; within 5 % is the same speed). No fit, or no speed and no
  difference in lanes: no recommendation, and why. It never guesses.
- The leading Mac makes it with its plans (OnboardingLive.modeAdvice,
  each mode's own pla…
Version 0.10.9; the 38 changelog.d fragments rendered into CHANGELOG.md
(scripts/changelog.py render --version 0.10.9 --date 2026-11-05, verbatim, in
filename order) under the candidate heading, with the upgrade and rollout
notes; v0.10.8 marked published (2026-11-04); the 0.10.9 section of
docs/operations/provider-release.md. Base: release snapshot be5a90e.

Co-authored-by: jonathan308 <5055076+jonathan308@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…up need an approval (#1850)

* feat(provider): waitlists for 0.10.10; a new cluster pair and a new sandbox setup need an approval

Ports d-inference#1742 (feat/cluster-waitlist d7f420e, its net diff over
dev c41b40b) onto master 0.10.9, and adds the cluster gate:

- `darkbloom waitlist [cluster|sandbox]`: list the coordinator's waitlists,
  or join one; the account joins, nothing about the Mac is sent.
- `FeatureWaitlistGate`: one failure policy for both gates. Approved: go on.
  404 (a coordinator without the routes): go on after one line. Not joined:
  offer to join. Waitlisted, revoked, 401, 403 (new `refused` problem) or no
  usable answer: say why (and to retry when unreachable), change nothing,
  exit 1.
- A first `darkbloom sandbox setup` uses the gate (feature `sandbox`).
- `darkbloom cluster` and `cluster local` on a Mac that holds no pairing use
  the gate (feature `cluster`); a Mac that holds a pairing, or one it can't
  read, is never asked and makes no waitlist call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(provider): master's work-disk and rerun sandbox tests run as an approved account

The sandbox setup tests that master added after #1742's base built
SandboxSetupFlow without a waitlist, so the gate asked the stub coordinator
(404) and printed its line. They now pass `waitlist: .approved`, as #1742's
own tests do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(provider): `darkbloom cluster local` is never gated by the cluster waitlist

The cluster waitlist gates clustering through Darkbloom. `cluster local`
serves on the owner's own Macs and, as its help says, never contacts the
coordinator, so it makes no waitlist call and works offline and for any
account. Every stop of the `darkbloom cluster` gate now ends with
"Serving on your own Macs only needs no approval: darkbloom cluster local".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: jonathan308 <5055076+jonathan308@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Version 0.10.10; the 1 changelog.d fragments rendered into CHANGELOG.md
(scripts/changelog.py render --version 0.10.10 --date 2026-11-06, verbatim, in
filename order) under the candidate heading, with the upgrade and rollout
notes; v0.10.9 marked published (2026-11-05); the 0.10.10 section of
docs/operations/provider-release.md. Base: master 0a75ee9 (the waitlist feature PR's squash).

Co-authored-by: jonathan308 <5055076+jonathan308@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Brings #1850 (darkbloom waitlist; the sandbox and cluster first-setup
gates, cluster local exempt), #1853 (version 0.10.10, CHANGELOG render),
and the other master-only work since the last sync (#1759 sandbox work
disks; the 0.10.8/0.10.9/0.10.10 CHANGELOG renders) into dev, so 0.10.11
keeps the waitlist.

The textual merge base (d0eeeee) predates the 0.10.8 and 0.10.9
squash releases, so git saw 31 conflicts where master only held an
older snapshot of dev. Resolved as a three-way merge on 3d63626, the
dev commit the 0.10.9 release snapshot matches (it merges clean):

- 27 files take dev's text (master's side was an older dev snapshot):
  the CI workflows and scripts, docs/developer/{build,test}.md, and the
  cluster sources and tests (ClusterConfiguration, the wizard planning
  and state, ClusterOnboardingLive, ProviderLoop+ClusterPairServing,
  ClusterPairSummary(+Live), OnboardingChecks, ClusterPairCommandsTests,
  ProviderLifecycleTests).
- 4 files are dev plus master's hunks (the result equals master's file;
  dev had not touched them since): ClusterSetupCommand.swift (#1850 help
  text), docs/provider/cli-reference.md (#1759, #1850),
  docs/provider/two-mac-cluster.md (#1850),
  docs/operations/provider-release.md (#1853).
- Not conflicts, but fixed against the textual merge: the 55 changelog.d
  fragments already rendered in 0.10.8/0.10.9 stay deleted (the textual
  merge brought them back as pending); Package.swift and
  BuildEnvironmentTests keep dev's "dev" default build environment.

CHANGELOG.md is master's render; version 0.10.10; feature-waitlists.md
is rendered and not pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 6, 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 6, 2026 6:52am UTC
d-inference-console-ui-dev Error Error Nov 6, 2026 6:52am UTC
d-inference-landing Ready Ready Preview Nov 6, 2026 6:52am UTC
darkbloom-status Ready Ready Preview Nov 6, 2026 6:52am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 6, 2026 6:52am UTC

Request Review

This branch had an error being deployed

2 failed and 3 active deployments
Preview – d-inference-landing — c7854c53 Deployed Nov 6, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — c7854c53 Deployed Nov 6, 2026 by vercel[bot]
Preview – d-inference — c7854c53 Deployed Nov 6, 2026 by vercel[bot]
Preview – darkbloom-status — c7854c53 Deployed Nov 6, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — c7854c53 Deployed Nov 6, 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.

3 participants