Skip to content

cluster, status: a paired start says what it does, Apple's check reads as progress, and both Macs show the pause, from now - #1908

Merged
jonathan308 merged 8 commits into
devfrom
fix/pair-words-and-pause
Nov 8, 2026
Merged

jonathan308 merged 8 commits into
devfrom
fix/pair-words-and-pause

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Status: draft, into dev (#1905 merged as 10eee3a3b4). Head e789ca18f0. The refactor pass is done
(fa7da5fbd6, refactor-1908.md); the independent review is next.

Commit What
6b4faf34c3 red: J2-b, J2-c, J2-d, J2-h, J2-i
5e93524ba4 fix
1e60ec8c04, 2337879e22 #1905's moves merged in
fa7da5fbd6 refactor pass: no behaviour change, +2 tests
8a85af06c8 dev 08337a5664 merged in (#1899, #1900): no conflicts
7da2bbe257 red: #1905's review, nits 3 and 4
e789ca18f0 fix: the app says the pair as it is; Terminal's step where Start serving can't work; docs-impact

Summary

Journey 2a on pair-2 (DevNet .144, validation-evidence/journey-2a.md, steps 3 and 5) passed #1892. It also found
five frictions in the pair's words, all fixed here:

  • J2-b: a script's start on a pair that already serves now says so (…: the pair already serves., exit 0). It
    asks nothing of either Mac.
  • J2-d: in a terminal, the first line says what the screen does: "…, which is stopped. Press Enter to start it with
    Qwen 3.8 27B (last used), or choose another model."
  • J2-c: a healthy start now says checking both Macs with Apple (loading). The "isn't verified by Apple yet …
    Don't restart either Mac" warning comes only when the check is slow or held back.
  • J2-h: while the pair is paused for its owner, the Mac that follows now says so too, with how long and when it
    comes back. It reads the leading Mac's status, which it already asks for: nothing new crosses the cable.
  • J2-i: pause times are said from now ("paused for 10 minutes", "back in about 2 minutes if you stay idle"), never as
    a clock time. This covers one Mac's Serving: line too.

From #1905's review (review-1905.md), in the same words:

  • Nit 3: the app no longer says "This Mac serves in a pair" whatever the pair's state. It says "serves" only when this
    Mac's own files say the pair serves, and otherwise "is in a pair, which is stopped", "… that isn't running here", or
    "started with …".
  • Nit 4: a pair with no model yet gets no Start serving in the app, which the runtime used to refuse after the click.
    The page says to choose the model with “darkbloom cluster” in Terminal on the Mac that leads the pair, and the CLI's
    line says the same.

What was wrong

  • J2-b, J2-d: one first line for every paired start. ClusterPairCommands.start and Start.run()'s .openScreen
    both said actingLine("starting the pair"):
    • for a pair that already served (s3a, and a terminal on a serving pair, s3c);
    • before the leading Mac's model list, where nothing starts until Enter (s3d);
    • before the screen of the Mac that follows, which starts nothing at all.
  • J2-c: what the warning reflected. Each Mac's cluster service publishes Child.appAttest: whether the
    coordinator's latest trust status for its part carries an App Attest serving authorization. A part that just started
    has none yet; it lands about a minute after the part registers (pairReasonSettleSeconds' own comment). pairLook()
    turned appAttest == false into notVerified(...) at once. localStatus() put that in the status line, so cluster status showed ✗ and a script's start printed it, for each Mac in turn, on every normal start (s3b, 45 s). The
    setup screen already waited 90 s before treating it as a reason; only the status didn't.
  • J2-h: the pause lived only on the Mac whose part runs rank 0. localAPILines read it from that Mac's own daemon
    state. The other Mac showed the leading Mac's status lines, which never carried it: "✓ Serving … through Darkbloom"
    for the whole pause (s5, while DevNet answered 429 machine_busy).
  • J2-i: Status.meFirstLines said since HH:MM and back at about HH:MM in the Mac's own zone, with no zone named:
    "since 21:41", read over SSH at 05:41 UTC.

Fix

  • J2-b: ClusterPairCommands.servingLook.
    • It takes one look at the status cluster status reads, only while this Mac's own view says the pair runs here and
      the other Mac answers.
    • Serving: "…: the pair already serves.", the result block, exit 0. No ensureService, no serve.
    • Otherwise: "starting the pair", as before.
    • The look waits as the wait's looks do (never cut short; scriptStartNeverAsksForTheBoundedWait). A start whose
      other Mac is away doesn't look first, so it goes on at once, as before.
  • J2-d: ClusterPairSummary.screenLine. On the leading Mac of a stopped pair: "…, which is stopped. Press Enter to
    start it with Qwen 3.8 27B (last used), or choose another model.", or "Choose its model to start it." when no model
    was chosen yet. Elsewhere (a started pair, or the Mac that follows): "…: opening the pair's screen."
  • J2-c: ClusterOnboardingAppleCheck (ProviderCore, pure, compiled by the onboarding checks).
    • From each Mac's appAttest, appAttestRetryAt and its part's startedAt, it gives progress words, "checking both
      Macs with Apple" (or names the one Mac), in the status line's reason place.
    • cluster status reads them as loading on both Macs (state(ofStatus:)). The screen's live row and the Mac that
      joined (offeredWaitingWords) say them too.
    • The warning stays, word for word, once a Mac's part has run 2 minutes without App Attest (slowSeconds: the usual
      minute, twice over), or its key-generation safeguard holds it back (retryAt), or the part's age is unknown (an
      older build), as before.
  • J2-h: OnboardingLive.pauseLines.
    • In the pair's serving status, the leading Mac adds me first under the serving line: Both, me first only, read
      from its part's own state file when that part runs rank 0.
    • Every status on the other Mac asks for this status over the cable anyway, so that Mac shows it under its ✓ line.
      darkbloom cluster on either Mac shows it under its ✓ block.
    • Nothing is added to the link or the heartbeat, and nothing per request.
    • localAPILines says it once: the rank-0 Mac adds its own line only when the status didn't carry one (an older
      leader, or rank 0 on the Mac that follows). The other Mac's pointer drops "whether Darkbloom is paused" when the
      status carried it.
  • J2-i: MeFirstWords (ProviderCore). One set of words for one Mac (Serving:) and the pair (Pair:): "paused for
    under a minute / 10 minutes / 1 hour 5 minutes", "your last request 1 minute ago", "back in under a minute / about 2
    minutes if you stay idle", "back any moment now". Status.meFirstLines and the pair's lines use them; Status.clock,
    Status.ago and the status lines' timeZone: are gone.

#1905's review, nits 3 and 4 (e789ca18f0)

  • The snapshot's pair is { model, state, leads } (pairSnapshot). The state comes from this Mac's own files,
    with nothing asked over the cable (ClusterPairSummary.appState):
    • serving only where they say it (the part that runs rank 0 does);
    • started where the pair runs here and this Mac can't tell (the Mac that follows);
    • not_running, stopped, or unreadable (the pairing record can't be read).
      leads says which Mac chooses the pair's model.
  • The Autopilot refusal says the pair as it is (appPairSentence), then what works there (pairAutopilotRefusal):
    "Use Start serving.", the no-model line, or checking an unreadable record. For example: "This Mac is in a pair, which
    is stopped; Autopilot isn't available for pairs yet. Use Start serving."
  • The no-model line (noModelLine, now worded for each Mac): "No model was chosen for the pair yet: choose one with
    darkbloom cluster in a terminal on ." It used to say darkbloom start in a terminal, which on the
    Mac that follows opens a screen that can't choose one. A script's start and the app's refused Start both say it.
  • The desktop app's onboarding:
    • Its lead says the pair as it is, then what Start serving does there (startPlan.pairLead): "keeps it serving",
      "starts it with …", or "makes sure it serves". A runtime that reports no state gets words true in every state.
    • With no model yet, or an unreadable record (pairStartable), it says the Terminal step instead, disables Start
      serving with why under it (pairBlocked), and leaves out the summary.
  • docs-impact: the three onboarding files under ProviderCore/Inference/** map to
    docs/architecture/inference.md, which this branch hadn't touched. Its cluster setup section now describes them:
    Apple's check of a new part is the wait's progress until it is slow or held back, and the leading Mac's status
    carries the owner's pause.

Before And After

A paired start's first line (J2-b, J2-d)

flowchart LR
  subgraph before["Before"]
    b1["start: any pair, script or terminal"] --> b2["'… : starting the pair.'"]
  end
  subgraph after["After"]
    a1["script, the pair serves (one look)"] --> a2["'… : the pair already serves.' + result block, exit 0"]
    a3["script, otherwise"] --> a4["'… : starting the pair.'"]
    a5["terminal, leading Mac, pair stopped"] --> a6["'… which is stopped. Press Enter to start it with Qwen 3.8 27B (last used), or choose another model.'"]
    a7["terminal, otherwise"] --> a8["'… : opening the pair's screen.'"]
  end
Loading

A part without App Attest yet (J2-c)

flowchart TD
  part["A Mac's part: no App Attest authorization in the coordinator's trust status yet"]
  part -- before --> warn0["✗ '<Mac> isn't verified by Apple yet; ... Don't restart either Mac until then.' (every start)"]
  part -- after --> q{"held back, 2 min without it, or age unknown?"}
  q -- yes --> warn["✗ the same warning"]
  q -- no --> prog["'... is not serving yet: checking both Macs with Apple.' (loading)"]
Loading

The app's start page on a paired Mac (#1905's review, nits 3 and 4)

flowchart LR
  subgraph before["Before"]
    b1["any pair state"] --> b2["'This Mac serves in a pair. Start serving starts the pair with model.'"]
    b3["no model yet"] --> b4["Start serving, then refused: 'run darkbloom start in a terminal'"]
  end
  subgraph after["After (snapshot pair.state)"]
    a1["serving"] --> a2["'This Mac serves in a pair with model. Start serving keeps it serving.'"]
    a3["stopped / not running / started"] --> a4["'This Mac is in a pair, which is stopped ...' and the like"]
    a5["no model yet, or record unreadable"] --> a6["No Start: choose the model with darkbloom cluster in Terminal on the leading Mac"]
  end
Loading

The pause on the Mac that follows (J2-h, J2-i)

sequenceDiagram
  participant M as Mac that follows (status)
  participant L as Leading Mac (its status)
  participant P as Leading Mac's part (state file)
  M->>L: status, over the cable (as before)
  L->>P: read me first (one file read)
  Note over L,M: Before: "Serving ... on both Macs." only
  L-->>M: "Serving ... on both Macs." + "Pair: you first — Darkbloom paused for 1 minute (... back in about 2 minutes if you stay idle)"
Loading

Test plan

  • Red first (6b4faf34c3, on 8e7d44a9ab):
    • DarkbloomCLITests, compiling against today's sources:
      • PairStartFirstLineTests fails 2 of 2 (5 issues);
      • the six start and status tests it changes fail 6 of 6 (12 issues);
      • LocalFirstStatusTests fails 2 of 9 (7 issues);
      • ClusterPairBothMeFirstCLITests fails 3 of 13 (6 issues).
    • Each fails for its reason:
      • "starting the pair" with ["ensureService", "serve"];
      • .notServing with "✗ Not serving: checking …";
      • "paused since 06:02 … back at about 06:13" (this Mac's zone);
      • the member's "whether Darkbloom is paused", and the leader's second Pair: line.
    • ProviderCoreTests MeFirstWordsTests and ClusterPairStatusWordsTests fail to type-check on the three missing
      names.
  • Green (5e93524ba4, and again at 1e60ec8c04 with desktop, cluster: the app on a paired Mac offers Start serving, never Autopilot, and its lines say what happened #1905's 073ee42be7 merged in), CPU-only, Xcode 27.2,
    nice -n 19:
  • desktop, cluster: the app on a paired Mac offers Start serving, never Autopilot, and its lines say what happened #1905's review, red first (7da2bbe257, on 8a85af06c8): DesktopAppOnAPairedMacTests fails 6 of 9 (13
    issues) and startWithoutAModel 1 (2 issues): "serves in a pair" in every state, a snapshot pair with no state, and
    the old no-model line. The desktop app fails 5 tests (the old lead; pairLead is not a function).
  • Green at e789ca18f0: all of DarkbloomCLITests, 1,275 tests in 183 suites, with dev 08337a5664 merged in
    (Metal-loading suites skipped); ProviderCoreTests MeFirstWordsTests, ClusterPairStatusWordsTests,
    ClusterOnboardingPeerLabelTests; the desktop app's 680 tests in 102 files, tsc --noEmit and prettier --check.
  • make docs-check, make changelog-check, git diff --check; scripts/docs-impact-check.py --base origin/dev
    passes at e789ca18f0. It failed before (the "native inference" rule, unmet since 5e93524ba4). This body's earlier
    "coverage OK" was wrong: that run took a two-dot diff against a newer dev (8d545e85a8), so dev's own change to
    inference.md counted.
  • CI (dev) green at the head 2337879e22 (attempt 2), as at 5e93524ba4 (attempt 4). The failed attempts were
    outside this change: GitHub release downloads answering 504 (nlohmann/json), and once a runner that lost its
    connection. The two Vercel checks fail as before.
  • No line says a speed or a clock time (noSpeedAndNoClockTime, paused, noSpeedAndNoKeyInAnyLine).
  • Not run on hardware. No darkbloom CLI runs on this Mac. To check on pair-2:
    • darkbloom-dev start </dev/null on the serving pair: "the pair already serves";
    • darkbloom-dev stop, then darkbloom-dev start </dev/null: "checking both Macs with Apple", never the warning;
    • in a pty on the stopped pair: the Enter line;
    • a local request on the leader in Both, me first: the MacBook's status shows Pair: you first — Darkbloom paused for ….

Components touched

  • provider-swift (ProviderCore status and onboarding words; the CLI's start and status; the desktop API's
    snapshot and refusal)
  • desktop-app (onboarding's start page on a paired Mac)
  • docs

Protocol / interface changes

  • Additive, in words only.
    • The leading Mac's status lines (read by the other Mac and in cluster status --json lines) gain the Pair:
      line(s) while the pair serves Both, me first.
    • A new Apple-check reason, checking … with Apple, reads state: "loading" (exit 3, as not_serving was).
    • The desktop snapshot's pair gains state and leads (additive; an app that doesn't read them is unchanged, and
      the app reads their absence as an older runtime).
    • No wire field, config key or CLI flag changes. An older Mac reading a newer leader's status still shows the
      Pair: line under ✓, and reads the check as not_serving with that reason.

Documentation impact

  • Canonical documentation updated:
    • two-mac-cluster.md: the Apple check, start's first line, both Macs' pause lines, the commands table;
    • local-first.md: the relative status line, and the pair's pause on either Mac;
    • cluster-always-on.md: the reboot check's first minute, and a troubleshooting row;
    • cli-reference.md: paired start, the status table, cluster status' Apple check, Both, me first on both Macs;
    • agent-setup.md, troubleshooting.md, architecture/owner-pause.md (what each Mac says, and its cost);
    • architecture/inference.md (the cluster setup section: Apple's check as progress, the pause in the leading Mac's
      status), reference/desktop-control.md (Snapshot.pair, the refusal), developer/desktop-app.md (the paired
      page, and a pair that needs Terminal first).

Changelog

Notes for reviewers

Refactor Pass

Status: done (fa7da5fbd6, refactor-1908.md). Behaviour unchanged; the tests only gained checks. One place now
decides when the Apple warning is real (ClusterOnboardingAppleCheck.Mac.warns), and one decides what the pair
waits for (ClusterOnboardingPairWait.words, isProgress). Two new tests catch 6 mutants that the PR's tests let
through. The commits after it (dev merged, #1905's review nits) came later and need their own review.

jonathan308 and others added 2 commits November 7, 2026 22:42
…d the pair's pause on every Mac, from now (red)

Journey 2a on pair-2 (DevNet `.144`, `validation-evidence/journey-2a.md`, steps 3
and 5) passed #1892, and found five frictions in the pair's words:

- J2-b: a script's `start` on a pair that served said "starting the pair".
- J2-d: in a terminal, a stopped pair's `start` said "starting the pair", then
  waited at the model list: nothing starts before Enter.
- J2-c: every healthy 45-second start said "This Mac isn't verified by Apple
  yet; … Don't restart either Mac until then." for both Macs.
- J2-h: while the pair was paused for its owner, the Mac that follows said
  only "✓ Serving … through Darkbloom".
- J2-i: the pause said "since 21:41", the Mac's own time without a zone, read
  over SSH at 05:41 UTC.

DarkbloomCLITests (compile against today's sources, fail on what they say):
- PairStartFirstLineTests, and the start tests that pinned the old line:
  - a script's start on a pair that serves says "the pair already serves",
    asks nothing of either Mac, on either Mac;
  - one in a terminal says what its screen does: on the leading Mac of a
    stopped pair "Press Enter to start it with Qwen 3.8 27B (last used), or
    choose another model.", with no model "Choose its model to start it.";
    elsewhere "opening the pair's screen";
  - a pair that runs here and still loads starts as before (a guard).
- coordinatorWaitIsLoading: "… is not serving yet: checking both Macs with
  Apple." reads as loading on both Macs, never ✗, and isn't a final reason.
- ClusterPairBothMeFirstCLITests: the Mac that follows shows the pause the
  leading Mac's status carries, under the pair's line, and points there only
  for its address and key; the leading Mac says it once.
- LocalFirstStatusTests: the pause in relative words ("paused for 10 minutes",
  "back in about 1 minute if you stay idle", "1 hour 5 minutes", "back in
  under a minute"), and no clock time in any line. Calls drop `timeZone:`,
  which the words no longer need.

ProviderCoreTests (red by compile: `MeFirstWords`,
`ClusterOnboardingAppleCheck` and `OnboardingLive.pauseLines` don't exist):
- MeFirstWordsTests: the words for one Mac and for a pair, spans in minutes
  and hours, the way back, no speed and no clock time.
- ClusterPairStatusWordsTests: Apple's check is progress ("checking both Macs
  with Apple") until a Mac's part has run 2 minutes without it, or its
  key-generation safeguard holds it back; the Mac that joined says the same;
  the status of the Mac whose part runs the pair's API carries me first, and
  nothing elsewhere or for the other ways to serve.

On 8e7d44a (#1905's head): PairStartFirstLineTests fails 2 of 2 (5
issues); the six start and status tests above 6 of 6 (12 issues);
LocalFirstStatusTests 2 of 9 (7 issues); ClusterPairBothMeFirstCLITests 3 of
13 (6 issues). Each for the reason above: "starting the pair" and
["ensureService", "serve"]; `.notServing` and "✗ Not serving: checking …";
"paused since 06:02 … back at about 06:13" (this Mac's zone); the member's
"whether Darkbloom is paused" and the leader's second Pair line. The
ProviderCore files fail to type-check on the three missing names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… is progress, both Macs show the pause, from now

Journey 2a on pair-2 (`validation-evidence/journey-2a.md`, steps 3 and 5):

- J2-b: a script's `start` on a pair that already serves keeps it and says so.
  `ClusterPairCommands.servingLook` takes one look at the status `cluster
  status` reads, only while this Mac's own view says the pair runs here and
  the other Mac answers. When it serves: "…: the pair already serves.", the
  result block, exit 0, and nothing is asked of either Mac. Otherwise
  "starting the pair" as before. The look waits as the wait's looks do (never
  cut short), and a start whose other Mac is away doesn't look first.
- J2-d: in a terminal, the line before the pair's screen says what that screen
  does (`ClusterPairSummary.screenLine`). On the leading Mac of a stopped pair:
  "…, which is stopped. Press Enter to start it with Qwen 3.8 27B (last used),
  or choose another model." ("Choose its model to start it." before one was
  chosen). Elsewhere: "…: opening the pair's screen."
- J2-c: what the warning reflected. A part that just started has no App Attest
  authorization in the coordinator's trust status yet (`Child.appAttest ==
  false`); it lands about a minute after the part registers. `pairLook`
  turned that into "isn't verified by Apple yet … Don't restart either Mac"
  at once, and `cluster status` and a script's start read it as ✗.
  `ClusterOnboardingAppleCheck` now gives progress words, "checking both Macs
  with Apple" (or the one Mac), in the status line's reason place, read as
  loading on both Macs and on the Mac that joined
  (`offeredWaitingWords`). The warning comes only once a Mac's part has run
  2 minutes without one (`slowSeconds`), its key-generation safeguard holds it
  back, or its part's age is unknown (an older build), as before.
- J2-h: the leading Mac's status carries me first under the pair's serving
  line (`OnboardingLive.pauseLines`). It reads its part's own state file when
  that part runs rank 0, and only for Both, me first. Every `status` on the
  other Mac already asks for this status over the cable, so the Mac that
  follows says the pause too, with nothing new on the link or the heartbeat
  and nothing per request; `darkbloom cluster` shows it under its ✓ block.
  `localAPILines` says it once: the rank-0 Mac adds its own line only when
  the status didn't carry one, and the other Mac's pointer drops "whether
  Darkbloom is paused" when it did.
- J2-i: `MeFirstWords` (ProviderCore) says me first from now, for one Mac
  ("Serving: …") and the pair ("Pair: …"): "paused for 10 minutes",
  "1 hour 5 minutes", "back in about 2 minutes if you stay idle", "back in
  under a minute", "back any moment now", and never a clock time.
  `Status.meFirstLines` and the pair's lines use it, and `LocalFirstWords`'
  minutes come from it. `Status.ago`, `Status.clock`, and the `timeZone:`
  parameters of the status lines are gone.
- Tests: `servingPair()` now has its other Mac answering, as a serving pair
  does, so the J2-b look runs there. `scriptWordsMatchWhatHappens` takes that
  gate into account: a loading pair whose other Mac answers is looked at, and
  then started; one whose other Mac is away is started without a look.
- Docs: two-mac-cluster, local-first, cluster-always-on (the reboot check and
  a troubleshooting row), cli-reference (start, the status table, cluster
  status, Both, me first), agent-setup, troubleshooting, architecture/owner-
  pause (what each Mac says, and its cost). Changelog fragment.

Green (CPU-only, Xcode 27.2): the red commit's tests; all of
DarkbloomCLITests, 1,221 tests in 177 suites (Metal-loading suites skipped);
ProviderCoreTests MeFirstWordsTests, ClusterPairStatusWordsTests,
ClusterOnboardingPeerLabelTests, ClusterPublicServingCheckTests,
MeFirstPolicyTests; and the plain-swiftc ClusterOnboardingChecks (1,941),
ClusterConsoleChecks and ClusterControlChecks (682).

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

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

Request Review

jonathan308 and others added 2 commits November 8, 2026 02:55
… decode and submit) into fix/pair-words-and-pause

#1905 moved by its red 668f5b9 and fix 073ee42: the app's paired Start,
as the app posts it, reaches `start` (`DesktopBackend`, `DesktopTypes`), with
tests in ClusterPairCommandsTests and backend.test.ts.

No textual conflict, one in meaning: #1905's new `appStartAsPosted` expects
`DesktopAppOnAPairedMacTests.starting` ("…: starting the pair."), which this
branch had dropped when that suite's serving case moved to "the pair already
serves". It is back: that test starts a stopped pair, which still says
"starting the pair".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ds) into fix/pair-words-and-pause

No conflicts. #1905 moved by 6327655, in the desktop app only
(`useBackend.ts`, `actionRefusal.test.tsx`), its developer doc and its
changelog fragment: nothing this branch changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pple warning only when real, the member never guesses

The required refactor pass (AGENTS.md) for #1908. Behaviour is unchanged, and
the tests only gain checks: no expectation was dropped or loosened.

ProviderCore:
- `ClusterOnboardingAppleCheck.Mac.warns` names the rule for a real Apple
  warning: a Mac that reports no App Attest authorization, and is held back
  by its key-generation safeguard, or whose part has run 2 minutes without
  one, or whose part's age is unknown. A Mac with the authorization, or with
  no trust status yet, never warns. `look` uses it, and its check words are
  spelled once (`isChecking` reads the same prefix and suffix).
- `ClusterOnboardingPairWait.words` decides what the pair waits for (the
  committed start, else Apple's check of a new part, else the coordinator's
  pairing); `pairLook` calls it. `isProgress` reads those words as progress.
  Before, the choice was inline in `pairLook`, which no test runs, and
  darkbloom spelled the coordinator's two phrases again (`pairingProgress`,
  removed: `state(ofStatus:)` calls `isProgress`).
- Comments state the invariants where they hold: the pause comes only from
  the part that runs rank 0 and reaches the other Mac as text in the leading
  Mac's status (one state-file read per status, nothing per request, no new
  message on the link or the heartbeat); `MeFirstWords` makes its words with
  the clock of the Mac whose part wrote the snapshot, so two clocks never mix;
  only the leading Mac's look decides between Apple's progress words and the
  warning, and every reader reads its words.
- `offeredWaitingWords` capitalizes with `ClusterOnboardingMacName.sentence`.

CLI:
- `localAPILines`, `servingLook` and `screenLine` say why: a Mac whose part
  doesn't run rank 0 never works the pause out, and only the pair's own look
  says a start's pair already serves.

Tests:
- ClusterPairStatusWordsTests: a Mac with App Attest, or with no trust status
  yet, never warns, whatever its age or safeguard; the warning starts at
  exactly 2 minutes; of two real warnings, this Mac's; the wait's words and
  `isProgress`. Each catches a mutant the PR's tests let through (a verified
  Mac warns; a Mac with no trust status warns; `>` for `>=`; the last Mac
  named; the wait ignores Apple's check; Apple's check outranks the committed
  start).
- ClusterPairCommandsTests: one `startingThePair` beside `alreadyServes` and
  `openingScreen` instead of seven spellings; `stoppedPair(model: false)`
  instead of `noModelStoppedPair()`. ClusterPairBothMeFirstCLITests: one
  `member()` fixture; a test name no longer says "since when".

Kept: `LocalFirstWords.minutes` and `idleMinutes`, which forward to
`MeFirstWords`: the open #1906 adds a caller.

Checks (Xcode 27.2, prod identity, nice 19, CPU only, sandboxed): all of
DarkbloomCLITests minus the binary-running suites and the two Metal tests,
1,200 tests in 172 suites at the PR head and here; the touched CLI suites
(158 tests); ProviderCore's touched suites, 44 tests (42 at the PR head, +2);
the plain-swiftc onboarding checks (1,941) and control checks (682); the
console checks, 79,395 of 79,396 (the one left runs /bin/ps, which the
sandbox denies; CI runs it). A 36,620-line transcript of every word the PR's
code says over many states is byte-identical at the PR head and here, once
the durations in 144 lines, which `clusterStatusLines` measures from the wall
clock, are masked. 16 env-gated mutants. docs-check, changelog-check and diff
--check are clean; docs-impact fails its "native inference" mapping as it does
at the PR head (the onboarding sources sit under ProviderCore/Inference).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 and others added 3 commits November 8, 2026 10:25
…impler start) into fix/pair-words-and-pause

No conflicts. #1899 and #1900 keep the three choices' names (Only me,
Darkbloom network, Both, me first; the app's "Local only" and "Alongside the
network"), which this branch's words already use. They change
`StatusCommand+LocalFirst.swift`, `cli-reference.md`, `local-first.md`,
`two-mac-cluster.md` and `troubleshooting.md` beside this branch's lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th no model gets Terminal's step, not a refused Start (red)

#1905's review (`review-1905.md`), nits 3 and 4, in #1908's pair words:

- Nit 3: the app said "This Mac serves in a pair" whatever the pair's state
  (the Autopilot refusal, and onboarding's lead).
- Nit 4: a pair with no model yet was offered Start serving, which the
  runtime then refused ("run `darkbloom start` in a terminal", which on the
  Mac that follows opens a screen that can't choose one).

DarkbloomCLITests (compile against today's sources):
- snapshotSaysThePairsState: the snapshot's `pair` gains `state` (serving,
  started, not_running, stopped, unreadable, from this Mac's own view) and
  `leads`; the Mac that follows reads "started", never "serving".
- autopilotRefusalSaysThePairsState: the refusal says the pair as it is
  ("serves in a pair" only when it serves; "is in a pair, which is stopped";
  "… that isn't running here"), then what works: Start serving, the no-model
  line, or checking an unreadable pairing record.
- The no-model line names what works on either Mac: "choose one with
  `darkbloom cluster` in a terminal on <the leading Mac>" (startWithoutAModel,
  appStartAsPosted, startWithoutModelsOnlyStartsAPair).
- snapshotOffersStartServing and autopilotIsRefusedFirst pin the stopped
  pair's words.

Desktop app:
- onboardingStartPlan: `pairLead` says the pair as it is and what Start
  serving does there, in words true for every state on an older runtime;
  `pairStartable` is false with no model yet or an unreadable record, whose
  lead says the Terminal step first.
- onboarding: a stopped pair's page, a serving pair's ("keeps it serving"),
  and a pair needing Terminal first: no Start, and why.
- actionRefusal: the sample refusal uses the new no-model line.

On 8a85af0 (fa7da5f with dev 08337a5 merged): DesktopAppOnAPairedMacTests
fails 6 of 9 (13 issues) and startWithoutAModel 1 (2 issues), on "serves in a
pair" in every state, a snapshot `pair` with no state, and the old no-model
line; the app fails 5 tests (the old lead; `pairLead` is not a function).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l's step where Start serving can't work, and docs-impact holds

#1905's review (`review-1905.md`), nits 3 and 4, and #1908's docs-impact:

- The snapshot's `pair` is `{ model, state, leads }` (`pairSnapshot`). The
  state comes from this Mac's own view, with nothing asked over the cable
  (`ClusterPairSummary.appState`): `serving` only where that view knows it,
  `started` where it can't tell (the Mac that follows), `not_running`,
  `stopped`, or `unreadable`. `leads` says which Mac chooses the model.
- The Autopilot refusal says the pair as it is (`appPairSentence`: "This Mac
  serves in a pair" only when it serves; "is in a pair, which is stopped";
  "… that isn't running here"), then what works there (`pairAutopilotRefusal`):
  Start serving, the no-model line, or checking an unreadable record.
- The no-model line names what works on either Mac (`noModelLine`, now per
  Mac): "choose one with `darkbloom cluster` in a terminal on <the leading
  Mac>". Before, it said `darkbloom start` in a terminal, which on the Mac
  that follows opens a screen that can't choose one. A script's start and the
  app's refused Start both say it.
- Desktop app: onboarding's lead says the pair as it is and what Start
  serving does there (`startPlan.pairLead`), in words true in every state for
  a runtime that reports no state. With no model yet or an unreadable record
  (`pairStartable`), it says the Terminal step, disables Start serving with
  why under it (`pairBlocked`), and leaves out the summary. A serving pair's
  summary says Start serving keeps it serving.
- docs-impact: the three onboarding files under
  `ProviderCore/Inference/**` map to `docs/architecture/inference.md`, which
  this branch hadn't touched (the PR body's "coverage OK" came from a run
  against the wrong base). Its cluster setup section now says what changed
  there: Apple's check of a new part is the wait's progress until it's slow
  or held back, and the leading Mac's status carries the owner's pause.
  `scripts/docs-impact-check.py --base origin/dev` passes.
- Docs: desktop-control (`Snapshot.pair`, the refusal), developer
  desktop-app (the paired page, a pair that needs Terminal first),
  two-mac-cluster, cli-reference, troubleshooting, agent-setup. The changelog:
  #1905's fragment now quotes today's words, and this branch's has the
  no-model line.

Green (CPU-only, Xcode 27.2): the red commit's tests; all of
DarkbloomCLITests, 1,275 tests in 183 suites (Metal-loading suites skipped);
ProviderCoreTests MeFirstWordsTests, ClusterPairStatusWordsTests and
ClusterOnboardingPeerLabelTests. Desktop app: all 680 tests in 102 files,
`tsc --noEmit` and prettier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathan308
jonathan308 merged commit 28ddc01 into dev Nov 8, 2026
29 of 31 checks passed
jonathan308 added a commit that referenced this pull request Nov 8, 2026
…d) into fix/reasoning-effort-every-value

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 8, 2026
dev moved again after c76445a: #1908 (the pair's words and pause,
MeFirstWords) and #1902 (route choice; a saved route and key count on the
running local API). 58 files; the only shared ones are docs
(local-first.md, owner-pause.md, direct-mode.md, inference.md), which
merge cleanly with this PR's text intact. No shared source file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 8, 2026
Brings dev 1cd5976 (#1908, the pair's words and pause; #1902, route
choice), which #1910 merged. No conflict: the shared docs
(direct-mode.md, inference.md) merge cleanly, and this PR's queue-wait
paragraph and memory row survive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 8, 2026
#1908 (the pair's words and pause) conflicted in seven files. Each side's facts are kept:

- ClusterPairSummary+LocalAPI.swift: #1908's localAPILines(now:) (no time zone: times are said from now), its pause
  said once (statusSaysPause: the leading Mac's status carries it, OnboardingLive.pauseLines) and MeFirstWords.pairLines
  in place of this branch's pauseLines; this branch's relay branches (memberAPIDown, memberAPIStarting, the relay's
  address) and the leader's Members line from where its API listens. A member whose pair's API is kept on the
  leading Mac says where to look, without "whether Darkbloom is paused" when the status said it, as #1908 does.
- ClusterPairBothMeFirstCLITests.swift: #1908's member() (no bind saved, so its API is kept on the leading Mac) and
  tests, with this branch's relaying loop; #1908's theLeaderSaysThePauseOnce has the leader on 0.0.0.0, whose other
  Mac now passes its own port to it, so its Members line says so. Every localAPILines call drops timeZone:.
- owner-pause.md: this branch's "Every other member" row (its port relays) and #1908's "What each Mac says" row.
- cli-reference.md: #1908's pause bullet (both Macs, from the leading Mac's status), this branch's rank 0 and relay
  lines, #1908's "where to look" words for an API kept on the leading Mac, and the --json note.
- local-first.md, two-mac-cluster.md: this branch's relay text with #1908's pause on the other Mac; both of #1908's
  <!-- pending LS-3 --> markers (the other Mac relays its own port in Both, me first too) are rendered and deleted.
- troubleshooting.md: this branch's app Start row and #1908's Autopilot row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 8, 2026
…ac; a relaying member says the pause too

CI run 42532646000 on f2d117b failed #1908's aMemberSaysItIsPartOfThePairAndWhereTheAPIIs and aMemberSaysThePause:
this branch's leader() saves the API's bind (0.0.0.0 by default), so #1908's member(), made from it, relays the
pair's API and names its own address, not where to look. member() now keeps that API on the leading Mac (loopback),
the case those tests were written for, and aMemberSaysThePause also checks a relaying member: the pause once, under
the pair's line, and this Mac's own address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 8, 2026
…for-model

Clean: no file conflicts. #1902 makes `settingsFile:` a required argument
of `LocalRouterConfig.host(...)`; this branch adds no call to it, and
dev's own calls carry it. Checked by a build and the CLI suites below.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 8, 2026
…ix/tools-default-model-and-names

Clean: no file conflicts. #1902 makes `settingsFile:` a required argument
of `LocalRouterConfig.host(...)`; this branch adds no call to it.
`ClusterPairSummary.readerForTesting`, which this branch's tests bind,
is unchanged by #1903 and #1908. Checked by a build and the CLI suites.

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

This branch had an error being deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant