Skip to content

Release dev into master: provider 0.10.7 (squash; master keeps the prod default) - #1754

Merged
jonathan308 merged 385 commits into
masterfrom
release/dev-to-master-2026-11-03
Nov 3, 2026
Merged

jonathan308 merged 385 commits into
masterfrom
release/dev-to-master-2026-11-03

Conversation

@davidtai

@davidtai davidtai commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

DRAFT. Do not merge until David or the release owner orders it. Merge with squash (David, 2026-11-03), so no dev commit enters master's history.

What this is

The provider 0.10.7 release: everything on dev, into master. The head is the snapshot branch release/dev-to-master-2026-11-03:

dev is not changed.

The one exception: the plain-build default

David, 2026-11-03: "we do not want master to default to devnet" and "make sure that particular commit never goes into master" (52079c011, the dev default).

  • provider-swift/Package.swift and provider-swift/Tests/ProviderCoreTests/Config/BuildEnvironmentTests.swift equal master exactly. git diff origin/master <head> -- <those two files> is empty.
  • The default is ?? "prod". scripts/provider-build-default.py --branch master passes on the head.
  • Squash merge: commit 52079c011 does not enter master's history.
  • Release Integrity on this PR runs the same guard (ci: guard master's prod plain-build default (and dev's dev default) #1741), and master's ruleset requires Release Integrity.

No other DevNet-only content: a scan of the added non-doc, non-test lines found no DevNet hosts, dev identities or personal data.

Pull requests in this release

#1425, #1427, #1650, #1665, #1668, #1669, #1693, #1701, #1702, #1703, #1704, #1705, #1706, #1707, #1708, #1709, #1710, #1711, #1712, #1713, #1715, #1716, #1717, #1720, #1721, #1722, #1723, #1724, #1725, #1727, #1729, #1730, #1731, #1732, #1733, #1736, #1737, #1739, #1741, #1743, #1744, #1747, #1749, #1750, #1753, plus master's #1735.

Size against master: 439 files, +35,860 / −2,826.

Highlights:

Release notes the Prepare PR must carry

Production coordinator settings for clusters to earn (not part of this PR)

On the production coordinator, only on David's order, after this release is out:

EIGENINFERENCE_CLUSTER_PAIR_APPROVALS_FROM_RELEASES=true
EIGENINFERENCE_CLUSTER_PUBLIC_ROUTING=true
EIGENINFERENCE_CLUSTER_PAIR_TRUSTED_TLS_PROXIES=<Caddy's address as the coordinator sees it; never /0 or a hostname>
EIGENINFERENCE_CLUSTER_PAIRS=true   # optional

Still open before merge

Order

  1. This PR (squash) into master, on David's or the release owner's order.
  2. "Prepare provider 0.10.7" on master.
  3. Gaj tags.

🤖 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 1, 2026 10:54
MiMo tensor parallel stored each rank's o_proj, dense down_proj and
half-width expert rows as BF16 before the FP32 cross-rank sum, so a pair
rounded each product twice where one Mac rounds it once (the owner
directive: no precision reduction against the single-Mac reference).

SDK d264a039: every row-parallel product takes an exact FP32 widening of
its BF16 input, so the partial is FP32 and the only rounding is the one
after the sum. The link carries the same FP32 row per token.

The arithmetic contract is v2 (MiMoTensorParallelPlan
.arithmeticAgreementFields: "...-stored-float32-...-rounded-once-v2").
It is in the load agreement and the plan fingerprint, so ranks on v1
and v2 refuse each other before loading.

MiMoTensorParallelFloat32PartialTests (GPU, synthetic): two ranks'
expert rows add up bit for bit to the exact full-width row that one Mac
rounds once, through the decode-expert kernel (1 and 4 rows) and MLX's
sorted gather (16 rows); per-half BF16 rows fail it. Every partial a
rank sums is FP32, and the routed combine equals the whole layer's FP32
combine up to FP32 reassociation. inference.md, test.md and the
changelog fragment say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The worker's capability record can now say what each generation mode keeps
of the model's serving features (`ClusterServingFeatures`): resident
prompt-prefix reuse and its SSD tier, speculative (MTP) rounds, the widest
batch-lane width, request media, penalties and logit bias, stop handling
and committed-token logprobs. `ClusterServingFeatures.dropped(by:)` names
what another mode would drop of them; what that mode adds never counts.

- `ClusterRuntimeCapability.modeFeatures`: one entry per supported mode
  (validated), written as `modeFeatures` only when declared, so every
  other record keeps its bytes.
- Gemma 4 declares them in `Gemma4ResidentAdapterDefinition`: tensor
  parallel keeps no prompt prefix yet. `tensorParallelKeepsPromptPrefixes`
  is now what its load agreement binds.
- MiMo V2.6's text row declares them from its loads' own settings
  (`MiMoBatchSettings`; `MiMoTensorParallelResidentRuntime.servingFeatures`,
  whose lane count and prefix setting its serving agreement now binds,
  bytes unchanged). The image candidate declares none.
- Qwen, GLM and every other record are unchanged.
- Tests: what each Gemma mode and each MiMo text mode declares, tied to
  the load agreements.

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

Owner directive, 2026-11-01: a mode may be chosen only if it keeps every
feature and caching behavior of the mode it would replace.

- `ClusterModeParity`, in `ClusterPlacementFlow.decide` beside
  `ClusterModelFeaturePolicy.admissibleModes`. For a fastest-plan family
  (Gemma 4, MiMo V2.6) the mode tensor parallel would replace is the one
  the plan chooses without it, or every other mode where none places. A
  tensor-parallel mode that drops any feature the worker declares for it
  leaves the policy's modes before anything is ranked, so no margin,
  evidence hold, kept mode or better hardware group brings it back. A
  record without features holds it back too.
- Where only tensor parallel places, the plan refuses and saves nothing
  ("Only tensor parallel fits these Macs, and it would drop ... No
  reduced-feature setup was saved."). `modesReason` carries it to the
  setup screen's refusal words.
- The developer's forced mode still places tensor parallel, and the plan
  says exactly what it drops.
- Planner: `ClusterPlacementPolicy.tensorParallelHeldForFeatures`, the
  verdict `dropsFeatures` (assessment and shard table), the model-list
  note "tensor parallel: drops a feature", and the line "Pipeline: tensor
  parallel would drop ... that the pipeline keeps; held back until it
  keeps them."
- Qwen and GLM (tensor parallel first) are not gated: their plans and
  lines are unchanged. Applied to them, the rule would move Qwen3.5 9B
  from tensor parallel to its credited speculative pipeline; that is left
  to the owner.
- Checks: Gemma held back with and without share probes, after an update
  and with nothing measured, re-admitted once its record keeps prefixes;
  MiMo held back with its rounds off (also on served records), admitted
  with them on; the forced mode's line; the only-reduced-mode refusal and
  its re-admission; a record without features; the codec; a GLM record
  declaring a gap plans exactly as without it; the planner's verdict, line,
  note and shard verdict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- inference.md: the rule in the Gemma tensor-parallel placement section
  (each mode's declared features for Gemma and MiMo, where they come from,
  how the replaced mode is found, the verdict, line, note and refusal, the
  forced mode, what it means today, and what it would change for Qwen and
  GLM); the Gemma and MiMo figure tables now say the guided step's parity
  keeps the pipeline in their tensor-parallel rows.
- two-mac-cluster.md: what users see, and the Gemma and MiMo rows.
- test.md: the new runtime tests, setup checks and note check.
- changelog.d/cluster-feature-parity.md (new); one pointer sentence in
  fastest-plan-evidence.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refactor pass over the cancellation-deadlock and serving-epoch fix. No
behavior change: comments, one reference row and the changelog fragment.

- Changelog: name the condition a pair could not recover from (it lost a
  rank while its slot was stopping) and what the operator saw, instead of
  implying every lost rank, fence or cancelled request left it stuck.
- cluster-control-protocol: the next committed start is accepted while the
  old slot retires, but its slot cannot publish until then (the row read as
  if the start waited for it). The engine's queue invariant now links its
  one home in architecture/inference.md instead of restating it.
- NativePairMemberServingHost.stopServingCommittedStart: a later start can
  begin during the retirement; it no longer says the start never waits.
- onQueueWithoutWaiting: the queue resumes those tasks through a stream
  yield or their retirement, so waiting can deadlock.
- stopServingCommittedStart: the retirement closes the slot's admission
  before it suspends, so a released start never admits work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refactor pass on cefbf3f (MiMo tensor-parallel FP32 partials). No
source or SDK change: the review found the single-Mac graph and the
decode-expert kernel source unchanged and the precision argument sound.

MiMoTensorParallelFloat32PartialTests:
- theLoadAgreementCarriesContractVersion2 pins the arithmetic fields
  string for string (it matched prefixes and suffixes only) and requires
  the three v1 strings absent from the load agreement.
- everyRankPartialIsFloat32AndRoundsOnceAfterTheSum records each partial,
  not only its dtype, and requires values BF16 cannot hold. v1 also handed
  the sum an FP32 array (its BF16 partial widened), so an o_proj or dense
  down product rounded to BF16 and widened afterwards passed the dtype
  check. A mutation doing that, plus v1 routed rows, fails 8
  expectations: the new check for dense, dense row by row and o_proj on
  both ranks, and the routed combine's two.

inference.md: MLX_ENABLE_TF32=1 is MiMoArithmeticEnvironment's
requirement, not every cluster contract's (GLM's has none); a rank never
rounds its expert rows, and their combined row is rounded once, after
the sum. test.md lists the new checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refactor pass over the feature-parity gate (d80b5ac..779e44d). What
the gate holds back, refuses or places is unchanged.

- The forced developer mode's line moves beside the gate's other words
  (`ClusterModeParity.Hold.forcedLine`). For a record that declares no
  serving features it said tensor parallel "drops features this worker
  build does not declare"; it now says the build declares none, "so what
  it drops is not known". A setup check pins that line.
- The plan's rule line, the changelog fragment and two-mac-cluster.md list
  logprobs among the features a mode must keep, as
  `ClusterServingFeatures.dropped(by:)` counts them and the owner's
  directive names them. What tensor parallel adds still never counts.
- `ClusterModeParity`'s word helpers are private to it.
- test.md describes the new check.

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

Gemma 4 tensor parallel kept no prompt prefix, so the feature-parity gate
holds it back against the pipeline, which keeps them in memory and on the
owner's encrypted SSD tier. Each rank now keeps its own heads' state (4
sliding, 1 full on the 26B) as the pipeline keeps a stage's: in the
pipeline's memory tier (QwenStagePrefixCache) and SSD tier
(QwenStagePrefixDiskTier), at the pipeline's chunk-grid boundaries, in the
Gemma stage's record shape (Gemma4TensorParallelPrefix,
Gemma4TensorParallelPrefixCapture).

- Agreement, never assumption: one sealed sum votes every stride-grid
  boundary (1 in memory, 3 only on SSD); each rank restores the deepest
  both offer from its own tiers, then a second sealed sum confirms both
  restored, else both prefill from zero. Solo requests and batch lanes.
- Bitwise: a restore continues on the same chunk grid. CBv2OwnedRequestState
  now adopts sliding windows into rows reserved for their first tokens, so
  a restored request's pages grow as a cold one's (additive; existing
  callers pass no reservation with windows).
- Kept only after both ranks ended the request; a failed request drops
  every entry; entries, then the request's own capture, give way under
  memory pressure; an idle rank drops them under host pressure.
- Memory: Gemma4TensorParallelRequestBudget charges each request its
  capture at its deepest boundary and each rank two such captures for the
  memory tier, in the LOAD gate and the planner's allowance (+1.32 GB a
  rank at the profile). Two 24 GB M4 Pro no longer fit tensor parallel.
- Gemma4ResidentAdapterDefinition.tensorParallelKeepsPromptPrefixes is
  true; Gemma4TensorParallelLoadAgreement binds it (a rank whose diagnosis
  switch turned prefixes off is refused). The worker passes its SSD key.

Tests: Gemma4TensorParallelPrefixTests (10, GPU, synthetic, two in-process
ranks): restore against cold bit for bit and the state at and after the
boundary, hits and misses agreed on both ranks, the request loop and
lanes, budget and eviction, the SSD round trip, refused records and the
cache rules. The load-agreement test and GemmaTensorParallelChecks follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`darkbloom-cluster-tp-check gemma run --path paged --prefix repeat` serves
the request twice through each rank's prompt-prefix memory tier
(Gemma4TensorParallelModel.generatePagedRepeatingPrefix): the repeat
restores the deepest boundary both ranks hold after their sealed vote and
confirmation, and must equal its cold run bit for bit. The paged oracle
matrix runs it in simulated and on both tp ranks over the sealed local
ring, and requires each rank's repeat to equal simulated's bit for bit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prefix-cache.md gains "Gemma TP prompt prefixes" (capture, keep, scope,
vote, restore, memory, logs, tests) and the tenant-partition scope;
inference.md's resident runtime says what is kept and charged;
hardware-support.md's rank-memory table gains the capture and the tier;
two-mac-cluster.md and test.md follow, including two 24 GB M4 Pro now
keeping the pipeline. The changelog fragment is updated in place.

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

Brings #1707's arithmetic contract v2 (FP32 row-parallel partials, rounded once after the
sealed sum) under the evidence rule and the feature-parity gate. One conflict, in
changelog.d/mimo-tensor-parallel.md: keep #1707's FP32 bullet and this branch's pointer to
the evidence and parity fragments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restacks MiMo tensor parallel's speculative rounds (#1716) on #1715, which
carries #1707's head 2c00eea (contract v2: FP32 partials), the evidence
rule and the feature-parity gate. The libs/mlx-swift-lm gitlink moves to
the SDK merge 0a1e228d (feat/mimo-v26-tensor-parallel d264a039 into
feat/mimo-v26-tp-speculative), where the verify window adopts contract v2.

Conflicts:
- libs/mlx-swift-lm: the SDK merge above.
- changelog.d/mimo-tensor-parallel.md: #1707's FP32 bullet and #1715's
  evidence wording, with this branch's clause on launches that ask for
  speculative decoding.
- docs/developer/test.md: both suite bullets (speculative rounds; the text
  row's per-mode serving features).

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

Owner decision on the refactor pass: a Gemma 4 tensor-parallel rank no
longer charges its prompt-prefix memory tier a fixed floor (two captures,
882,769,920 B at the profile) in the LOAD quote and the planner's
allowance. That floor pushed two 24 GB M4 Pro Macs off tensor parallel.

- Gemma4TensorParallelRequestBudget: requestBytes keeps the request's
  capture at its deepest boundary; rankBytes and the allowance drop the
  tier (prefixResidentBytes is gone). The LOAD quote charges the capture
  of the profile's longest prompt (441,384,960 B at 32,768 tokens).
- Each reservation and lane is charged its own prompt's capture, none
  when its cache is off (prefixCharge), not the profile's longest.
- The memory tier's budget is the pipeline's alone: half the room the
  load measures beside the shard and that quote (QwenStagePrefixCache
  .budget), so it never exceeds that room; entries still give way before
  a reservation, a lane or a running request is refused for memory. The
  load line drops charged_bytes=.
- A request captures what its charge covers whatever the tier's budget
  (Gemma4TensorParallelPrefix.captureLimit(_:chargedBytes:)). On two idle
  24 GB Macs the planner leaves about 145 MiB a rank beside the quote, so
  the room-derived tier budget is zero; without this the charged capture
  went unused and no SSD record was written. The pipeline's limit beyond
  the charge is still asked of the live gate and cut when refused.
- Tests: aRequestsCaptureIsChargedAndTheTierStaysWithinItsRoom,
  aRequestCapturesWithinItsChargeWhenTheTierHasNoBudget (zero budget:
  nothing resident, the deepest boundary on SSD, a repeat restored from
  it bit for bit on both ranks); PlacementChecks quote the capture once
  and two 24 GB Macs fit a rank each again (151,758,668 bytes to spare);
  the fastest-plan rows return to their base text (2x M4 Pro 24 or 32 GB:
  tensor parallel where predicted faster).
- Review: docs say lanes do not withdraw their own captures under
  pressure (as the pipeline's and GLM's batch paths), the sliding
  adoption section names the growing reservation, the rank-memory table,
  placement rows and changelog follow; a redundant #require is removed.

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

Under contract v2 (#1707) a rank's row-parallel partials stay FP32 until
the cross-rank sum. The SDK merge (0a1e228d) makes the verify window
follow it: o_proj is one FP32 product per row (the one-token step's M=1
product; the BF16/F16 row-exact kernel no longer serves a rank), the dense
down_proj runs row by row, and the routed layer combines each row's FP32
expert rows (float32ExpertRows) as its one-row step does.

- MiMoTensorParallelFloat32PartialTests.windowPartialsAreTheOneTokenStepsFloat32Partials
  (GPU, the kernel variant): after a 12-token prompt that wraps the
  8-row sliding ring, a 4-row window hands every sum, on both ranks, the
  one-token steps' own partials row for row and bit for bit; every window
  partial is FP32 and holds values BF16 cannot; the logits are the steps'.
- The speculative load agreement names the window's contract:
  windows=row-exact-one-token-float32-partials-v2 (was
  windows=row-exact-one-token-bits), pinned by its test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner said everything ships, and feature parity (#1715) holds MiMo
tensor parallel back against pipeline_mtp_v1 until it keeps the rounds.

- ClusterMiMoTensorParallel (protocol): the installed depth, 2 (the depth
  MiMo's pipeline measured fastest, MiMoMTPTerms.standard), and the worker
  arguments that turn the rounds on for tensor parallel of the registered
  MiMo text row.
- The provider passes both ranks --mtp-depth 2 after the mode wherever the
  pinned capability record declares tensor parallel's rounds
  (DistributedInstalledGenerationSelection.mimoTensorParallelRounds), and
  the cluster status then reports the head as decoding
  (DistributedInstalledSpeculation).
- The worker declares them: MiMoTensorParallelResidentRuntime.servingFeatures
  .speculativeRounds follows the installed depth, so the capability record
  says MiMo tensor parallel keeps every feature of the speculative and the
  compact-decode pipelines and drops only the plain pipeline's 8 lanes.
  A worker launched by hand without the depth still decodes one token a
  step.
- Checks: the capability test pins the declaration and what each mode
  drops; the installed-session check launches MiMo tensor parallel with
  and without the declaration (depth exactly when declared); the provider
  setup check plans MiMo with this build's declarations (the evidence rule
  decides against the speculative pipeline: prior only keeps it, this
  build's records at 95 tok/s choose tensor parallel), keeps a record
  without rounds held back, and holds tensor parallel back for the plain
  pipeline's lanes where that pipeline is the mode it would replace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With rounds on by default, the LOAD gate charges each rank the three heads
(1,975,640,448 B) and each request's speculative charge (the drafter's
bounded declaration and the window's rows). The plan now quotes the same,
so the planner admits only pairs the gate admits:

- MiMoPlacementFamily states ClusterTensorParallelFamilyPlan.speculativeHead
  (depth 2, requestBytes = the speculative charge, decodeSpeedup 1): every
  rank holds the layout's speculativeHead part (the 42 head tensors) whole
  in whole pages, and the quoted reserve carries the charge beside the plain
  reserve (MiMoTensorParallelRequestBudget.allowance(speculativeRequestBytes:
  allocationBound:)), as the LOAD gate sums them.
- The product layout computes it with the SDK's drafter declaration at the
  allocator's bound (MiMoTensorParallelResidentRuntime.placementRounds, the
  same speculativeRequestBytes the LOAD gate takes); metadata-only layouts
  (the recorded golden one) carry neither, as they carry no allowance, so
  every golden digest is unchanged.
- No speed-up is credited until records measure the rounds: served records
  correct the shard rates meanwhile (ClusterServedCalibration), and the
  evidence rule decides.

Checks: placementQuotesWhatTheLoadGateChargesWithRounds pins the product
layout's head and allowance to the LOAD gate's terms; PlacementChecks
prices the rounds on the registered layout (weights + the heads' pages,
request need + the charge, need = the LOAD gate + page padding, decode
uncredited, 2x 128 GB M5 Max fit now at 99.9 GiB a rank) and runs the
fastest-plan checks on that layout, unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- inference.md: the rounds are on by default (the installed depth, the
  capability declaration, the status); verify windows under contract v2
  (o_proj one FP32 product a row, dense row by row, FP32 expert rows
  combined per row) and the window agreement string; the plan's
  speculativeHead and the rounds in the quoted reserve, with how measured
  records credit the rounds later; feature parity now admits MiMo tensor
  parallel against the speculative pipeline and holds it back only where
  the plain pipeline's lanes are replaced (106 and 118 GB in the checks'
  device model).
- hardware-support.md: the planner's quote counts the heads and the
  per-request terms; two 128 GB Macs still fit.
- two-mac-cluster.md: what users see (speculative decoding in tensor
  parallel; the plain pipeline's lanes).
- test.md: the window-partials test, the placement-quote test, the
  PlacementChecks rounds checks, the setup and installed-session checks.
- changelog.d/mimo-tp-speculative.md: on by default, priced in the plan,
  no longer held back by feature parity against the speculative pipeline;
  one sentence each in the parent fragments (mimo-tensor-parallel,
  cluster-feature-parity) so the merged notes agree.

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

Gemma4TensorParallelPrefix.scopes derives both tiers' scopes through
ClusterWorkerPrefixCache.scope, like the other pair families the table names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The layout explanation said every tensor-parallel speculative head's
decode is "credited N.NNx one token per step, as the rounds measured".
MiMo's head is priced with a speed-up of 1 until records measure its
rounds, so for a speed-up of 1 the line now says decode is "credited
nothing over one token per step until the rounds are measured". GLM's
line (1.21x) is byte-identical; PlacementChecks pins both.

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

Brings #1706's Gemma 4 tensor-parallel prompt prefixes (resident and encrypted SSD tiers,
per-request capture charge) under MiMo tensor parallel. One conflict, in
NativeWorkerRuntime.swift: both branches pass new inputs to their tensor-parallel loads;
keep both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
inference.md named a scratch note outside the repository for the scan of
where the plain pipeline is the mode MiMo tensor parallel would replace.
It now says what the scan was (the planner on the placement checks'
device model, the measured 29 us link, 2026-11-01), still marked
[INFERENCE].

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

Brings #1706's Gemma 4 tensor-parallel prompt prefixes (resident and encrypted SSD tiers,
per-request capture charge), through #1707, under the evidence rule and the feature-parity
gate. Conflicts:
- Gemma4ResidentAdapterDefinition: keep tensorParallelKeepsPromptPrefixes = true and this
  branch's servingFeatures, whose comment no longer says tensor parallel keeps none;
- Gemma4TensorParallelResidentRuntime: the load agreement binds keepsPrefixes (prefixes kept
  and the rank's cache enabled), so a rank with prefixes switched off refuses its peer;
- docs/developer/test.md: the evidence-rule text, with each rank quoted with its request's
  prompt-prefix capture.

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

With #1706's prompt prefixes merged, Gemma 4's capability record declares prefix reuse
resident and on the SSD tier for tensor parallel, as for the pipeline. The feature-parity gate
then has nothing to hold Gemma back on, and the evidence rule decides.

- Gemma4TensorParallelRuntimeTests.capabilityDeclaresWhatEachModeKeeps pins the new
  declaration: tensor parallel drops nothing the pipeline keeps.
- PlacementSetupCheck plans with what this build declares; the gate's Gemma checks (held,
  kept mode, forced line, only-tensor-parallel-fits refusal, codec) use a record whose
  tensor parallel keeps no prompt prefix, as builds before 0.10.7 declared it.
- inference.md, two-mac-cluster.md, test.md and the parity changelog say only MiMo is held
  (no speculative rounds yet), with MiMo's line as the example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s to the LOAD gate's

Refactor pass on MiMo tensor parallel's speculative rounds (contract v2
windows, on by default). Tests and docs only.

- windowPartialsAreTheOneTokenStepsFloat32Partials now checks every window
  width (2, 3 and 4 rows), so the installed depth's 3-row window is compared
  with the one-token steps partial for partial; only 4 rows were before. A
  window mutated to v1 dense and routed partials (o_proj kept v2) fails it
  with 204 issues.
- placementQuotesWhatTheLoadGateChargesWithRounds also requires the layout's
  head part to equal the LOAD gate's own head inventory (MiMoMTPHeadInventory)
  over the same registered headers; before, only a constant pinned it.
- inference.md: against the plain pipeline tensor parallel "would drop" its
  lanes (no longer "also"); the rank's LOAD gate figure is linked from rank
  memory, not restated; a depth-2 round never runs the third head, which
  every rank holds and is charged for.
- hardware-support.md links the placement section instead of restating the
  planner's 99.9 GiB.
- Changelog: "MiMo's own trained draft heads" (a depth-2 round drafts with
  two of the three); the parent fragment gives the installed figure, about
  100 GiB a Mac with the draft heads.
- test.md: both tests' descriptions.

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

CI's provider shard 2 crashed in DistributedAutomaticBatchPlannerTests
(discoveredAssistantThatCannotBePlacedGivesWayToTheOrdinaryTarget): a stack overflow on a
Swift Testing cooperative thread (512 KiB), in ClusterPlacementPlanner's tensorRequirement
below ClusterPlacementFlow.decide. In debug builds every local keeps its own stack slot, and
the parity block's planner run and temporaries grew decide's frame by about 17 KB, past the
chain's limit.

ClusterModeParity.apply (@inline(never)) now holds that block, with the same behaviour: tensor
parallel's modes leave the policy where they drop a feature unless the mode is forced, and the
only-tensor-parallel-fits refusal is recorded in modesReason. Measured with lldb on the same
test, decide's frame is back to its size before the gate (98,992 B; 116,320 B with the block).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings #1715's next head: #1706's Gemma 4 tensor-parallel prompt prefixes (through #1707),
the parity gate admitting Gemma tensor parallel, and the parity block moved out of
ClusterPlacementFlow.decide's frame. Conflicts are in the parity docs and changelog, where
#1715 says only MiMo is held and this branch turns MiMo's rounds on: keep this branch's state
(MiMo tensor parallel keeps the speculative pipeline's rounds and is held only where the plain
pipeline's lanes are replaced) with #1715's Gemma wording. The plan-line examples in
inference.md and two-mac-cluster.md become the lanes line, the one MiMo can still print.

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

Each rank of a Qwen tensor-parallel pair now logs its decode routes once per
loaded model when the native executor starts (qwen-tp-decode-census-v1): every
projection's route (the batch-invariant kernel, a row-parallel FP32 partial on
it, or MLX's own kernels with the reason) with each shape's layout per vector
count, the residual-norm form, the paged attention geometry and partition size,
the selection, and any arithmetic switch the launcher set. Host values only.

QwenTensorParallelRowsCheck checks the row contract at the registered
Qwen3.8-27B per-rank widths with random affine 4-bit weights (three Gated
DeltaNet layers and one attention layer, the full 248,320-row vocabulary): a
row's logits and history equal its run alone on a one- or eight-lane host,
beside rows of 100 to 4,600 tokens that join and leave, across two KV segments,
while an assistant observes the cohort, and at every position of a four-column
verify window alone and in a cohort. It runs both ranks in one process
(QwenTensorParallelRealGeometryRowsTests, QWEN_TP_REAL_GEOMETRY_GPU=1) and as
two processes over the loopback ring (darkbloom-cluster-tp-check qwen-rows,
native or sealed sums, with the worker's arithmetic environment). On an
M5 Ultra every comparison is bitwise equal, so the plain c8 non-equality seen on
the real pair does not reproduce synthetically; the census and the tool are for
the real-pair and real-checkpoint runs that remain.

No serving arithmetic changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Qwen tensor parallel kept at most one 4,096-token prompt-prefix boundary
per request, so a repeated 33K-token prompt reused 4,096 tokens where one
Mac reuses 32,768. Each plain lane now keeps, on its own 512-token chunk
grid: the deepest whole chunk before the final token (a repeat), the one
64 tokens before the prompt end (the next turn, from 1,024 tokens on),
and one Mac's 4,096-token stripe boundaries (a shared system prompt),
the stripe doubling past eight (the SSD record's grid).

- QwenTensorParallelPrefixCapture copies each kept boundary's recurrent
  state and the attention rows once, at the deepest; shallower states
  view that copy. The snapshot cache counts one capture's copy once and
  evicts as the pipeline's tier does (other captures' shallower
  boundaries, then the newest's, then whole captures). The sealed vote
  carries every grid boundary; both ranks restore or neither does.
- Memory per the owner's decision: each request is charged its own
  capture; LOAD and the placement quote charge one capture of the
  profile's longest prompt per lane and no resident banks; the resident
  tier is half the room LOAD measures and gives way (SSD writer drained,
  then entries evicted) before the reservation or running-batch gate
  refuses, which no longer credits kept entries as the owner's own.
- Every clean capture is written to the SSD tier; a record the tier
  cannot hold is restored once within the request's own charge. The
  record scope and the load agreement bind qwen-tp-batch-prefix-depth-v2,
  so records of the 4,096-token policy are never offered.
- The assistant lanes keep their 4,096-token frontier: their trusted
  history stays unflushed to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Qwen27 TP prefix sections describe the kept boundaries and their
parity with one Mac's dense-Qwen reuse, the shared-copy capture, the
measured resident tier and the policy bound into the SSD scope
(prefix-cache.md); the per-request and LOAD charges with the registered
27B's numbers before and after and the planner's placements
(hardware-support.md); the record grid, the write-behind bound and where
it drops deep records (ssd-kv-cache.md); the new checks (test.md); and a
summary in inference.md. One changelog fragment.

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

The changelog fragment and the inference summary said every restored
request computes what a cold one does; that holds for the memory tier and
native SSD records, while the SSD tier's default balanced records keep
older attention rows approximate (unchanged by this branch).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai and others added 5 commits November 3, 2026 14:59
…1750)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(provider): evaluate the Qwen4 paging fixture's weights (release shard SIGBUS root cause)
CI: run the cluster jobs only when cluster inputs change; 3 provider shards
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dev branch defaults plain builds to the dev coordinator (52079c0).
Master keeps prod: Package.swift and BuildEnvironmentTests.swift match
master exactly, so a squash of this snapshot carries no dev default.

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

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

Request Review

Comment thread scripts/test-provider-build-default.py Resolved
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Threat model review — advisory

Reviewed head f1f68c2273f7 against base e287c1fd2aa7.

Review not completed for this head. Previous findings are superseded, not confirmed resolved.
Aggregate source budget exceeded; scan incomplete

Models: budgeted Sonnet / selective Opus / selective Sol 6.1. Findings require human validation; this review never requests changes or blocks merging.

Human review required: CI did not complete the security review. A maintainer must review the saved findings and remaining scope. A green advisory job is not security clearance; do not manually rerun the paid scan.

Failure diagnostics: REVIEW_FAILED

Coverage: 0/0 source units; cross-file integration pending. 0 selected depth batch(es) pending. All threat definitions indexed; relevant full definitions selected. Unchanged callers are not scanned.

Cost this run: $0.0000 reported, $0.0000 reserved with unknown cost; 0 paid request(s), 0 reused batch(es), 0 provider cache-hit tokens.

Saved findings and earlier report · Historical findings are not confirmed resolved.

@davidtai
davidtai marked this pull request as draft November 3, 2026 21:38
@jonathan308
jonathan308 marked this pull request as ready for review November 3, 2026 22:03

@jonathan308 jonathan308 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by the release owner for the provider 0.10.7 release (squash, per David's note; master keeps the prod default).

@jonathan308 jonathan308 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by the release owner for the provider 0.10.7 release (squash per David's note; master keeps the prod default).

@jonathan308
jonathan308 merged commit 1d9a9f5 into master Nov 3, 2026
58 of 60 checks passed
@jonathan308 jonathan308 mentioned this pull request Nov 3, 2026
14 of 17 tasks
jonathan308 added a commit that referenced this pull request Nov 5, 2026
* 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…
@davidtai
davidtai deleted the release/dev-to-master-2026-11-03 branch November 18, 2026 11:42

This branch had an error being deployed

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

2 participants