Skip to content

DO NOT MERGE: CI (master) check of #1787 - #1788

Closed
davidtai wants to merge 786 commits into
masterfrom
ci/sandbox-lanes-master-check
Closed

davidtai wants to merge 786 commits into
masterfrom
ci/sandbox-lanes-master-check

Conversation

@davidtai

@davidtai davidtai commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

DO NOT MERGE. A one-time CI (master) run of #1787, to run Release Integrity's script tests (CI (dev) does not run them). The branch is #1787's tree as it is, merged with master. It is closed, and its branch deleted, as soon as Release Integrity finishes; its Mac jobs are cancelled then.

🤖 Generated with Claude Code


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

jonathan308 and others added 30 commits November 3, 2026 22:05
…-on-a-pair

fix(cluster): on a paired Mac, darkbloom start/stop/restart/status control the pair; plain cluster status --json (stacked on #1764)
feat(provider): the Darkbloom mark and live line on the everyday commands, in a terminal only (stacked on #1774)
This branch and dev share three merge bases (#1770's c066551, #1767's 6a399dc and #1766's
e1e8d5e, each merged into dev separately), so GitHub's single-base check reports conflicts. git's
default merge resolves them through a virtual base with no conflict. Its tree equals the tree the
0.10.8 integration was built, tested and run on real Macs with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 0.10.8 candidate on real Macs (c3, pair-2: M3 Ultra leads, M5 Max
joins), overnight/candidate-0108-proof.md "c3 on pair-2":

- B14: "Serve locally only" at the first setup's login check started the
  plan made for serving through Darkbloom, so Qwen tensor parallel ran
  without its tensor assistant (15.7 tok/s against 36-39 locally). The
  list is now planned for the scope chooseAndServe names
  (ClusterOnboardingOperations.planScope, a stored operation outside
  init; OnboardingLive.usePlanningScope, carried in the planModels and
  adopt requests' existing ClusterControlRequest.scope). A start whose
  scope changes before it adopts plans again for that scope and adopts
  the same model, by id, from the new plan. That also covers the scope
  line on a stopped pair.
- B17: with the member's worker SIGKILLed three times, the ✗ said
  "starting; this Mac's part ended (exit 1: closed)", "This Mac:
  closed." and "The other Mac (…): its part is running, no error
  reported.". The title (keepsEndingTitle) drops the live row's progress
  word; when this Mac's part ended only because its link to the other
  Mac closed (ClusterLinkControlChannel.closed), it names the other
  Mac's side ("the other Mac's worker ended or the cable dropped"). The
  member's service doesn't report its worker restarting, so its line
  (errorLines) says what can't be read from here instead of clearing it.
- B13: the DevNet app's cluster screens told the person to run the
  production `darkbloom`. ClusterOnboardingCommand carries the running
  identity's CLI name (BuildEnvironment.current.cliName, set by the live
  operations); the console names every backticked command with it, the
  card's commands follow it, and ClusterPairSummary's printed commands
  use it. The production name changes nothing.

Red: B14's check against today's sources, onboarding 1157/1; B17's two
tests after behaviour-preserving seams, ProviderCoreTests 63 tests with
5 issues; B13's check against a no-op rename, onboarding 1161/1. Green:
onboarding 1162/0 (the real runner, sandboxed); ProviderCoreTests filter
63 tests in 8 suites (sandboxed, prod); control 229/0, placement
flow-run 33, setup 264, provisioning 161/0, diagnostics, the placement
library's checks and GLM image admission (40) pass; product build OK;
docs gates OK. #1774's suites run against a prod-identity build.

Not done: B18, B19, B20 (timebox); B15, B21, B22 skipped as asked; B16
is in another PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 7f5a9695ef2301d96115a4a7b84f84332fb61c90)
…ope once, simplify the command lines

- ClusterOnboardingCommand, ClusterPairSummary.cli and the two new onboarding checks had been inserted
  between a declaration and its doc comment (ClusterOnboardingPendingRegistration, checkPairingLine,
  missingLoginIsSaidBeforeTheStart): each new declaration's doc began with the old one's text, and the
  old declaration had none. Each declaration has its own doc again.
- OnboardingLive.runScope: the scope planModels and adopt send to the control leader, and the one
  planningScope prefers, written once instead of three times; planningScope's doc names it (it still
  described the order before the screen's scope was added).
- pairCommands: three literal lines after the name. The padding was relative to the name's length,
  so the literal spacing gives the same bytes for "darkbloom" and "darkbloom-dev".
- ClusterPairSummary: Self.cli, the file's own idiom, instead of ClusterPairSummary.cli (41 lines;
  13 of them had grown past 140 columns).
- chooseAndServe names its scope before the list's declaration, not between it and its assignment.

No screen text, check, assertion or public contract changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 4c7fd15a34a083f274b456c5a70dad3f607237ee)
…hey're fitted

The refactor pass on the c3 findings fix (4c7fd15a34) flagged two
screen issues, both decided:

- keepsEndingTitle cut the live row at its first "; ", so a head with its
  own "; " lost its opening clause ("A part keeps ending the same way: it
  starts again by itself; …"): a rank-0 end seen from a Mac that isn't
  rank 0, a failure text, or a session detail. endsClause keeps the whole
  row when its first part names an end itself, and otherwise cuts at the
  last "; " before the first "'s part ended", so only a progress head is
  dropped, never an opening clause. A link that keeps closing still names
  the other Mac's side, and an end with its own reason keeps it.
- DevNet only: the console renamed commands after drawWorking and pick
  had fitted their rows to the window, so a fitted row naming a command
  grew 4 columns and wrapped, leaving a stale row. Both fits name the
  text first; write keeps its catch-all rename. Production output is
  byte-identical (named returns the text as is).

Red: ProviderCoreTests theTitleNeverStartsMidSentence, 3 issues (one per
shape); onboarding aDevNetLiveRowNamingACommandStillFitsTheWindow against
the old Terminal, 1164/1 (a 43-column row in a 39-column room). Green:
onboarding 1165/0 (the real runner, sandboxed); ProviderCoreTests filter
64 tests in 8 suites and #1774's 8 suites 67 tests (prod build); control
229/0, placement flow-run 33, setup 264, provisioning 161/0,
diagnostics, the placement library's checks and GLM image admission (40)
pass; product build OK; docs gates OK. Transcripts against 4c7fd15a34:
65 of 66 identical; the one that differs is the timing-sampled
leader-download-live-progress frame list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit f1467b3bbdfc1819fc89c9e6e9ff74bbbc62e2ef)
…st (B16, B21)

The 0.10.8 candidate (c3) on pair-2: on the member of a serving pair, the
DevNet app's uninstall skipped "Stop serving" and "Remove this install's
cluster service", then deleted the app while `darkbloom-dev cluster
service` (a session service, no launchd agent) was still running from it.
As tests, with stand-ins for the lock holder (never real launchd or
processes):

- Beside the other install, this install's running cluster service is
  stopped before the first deletion (both directions); step 1 says what
  serves here; the dry run and the summary say so; the pairing and the
  shared files stay.
- The other install's running service is left running, and said so.
- A running service that is neither install's keeps every file and fails
  the run (exit 1); so does this install's service when it did not stop.
- B21: beside the other install, option 1 does not promise the pairing or
  models it keeps, and option 2 says the models stay either way.

Red at 8b2eb2f33e: a runtime probe with the old API deleted the app under
the running service and showed the old option lines; the tests above do
not compile (no `RunningClusterService`, `runningClusterService:`,
`stopClusterService:`, `owner(ofExecutable:)`, `stillRunningStep`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 4ce38617b2e3f2a919a4bddcf5bcfd39c75ec6df)
B16: before deleting anything, the uninstall now finds whose cluster
service holds this Mac's lock (`ClusterService.running`, the service's
pid file, the process's executable from the kernel, matched to an install
by `ClusterServiceAgentPlan.installRoot`).

- Beside the other install (step 2's shared path), this install's running
  service, launchd's or a session's, is stopped first (SIGTERM, as
  `cluster stop --local-only` ends one, waiting for its lock), so the
  member's part ends cleanly; then its agent goes; the pairing and cable
  port setup stay. The other install's service is left running. One from
  neither install is refused.
- In both paths, a check before the first deletion fails the run when a
  cluster service of this install, or one it can't tell apart, still
  runs: nothing is deleted, the summary says to stop it with `cluster stop
  --service` and run the uninstall again, and the command exits 1. The
  unshared path keeps `Cluster.Stop.parse(["--service"])`, which already
  ends a session service of this build (`ClusterService.stopDetached`).
- Step 1 says when a cluster service serves here instead of the provider.
- B21: option 1's line names only what it removes on this Mac (no pairing
  while another install shares it, "all models" only when none stays);
  option 2 says when the models stay either way.

The CLI reference, the installation and troubleshooting sections and the
changelog fragment say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 31d2a79a293c89ad863911796872f420e0a9097f)
…drop the path it replaced

Behaviour-preserving cleanup of the uninstall's running cluster service
fix (31d2a79a29). Every printed line and exit code is the same; no test
changed.

- `removeOwnClusterAgent` had no caller left, and its doc comment sat on
  top of the new function's. It is removed.
- `handleOwnClusterService` is `removeOwnClusterService`, after its step
  ("Remove this install's cluster service") and the function it
  replaced. Its detail is built from one list without a force unwrap;
  each outcome reads as before.
- The dry run's shared step 2 binds the running service instead of
  force-unwrapping it twice; its default branch is the base's line again.
- The command probes the cluster service lock once: the Plan's init sets
  `clusterServiceRunning` from `runningClusterService`, and the live
  lookup is non-nil exactly when `ClusterService.running()` is true.
- `linkedModelsLabel` names the "Models" label the inventory gives a
  linked model cache, which option 2's line (`keepsModels`) compares with.
- The CLI reference's step 2 names the function step 2 calls, and says
  that booting out the agent ends launchd's service and SIGTERM a
  session's (it said both were stopped first with SIGTERM). The
  installation section's long line is rewrapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit da7dc43b8973420ebdf615b017500e7b607d9354)
…, unreadable locks

Validator B's notes on the B16 fix, as tests:

- m1: a cluster service started through a link (`bin/<cli>`, or a link
  elsewhere into an app) is told apart by where the link leads, both
  directions.
- n2: a service that starts again during the steps after step 2 (the
  cable step can wait for a password) still keeps every file.
- m2, m3, n1: the lock reads three ways (free, held, can't be read), a lock
  that can't be read or a pid that is not a cluster service is nobody's,
  a missing pid makes no claim about whose, and the stop refuses to signal
  a process that is not a cluster service.
- m4: with no other install, the dry run says what `cluster stop
  --service` does to the service running here: stops this install's, stops
  any `<cli> cluster service`, and stops nothing else.

Red at da7dc43b89: m1 (6 issues) and n2 (2: files deleted, no check) run
and fail; with the others the suite does not compile (no
`runningClusterService(lock:pidFile:paths:isClusterService:)`,
`unreadableLockNote`, `isThisCLI`, `note`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit cbc083da6c9178e3cfea16f37af53f384075409e)
…care

Validator B's minors and nits on the B16 fix:

- m1: the executable is resolved (links included) before telling whose it
  is, as the install roots are.
- m2: only a cluster service is anyone's. This build's is checked with
  `ClusterService.isClusterService`, the check `cluster stop --service`
  makes; the other install's by its own `<cli> cluster service` arguments.
  A pid that is no cluster service (a stale pid file) reads as unknown and
  is refused, and the stop never signals one.
- m3: the lock reads three ways; one that can't be opened is unknown and
  refused, not "no service".
- m4: the docs, the dry run and the changelog say what each path does:
  with no other install, step 2 stops any `darkbloom cluster service`, and
  a service under another name fails it with that stop's own message.
- n1: without a readable pid the step says so and claims no owner.
- n2: the "still running" check runs right before the first deletion,
  after the steps that can wait (the cable step's password).
- n3: one name for the other install in the uninstall docs: the
  production Darkbloom, Darkbloom Dev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d944c49c8d795f4e0a63a248347a1ddada8b8946)
scripts/test-provider-identity.py (Release Integrity) allows a non-production
identity value as a quoted literal only in Identity.generated.swift. The c3 B13
doc comments on ClusterOnboardingCommand and ClusterPairSummary.cli quoted
"darkbloom-dev", so the check failed on #1781. Comments only; no code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cluster: after setup, darkbloom cluster works like darkbloom start; both windows end with the same ✓/✗ (stacked on #1770)
docs(provider): a setup prompt for AI agents (one Mac or a two-Mac pair), for 0.10.8
…-service

fix(provider): uninstall never deletes under a running cluster service; the chooser says what each option removes (stacked on #1778)
…ndings

fix(cluster): the login check's Serve locally only plans locally; a closing link's ✗ names the other Mac; DevNet screens name darkbloom-dev (stacked on #1778)
- cluster-candidate-findings (#1781): a title for users, "measured on one
  pair", the speculative assistant by its documented name, and the ✗
  title's old "starting; " head said plainly. The last bullet is
  unchanged.
- cluster-start-says-serving-only-when-loaded (#1764): the joining Mac's
  setup ends with the same ✓ or ✗ as the leading Mac (as #1778 says),
  not "pointing to the leader's screen".
- cluster-console-clarity (#1778): Qwen 3.8 27B's tensor-parallel-only
  rule said once, with why; what a person sees instead of "scope switch",
  "a choice forwarded from the other Mac uses the planner's mode" and the
  older-build leader; the joining Mac's ending in one bullet; the
  registration line's old wording named.
- provider-uninstall-keep-or-remove (#1772): on a pair, uninstall stops
  both Macs, as darkbloom stop does there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(red)

From the DevNet validation of 6497e8e on the M5 Ultra pair:
- A-1: the DevNet app's start card, `cluster stop --service`, its
  refusal, `cluster local` and the follower's Local Network hint name
  `darkbloom` instead of the identity's CLI (and app).
- A-11: restart (and a script start) wait minutes with no output; each
  wait must say what it waits for and its bound.
- A-13: both installs share ~/.darkbloom/cluster/incidents.json; each
  install's feed should hold its own (older records: production).
- A-12: a following window's `status` requests log once a second.
Adds the API these need with today's behavior: LinkFollower's
localNetworkApp(cli:), a progress-delay seam and Wait.heartbeat,
ClusterIncidentLog's install, ClusterService.logsControl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The DevNet build of dev 6497e8e (0.10.6-dev.branch.76) on the
production M5 Ultra pair, overnight/candidate-0108-proof.md "DevNet
validation of 6497e8e", table A-1…A-13:

- A-9: choosing Pipeline for GLM-5.3-Flash loaded tensor parallel again.
  useMode compared the choice with the listing's first mode, not with the
  plan the adopt uses; GLM's listing put Pipeline first while its plan was
  tensor parallel, so nothing was kept. useMode now always keeps the
  person's family (keptFamily), and localAdopt plans again in it only when
  the listed plan's mode isn't in it (replansInFamily). A-8's moving split
  isn't the same cause: the listing is planned while the serving model's
  parts hold memory, and the adopt plans again once they gave it back.
- A-4: when this Mac's own worker died, its part also ended "closed" and
  the ✗ blamed the other Mac. ownWorker reads this Mac's incident log:
  worker_crashed from the part it leads since the wait began names this
  Mac's worker; none keeps B17's wording; an unreadable log (or a Mac
  that doesn't lead) blames neither. The title and the lines read one
  snapshot.
- A-3: a member kept off the local network logged why and ended cleanly,
  so the leader's ✗ said "Make sure it is on". ClusterService.lastError
  carries that refusal as the part's reason, which the member already
  publishes in its status.
- A-1 (onboarding part): commands in the live operations and the cluster
  service name BuildEnvironment.current.cliName (17 + 2 code lines).
- A-10 (B18): a planned switch's clean stops showed as parts that ended.
  endShown: a stop (stopped, or exit 0 with no reason) isn't an end on
  either Mac; an exit 0 that says why still is.

Red: behaviour-preserving seams first, then the tests: 22 tests with 5
issues (A-4 3, A-9 1, A-3 1); A-10 10 tests with 3 issues. Green:
ProviderCoreTests 8-suite filter 68 tests and #1774's 8 suites 67 tests
(prod build); onboarding 1165/0 (the real runner, sandboxed); control
229/0, placement flow-run 33, setup 264, provisioning 161/0,
diagnostics, the placement library's checks and GLM image admission (40)
pass; product build OK; docs gates OK.

Reported, not changed: A-11's follower keeps its old setup after a
leader-only restart until the next adopt. Not reached: A-6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the DevNet validation of 6497e8e on the M5 Ultra pair:
- A-1: one runtime CLI name. main.swift names it at startup
  (ClusterOnboardingCommand.use(BuildEnvironment.current.cliName));
  ClusterPairSummary.cli reads it, and the pair texts interpolate it: the
  start/restart card, cluster stop (--service, its refusal and help),
  cluster local, and the status/doctor/desktop/start hints. ProviderCore's
  texts are named with it: the leadership refusal, pair --forget's line
  (which no longer prints a raw ClusterSetupFailure), the approval
  refusal, "not paired" and the tensor assistant's "press m". The
  follower's Local Network hint names the app to allow ("Darkbloom Dev").
  Production output is byte-identical.
- A-11: stop, restart and cluster stop --service say what they wait for
  when the stop request runs past 3 s (up to about 6 min) and while the
  parts end (with their bound); a script start says it waits until the
  pair serves (with its bound) and repeats an unchanged status once a
  minute.
- A-13: each incident records its install; each install's feed (status,
  diagnostics, cluster incidents) holds its own records and the older
  unstamped ones (production's). The store is libs/darkbloom-cluster's
  DarkbloomClusterRemote.
- A-12: the leader logs a following window's status requests once a
  minute, and every other command each time.
- A-5: the port stays 8000; two-mac-cluster.md says both apps use it.
Docs: cli-reference (waits), two-mac-cluster (port, DevNet names),
architecture/inference (runtime name, shared incident log); changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…; pin the incident install contract

- `Cluster.Stop.stopPair(_:progressAfter:)` is now `stopBothMacs(_:progressAfter:)`. It sat in the same type as
  `pairStop(role:serving:)`, which decides who stops, and the two call sites read
  `switch Self.pairStop(...) { case .leaderStopsBoth: stopped = Self.stopPair(...)`. Private; no behaviour change.
- `ClusterIncidentInstallTests` also expects `ClusterIncidentLog.unstampedInstall` to equal
  `BuildEnvironment.prod.rawValue` (the library's literal for records without an install must be production's case
  name), and `ClusterObservability`'s log to carry `BuildEnvironment.current.rawValue` (the provider's per-install
  wiring had no test). Two assertions added; none removed; the test count is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ame neither Mac on an unreadable incident log

- `lastErrors` and `keepsEndingTitle` have their own doc comments again: `ownWorker` and `OwnWorker` had been
  inserted between each declaration and its doc. The docs of `linkClosedError`, `keepsEndingTitle`, `errorLines`'
  rule and `chosenFamilies` now say what the fix changed.
- `ownPart(since:)` reads this Mac's part once for the ✗ title and the per-Mac lines. `lastErrors` uses the
  caller's read whole; it used to read the status again when that read had no part.
- `ownWorker(inIncidentLog:since:)` reads the feed once. A log that is missing or can't be read (its `loadError`:
  too large, malformed, another schema) now blames neither Mac, as the docs and the PR say, instead of reading as
  "no crash here" and blaming the other Mac. A test covers a missing log, a malformed log, the other Mac's record,
  the time window and a field this build doesn't know.
- `endShown` loses its unused `own` parameter. `replansInFamily` is written as a guard.
- The live operations use `Self.cli`, the file's idiom. The service uses `OnboardingLive.cli` instead of keeping
  a second copy.
- The A-9 test no longer has a tautology over a local constant.
- two-mac-cluster.md: on the Mac that doesn't lead, the ✗ blames neither Mac too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e at once

On a lane pair, a started request whose consumer goes away before its first
token is asked for a clean stop, which ends it only at its first token: the
pair first finishes the whole prompt while every newer request waits. The new
check, against scripted ranks, expects such a request to be cancelled (its lane
alone retires at once, nothing fenced, the pair serves the next request), and
a pair without lanes to keep the clean stop. Red on dev: the request keeps its
lane and neither rank is told to end the prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…to G-12)

An agent followed docs/provider/agent-setup.md literally on pair-2 (M3 Ultra
leads, M5 Max follows) with the DevNet build of dev at 6497e8e and found
twelve guide bugs (overnight/devnet-validation-pair2.md §2). Every quoted
screen line is re-checked against that run's screens.

- G-1, G-2: a marked DevNet variant ("DevNet (testers only)"): darkbloom-dev,
  ~/.darkbloom-dev, Darkbloom Dev.app, the DevNet installer, Build: dev and
  the dev coordinator, port 8001, and what X.Y.Z-dev.branch.N means (not a
  release number, so "older builds" doesn't apply). Rule 9 now allows the
  DevNet installer when the human asks for DevNet.
- G-3: after installing another app on a paired Mac, Pair again may not
  appear; choose Start over on both Macs (it unpairs the Mac for both apps).
- G-4: doctor's "[FAIL] cluster savedConfiguration …" before the first setup
  is expected (go on); a later build stops reporting it.
- G-5: act on the first "Local link:" line (real output quoted); step 4.3
  reads `darkbloom status --solo`.
- G-6: both Connect lines (local and over SSH), "✓ Paired. This Mac (…)
  leads.", no password when the port is already set up, the 30 s hint.
- G-7: the Local Network step can be missing while macOS blocks the
  service: the human checks System Settings on each Mac (Screen Sharing on a
  Mac with no display); a troubleshooting row for the ✗ and the follower's
  "link refused … may not reach the local network"; a later build names it.
- G-8, G-9: the working lines print only in colour; a real model list and
  loading line.
- G-10: Retry only waits for a stopped part; Ctrl-C, then darkbloom cluster.
- G-11: DevNet's result block still prints darkbloom; type darkbloom-dev.
- G-12: uninstalling one of two installs keeps the shared pairing, cable
  setup and models, asks no password, leaves the other service running.
- The person-only list says plainly what an agent can't do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… stops the pair first

Pair-2 (P2-16): uninstalling the member of a serving pair beside the other
install stopped the member's service cleanly but never told the leader,
which logged "this Mac's part ended (exit 1) … starting it again" and
looped. As tests, with stand-ins only (never real launchd, processes or
network):

- The pair is asked to stop first, on both Macs, then this Mac's service
  stops, then the files go. The summary says so, and has no other-Mac line
  while the pair still works through the other install.
- When the other Mac doesn't answer, this Mac's part still stops locally,
  the run does not fail, and the summary ends with the other Mac's name and
  the command to run there.
- The pair is not asked for the other install's service, nor on the
  one-install path, whose `cluster stop --service` asks the leader itself.
- The dry run names the pair's stop.

Red at 6497e8e: a runtime probe with the old API found no pair stop
before the service's; the tests above do not compile (no `PairStop`,
`Operations.stopPair`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the leader, a `worker_crashed` recorded with source "leader" can be about either Mac's worker. In the DevNet run,
the member's four kills were recorded on the leader as "ClusterWorkerOwnerError: closed | rank 1 follower said: …".
A-4 therefore named the leader for the member's worker, which reversed B17.

`ownWorker` now decides from the record's message:
- it names this Mac only when the record is this Mac's rank's own exit record (`worker-exit-v1 rank=<rank>`, with
  any redacted prefix);
- it names the other Mac, in B17's words, only when the record is what that Mac's link follower said
  (`rank <other> follower said:`);
- otherwise it names neither Mac.

Both formats are now shared with the code that writes them: `ClusterWorkerOwnerService.workerExitMarker`
(DarkbloomClusterRemote) and `DistributedInstalledSession.followerSaid(rank:)`. The output is unchanged.

The new test loads Mac A's real records:
- each of the 4 member kills names the other Mac;
- each of the 4 leader kills names this Mac;
- both kinds in one wait name neither;
- a malformed log names neither.
Against the previous rule it fails with 5 issues.

Also:
- F2: `ClusterService.localNetworkRefusal` is now public, and `cluster link-follower` writes that same phrase.
- F4: `offeredReadiness` and the "rank 0 on the other Mac ended" line no longer show clean stops as ends either.
- F5: `readyWaitSeconds` names the 15-minute wait. `lastErrors` reads incidents since this start's wait began.
- F6: `useMode` itself is now tested, through `useListing` and `keptFamily(forModel:)`. That test fails against the
  base's rule.
- Docs:
  - two-mac-cluster.md says which record names which Mac;
  - cli-reference.md describes the follower's local-network line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…I side (red)

From the DevNet validation on pair-2:
- A-13: a non-production install keeps its own incident file
  (incidents.dev.json), which an older build never reads or rewrites;
  ClusterIncidentLog.forThisInstall opens this build's.
- P2-2: no-terminal `cluster`, the cluster service status lines and
  the Ctrl-C line still name `darkbloom` in the DevNet app.
- P2-5: a provider configuration the installer left readable by others
  (no setup saved yet) makes doctor fail "unsafe, empty or oversized";
  with a setup saved it must say the fix.
- P2-11: a Mac's cluster service tells the other Mac whether it starts
  at login (ClusterServiceStatus.startsAtLogin).
- P2-13: the leading Mac's other_mac.answers is null while they serve.
- P2-8: the leading Mac's answer on the Mac that follows is unbounded
  in the CLI and silent while slow.
Adds the API these need with today's behavior: defaultFile(homeDirectory:
install:), forThisInstall, startsAtLogin (field and check),
ClusterOnboardingTerminal.stoppedLine, ClusterPairSummary.boundedStatus.

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

A consumer that goes away (a closed client connection, a coordinator cancel)
asks the pair's lease for a clean stop, which ends a request only at its next
committed token. Before its first token that means finishing the whole
prompt: on DevNet a client that closed its connection 15 s into a 60K-token
prompt on a Qwen 3.8 27B tensor-parallel pair kept both Macs prefilling it
for about 4 minutes. The pair prefills one prompt at a time, oldest first, so
every newer request waited behind it and failed at its own first-token
deadline, while the pair still reported serving.

On a pair whose lanes retire alone, ClusterWorkerRequest.requestCleanStop now
refuses a request that has produced no token yet, so the engine cancels it:
both ranks end only that lane at their next step boundary and the next
request is served at once. A request that has produced a token keeps the
clean stop, and so does a pair without such lanes, where a cancel ends the
pair.

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

P2-16: beside the other install, step 2 stopped this install's running
cluster service with SIGTERM, as `cluster stop --local-only` does, and the
leader kept restarting its part for a member that was gone.

When this install's service runs, step 2 now first asks the pair to stop on
both Macs (`Operations.stopPair`), as `darkbloom stop` on either Mac does:
the leader stops both, a serving member asks the leader over the control
channel. Then the service stops and its agent goes, as before. The pairing,
the cable port setup and the shared cluster files stay. If the other Mac
does not answer, only this Mac's part stops (as before), and the summary
ends with "The other Mac (<name>) did not answer, so its part may keep
restarting: run `<cli> cluster stop` on it." The other install's service
and the one-install path are unchanged.

The CLI reference's step 2, a troubleshooting row and the changelog
fragment say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-1, P2-3, P2-4, P2-7

Pair-2's DevNet run (overnight/devnet-validation-pair2.md) and the M5 Ultra
pair's headless Mac B (A-2):

- P2-1 + A-2: macOS kept a member's link follower off the local network
  ("link refused: connectFailed (unreachable) … this process may not reach
  the local network") while the service's own probe, one broadcast datagram
  from the service process, logged "allowed". The follower keeps running and
  retrying, so its Mac's status said "running, no error" and the first setup
  ended "the other Mac did not answer". The follower's own last dial now
  decides: ClusterService.followerRefusal (the refusal, or a link opened
  since) is a running part's published lastError (no new field);
  ClusterLocalNetworkAccess.state reads it as blocked whatever the probe
  found. The leading Mac's wait ends at once on the member's refusal
  (otherMacRefused) with what to do there (localNetworkRefusalLines); the
  joining Mac's follow says its own refusal once (localNetworkBlockedLines);
  the wizard's step names the build's app (ClusterService.appName via
  ClusterOnboardingCommand.app) and says plainly where to turn it on,
  through Screen Sharing on a Mac with no display.
- P2-3: darkbloom start on the member, with no terminal, replaced its
  session service silently and then waited 10 min 37 s with no reason.
  ClusterPairCommands (three spots: serve's service step, its end, and
  waitUntilServing's loop) says what the service step does, ends the wait
  at once when this Mac's service reports blocked, and says the instruction
  instead of the loading lines, exit 1.
- P2-4: Retry after the pair was stopped only waited for parts nothing would
  start, and q was ignored. Retry on a stopped pair says so and serves;
  the start's wait leaves at q, Esc or Ctrl-C (as a key) with a line.
- P2-7: the joining Mac's window showed nothing while the leader sat at ✗.
  The follow says each new state of the leader's start, and where to choose
  Retry once a part ended there.

Red: ProviderCoreTests theFollowersOwnRefusalIsTheTruth after seams holding
today's behaviour, 4 issues; onboarding's new checks against today's
sources, 1174/6. Green: onboarding 1180/0 (the real runner, sandboxed;
one existing check's expected last line reworded with the new wording);
ProviderCoreTests 8-suite filter 69 tests and #1774's 8 suites 67 tests
(prod build); control 229/0, placement flow-run 33, setup 264,
provisioning 161/0, diagnostics, the placement library's checks and GLM
image admission (40) pass; product build OK; docs gates OK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t the end

Each run block records each command's failure and exits non-zero after the
last one; every step runs after an earlier failure. Not for #1787.

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

The previous wrapper also split the multi-line .git validation, a shell
syntax error that stopped the checkout. Not for #1787.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y kept)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y kept)

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

davidtai commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

Closed: the one-time CI (master) check of #1787 is done. Release Integrity and Docs Lint passed in run 41967483858 with #1787's CI files at 7b984ef.

This branch had an error being deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants