Skip to content

Release dev into master: provider 0.10.12 - #2039

Merged
jonathan308 merged 2021 commits into
masterfrom
release/dev-to-master-0.10.12b
Nov 12, 2026
Merged

jonathan308 merged 2021 commits into
masterfrom
release/dev-to-master-0.10.12b

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Release provider 0.10.12: dev into master. Merge with squash, as #1859, so no dev commit enters master's history. Approver: Kydo (David's #1921 and #1922 commits are in it).

What this is

dev at df36d81c3f (DEV_FINAL: the merge of #1970, tree 1bbcdc4242) plus one signed commit restoring master's
plain-build default (Package.swift ?? "prod", BuildEnvironmentTests.swift's default test). Tree 5ff5639c6a.

#1970 and the candidate-d PR (#2038) carried the release preparation into dev: a signed merge of master (0.10.11: #1859, #1938) and
"Prepare provider 0.10.12" (ProviderCore.version 0.10.12; 68 fragments rendered into CHANGELOG.md with the upgrade
notes and two wording overrides; docs/operations/provider-release.md's 0.10.12 section). So this one squash brings
master to 0.10.12, and v0.10.12 is tagged on it. No separate Prepare PR.

Behaviour changes for production Macs (read first)

Pull requests in this release (61 rows: 64 PRs counting #1608, #1611 and #1922, which ride inside #1614 and #1962)

PR Author Head What
#1928 jonathan308 ecd761565c test(cluster): pin each Gemma stage's and tensor-parallel rank's READY capacity and KV-host bound (#1923 review follow-up)
#1929 jonathan308 942effd915 fix(cluster): 0.10.12 — a pair's 503 is typed from the first request, says when --solo is refused, and the member's status matches its relay (D2)
#1931 jonathan308 92d3669ae9 fix(cli, cluster, provider): 0.10.12 — the words real-Mac tests found false or unclear (D1, D3, D5, D7, D8, J2-a, #1908/#1911/#1930 nits)
#1921 davidtai cd4c529e5a Refuse media decode faults with error reason media_memory_unavailable
#1941 jonathan308 118cdae448 fix(provider): 0.10.12 — Gemma with tool_choice none keeps its reasoning (port of staging #17)
#1942 jonathan308 bc816cf268 fix(cli): 0.10.12 — darkbloom status says whether fan control is on (port of staging #51)
#1943 jonathan308 b58b276f4f fix(cli): 0.10.12 — status, doctor and verify keep an older denial visible as dated history (port of staging #48)
#1945 jonathan308 b8d937a47d fix(provider): 0.10.12 — the watchdog restores an enabled provider job launchd lost (port of staging #47)
#1949 jonathan308 e017ee8b0a fix(cluster): 0.10.12 — a pair's leader backs off up to 10 min while the other Mac is away, at once when it answers
#1950 jonathan308 bc02629520 fix(cli): 0.10.12 — status says which early-ended requests are paid
#1562 jonathan308 c0d33913d0 Add verified GPT-OSS checkpoint repacking and paged replay tools
#1609 jonathan308 265f22f016 provider: bring an operator's selected models back automatically after another model blocked them
#1610 jonathan308 548a04b16c feat(desktop): recommend models from Macs with the same chip
#1934 jonathan308 ca8a020def 0.10.12 — a real memory refusal ends only that request in every pair mode; the dev fault simulates the real reading (D6)
#1935 jonathan308 8f8ebb3721 test, ci, docs: 0.10.12 — D6's review follow-up: the encrypted link, the worker tests in CI, the docs (on #1934)
#1933 jonathan308 dd17f6d550 fix(cluster, provider): 0.10.12 — a Gemma 4 pipeline serves its whole profile (lifts #1930's cap; on #1935)
#1936 jonathan308 8ace9d99ac feat(cluster, provider): 0.10.12 — Gemma 4 tensor parallel serves as many requests at once as both Macs admit
#1939 jonathan308 0d6a80d09d feat(cluster, provider): 0.10.12 — GLM tensor parallel serves as many requests at once as both Macs admit
#1940 jonathan308 52affdd1ab feat(cluster): 0.10.12 — pair-check compares each tensor-parallel lane's logprobs with its request alone
#1948 jonathan308 42d272a904 fix(provider, cluster): 0.10.12 — a restart the owner asks for before promotion is not a failed start
#1671 jonathan308 32e8b50a73 feat(provider): opt-in response before the checkpoint write finishes (off by default)
#1944 jonathan308 874b7a5dd6 fix(provider, sdk): a nullable tool parameter takes null
#1614 jonathan308 bb71a262b6 Enable guarded Gemma row-mapped NAX prefill by default (with #1608 51b79686bc and #1611 af3aed3cb3; the one SDK pin move to 093563be11)
#1964 jonathan308 bcd381e110 fix(provider): a GLM-5.3-Flash heartbeat reports only the requests its slot gate holds; a waiting request counts once (cherry-picked)
#1962 jonathan308 5aec59f466 provider: Nemotron Super takes an image under any image label; carries #1922 (David's: JSON, tools, WebP/GIF/BMP with media)
#1972 jonathan308 634a9e764d ci(cluster): the qualification checks build with the job's selected Xcode and SDK (CI only)
#1966 jonathan308 2f8786153d fix(provider): a request stops waiting for an idle calibration probe that never retires; a cancelled or overdue wait keeps the diagnostics
#1968 jonathan308 e87b65465b fix(provider): a drain stops waiting for requests the coordinator abandoned
#1974 jonathan308 f859266760 fix(provider): Gemma 4 26B QAT drafts with exact MTP acceptance; every other model keeps its rule (window 6 A/B)
#1967 jonathan308 5e9f64ccf6 fix(provider): only a stopped engine reads crashed (a sealed native fault, or a stalled native MiMo queue); arm E (window 7): no false positive
#1969 jonathan308 78ece7c13c Lightning serves plain decode under mtp_mode = "auto" (SDK 505e6bd87c; window 7)
#1971 jonathan308 8140eed8d8 the checkpoint export batches its rows; the stream's terminal comes sooner (window 7)
#1965 jonathan308 f2e6d8179d Qwen 3.5/3.6 rows that can't speculate save prefix checkpoints again (with mlx-swift-lm #398; window 8b)
#1985 jonathan308 a18c9db257 Gemma 4's MTP upgrade runs no forward on the serving model (its 3 commits cherry-picked; proven at 4793f5a15f in window 8b, then a behaviour-neutral refactor)
#1989 jonathan308 92676de197 a native MiMo step may run 120 s before the watchdog seals the engine (window 8c; proven at c282675dfb, then a behaviour-neutral refactor)
#1980 jonathan308 71cb993c83 darkbloom status lists early-ended requests by cause, paid or unpaid (exact once the coordinator sends the reason; platform #792 closes one gap)
#1999 jonathan308 0d5dfdeeb9 Qwen 3.8 27B drafts with exact MTP acceptance on a single Mac; pairs unchanged (window 8d; proven at cfcd9c5903, then comment/changelog text)
#1957 jonathan308 a5a0c71d42 darkbloom models catalog names up to three not-downloaded models this Mac could select (print only; --json unchanged)
#2002 jonathan308 76c052dc83 Nemotron Super saves native-precision prefix checkpoints: a restore equals the cold prefill bit for bit (window 11; proven at 68edb33d90, then text; the fold also fixes two (c)-only reference rows)
— — 2f62d5eed5 (cherry-picked) SDK re-pin to mlx-swift-lm ad8a5860e5 (#402): Gemma 4 refuses deadline text beside an image row only while the image still has prompt work (window 12)
#2003 jonathan308 7bd73180ff tool_choice: auto returns tool calls as generated; strict, required and named stay validated; tool_check names a refusal's check (window 13; the fold adds the review's two must-fixes)
#2005 jonathan308 fbe24b3cd9 an answer that repeats one block verbatim stops after ~2,000 repeated tokens as length (window 16)
#2009 jonathan308 385a907f20 GLM-5.3-Flash answers a JSON response_format with image or video input on one Mac
#2008 jonathan308 45860f5ebd darkbloom start serves Both without a question (never pausing, for a Mac with no saved choice); darkbloom local serves only you
#2007 jonathan308 b250f13059 simpler darkbloom cluster: no serving question, tensor parallel or pipeline chosen automatically, a short ending, "Press Enter to exit."
#2013 jonathan308 cbefdc6c81 a stopped pair keeps its last mode on restart (#2007's restart-mode defect; proven 11-12)
#2015 jonathan308 705041cdc9 #1937 on the candidate: a Gemma 4 pipeline checks its whole number of requests at load; guided setups keep one-chunk lookahead and one request at a time (pair proof FOLD-C §6)
#2016 jonathan308 37320cbf41 a client refusal's inference_error frame names its reason (refusal_reason, refusal_message)
#2017 jonathan308 3ec9c41d6c darkbloom status shows the answers in progress (running_requests)
#2018 jonathan308 f689fa5935 a held local stream counts once at the fallback width
#2019 jonathan308 f85f581616 the media gate's refusal is media_memory_unavailable; the fold takes out Qwen3.5-9B's 64-image entry (it keeps 16)
#2020 jonathan308 5d5318fee9 the loop guard on Nemotron Super's own text route
#2021 jonathan308 8f6e190f3c SDK pin → mlx-swift-lm 44ab17555f (#403 paged page runs, #404 MTP shared-event leak) + #1961 re-applied as its top commit (Qwen3.5-9B: no default penalty, exact acceptance; 9B leak proof)
#2022 jonathan308 83f4962351 Bonsai 2 27B prompts batched again on a single Mac (mlx-swift #70); pairs keep per-row arithmetic (GPU proof)
#2024 jonathan308 3f83740a3e a stale prefill estimate that keeps refusing gets one idle probe (≤ 1 per model per 2 min, never on battery), never an unprojected request (#1956 reworked; real-Mac pass)
#2030 jonathan308 d72808c3c8 darkbloom status lists the answers in progress on a Mac that serves only you (0.10.12 W1)
#2023 jonathan308 a4b05e92b6 CI only: the MiMo audio codec download resumes instead of starting over (no provider behaviour change)
#2026 jonathan308 5a1a539711 tests only: the MiMo audio and media HTTP tests wait for the media reservation to settle (the DevNet build's flake)
#2028 jonathan308 668c4af95a Bonsai 2 27B: two requests decoding together on a single Mac run per-row again at full speed (mlx-swift #71, pin b1c94d29c5); prompts and larger batches stay batched
#2033 jonathan308 16b1a18bda a pair's cluster service restarts into the installed release after darkbloom update (launchd kickstart -k, once per release in 6 h; 0.10.12 W1)
#2029 jonathan308 109fbaec75 Nemotron Super: an image arriving while the previous image's cleanup finishes waits for it (up to 1 s) instead of bouncing with 429 queue_full (SUPER-SLOT v1)
#2035 jonathan308 df6a2553df Nemotron Super: an image stacked behind a streaming image waits for it (up to 3 s, within its first-token budget) instead of bouncing (SUPER-SLOT v2, on #2029)

Also in dev since 0.10.11 and in this release: #1932 (the first D6 abort path, merged 11-09 after the 0.10.11 cut).

Not in it (0.10.13 or later): #2004 (held), #1956 (as such; reworked as #2024, which is in), #1973 (exact acceptance for every model: held for 0.10.13 pending an A/B with production-like drafting), #1975 (CI-only requant workflow; lands on master after the 0.10.12 promotion), #1946 (replaced by #1961), #1449, #1947, #1681, #1451, #1563, #1672.

Pins: libs/mlx 72dffa2d unchanged, libs/mlx-swift c633d221 → b1c94d29c5 (#70, #71, Swift only) (metallib 5b97893c… expected unchanged); libs/mlx-swift-lm 67110e7b55 → 44ab17555f (fork main: SDK #372, #301, #395, #302, #364–#367, #378, #398, #399, #402, #403, #404). Fallback if the Qwen cache must go: mlx-swift-lm #400 (reverts #398), not merged.

Checks on the head

frozen 2026-11-11 13:00Z: #1970 c24831427b (tree 7a95eab83b) + dc934f9512 (merge master) + 47415fd069 (Prepare)
release tree 56a4721fba == the dry run's (prep-on-dev-0112.sh and the classic cut + Prepare agree)
d1-gates on that tree: release version 0.10.12; changelog 0 fragments left; docs-check 212 OK; docs-impact OK;
render reproduced (4bfd9d4f…); toolchain OK (swift 6.4.2, SDK 27.2); check-date-comparisons clean;
pins 72dffa2d c633d221 ad8a5860; prod default 1; only CHANGELOG.md, changelog.d, provider-release.md,
ProviderCore.swift change vs the release branch base

Validation

Merge rules

Squash only; Release Integrity; signed commits; Kydo's approval (not the last pusher; not an author of the commits).

Master merge: master moved after 0.10.11 (#2000, the CI and test port). bc2a90d9d3 merges it with dev's tree unchanged (master's only other content was 5 CI changelog fragments and 3 doc lines dev has since changed), so squashing this PR gives exactly the tree tested on dev plus the prod-default commit.


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 09:02
…ndoned

`handleCancellation` records when the coordinator cancels an accepted request
(`coordinatorCancelledAt`; a disconnect's cancel-all is not recorded). The
drain's count (`coordinatorRequestsInFlight`, hence `lifecycleRemaining`)
still includes it for `orphanedRequestGrace` (30 s), the time a cancelled task
that ends needs to send its terminal; after that its answer has nobody to go
to, so a task that never ends no longer holds the drain until its deadline.

- The entry leaves with the acceptance (`finishInflightRequest`, the
  handler's early exits; their two `defer` branches are now one).
- `hasInflightWork` still counts the request until its task ends, so eviction
  and memory reclaim are unchanged, and a native MiMo owner still retires
  only after its consumers.
- A request nobody cancelled is never truncated by a graceful drain.

On 11-10 `darkbloom stop` waited 600 s on 20 such requests on a MiMo M3 Ultra:
the coordinator had ended and cancelled all 20; their tasks were stuck behind
an engine that stopped stepping.

Tests: the red `OrphanedRequestDrainTests` pass. CPU-only local run with the
companion fixes: 55 tests in 11 suites pass (update drain awareness, owner
pause, lifecycle barrier among them). Docs: cli-reference.md (`stop`).
Changelog fragment.

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

Tests only. On the 0.10.12 candidate they fail: auto still enables
Nemotron Lightning's embedded MTP head, and its complete checkpoints
default to balanced rows once served without that head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lightning's embedded MTP head speculates for one request only: beside a
second request every step became a hidden-returning step, and production
decode fell from 111 to 54 tok/s (11-09, served requests by rows running at
selection). It also charges about 45 KB of head state per context token, so
the slot's token budget is about an eighth of its KV: at 16:30Z on 11-10, 28
of 61 eligible Lightning slots could not admit one request with the default
32,768 output tokens, and 8 % of attempts were refused
request_exceeds_node_budget.

Under auto Lightning now decodes without the head; explicit on keeps it.
The SDK pin moves to mlx-swift-lm #378 merged with main 093563be: plain
Nemotron 3.5 decode commits by operation count, and its complete
checkpoints stay native, as beside the head, so a cache hit's output does
not move. Measured on d-inference #1714 (same change on master, M3 Ultra):
+11 % at one row, +54 % per stream at four, same outputs at temperature 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/developer/build.md
…s used (red)

The heartbeat's committed bytes move into EngineV2Bridge.heartbeatCommittedBytes,
unchanged: a native engine reports max(held requests, engine reserved). For GLM
the engine's reserved bytes keep the paged pool's retained segments after every
request retires (AdmissionV2.chargedLedgerBytes counts the physical floor), so
an idle slot reads as full while the slot gate (glm5NextCommittedBytes) would
admit. Production 11-10: idle GLM slots at 241,719 of 257,599 tokens, about
90 % of OpenRouter's GLM requests turned away.

Red: glmHeartbeatReportsTheRequestsItsGateHolds (2 of 4 expectations).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 3c5375c)
…e holds

EngineV2Bridge.heartbeatCommittedBytes reports, for GLM, the bytes the slot
gate charges (glm5NextCommittedBytes: held requests at their reserved tokens
plus gate reservations), not max(held, engine reserved). The engine's reserved
bytes keep the paged pool's retained segments after every request retires and
the engine reuses them; reporting them read an idle production GLM slot as
90-99 % full, so the coordinator's free-memory gate refused most GLM requests
while the provider's own gate would have admitted them. Other native engines
and ordinary engines are unchanged.

Green: glmHeartbeatReportsTheRequestsItsGateHolds. Docs (inference.md, GLM slot
gate) and a changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2901bc1)
…ce (red)

glm5NextCommittedBytes sums the gate reservations and every request in
active. A request enters active when the engine accepts it, but its gate
reservation goes only when submitTokenized returns, which a streamed local
request does once the engine starts it (holdHeadUntilAdmitted). So while it
waits behind another's prefill it counts twice. M5U window 3 (11-10, a 256 GB
M5 Ultra, 57k/16k requests at 116,066 tokens each): two waiting requests read
464,263 tokens and the third was refused token_budget_exhausted in all three
orderings, with room for it in memory.

The sum moves, unchanged, into a static glm5NextCommittedBytes(gateReservations:
heldBytes:). Red: aWaitingGLMRequestIsChargedOnce (two waiting read 464,263,
want 232,132; the third is refused; an id in both maps counts twice).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5e525a5)
glm5NextCommittedBytes(gateReservations:heldBytes:) counts each request id
once, at the larger of its gate reservation and its admitted charge (prompt
plus max_tokens beside its fixed bytes): its full projected need, never twice.
A request reserved at the gate but not yet in active, and one in active whose
reservation is released, each count once. The heartbeat reports the same sum.

Only a streamed request on this Mac's own API holds its gate reservation
across a suspension after the engine accepts it (holdHeadUntilAdmitted); the
coordinator path returns, and drops the reservation, without suspending.

Nothing else over-admits: the gate still refuses a request beside held ones
that would pass the slot's admissible bytes (slot_capacity_committed, typed,
before any stream), and the engine ledger and the process-memory owner are
unchanged. On window 3's figures two waiting requests now read 232,132 tokens,
a third fits (348,198 of 387,586) and a fourth is refused.

Green: aWaitingGLMRequestIsChargedOnce. Docs (inference.md, GLM slot gate) and
the changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit bcd381e)
…n-decode-0112

Candidate (c) is (b) plus dev 2474f3d, #1964, #1961 and #1962, and is
what the release will ship. No conflicts; the SDK pin stays this branch's
2b522f5b (#378 on 093563be, which (c) pins).

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

CI (`ModelCalibrationTests`, "calibration retirement preserves the original
deadline and cancellation diagnostics", cancel case) caught that a request
cancelled while it waited for the probe left without the profile's
`.cancelled` deadline decision and before-generation cancel record that
`checkBeforeServiceAdmission` writes after a completed wait.

Both early exits from `admitForeground` now run `checkBeforeServiceAdmission`
first: a cancelled request records `.cancelled` exactly as before, an
overdue one whose deadline already expired records `.expiredBeforeSubmit`,
and only a live request gets the capacity refusal. The test now also waits
for the preempted probe to retire before checking that nothing stayed held,
since a cancelled request no longer waits for that retirement.

Local, CPU only: 77 tests in 11 suites pass, `ModelCalibrationTests` among
them.

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

The refactor pass found that #1714's pair sentence cited a symbol the 0.10.12
tree no longer has. The serving slot resolves the checkpoint precision with
the model type (EngineV2SlotFactory); a pair's record precision is unchanged.

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

After a request's last token, the provider publishes the prompt's complete
checkpoint before the terminal. At the default `balanced` checkpoint precision
that export read its attention rows one row at a time and coded each on one
core; under GLM-5.3-Flash's native profile each read also revalidated the
native binding. On an M5 Ultra (0.10.12 candidate #1958 + #1964) the stream
stayed open 63.0 s after a 200k-token prompt's last token and 17.3 s after a
57k-token one, at ~28 us per latent row, with the slot charged throughout.
Production on 0.10.11 (12 h, request_profiles: terminal_built_us -
last_delta_us): Gemma 4 26B 4-8k / 8-32k prompts p50 1.24 / 1.62 s, GPT-OSS
20B 8-32k p50 1.65 s, GLM-5.3-Flash >= 128k p50 51 s; for OpenRouter requests
with prompts >= 4k the tail is 28 % of Gemma's generation time (p50 101.5 ->
68.3 tok/s) and 17 % of GLM's.

SDK pin 67110e7b -> bca3aa05 (mlx-swift-lm branch
fix/checkpoint-export-batched-row-reads, on SDK main 093563be, so the pin
also carries 093563be's merges, as #1671, #1944 and #1614 do):
- afe380af test (red): a native-bound export reads coded rows in batches; the
  row-by-row reference oracle at segment sizes 1 to whole.
- 2eb747f3 fix: read a head's consecutive rows in batches of up to 256 KiB.
- bca3aa05 perf: code a batch on up to four cores (a quarter of the active
  ones), rotate eight lanes at a time; identical bytes and first refusal.

The checkpoint bytes are unchanged, so restores and answers are exactly as
before. Docs: inference.md (donor publication), ssd-kv-cache.md (conversion
row); changelog fragment checkpoint-export-batched-rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1965 lands after #1961 in 0.10.12 candidate (c) (#1970, which merged
#1961 at ca8697d). Merging it here lets #1965 correct the #1961
statements it makes false (the review's A-G, next commit).

Conflict: docs/architecture/prefix-cache.md invariant 9 and its
failure-mode row; #1965's text is kept (a penalty row now records history
and donates). Everything else merged cleanly; the SDK pin stays #1965's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the read's share

The 25 us per-row read cost is inferred (a 28 us per-row tail against 3 us of
measured coding); the paragraph now states the measured figures only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…orrections; a restored card row's own donation

- libs/mlx-swift-lm: 56ab2e15 -> ef028fbe, mlx-swift-lm#398's merge commit
  on main. Its tree equals 56ab2e15's, so the library is unchanged.
- #1961 statements this change makes false (the review's A-G): a penalty
  row does not speculate but still stages prefix checkpoints
  (EngineV2SamplingDefaults.swift header and the 9B defaults' doc, #1961's
  changelog, inference.md). Tense fix in #1961's changelog.
- Changelog: Qwen3.8-27B (same embedded head) and Nemotron Super also start
  saving checkpoints for stop, logprobs, penalty, logit_bias and constrained
  requests; "almost no" cache holders; the pin by commit.
- inference.md names Qwen3.8-27B under the Qwen 3.5 head and scopes the
  decode bit-equality beside a recording prompt to the SDK's tests.
- Qwen35CardDefaultDonationTests: a restored card request donates the chunk
  end above its restore point, and the next turn restores that donation and
  answers as its cold run (the multi-turn agent case).
- Live test (GPU validation S1): turn 3 restores the restored second turn's
  own donation; a ~32K-token card prompt under production's complete-
  checkpoint stage caps (Qwen35CheckpointRetentionFixture.makeStore takes
  the caps); the stream tail after the last token per run; an informational
  check of a card decode beside a card prompt with the cache on and off.

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

On a runner whose default developer directory is the command-line tools (Blacksmith,
11-10 run 42864979302, both attempts), xcrun resolved the missing CLT SDK and the step
failed before compiling. run.sh now exports DEVELOPER_DIR and SDKROOT from the toolchain
step's PROVIDER_SDKROOT when it names an Xcode's SDK; local runs are unchanged. Local run
with PROVIDER_SDKROOT set: 80 tests, 0 failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…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>
jonathan308 and others added 18 commits November 12, 2026 00:33
…, the stop during the wait (red)

The independent review (review-2033.md S1-S3) found:

- S1: a `start` part runs under the AppKit host, which has already taken
  SIGTERM and SIGINT (ProviderSignalHandler: ignored, read by dispatch
  sources) before Start.run(). So the service's stop does not end the
  part during the 20 s wait after the ask, as the comment claimed; it
  sleeps the whole wait, then carries on starting.
- S2: the ask is made even when its 6 h record could not be written.
- S3: four of the reviewer's mutants passed the PR's tests: a plain string
  comparison of the versions, the 6 h record keyed on the supervisor's
  release, the record written after the ask, and launchctl print of
  another job.

New tests:
- the releases' order decides, never the text's: DevNet build 99 -> 100
  and 176 -> 177 (W1's morning case), 0.10.9 -> 0.10.10 and 0.10.12,
  0.10.9-dev -> 0.10.12-dev, and the reverse and equal cases;
- a newer installed release asks again within 6 h;
- launchctl print asks for this build's label, and the record is on
  disk when launchd is asked;
- a supervisor with no service running (before a re-exec) is left alone;
- `kickstart -k` is what launchctl is asked, and its refusal is said;
- an ask that can't be recorded is not made (red: S2);
- in a child with SIGTERM and SIGINT taken as the AppKit host takes them,
  a SIGTERM during the wait ends the process (red: S1), and after the
  wait the handlers are back.

Seams with today's behaviour: waitForStop(seconds:) is the plain sleep,
and kickInBackground takes the launchctl runner. Red here: the S1 and S2
tests; the order, record and label tests pass, and fail on the reviewer's
mutants (string order, M9, M12, M15, M17).

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

The independent review (review-2033.md, S1 and S2):

- S1: the 20 s wait after the ask did not end at the service's stop for a
  `start` part, as the earlier commit said it would. Rank 0, a
  coordinator-paired part and a solo server run under the AppKit host,
  which takes SIGTERM and SIGINT for the provider's own drain before
  Start.run() (ProviderSignalHandler: ignored, read by dispatch
  sources), so a SIGTERM was only noted: the part slept the whole wait,
  then carried on starting. Only `cluster link-follower` ended at once.
  waitForStop now gives SIGTERM and SIGINT their default action for the
  wait and then gives them back what they had (sigaction), so the stop
  ends every part at once and a part that nothing stopped starts as
  before.
- S2: the ask is made only once its 6 h record is written. A record that
  can't be written means no restart, said in the part's log, so the
  no-loop property doesn't depend on launchctl.

Docs: cluster-always-on (the coordinated update, step 4): the order is
the releases', the parent check, the record before the ask, and the
wait's signals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t its first chunk

Run 43182522534 (shard 2): `stackedImageWaitsForAStreamingImage` passed
every wait, cancellation, one-waiter and serve check, but its M10 check
compared the stacked image's reserved bytes at its first chunk with those
sampled while the first image was held before its native terminal, when the
first image's KV reservation was already gone. Both images are identical,
so the reference is now the first image's own reserved bytes at its first
chunk; a stacked image that reserved while the first's charges were still
held would see both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…efill or a stale count, binding-only stacking on wider owners (red)

From the #2035 review (S7, S8, S9):

- S7: the owner's expected media first chunk, which bounds a coordinator
  request's stacked wait, must not run low: never below 6 s, and a slow
  first chunk counts for the last 64 media requests, so a run of fast
  ones (prefix-cache hits, small images) cannot shorten the wait a slow
  image needs. Red today: 2 s after samples of 2 s and 1 s; the 9 s sample
  drops out after 8.
- S9: an owner serving more than one request leaves stacked waits to the
  image binding (its slot keeps text room); at the owner they end in a
  refusal there. Red today: the request waits.
- S8: pins two rules that already hold. An image does not wait behind an
  image still before its first chunk (held at the bridge's pre-submit
  gate; mutant V4), and a media request finished mid-stream leaves no
  streaming count, so behind text an image is refused at once (V15).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e binding only on wider owners

From the #2035 review:

- S7: `Owner.expectedMediaFirstChunk`, which bounds how long a coordinator
  request's stacked image may wait, is now the longest of the last 64 media
  first chunks (was 8), and never below 6 s
  (`NemotronSuperServingPolicy.minimumExpectedMediaFirstChunk`, which also
  replaces the unmeasured default). A run of fast first chunks (prefix-cache
  hits, small images) can no longer pull it under what a slow image needs:
  an image that waits and then misses its first-chunk timer fails, where an
  immediate 429 would have been re-routed. With 9-12 s per-attempt budgets
  the 3 s cap still dominates (budget - 6.5 s >= 3 s from 9.5 s), so the
  floor shortens waits only on tight budgets or slow Macs.
- S9: the owner-level stacked wait applies only to an owner serving one
  request at a time. A wider owner leaves stacking to the image binding,
  which keeps a slot free for text; at the owner such a wait mostly ended
  in that refusal anyway.

The red tests turn green. Docs: inference.md's Super media section;
changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c8 2023@a4b05e92b6 2026@5a1a539711 2028@668c4af95a 2033@16b1a18bda 2029@109fbaec75 2035@df6a2553df (it is redone on top)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
…anged

#2000 ported dev's CI and test changes to master on 2026-11-11; its other 22 files already match dev. Master's
only other content: 5 CI changelog fragments that dev has rendered or superseded, a Cluster Release Build Checks
row in docs/developer/build.md and Last updated lines in docs/developer/test.md and docs/operations/provider-release.md
that dev has since changed. Dev wins, so the release tree stays the one tested on dev; master becomes an ancestor of the branch.

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

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

vercel Bot commented Nov 12, 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 12, 2026 10:51am UTC
darkbloom-status Ready Ready Preview Nov 12, 2026 10:51am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 12, 2026 10:51am UTC

Request Review

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Threat model review — advisory

Reviewed head 599ee7543234 against base 22269f9dc11b.

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.

@jonathan308
jonathan308 merged commit dafd15c into master Nov 12, 2026
42 checks passed

This branch was successfully deployed

3 active deployments
Preview – eigen-homepages-darkbloom — 599ee754 Deployed Nov 12, 2026 by vercel[bot]
Preview – d-inference-landing — 599ee754 Deployed Nov 12, 2026 by vercel[bot]
Preview – darkbloom-status — 599ee754 Deployed Nov 12, 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