Skip to content

Release provider 0.10.13 into master - #2043

Closed
jonathan308 wants to merge 2039 commits into
masterfrom
release/candidate-to-master-0.10.13
Closed

jonathan308 wants to merge 2039 commits into
masterfrom
release/candidate-to-master-0.10.13

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Release provider 0.10.13 into master. Merge with squash, as #2039. Approvers: see "Merge rules".

What this is

release/candidate-0.10.13 at d9588b4f71 (dev d6f6bc409c = v0.10.12 + #2001, plus the 0.10.13 items and
"Prepare provider 0.10.13": ProviderCore.version 0.10.13, 2 fragments rendered into CHANGELOG.md), a signed
merge of master (dafd15c658, v0.10.12) with the candidate's tree unchanged, and one signed commit restoring
master's plain-build default. Tree 1a27fa4122. Nothing else from dev rides.

Behaviour changes for production Macs (read first)

Pull requests in this release

PR Author Head What
#2001 davidtai d6f6bc409c (merge) test-only: the MiMo audio and media HTTP tests wait for the media reservation to settle (a test hook in MiMoV26NativeLoadTransaction; no behaviour change). In dev before the cut
#2040 jonathan308 03826b100a Gemma 4: when the loop guard stops a verbatim loop inside a thought, the thought ends and the model answers (exit-thinking; GEMMA-DIAG, pair A/B)
#2042 jonathan308 09ba436cdc darkbloom cluster: the joining Mac ends on a stop only when one was asked for, never on the leader's "Stopped" during a download; a real stop ends the leader's start at once (PAIR-STOPPED)

Not in it: #2041 (tool-schema $ref on the local API: review blockers still open; 0.10.14), the 9B presence_penalty provider fix (the registry's presence_penalty: 1.5 holds), and every other dev or open PR (#2011, #2004, #1985, #1983, #1975, #1973, #1956, #1953, #1947, …).

Pins: libs/mlx 72dffa2d, libs/mlx-swift b1c94d29, libs/mlx-swift-lm 44ab1755, as v0.10.12 (metallib 5b97893c…).

Merge rules

Squash only; Release Integrity; signed commits; an approval from someone other than the last pusher.


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 10, 2026 10:02
…be (#398)

SDK main moved to ef028fbe (#398: non-speculating rows save prefix
checkpoints). A pin after it must contain it, so the fix branch merged main
(signed merge 67cf895d, no file in common) and this PR pins the merge. This
PR therefore also carries #398's SDK change: merge it with or after #1965,
which documents that change, and repin to SDK main once the fix branch is
merged there.

#398's new donors: Qwen 3.5/3.6 checkpoints keep native storage (the MTP
history forces it), so they never take the coded path this fix changes and
their end-of-stream wait is the native file write; Nemotron 3.5 Super's coded
attention rows do take it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ghtning-plain-decode-0112

No conflicts; the SDK pin is unchanged by (c).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rged, with #398)

SDK_MAIN3: #378's merge commit on main. Its tree equals the tested #378
head 746e5048 (main ef028fbe merged in first), so this adds #398 and the
SDK test of the native checkpoint rule to the previous pin 2b522f5b. #1965
pins the same commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of the queue-stall rule (`earnings/review-1966-1968.md`): in 7 days of
production its exact condition (waiting, nothing running, no step) held a
minute or more about 360 times on 11 models and ~140 Macs, and two minutes or
more 139 times (125 Bonsai, 7 Super), almost always ending by itself. Healthy
causes: vision encoding counted as waiting, plans with nothing to assign that
take no step. On MiMo it held once, during the incident.

`QueueStallSlotStateTests` now pins:
- the queue rule on a native MiMo slot (the bridge marked as a native MiMo
  load transaction marks it), unchanged;
- the same frozen queue on any other slot: never "crashed", never a
  confirmed wedge, even after 20 minutes;
- a sealed native fault (`EngineV2.nativeCompletionFault`: native work failed,
  the engine never steps again) reads "crashed" at once and is a confirmed
  wedge, on any slot.

`SealedNativeFaultReporting` (EngineV2 conforms through
`nativeCompletionFault`) is the seam the fake engine implements; nothing reads
it yet. Red on `45666c908b`: 6 issues (the ordinary slot reads crashed and
recovers; the fault is ignored in both cases).

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

Review of #1966 (`earnings/review-1966-1968.md` §6.2): the bound test checked
only the refusal's message prefix. This pins the mapping the inference
handler applies at stream start: `token_budget_exhausted: the idle
calibration probe did not retire` becomes code `capacity`, HTTP 503, reason
`tokenBudgetExhausted`, which the coordinator classifies as transient
capacity and fails over to another Mac.

Passes on this branch (a pin of existing behavior, not a fix). CPU-only local
run with #1967 and #1968: 120 tests in 14 suites pass.

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

Review of #1968 (`earnings/review-1966-1968.md`, mutant M7): no test held
that only a coordinator cancel starts the grace. A disconnect's cancel-all
(`receivedFromCoordinator: false`) is not the client leaving, so the request
must keep holding the drain until its task ends.

The new control fails with mutant M7 applied (the grace stamped on any cancel:
`lifecycleRemaining` reads 0 instead of 1 after 300 ms) and passes on this
branch. CPU-only local run with #1966 and #1967: 120 tests in 14 suites pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ault, or a stalled native MiMo queue

`EngineV2Bridge.engineStopped(queueStalledFor:now:)` replaces the fleet-wide
queue rule. It is true when:
- the engine reports a sealed native fault (`EngineV2.nativeCompletionFault`,
  through `SealedNativeFaultReporting`), on any slot. Once native work fails
  the SDK seals the native shutdown state `incomplete` and the step loop never
  runs again (`EngineLoopV2.engineStep`'s `mayExecute` / `beginCommit`
  guards), so there is no false-positive class: the slot reads "crashed" at
  once and is a confirmed wedge at the next recovery tick;
- or the slot is native MiMo (`nativeTransactionID`) and its queue has held
  work with nothing running and no step for 30 s ("crashed") or 120 s
  (confirmed wedge, retirement). This stays as the backstop because the fault
  is the review's lead for the 11-10 stall, not yet confirmed on a Mac.

`WedgeMonitor.marksCrashed` is back to its dev form; every other model keeps
only the admit-streak rules. In 7 days of production the queue rule held a
minute or more ~360 times on 11 models, nearly always healthy (vision
encoding counted as waiting, plans with nothing to assign), and once on MiMo.
Pair engines are neither native MiMo nor fault-reporting, so the explicit
pair exclusion (the review's surviving mutant M6) is gone with it.

Tests: the red `QueueStallSlotStateTests` pass (6 issues → 0). CPU-only local
run with #1966 and #1968: 120 tests in 14 suites pass, and the four affected
suites pass 5 of 5 repeats. Docs: inference.md. Changelog fragment rewritten.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ry other model keeps its rule (red)

The narrow fallback to #1973: only the catalog Gemma QAT build changes. absentKeys
now expects exact for gemma-4-26b-qat-4bit, and gemmaQATDefaultsToExact pins
exact for that id, typical for its 8-bit siblings, the 35B Qwen builds, Qwen 3.8,
Lightning and GLM, exact for Qwen3.5-9B (#1961), and that a per-model or global
"typical" still wins.

On #1961's head (ca8697d) two tests fail, each on gemma-4-26b-qat-4bit
resolving to typical.

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

SDK main 505e6bd8 is the merge commit of mlx-swift-lm#399 (this fix) onto
a6599fd2 (#378, Nemotron 3.5 Lightning), which follows ef028fbe (#398). Its
tree equals the fix branch head 781c3820's (61d17c0d), green on Fork Tests
42882853010 (all 10 shards). #1965, #1969 and candidate (c) move to the same
commit; resolve each gitlink to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y other model keeps its rule

The narrow fallback to #1973 for 0.10.12. MTPAcceptancePolicy.builtInIsExact
adds the catalog gemma-4-26b-qat-4bit to the Bonsai 9B candidate and
Qwen3.5-9B (#1961); every other model keeps typical as its built-in rule, and
the per-model -> global -> built-in precedence and the unknown-value -> exact
rule are unchanged.

Why Gemma: its assistant drafts most of its rows (11,863 of 14,211 on 11-09),
and on OpenRouter's GPQA run of 10-31 every Gemma answer drafted under typical
acceptance and 30 % (52 of 173) ended at the 32,768-token cap with no answer.
Exact keeps the model's output distribution (not bit-identical to MTP off);
it gives back some of #1376's decode gain (10-07, one request: 0.957x).
GLM-5.3-Flash and Qwen 3.8, which #1973 would also move and which are
unmeasured, stay typical.

Docs: inference.md (the acceptance paragraph), configuration.md,
cli-reference.md, ProviderConfig's comment. Fragment:
changelog.d/mtp-exact-acceptance-gemma-qat.md.

Tested (CPU only, sandbox without GPU clients, prod identity, after
wait-build-slot.sh with MIN_FREE=22): red fce36b0 fails
MTPAcceptanceConfigTests with 2 issues (absentKeys and gemmaQATDefaultsToExact,
both gemma-4-26b-qat-4bit resolving to typical); here MTPAcceptanceConfigTests
8/8, Bonsai9BMTPPolicyTests 3/3, EngineV2SamplingDefaultsTests 16/16,
Bonsai9BRequestPolicyTests 3/3, BenchmarkProductionInputTests 8/8,
EngineV2TranslationTests 11/11; changelog.py check (69), docs-impact-check
--base ca8697d (7 files), docs-check.sh (211), git diff --check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…to perf/lightning-plain-decode-0112

No conflicts; (c) keeps its own SDK pin, this branch keeps its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…N4: #399 on #378)

SDK_MAIN4 adds #399 (checkpoint export reads batched rows; the stream-tail
fix) on top of SDK_MAIN3 a6599fd247. #1965 and #1971 pin the same commit.

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

The same SDK commit as Lightning's #1969 and STREAM-TAIL's #1971, so the
three PRs and candidate (c) share one gitlink. 505e6bd8 contains #398's
merge ef028fbe (this PR's fix, unchanged); from ef028fbe it adds only
#378 (Nemotron 3.5 decode command buffers, native checkpoints by default
for nemotron_h) and #399 (the checkpoint export's batched, multi-core row
coding, byte-identical). Neither touches a file of #398. The changelog
names the pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Delta review of #1967 (`earnings/review-1966-1968.md`, D4): mutant N6 (the
`EngineV2` conformance reports no fault) survived, because every fault test
used a fake engine. The link from the SDK's `nativeCompletionFault` to the
slot state was checked only by reading.

The new test builds a real host-only `EngineV2` (one attention layer, a 1 MiB
contiguous backend, a model that is never asked for a graph) with native
completion tracking and no issued execution contract. The SDK seals it at
construction (`unsupportedExecutionContract`, the same write-once
`incomplete` outcome a failed native step leaves), so its loop never starts
and no tensor is built. The slot reads "crashed" and is a confirmed wedge; a
real engine without tracking reads "idle" and is not.

Red with mutant N6 applied (2 issues: idle, no confirmed wedge); green
without it. CPU only: `QueueStallSlotStateTests` 5 of 5 repeats, plus the
wedge, capacity, head-hold, me-first and benchmark-session suites (32 tests).
No production code changes.

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

dev now routes build-provider, build-cluster and cluster-release-checks while
sizes are off (#1951), which was the first half of this branch. This merge
takes dev's workflows, self-tests and docs as they are and adds only the
lanes test-cluster-gpu-1 and test-cluster-gpu-3 on top; Cluster GPU Tests
shard 2 keeps its literal Blacksmith label.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…a-qat (0.10.12 candidate c; head f859266: exact acceptance for Gemma QAT only)
ci: Cluster GPU Tests shards 1 and 3 ask Darkbloom first
…t, and counts only real early ends (red)

`darkbloom status` can only say "paid if the requester left mid-answer,
unpaid if ..." for every request that ended early: the daemon keeps one
count, and the coordinator's `cancel` carries no cause. It also counts a
request whose answer had already finished when the requester's cancel
arrived (about 1 % of the count in production, Nov 2-8).

These tests pin the fix, against the API it needs (types and signatures
only; nothing here is wired yet):
- a `cancel` may carry `reason` (the coordinator's cancel cause) and
  `paid`, and decodes them; an older provider already ignores them (the
  decode below does not throw on red);
- each early end is counted under its cause: the coordinator's reason,
  a cancel without one, this Mac's dropped connection, or its own stop
  (drain or add-on hold), and the state file carries the counts;
- a cancel that lands after the engine finished the answer is not an
  early end (the loop is held inside its first content frame while the
  engine finishes, then cancelled; red counts it);
- `status` prints a line per cause, and keeps the single note for a
  daemon without causes.

Red: 8 tests fail with 10 issues, all at these expectations; the suites' other tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, and counts only real early ends

A provider kept asking about "N of them ended early ... may be unpaid"
(1 of 372 on 0.10.11, 7 of 68,341 since). The daemon kept one count and
the coordinator's `cancel` said nothing about why, so `status` could only
explain the pay rule. Now each early end is counted under what stopped it:

- the first cancel of a request's `InferenceCancellationToken` names its
  cause. A coordinator `cancel` brings its optional `reason` and `paid`
  (decoded from the frame; `routeCoordinatorCancel` keeps the reason until
  `handleCancellation` applies it on every path). A dropped connection is
  `cancelAllInflight(cause: .connectionLost)`. This Mac's own stop (a
  forced drain, a shutdown, an add-on hold) is `.stoppedOnThisMac`: its
  partial answer goes out on a live connection and settles as a completion;
- `EndedEarlyCounts` maps the cause: paid (the requester left mid-answer:
  `client_gone_post` with `paid`; any other paid reason; this Mac's stop),
  unpaid (another Mac answered first: `hedge_loser`; this Mac started too
  late: `first_chunk_timeout`, `late_content`; any other reason; the
  connection dropped), or no reason (a coordinator that sends none);
- the daemon state file carries the counts (`ended_early`) beside
  `cancellations_partial_complete`, their total; the heartbeat is unchanged;
- `status` prints a line per cause. Cancels without a reason share the
  #1950 note, and a daemon without the counts keeps that single note.

A cancel that lands after the engine finished the answer is no longer an
early end: the bridge marks the request's usage signal (`answerFinished`)
when the engine finishes with stop or length, before it yields the
terminal, and the frames loop counts only a cancel that came first.
Billing is unchanged. In production (Nov 2-8) about 1 % of the count were
such finished answers.

Docs: the CLI reference lists each status line, protocol-messages
documents `cancel`'s `reason` and `paid`, inference.md the counting; the
troubleshooting row and the changelog fragment (updated in place) match.

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

On a Darkbloom Sandbox that the plane gave no Darkbloom cache, the guest
sets no DARKBLOOM_CACHE_URL and actions/cache reads and writes GitHub's
own Actions cache through the gateway. Job 127018716621 (master push,
2026-11-05) saved .git, a 1.69 GiB Swift build, the SwiftPM repositories
and a Metal library to refs/heads/master; dev pushes on 11-07 and 11-09
saved .git to refs/heads/dev.

Each routed job that uses a cache now first runs "Choose this job's
Actions cache", which sets CI_ACTIONS_CACHE=off on a runner named
darkbloom-* without DARKBLOOM_CACHE_URL. Every actions/cache step under
.github starts its condition with env.CI_ACTIONS_CACHE != 'off', and the
routed setup-node steps get cache ''. Blacksmith, GitHub-hosted and
cache-enabled Darkbloom jobs, and the Blacksmith-only release workflows,
keep their caches.

The .git discard step now also refuses a restored .git that is not a
directory, holds a symbolic link or a hook other than *.sample (also in
.git/modules), or whose config sets core.fsmonitor, core.hooksPath or an
include, before any git command reads it.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ps the release build's cache steps

Docs Impact maps .github/actions/provider-release-build and
provider-release-cache.yml to docs/operations/provider-release.md.

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

Window 7 (11-10) stopped the Qwen cache validation's 32K case with "size
overflow: streamed plaintext exceeds budget". The throw is the live test's
own manifest scan, not a restore: Qwen35CardDefaultDonationLiveTests'
longPrompt wrote a ~1.31 GB Qwen3.5-9B checkpoint through a store with
production's complete-checkpoint cap (7 GiB on a 48 GB+ Mac) and then
called Qwen35CheckpointRetentionFixture.positions(), whose scan
authenticated every file under the general 1 GiB stage cap. The warm run
never started.

This extracts the fixture's scan, unchanged (it still reads under its
default cap), as CompleteCheckpointFixtureScan, which records the cap of
every store the fixture makes, and adds a CPU test of the same asymmetry
at a small size: a file one byte over the scan's default cap, within its
store's cap. Red: the scan throws window 7's error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ap its stores were given (green)

CompleteCheckpointFixtureScan now authenticates each file under the
largest maxReadBytes of any store the fixture made, the cap the store
both wrote and restores under (SSDHybridCheckpointEnvelope on write,
SSDHybridCheckpointStore+ChainRead on read). Qwen35CheckpointRetentionFixture
records every store it makes, so its 32K section, which runs under
production's complete-checkpoint cap, is read back under that cap and the
warm restore runs.

Test-only: the provider's own write and read already share
config.maxReadBytes, so no production path changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 and others added 19 commits November 12, 2026 02:26
Version 0.10.12; the 68 changelog.d fragments rendered into CHANGELOG.md
(scripts/changelog.py render --version 0.10.12 --date 2026-11-12, verbatim, in
filename order) under the candidate heading, with the upgrade and rollout
notes; v0.10.11 marked published (2026-11-09); the 0.10.12 section of
docs/operations/provider-release.md. Base: master 6584269 (the 0.10.12 release branch's squash).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dev's 5a1a539 waits for the same media reservation settlement with a 5 ms
polling loop. Keep this branch's event wait (EventCounter + the removal hook)
in both tests and drop the polling loop, so each test waits once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wait for the MiMo media reservation settlement in the native audio and media HTTP tests
…a answer (red)

When 0.10.12's loop guard (#2005, #2020) stops a verbatim loop, the answer
ends as `length`. Inside a thinking model's thought that leaves no answer
at all: Gemma's GPQA q63 loop ("Wait, the reaction is: CO + Cu -> CO2 + Cu
(No).") and Gemma's runaway Tau2 thinking turns end empty, and tau2 then
ends the task.

Red tests and the API they need, with no behaviour yet:
- GenerationLoopExitThinking and GenerationLoopExitRecord: the family's
  end-of-thinking marker, and the row's generated tokens.
- GenerationLoopExitThinkingPolicy: Gemma 4 only (`gemma4`, `gemma4_text`;
  `<channel|>`), DARKBLOOM_LOOP_EXIT_THINKING, never with logprobs.
- GenerationLoopGuard follows the thought channel and records the row's
  tokens; a loop inside the thought asks to end the thought.
- LoopExitThinkingContinuation.splice holds the guard's `length`, submits
  the prompt + every generated token + `<channel|>` with the budget left,
  and yields one answer with one usage.
- Through the scheduler's text path: the client sees the thought end and
  the answer start; a loop in the answer still ends as `length`.

Here the policy resolves no exit, the guard neither follows nor records,
and the splice passes the row through, so the new suites fail.

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

When the loop guard stops a verbatim loop inside Gemma 4's thought, the
request now continues with the end of the thought, instead of ending as
`length` with no answer:

- GenerationLoopGuard, given an exit, follows the thought channel
  (`<|channel>` ... `<channel|>`, split markers included; the prompt's tail
  seeds the state) and records every token the row produced, including the
  in-flight ones after the stop. A detection inside the thought marks the
  record (`ends_thought` in the stop's log line and engine-health event).
- The pump feeds the guard every delta, so the in-flight tokens are kept.
- MultiModelBatchSchedulerEngine resolves the exit
  (GenerationLoopExitThinkingPolicy: gemma4 and gemma4_text, `<channel|>`;
  never with logprobs or on a cluster pair) and splices the answer
  (LoopExitThinkingContinuation). It holds the row's `length` terminal,
  waits for the row's stream to end, then submits one continuation on the
  same bridge: the prompt + every generated token + `<channel|>`, with
  max_tokens = the output the bridge resolved for the row - the tokens
  produced - 1, at most 8,192; the same sampling, stops, cache scope and
  donation demand; and a loop guard without the exit. The client gets the
  thought, a `<channel|>` chunk and the answer, then one terminal: the
  original prompt; completion = row + 1 + answer; the continuation's
  finish reason.
- If the continuation can't start (no budget left, the row closed its
  thought itself, a refused submission, a failure before its first token,
  a cancel), the held `length` terminal is delivered as before.
- DARKBLOOM_LOOP_EXIT_THINKING=0 turns it off.

Docs: the loop guard section of docs/architecture/inference.md.
Changelog: changelog.d/loop-guard-exit-thinking.md.

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

An external pair on 0.10.12 (2026-11-12 ~20:46Z): during setup the leading
Mac downloaded the chosen model, and the joining Mac's screen ended about
20 s later with "Stopped (by `darkbloom cluster stop` on one of the
Macs): the pair isn't starting any more." though nobody ran it.

Until both parts start the leading Mac's status reads "Stopped."
(OnboardingLive.localStatus says so while leadership.serving is off,
which only localServe turns on), while its start publishes downloading
and then copying; the registration's stop and restart reads "Stopped;
last model ..." again. The joining Mac's follow takes any "Stopped" held
20 s once a start progress was seen (ClusterOnboardingFollow.swift:223)
as a stop from anywhere.

aStatusThatReadsStoppedThroughADownloadIsNoStop scripts that leader:
21 s of "Stopped." beside the download's bytes, a copy, the gap before
the start, the load, the registration's "Stopped; last model ...", then
serving. The joining Mac must end with the leading Mac's outcome, never
the stop line. It fails on this commit's sources (the joining Mac says
the stop line at 20 s and exits 1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…never on "Stopped"

The report (an external pair on 0.10.12, 2026-11-12 ~20:46Z): the joining
Mac's screen ended about 20 s into the leading Mac's download with
"Stopped (by `darkbloom cluster stop` on one of the Macs): the pair isn't
starting any more", though nobody ran it.

Root cause (0.10.9 to 0.10.12, since b62750d): followStart took a
leading-Mac status that read "Stopped" for 20 s, once a start progress was
seen, for a stop from anywhere (ClusterOnboardingFollow.swift:221-229).
Until both parts start, the leading Mac's status reads "Stopped."
(OnboardingLive.localStatus says so while leadership.serving is off; only
localServe turns it on), and a start that must download or copy the model
publishes downloading/copying all that time. The joining Mac keeps the
first phase it saw, so every such start ended its screen 20 s in. The
registration's stop and restart, and the cluster service's approval-change
restart, could trip it too when they took 20 s.

The fix is an explicit signal. The leading Mac counts each stop a person
asks for (OnboardingLive.stop and the forwarded .stop: darkbloom stop,
cluster stop, restart, from either Mac) in its setup record, in the same
write as the stopped intent (ClusterSetupRecord.stopsAsked,
OnboardingLive.stopping). The start's own stops (a model change, the
registration) and the service's never count. Its status reply carries the
count (ClusterControlReply.stopsAsked: 0 before the first, nil from an
older build, which an older Mac ignores). The joining Mac ends only once
the count grew since the start began (ClusterOnboardingFollowedStop), and
then at once. A look that read no count tells nothing, and a stop before
the start began (the leader still at its list) is none of this start's.
The "Stopped" inference and its 20 s hold are gone.

So a real stop still ends both screens. The leading Mac's wait for the
parts now ends at once on a stop too (waitReady, as pairServing did;
before, it waited 15 minutes and offered Retry). A stop asked while the
model downloads or copies keeps the pair stopped instead of starting both
Macs after the download (chooseAndServe compares the count before serve).

Checks: the previous commit's red check is green. The joining Mac's stop
check now carries a count and ends at once, not after 20 s. New checks
cover the count's rules, a stop before the start, a stop during the
download on both screens, and a stop during the leader's load.
ProviderCoreTests: the count on the wire (an older Mac ignores it, an older
leader sends none), and only a person's stop counts.
Tests/ClusterOnboardingChecks/run.sh: 1955 passed, 0 failed (red commit:
1928 passed, 2 failed, both in the new check).

Docs: inference.md (how the follow ends), two-mac-cluster.md; changelog
fragment.

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

The independent review of 8e4f828 (review-2042.md) found these, now
fixed:

M1: waitReady's new pairStopped() check ended the leading Mac's load wait
on stops nobody asked for: the cluster service's approval restart, the
re-plan, releaseForSingleMac, a mirrored lease intent. That check is gone.
The leading Mac's waits (for the parts and for the coordinator) now end
on the same count the joining Mac reads, from the flow:
ClusterOnboardingDriver.stopEnding, asked about once a second off the
console's thread (waitWithRows(ending:)). The baseline is the start's,
taken in chooseAndServe and refreshed when the screen starts the pair
again. pairServing's own pairStopped() check, which predates the PR and
had the same flaw, is removed with the function.

SF1: the two Macs took their baselines at different moments. The start
now begins at its first step on the leading Mac, `copy` (before the
download question) or `starting` (ClusterOnboardingLeaderStep.startBegun).
chooseAndServe reads the count there, and the joining Mac counts the
start as begun from that step too.

SF2: a stop that took the command lock between the pre-start check and
serve was undone by serve. OnboardingLive.localServe(unlessStoppedSince:)
now compares the count under that lock. ClusterControlRequest.stopsBefore
carries it for a forwarded start (an older leader ignores it, as before),
and the flow uses ClusterOnboardingOperations.serveUnlessStopped.

SF3: ProviderCoreTests (ClusterOnboardingStopsAskedTests, on the
ClusterApprovalMacs fixture's leading Mac) cover a real localStop(asked:)
counting while the pair's own stop doesn't, the status reply carrying the
count (followerStatus, ClusterOnboardingLeaderStatus(reply:)), and a start
refused after a stop. The leader-load check now fails without the flow's
stop check: its wait answers only after 20 s. stop()'s routing and
execute(.status) end to end stay untested, since they reach the host's
real pairing.

SF4: the red check holds every "Stopped" stretch for over 20 s (the
download, a login after it with nothing published, the registration). So
the review's mutant, the 20 s rule exempting downloading/copying, fails
it now: checked on dev's sources with that mutant, the stop line comes in
the registration stretch.

SF5: docs and changelog say what counts: `darkbloom cluster stop`, and
`darkbloom stop` or `restart` once the pair runs. Before that,
`darkbloom stop` stops only its own Mac's. inference.md matches the code.

Nits: stopping -> recordStop; the pre-start stop clears the published
progress; the stop-count tests moved to their own file.

Tests/ClusterOnboardingChecks/run.sh: 1969 passed, 0 failed (512 s).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ew-2042 r2)

The second independent review of 7eddf21 (review-2042-r2.md) found
these, now fixed:

M1: the leader's test ignored a stop. It ended with "Serving" or "the
test failed" while the pair was stopped and the joining Mac said the stop
line. startOutcome now returns .stopped when the count grew, after the
test (passed or failed) and after a registration that refused.

M2: the leader's download or copy ignored a stop until it finished. move
now asks the count about once a second off the console's thread
(ClusterOnboardingLooker, shared with waitWithRows(ending:)) and ends at
once with the stop line and ClusterOnboardingStopped.transferKeptLine.
What arrived stays, and the downloader and the cable copy both resume.

S1: localRegister started a pair stopped during its test again: a
person's stop took the command lock first, then the registration's
localServe undid it. It now refuses a pair whose saved start is off.
That also covers releaseForSingleMac.

S2: the single-Mac and version-split continues served with a plain serve
and reset the baseline, swallowing a stop the joining Mac had already
ended on. Both now go through startBothMacs (check, then
serveUnlessStopped) with the start's baseline. Retry, a new start, reads
its baseline before it serves.

S3: the two Macs could count a stop near the start's first step
differently. The step now carries the count it began with
(ClusterOnboardingLeaderStep.stopsBefore, optional on the wire), and the
joining Mac compares with it when present.

S4: checks that fail without each part. The coordinator wait now ends on
the count (its wait still runs), a stop at the test (passed or failed), a
start refused under the lock, a stop at the single-Mac question, Retry as
a new start, and the download ending at once with what stays. The
download check also asserts the published step's count.

Nits: a count unreadable at the start's first step is read again before
serve; a refused forwarded start maps by its line; startBothMacs and
stoppedEnding replace the copies.

Tests/ClusterOnboardingChecks/run.sh: 1990 passed, 0 failed (514 s).
CI on 7eddf21: all green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nts; refactor pass (review-2042 r3)

The third independent pass of 8689dc3 (review-2042-r3.md, APPROVE with
should-fix) verified round 2. It ran 13 mutants, and its refactor pass is
applied here.

N1: Retry reset the leading Mac's count but kept the first start's step,
so a joining Mac opened after Retry compared with the old count. Retry now
publishes `starting` with the new start's count.

N2: four mutants survived; each is killed now (mini runner):
- E, the refused start mapped to its own ending: the check rejects the
  generic failure's indented line.
- H, Retry's baseline: the retried wait takes 2.4 s, and the step carries
  the new count.
- I, the version-split continue: a twin of the single-Mac check.
- F, the joining Mac preferring the step's count: a follow whose first look
  is already past the leader's count.
localRegister's guard stays covered by reading only. The fixture's
registration fails at its fetch either way.

Refactor pass:
- R1: ProvisionOutcome.stopped is now .cancelled, beside .stopAsked.
- R2/R3: one stopAsked(since:) replaces four copies and a local closure.
- R4: stopEnding is now endsOnStopAsked.
- R5: provision/move take the baseline explicitly (the blocker path passes
  nil).
- R6: localRegister reads the record once.
- R7: the looker's doc.
- R8: no looker, and no status read, without a count.
- R10: ClusterApprovalMacs.startedLeaderService is shared by
  ClusterServiceRestartingStopTests and ClusterOnboardingStopsAskedTests.
- Left, as the pass advised: R9, R11, R12, R13.

Tests/ClusterOnboardingChecks/run.sh: 1999 passed, 0 failed (522 s).
CI on 8689dc3: all green.

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

The independent reviews of #2040 (review-2040.md F1/F2, and a fresh-context
reviewer's finding 1) found:
- F1: on the coordinator's path (atomic deadline admission), a row's stream
  ends before its serving slot is released. The continuation then races its
  own stopped row and, on a full Mac, is refused: the request quietly ends
  `length` under exactly the benchmark load.
- F2: DARKBLOOM_LOOP_EXIT_THINKING (and 0.10.12's DARKBLOOM_LOOP_GUARD) do
  not reach a launchd-started provider.

Red tests and the API they need, with no behaviour yet:
- On a full Mac (every whole-Mac slot busy but the stopping row's), a row
  admitted atomically, whose retirement lands 50 ms after its stop, still
  gets its continuation and answers.
- EngineV2Bridge.waitForRowRelease(requestId:within:) reports a row's slot
  released only after its pump's cleanup (stub: at once).
- The launchd passthrough carries both switches.
- Under 256 tokens of answer budget, the thought is not prefilled again.
- A continuation that fails after its first token ends as a paid `length`;
  only the client's cancel keeps its error.
- A client that leaves during the answer cancels the continuation.
- A missing `ends_thought` field now fails the telemetry assertions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d passes the switches

F1 (review-2040.md, and a fresh-context reviewer's finding 1): on the
coordinator's path a row is admitted atomically against its first-content
deadline, and its pump ends the client stream before it retires and
releases its service allowance and KV reservation. The continuation was
submitted at once, so on a full Mac it raced its own stopped row, was
refused, and the request quietly ended `length`.
- EngineV2Bridge.waitForRowRelease(requestId:within:), as model calibration
  waits: the row's pump task (its retirement cleanup), then its whole-Mac
  service charge; raced against the bound (5 s) because a wedged row may
  never retire. The continuation's submit waits on it first; on timeout the
  request ends `length`, as before.
- The continuation is submitted with the request's prompt progress and the
  owner's make-room hook cleared, as calibration submits (review N6).

F2: DARKBLOOM_LOOP_EXIT_THINKING and 0.10.12's DARKBLOOM_LOOP_GUARD are on
LaunchAgent.inferencePassthroughEnvKeys, so `darkbloom start` passes them to
the launchd daemon.

Also from the reviews:
- N2: under 256 tokens of answer budget the thought is not prefilled again;
  the request ends `length`.
- N4: a continuation that fails after its first token (a capacity error, a
  teardown, a watchdog terminal) ends the answer there as a paid `length`
  with the usage so far; only the client's cancel keeps its error.
- N5: the stop's log line and event say the guard asks to end the thought,
  not that the answer continues; a cancel during the continuation's prefill
  is logged as a cancel.
- Docs and changelog: the release wait, the 256-token floor, the after-start
  failure, the launchd passthrough.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Version 0.10.13; the 2 changelog.d fragments rendered into CHANGELOG.md
(scripts/changelog.py render --version 0.10.13 --date 2026-11-13, verbatim, in
filename order) under the candidate heading, with the upgrade and rollout
notes; v0.10.12 marked published (2026-11-12); the 0.10.13 section of
docs/operations/provider-release.md. Base: master b753d70 (the 0.10.13 release branch's squash).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… candidate's tree unchanged

Master holds v0.10.12's squash: the candidate (dev d6f6bc4 + the 0.10.13 items + Prepare) already has its
content except the plain-build default, which the next commit restores. #2001 (in the candidate) is master's
only other difference. Master becomes an ancestor of the branch.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathan308
jonathan308 requested a review from davidtai November 13, 2026 03:52
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference-landing Ready Ready Preview Nov 13, 2026 3:53am UTC
darkbloom-status Ready Ready Preview Nov 13, 2026 3:53am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 13, 2026 3:53am UTC

Request Review

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Threat model review — advisory

Reviewed head 9abb18883ce8 against base dafd15c65850.

Reviewers: anthropic/claude-sonnet-5.5: first pass completed; anthropic/claude-opus-5.5: selected depth completed (27 batches); openai/gpt-6.1-sol: selected depth completed (8 batches)

No actionable findings in the reviewed text. This is not a security approval.

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

Scan completed; human review required.
Cross-file reviewer requests further review; independent human review required; Final reviewer requests further review; independent human review required

Coverage: 287/287 source units; cross-file integration complete. 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.

Bedrock: 139 request(s), 6425038 uncached + 0 cache-read + 266576 cache-write input / 102515 output tokens; 0 request(s) with unknown usage. OpenRouter backup used 0 time(s). Dollar amounts above cover OpenRouter only; AWS billing is reconciled separately.
Workload allowance: 140 native request(s), including one shared response repair; 500 emergency ceiling. Selected depth and integration rounds are admitted as their scope becomes known.

@jonathan308

Copy link
Copy Markdown
Collaborator Author

Replaced by #2086 (the 0.10.13 release PR from the final candidate 420a0c4ee1, 24 items). Closing.

This branch was successfully deployed

3 active deployments
Preview – d-inference-landing — 9abb1888 Deployed Nov 13, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 9abb1888 Deployed Nov 13, 2026 by vercel[bot]
Preview – darkbloom-status — 9abb1888 Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants