Skip to content

fix(provider): a native MiMo step may run 120 s before the watchdog seals the engine - #1989

Merged
jonathan308 merged 3 commits into
devfrom
fix/mimo-native-step-watchdog
Nov 12, 2026
Merged

jonathan308 merged 3 commits into
devfrom
fix/mimo-native-step-watchdog

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

For 0.10.12 (owner's call). Approved in independent review (earnings/review-1989.md: no code change required). This is the root-cause fix that follows #1967 for the MiMo owner's stall (investigation: earnings/MIMO-STUCK.md §5b). It stands alone on dev and merges cleanly onto candidate (c) #1970 3174536069, which already contains #1967.

What was wrong

A native MiMo engine ran with the SDK's default loop settings, so its step watchdog was 30 s (CBv2EngineLoopConfig.stepTimeout, EngineLoopV2.swift:365).

A healthy MiMo step can take longer than 30 s.

  • Window 8 (M5 Ultra 80-core, the default 2,048-token stripe): a 170,020-token prefill took 665 s in total, and its largest step was 15.6 s. Step walls grow with depth, about 0.64 s + 0.0838 s per 1k tokens of context. Window 7 measured the same slope.
  • Production (read-only, MiMo single-prefill rate p50 / p90 over 3 days): M5U-80 406 / 937 tok/s, M5U-64 220 / 523, M3U-80 100 / 307. So M3 Ultras prefill MiMo 3 to 4 times slower than Mac B, and the 60-core about 4 to 5 times.
  • So on M3 Ultras that step is about 47–78 s at 170k (M3U-80 47–62 s, M3U-60 62–78 s). M3 steps pass 30 s from about 63–110k tokens of context, depending on the class.
  • Who that hits: M3 Ultras carry 85 % of MiMo's routed requests: 20 of the 35 Macs that served MiMo in 7 days (13 are M5 Ultras).
  • How often today: production's first-token deadline admission refuses cold MiMo prompts of 128k tokens or more (none succeeded in 7 days). On M3 Ultras, admitted prefills peak at about 19–28 s per step, a margin of only 1.1–1.6× to 30 s before any memory pressure.

The change

  • New helper: EngineV2Factory.nativeMiMoLoopConfig() returns the SDK defaults with stepTimeout = max(30 s, prefillProgressLease) = 120 s. It lives in Factory/MiMo/MiMoV26PrefillProfile.swift, beside nativeMiMoAutomaticPrefill. Like before, it reads the legacy request-timeout rollback from the process environment.
  • Both native MiMo engines take it: contiguous (the production path) and paged (EngineV2SlotFactory+Native.swift:489, :708).
  • Not changed: every other setting stays the SDK default. Other models keep 30 s, GLM's native engine included (0.10.13: the GLM 5 Next native engine still seals for good on a step over 30 s (follow-up to #1989) #1994).
  • No compute change: the same chunks, the same graphs and the same tokens, so prefill time and output are unchanged.

What a longer limit costs. A step that never returns (a wedged eval or command buffer) is caught after 120 s instead of 30 s.

  • The engine already treats a prefill with no confirmed progress for 120 s as stalled (prefillProgressLease). The leases are checked only between steps, and they are refreshed with a fresh clock after the blocking readback.
  • When the watchdog does fire, fix(provider): a stopped engine reads crashed: a sealed native fault, or a stalled native MiMo queue #1967 reads the sealed fault as crashed at once.
  • Production found no step that never returned. In 7 days, 4 MiMo heartbeats showed an eval in flight ≥ 30 s. All 4 were on multi-model M3 Ultras during a model swap that ended in an OOM or a disconnect (EvalProbe is process-wide), not MiMo steps.
  • The asymmetry: a false seal costs MiMo on that Mac until a manual restart. A late hang detection costs 90 s on an engine that needs that restart anyway.

What 120 s does not cover: a deep prefix-cache continuation (steps pass 120 s from about 280–350k tokens of depth on M3U-60; #1995) or, possibly, heavy memory pressure. Only a seal reason from production can show the latter (#1993).

Not chosen for 0.10.12: a narrower MiMo prefill stripe (#1996, 0.10.13).

  • Window 8 on M5U-80: 1,024 tokens is never slower than 2,048: within ±1 % up to 12k tokens of context, then faster, −19 % at 160k. Its largest step at 170k is 6.2 s instead of 15.6 s. 512 costs 20–27 % on short prompts.
  • That corrects this PR's earlier estimate of "+0–4 % / +0–22 %", which window 8 disproved.
  • Why it waits:
    • it changes compute and served tokens (greedy outputs differ across stripes);
    • M3 Ultras, 85 % of the traffic, are unmeasured;
    • it needs a decision on MiMo's automatic widening to 4,096 / 8,192;
    • the knob isn't in the daemon passthrough.

Tests (red first)

Squash-merge message (use this one: it corrects two slips in c282675dfb's message)

fix(provider): a native MiMo step may run 120 s before the watchdog seals the engine (#1989)

Both native MiMo engines now run with stepTimeout = max(30 s, the SDK's
prefill progress lease) = 120 s instead of the SDK default of 30 s
(EngineV2Factory.nativeMiMoLoopConfig, beside nativeMiMoAutomaticPrefill).
Every other loop setting stays the SDK default; other models, GLM's native
engine included, keep 30 s.

Why: a watchdog trip seals a native engine for good (fail(.stepWatchdog) is
write-once), so a slow but healthy step must never reach it. A MiMo prefill
step grows with its context: on an M5 Ultra 80-core at the 2,048-token
stripe, a 170,020-token prefill took 665 s and its largest step 15.6 s
(window 8). Production M3 Ultras prefill MiMo 3 to 5 times slower, about
47-78 s for that step, and their steps pass 30 s from about 63-110k tokens of
context. M3 Ultras carry 85 % of MiMo's routed requests (20 of the 35 Macs
that served MiMo in 7 days).

Cost: a step that never returns is caught after 120 s instead of 30 s. The
engine already treats a prefill with no progress for 120 s as stalled, and a
sealed engine reads crashed at once (#1967). No compute change.

Tests: MiMoV26StepWatchdogTests (red at 30 s, green at 120 s; source pin on
both native sites). Follow-ups: #1993, #1994, #1995, #1996.

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

Refactor gate: no subagent was available, so the dedicated refactor pass is open. The independent review's refactor items 3 and 5 are in 92676de197; item 4 (passing the factory's environment) is left out, because it would change the test's source pin.


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

jonathan308 and others added 2 commits November 10, 2026 15:55
…e for good (red)

A native MiMo engine runs with the SDK's default loop settings, so its step
watchdog is 30 s (`CBv2EngineLoopConfig.stepTimeout`). When one step takes
longer, the watchdog calls `nativeShutdownState.fail(.stepWatchdog)`. That
state is write-once: `engineStep` never runs again, even after the slow step
finishes, and the slot stops serving until it is reloaded.

A healthy MiMo step can pass 30 s. Window 7 (M5 Ultra, 80-core) measured a
170,020-token prefill at 2,048 tokens per step: step walls grew from 1.2 s to
11.8 s at about 129k tokens of context (0.70 s + 0.1725 s per step, residual
<= 0.22 s), so about 15 s for the last step. Production M3 Ultras prefill
MiMo 3 to 4 times slower, which puts that step at 45 to 60 s there.

Seam, no behaviour change: both native MiMo engines (contiguous and paged)
now take their loop settings from `EngineV2Factory.nativeMiMoLoopConfig()`,
which still returns the SDK defaults. The tests ask for a 120 s limit (the
SDK's own prefill progress lease) and fail at 30 s; every other setting must
stay the SDK default, the legacy request-timeout rollback must still apply,
and a source check pins both construction sites to the helper.

Red: 2 failures in `MiMoV26StepWatchdogTests` (stepTimeout 30, not 120).

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

Both native MiMo engines now run with `stepTimeout` = the SDK's prefill
progress lease (120 s) instead of the SDK default of 30 s
(`EngineV2Factory.nativeMiMoLoopConfig`). Every other loop setting stays the
SDK default; other models, GLM's native engine included, keep 30 s.

Why: a watchdog trip seals a native engine for good (`fail(.stepWatchdog)`
is write-once), so a slow but healthy step must never reach it. A MiMo
prefill step grows with its context: on an M5 Ultra (window 7) it is
0.70 s + 0.1725 s per 2,048-token step, about 15 s for the last step of a
170k-token prompt. Production M3 Ultras prefill MiMo 3 to 4 times slower
(single-prefill rate p50/p90, 3 days: M5U-80 406/937 tok/s, M3U-80 100/307),
so their steps pass 30 s from about 70k to 100k tokens of context. M3 Ultras
carry 85 % of MiMo's routed requests (20 of the 33 MiMo Macs in 7 days).

What the limit costs: a step that never returns is caught after 120 s
instead of 30 s. The engine already treats a prefill with no progress for
120 s as stalled (`prefillProgressLease`), and a sealed engine still reads
`crashed` at once for the recovery driver (#1967). No compute changes: the
same chunks, the same graphs, the same tokens.

Green: `MiMoV26StepWatchdogTests` 4/4, with the MiMo prefill profile and
process-control tests and the prefill geometry suite (18 tests). Mutant
(the paged engine back on `.init(useLegacyRequestTimeout:)`) fails the
source check. docs-check OK.

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

vercel Bot commented Nov 11, 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 11, 2026 2:18am UTC
darkbloom-status Ready Ready Preview Nov 11, 2026 2:18am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 11, 2026 2:18am UTC

Request Review

…fill profile

Review of #1989 (`earnings/review-1989.md` §7, items 3 and 5), no behaviour
change:
- `EngineV2Factory.nativeMiMoLoopConfig()` moves from its own file
  (`MiMoV26StepWatchdog.swift`, removed) into `MiMoV26PrefillProfile.swift`,
  beside `nativeMiMoAutomaticPrefill`: both are native MiMo engine settings.
  The body is unchanged.
- Its doc comment and the test's now quote window 8: a MiMo prefill step took
  15.6 s at about 170k tokens on an M5 Ultra (2,048-token stripe), so about
  47 to 78 s on M3 Ultras.
- The docs table row points at the new file.

Not done: passing the factory's `environment` to the helper, which would
change the source pin in the tests.

CPU only: `MiMoV26StepWatchdogTests` 4/4, `MiMoV26PrefillProfileTests`,
`MiMoV26PrefillProcessControlTests` and `WedgeMonitorTests` pass (22 tests).
docs-check and the changelog check pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathan308
jonathan308 marked this pull request as ready for review November 11, 2026 02:44
@jonathan308
jonathan308 merged commit bb868fd into dev Nov 12, 2026
19 checks passed
jonathan308 added a commit that referenced this pull request Nov 12, 2026
* fix(provider): a drain stops waiting for requests the coordinator abandoned

`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>

* test(provider): Lightning serves plain decode under auto and keeps native 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>

* perf(provider): Nemotron 3.5 Lightning serves plain decode under auto

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>

* test(provider): a GLM heartbeat reports the pool its engine retains as 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 3c5375c96e265b7079a022a2c216e9e209fdaf5b)

* fix(provider): a GLM heartbeat reports only the requests its slot gate 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 2901bc1244817f6610ac970d491324514a41faf9)

* test(provider): a GLM request waiting behind a prefill is charged twice (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 5e525a55bd2ccae4da39306fc401c81703166dbd)

* fix(provider): a waiting GLM request counts once in the slot gate

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 bcd381e110344c26b9b9ef1dc11dcf126367fd26)

* fix(provider): a cancelled or overdue calibration wait keeps the deadline 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>

* docs: Lightning's native checkpoint default names the slot resolve, not 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>

* fix(provider): pin the SDK's batched, multi-core checkpoint export coding

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>

* docs(inference): state the GLM export's per-row cost as measured, not 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>

* fix(provider): pin mlx-swift-lm#398's merge ef028fbe; second-lander corrections; 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>

* ci(cluster): the qualification checks build with the job's selected Xcode 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>

* Repin the SDK to 67cf895d: the export fix merged with SDK main ef028fbe (#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>

* chore(provider): pin the SDK to mlx-swift-lm main a6599fd247 (#378 merged, 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>

* test(provider): only a stopped native MiMo engine reads crashed (red)

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>

* test(provider): the overdue calibration refusal maps to retriable capacity, 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>

* test(provider): a cancel that did not come from the coordinator keeps 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>

* fix(provider): only a stopped engine reads crashed: a sealed native fault, 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>

* test(provider): Gemma 4 26B QAT defaults to exact MTP acceptance; every 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 (ca8697d851) two tests fail, each on gemma-4-26b-qat-4bit
resolving to typical.

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

* Repin the SDK to mlx-swift-lm main 505e6bd8 (SDK_MAIN4: #398, #378, #399)

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>

* fix(provider): Gemma 4 26B QAT drafts with exact MTP acceptance; every 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 fce36b0e06 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 ca8697d851 (7 files), docs-check.sh (211), git diff --check.

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

* chore(provider): pin the SDK to mlx-swift-lm main 505e6bd87c (SDK_MAIN4: #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>

* chore(provider): pin mlx-swift-lm main 505e6bd8 (SDK_MAIN4: #398, #378, #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>

* test(provider): a real EngineV2 sealed by the SDK reads crashed

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>

* test(cli, provider): status says what stopped each early-ended request, 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>

* fix(cli, provider): status says what stopped each early-ended request, 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>

* ci: a Darkbloom Sandbox without the Darkbloom cache uses no Actions cache

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>

* test(ci): the cache gate check holds where Cluster GPU Tests is not routed

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

* docs(release): a pull-request warm on Darkbloom without its cache skips 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>

* test(provider): a fixture's checkpoint scan refuses a file its own store 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>

* test(provider): a fixture's checkpoint scan reads under the largest cap 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>

* ci: route the desktop review package through Darkbloom (Blacksmith fallback)

The manually dispatched Desktop App job that builds the unsigned macOS
review package now reads lane desktop-package (macos_arm64, fallback
blacksmith-12vcpu-macos-27) from the same route job as frontend, so a run
attempt still sends one route request. The lane count is 1 only on
workflow_dispatch, matching the job's condition, so pull requests and pushes
do not ask for a Mac.

The job is renamed from review-package to desktop-package so that its lane
has the job's name, as for every other routed job, and gets a 30-minute
timeout (routed jobs are bounded to 60). It has no secrets, no id-token and
no signing identity, and no workflow consumes its artifact.

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

* docs: correct the desktop-package route wording

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

* ci: Cluster GPU Tests shard 2 asks Darkbloom; bound the paged bench's buffer cache

GPU shard 2 peaked at 40.99 GiB used (run 42917194201), 34.26 GiB of it in
the one process of paged-verify-bench. That bench holds 0.5 GiB of K/V, but
MLX's freed-buffer cache (default limit: MLX's memory limit) kept every
prompt chunk's attention temporaries, which grow with the history and so are
never reused. The bench now bounds the cache to a ready Qwen tensor-parallel
rank's freed-buffer cache (1 GiB) and prints its peak active memory and cache
size per run.

With that, shard 2 fits 4x24 like shards 1 and 3, so it gets a lane of its
own (test-cluster-gpu-2) and the literal Blacksmith runner goes. A full run
asks for 15 macOS jobs. The lane routes once the operator adds it to the
approval's lanes.

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

* refactor pass: GPU lane docs and the approval's lanes

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

* test(cluster): bound MLX's freed-buffer cache in the tests that drive the runtime shards' memory

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

* docs: GPU shard 2's sampled memory with the bench's cache bound

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

* test(provider): a native MiMo step that outlasts 30 s seals the engine for good (red)

A native MiMo engine runs with the SDK's default loop settings, so its step
watchdog is 30 s (`CBv2EngineLoopConfig.stepTimeout`). When one step takes
longer, the watchdog calls `nativeShutdownState.fail(.stepWatchdog)`. That
state is write-once: `engineStep` never runs again, even after the slow step
finishes, and the slot stops serving until it is reloaded.

A healthy MiMo step can pass 30 s. Window 7 (M5 Ultra, 80-core) measured a
170,020-token prefill at 2,048 tokens per step: step walls grew from 1.2 s to
11.8 s at about 129k tokens of context (0.70 s + 0.1725 s per step, residual
<= 0.22 s), so about 15 s for the last step. Production M3 Ultras prefill
MiMo 3 to 4 times slower, which puts that step at 45 to 60 s there.

Seam, no behaviour change: both native MiMo engines (contiguous and paged)
now take their loop settings from `EngineV2Factory.nativeMiMoLoopConfig()`,
which still returns the SDK defaults. The tests ask for a 120 s limit (the
SDK's own prefill progress lease) and fail at 30 s; every other setting must
stay the SDK default, the legacy request-timeout rollback must still apply,
and a source check pins both construction sites to the helper.

Red: 2 failures in `MiMoV26StepWatchdogTests` (stepTimeout 30, not 120).

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

* fix(provider): a native MiMo step may run 120 s before the watchdog seals the engine

Both native MiMo engines now run with `stepTimeout` = the SDK's prefill
progress lease (120 s) instead of the SDK default of 30 s
(`EngineV2Factory.nativeMiMoLoopConfig`). Every other loop setting stays the
SDK default; other models, GLM's native engine included, keep 30 s.

Why: a watchdog trip seals a native engine for good (`fail(.stepWatchdog)`
is write-once), so a slow but healthy step must never reach it. A MiMo
prefill step grows with its context: on an M5 Ultra (window 7) it is
0.70 s + 0.1725 s per 2,048-token step, about 15 s for the last step of a
170k-token prompt. Production M3 Ultras prefill MiMo 3 to 4 times slower
(single-prefill rate p50/p90, 3 days: M5U-80 406/937 tok/s, M3U-80 100/307),
so their steps pass 30 s from about 70k to 100k tokens of context. M3 Ultras
carry 85 % of MiMo's routed requests (20 of the 33 MiMo Macs in 7 days).

What the limit costs: a step that never returns is caught after 120 s
instead of 30 s. The engine already treats a prefill with no progress for
120 s as stalled (`prefillProgressLease`), and a sealed engine still reads
`crashed` at once for the recovery driver (#1967). No compute changes: the
same chunks, the same graphs, the same tokens.

Green: `MiMoV26StepWatchdogTests` 4/4, with the MiMo prefill profile and
process-control tests and the prefill geometry suite (18 tests). Mutant
(the paged engine back on `.init(useLegacyRequestTimeout:)`) fails the
source check. docs-check OK.

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

* test(provider): refactor pass on the fixture scan: assign it in init; describe the failure without a window name

From the independent review-only refactor pass (refactor-pass-qwen-cache-w7):
- Qwen35CheckpointRetentionFixture.scan is a let assigned in init, not a
  lazy var, so concurrent first uses cannot create two scans and lose a
  store's cap;
- the scan's and the test's doc comments describe the 32K failure without
  naming the window (AGENTS.md).
No behaviour change. The review confirmed the diagnosis: production writes
and reads complete checkpoints under one config.maxReadBytes, and a
restore that throws becomes .missCorrupt and is served cold.

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

* test(cluster): bound the GLM-5.3 and Qwen prefix-depth tests' buffer cache at 4 GiB

At 1 GiB the GLM-5.3 paged KV test took 2.4 times as long: its prefill
frames' temporaries no longer fit the cache, so every layer allocated
them again.

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

* ci: gate desktop-package's npm cache like every routed job (follow-up to #1981 after #1986)

#1986 added the routed desktop-package job after #1981 was written, so its
setup-node npm cache had no gate: on a Darkbloom Sandbox that the plane gave
no Darkbloom cache it would read and write GitHub's Actions cache. The job now
runs the same 'Choose this job's Actions cache' step as frontend and passes
cache: '' when the step turns the cache off. The workflow test now requires
desktop-package among the gated routed jobs.

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

* ci: right-size the runtime shard lanes after bounding the tests' buffer cache

test-cluster-2 (runtime shards 2 and 3) asks for 4x24 instead of 12x32,
test-cluster-3 (shards 4 and 5) for 4x16 instead of 4x24. Job sizes in
docs/developer/build.md carry the fresh samples of every job.

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

* refactor(cluster tests): state BoundedBufferCache's scope and name the 4 GiB tests

The trait's comment now says that the bound never raises the limit, that
the limit is restored, and that the limit is process-wide (serialized
suites, --no-parallel selections). The trait comment and the Job sizes
text name each test that uses 4 GiB, so "GLM-5.3" no longer reads as
including the prefix SSD restore, which uses 1 GiB. The long Job sizes
sentence is split. No code change.

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

* test(cli, provider): an unpaid stop after the engine finished still ended early (red)

The independent review of this PR found two wrong things and three test
gaps; these tests pin the fixes. Each new test fails on the PR's head:

- the over-count guard drops every stop that lands after the engine
  finished the answer, whatever the stop was. A finished engine is not a
  delivered answer: the frames loop may still hold the answer, and the
  coordinator pays nothing for a lost race, a late start, a dropped
  connection or a requester-left cancel without `paid`. Each such stop
  must still count, under its own cause
  (`anUnpaidStopAfterTheEngineFinishedCountsUnderItsOwnCause`, which also
  catches two causes swapped; `aRequesterLeftCancelWithoutPaidIsUnpaid`,
  which also checks that only `paid` makes a requester-left cancel paid);
- the dropped-connection wiring had no test: reverting it would show
  every drop as paid. The `.disconnected` body moves, unchanged, into
  `handleCoordinatorDisconnected()` so a test can drive it
  (`aDroppedConnectionIsCountedUnpaid`, before and after the engine
  finished);
- "unpaid: this Mac lost its connection" blames the Mac for a coordinator
  restart too (41 of 264 such early ends in 48 h of production data): the
  line becomes "unpaid: the connection to the network dropped";
- a wrongly typed `reason` or `paid` must not drop the cancel itself
  (`aMistypedReasonOrPaidKeepsTheCancel`).

`eachCauseIsCountedUnderItsOwnName` now checks each request's bucket as it
ends (the totals alone let two swapped causes pass), and the paid-cancel
test also covers this Mac's own stop; both pass here.

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

* fix(cli, provider): an unpaid stop after the engine finished still ended early

Applies the independent review of this PR.

- The over-count guard now skips only a paid stop
  (`InferenceEarlyEndCause.isPaid`: a `cancel` with `paid`, or this Mac's
  own stop) that lands after the engine finished the answer: the
  coordinator pays it as delivered. Any other stop counts wherever it
  lands, since the frames loop may not have sent the finished answer and
  nothing is paid for it. With today's coordinator (no `reason`) the ~1 %
  over-count therefore stays, under the shared note, until the
  coordinator sends the cause.
- "unpaid: this Mac lost its connection" becomes "unpaid: the connection
  to the network dropped": a coordinator restart closes every Mac's
  socket too (41 of 264 such early ends in 48 h of production data).
- No default means "paid" any more: `cancelAllInflight(cause:)` takes its
  cause at every call site, and `handleCancellation` passes
  `.stoppedOnThisMac` explicitly where this Mac stops a request (the
  add-on hold, Me first); a local cancel that names no cause is never
  counted as paid.
- `reason` and `paid` decode leniently: a wrongly typed one is dropped (a
  mistyped `paid` reads as unpaid) and the cancel still applies.
- The completion log line says "partial settle" again for every cancel
  mid-stream: billing still takes the partial path.

Docs: the CLI reference, troubleshooting row, inference.md,
protocol-messages and the changelog fragment use the new line and say
which stops are counted after the engine finished.

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

* docs(ci): Job sizes and changelog carry every after-sample of the runtime shards

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

* docs(ci): Job sizes carry the last run's samples (runtime shard 5 11.48, provider shard 2 13.93)

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

* docs(ci): provider shard 2's memory spike falls 105 to 176 s into the job

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

* refactor(provider): keep the native MiMo loop settings beside the prefill profile

Review of #1989 (`earnings/review-1989.md` §7, items 3 and 5), no behaviour
change:
- `EngineV2Factory.nativeMiMoLoopConfig()` moves from its own file
  (`MiMoV26StepWatchdog.swift`, removed) into `MiMoV26PrefillProfile.swift`,
  beside `nativeMiMoAutomaticPrefill`: both are native MiMo engine settings.
  The body is unchanged.
- Its doc comment and the test's now quote window 8: a MiMo prefill step took
  15.6 s at about 170k tokens on an M5 Ultra (2,048-token stripe), so about
  47 to 78 s on M3 Ultras.
- The docs table row points at the new file.

Not done: passing the factory's `environment` to the helper, which would
change the source pin in the tests.

CPU only: `MiMoV26StepWatchdogTests` 4/4, `MiMoV26PrefillProfileTests`,
`MiMoV26PrefillProcessControlTests` and `WedgeMonitorTests` pass (22 tests).
docs-check and the changelog check pass.

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

* test(provider): a later backend construction runs no forward on a target it may share with a serving engine

The native KV type probe is a real forward. The MTP assistant upgrade builds its
replacement over the retained target while the original engine still serves it,
so that probe races the engine. Red on this commit: with a stateful compiled
trace held open over the target on another thread (as Gemma 4's compiled
feed-forward is on a cold per-thread compile cache), the second probe captures
the trace's placeholders and throws "[eval] Attempting to eval an array without
a primitive". The control shows an unobserved target is still probed.

(cherry picked from commit d13e85435b5dd0a738645dc883d9867b35b347d1)

* fix(provider): probe a target's native KV types once, before its first engine; later constructions reuse them

The MTP assistant upgrade (and liveness recovery) build a backend over a target
that an engine may be serving on its own queue. The native KV type probe ran a
forward there from the preparing thread. With a stateful compiled trace over the
target's weights (Gemma 4's compiled feed-forward, mlx-swift-lm #365), that trace
swaps the live parameter arrays for primitive-less placeholders, the engine's
concurrent prefill graph captures them, and its eval traps on the engine queue:
"[eval] Attempting to eval an array without a primitive".

Native KV types belong to the loaded weights: record the first observation per
target (held weakly, matched by identity and layer kinds) and reuse it.

(cherry picked from commit 4793f5a15fd6309589f862f7b86f8ca2476c0e2d)

* refactor(provider): review pass on the native KV observation (no runtime change)

- NativeKVTypeObservations is private to its file.
- probeNativeKVTypes' doc comment is trimmed; the mechanism lives in
  docs/architecture/inference.md, which now also says that targets wrapped anew
  per construction still probe on rebuild, and that only one forward may run on
  a loaded target at a time.
- The test's open trace releases after 1 s instead of 3 s.
- The changelog names the SDK that has Gemma 4's compiled feed-forward.
- A test pins that the MTP upgrade prepares the same Gemma 4 module as the
  target-only load, the identity the observation is keyed by.

The cache key (identity and layer kinds) is unchanged.

(cherry picked from commit a18c9db2571cce17594822031bd8f60cd22d8bf7)

* test(provider): Qwen 3.8 27B defaults to exact MTP acceptance; every other model keeps its rule (red)

The Qwen 3.8 counterpart of #1974, for 0.10.12. absentKeys now also expects
exact for the catalog EigenLabs/Qwen3.8-27B-4bit-mtp, and qwen38DefaultsToExact
pins exact for it and for the same target without its inline head
(EigenLabs/Qwen3.8-27B-4bit); typical for the Flash-Next artifact, the
Qwen 3.8-derived Bonsai 2 27B, a case variant, Gemma's 8-bit builds, the 35B
Qwen builds, Lightning and GLM; exact still for Gemma QAT and Qwen3.5-9B; and
that a per-model or global "typical" still wins. gemmaQATDefaultsToExact no
longer lists Qwen 3.8 among the typical models.

On candidate (c)'s head (#1970, abf82ca9ce; the same MTPAcceptancePolicy and
tests as #1974's head) MTPAcceptanceConfigTests fails with 3 issues in 2 of
its 9 tests (absentKeys on EigenLabs/Qwen3.8-27B-4bit-mtp,
qwen38DefaultsToExact on both Qwen 3.8 ids), each a Qwen 3.8 id resolving to
typical; Bonsai9BMTPPolicyTests passes 3/3.

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

* fix(provider): Qwen 3.8 27B drafts with exact MTP acceptance on a single Mac; every other model keeps its rule

The Qwen 3.8 counterpart of #1974 for 0.10.12. MTPAcceptancePolicy.builtInIsExact
adds every concrete Qwen 3.8 27B build (ModelRuntimeRequirements.qwen38ConcreteModelIDs:
the catalog EigenLabs/Qwen3.8-27B-4bit-mtp and its head-less target
EigenLabs/Qwen3.8-27B-4bit) to the Bonsai 9B candidate, Qwen3.5-9B and Gemma QAT.
Every other model keeps its built-in rule, and the per-model -> global ->
built-in precedence and the unknown-value -> exact rule are unchanged.

Scope: the rule is resolved only in EngineV2SlotFactory.makeProductionBundle,
so this reaches the single-Mac paths (network serving, Only me / --local, the
mid-session MTP upgrade). Qwen 3.8 pairs never read it and were already exact;
the benchmark session keeps its own exact default.

Why: on a single Mac a lone Qwen 3.8 request drafts (Qwen4ExpMTP speculates for
one row; 105 of 443 Mac requests drafted in a half hour of 11-09), and while
its GPU pool is down OpenRouter's GPQA runs land on Macs. Typical acceptance
keeps drafts the model would rarely have sampled; on Qwen3.5-9B and Gemma QAT
that made long answers loop to the output cap. Exact keeps the model's output
distribution (exact in distribution, not bit-identical to MTP off). Cost: a
lone drafting request decodes at about 0.93x of typical (10-07, B=1), about
1-2 % of Qwen 3.8's decode on Macs overall (review-1973).

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

Tested (CPU only, sandbox without GPU clients, prod identity, after
wait-build-slot.sh with MIN_FREE=22) on candidate (c) abf82ca9ce + this
change: MTPAcceptanceConfigTests 9/9, Bonsai9BMTPPolicyTests 3/3,
EngineV2SamplingDefaultsTests 16/16, Bonsai9BRequestPolicyTests 3/3,
BenchmarkProductionInputTests 8/8, EngineV2TranslationTests 12/12. Mutants
killed by MTPAcceptanceConfigTests: the Qwen 3.8 entry dropped (3 issues),
the catalog id only (1: the head-less target), any id containing "Qwen3.8"
(1: the Flash-Next artifact).

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

* docs(provider): refactor pass on the Qwen 3.8 exact acceptance: the built-in list, plain sentences

Text only. MTPAcceptancePolicy.builtInIsExact's comment lists the four exact
builds one per line and drops the operational note about the GPU pool (it
stays in the PR and the changelog's reasoning); the type comment is rewrapped.
inference.md's acceptance paragraph names each exact build with its reason in
one sentence each instead of one parenthesis. The changelog fragment drops the
pool sentence.

Checked: swiftc -parse of the policy and its tests, changelog.py check (70),
git diff --check; no non-comment Swift line changed.

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

* docs(provider): review fixes for the Qwen 3.8 exact acceptance: the speed cost by tokens, the evidence

Text only (review-1999's must-fix items 1-2 and its doc-comment should-fix).

- The speed line weighted by requests (105 of 443 profiled in one half
  hour). By tokens, lone drafting rows decode about half to 71 % of Qwen 3.8's
  Mac output, so the fragment now says about 4-5 % slower on single Macs,
  all of it while a Mac serves one request at a time (a lone request ~0.93x),
  and unchanged when a Mac serves several.
- The fragment no longer says typical made Gemma QAT loop (window 6 found no
  significant difference). It cites the 9B's controlled 13 of 31 against 0 of
  31, and Qwen 3.8's own production records (observational): on the 0.9.17
  (exact) -> 0.9.18 (typical) overlap, ~3.6x as many long answers ran to
  max_tokens on typical; since 11-09 all 229 capped long single-Mac answers
  had drafted, 0 of 33 that never drafted.
- It names every single-Mac path, including the daemon's MTP upgrade.
- builtInIsExact's comment drops the dated 11-09 statistic.

Checked: swiftc -parse, changelog.py check (70), git diff --check; no
non-comment Swift line changed.

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

* test(provider): Nemotron Super's prefix checkpoints default to native precision (red)

A cache hit on Super's complete SSD checkpoints should return exactly what a
cold prefill returns. Today Super's checkpoint precision resolves to the
provider-wide default, balanced, which codes older attention rows to 4 bits:
on the production weights a restore from 8,192 tokens moved reasoning answers
off the cold ones (3 of 3), while native checkpoints matched the chunked cold
prefill bit for bit (64 of 64 steps).

The resolution moves into NemotronSuperLocalPrefixCache.checkpointPrecision,
unchanged, so a CPU test can name it. The test fails: it resolves balanced.

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

* fix(provider): Nemotron Super saves native-precision prefix checkpoints

Super's per-model checkpoint precision now defaults to native, so a restore
from its complete SSD checkpoints continues a cold prefill bit for bit. On the
production weights (aggregate 56a1f05e) native restores from 8,192 tokens
matched the cold run in 64 of 64 logprob steps and 20 of 20 forced pairs,
while balanced ones (4-bit older attention rows) moved 3 of 3 reasoning
answers. The conv/SSM state was already exact.

The operator's per-model entry for Super and DARKBLOOM_CBV2_CHECKPOINT_QUANTIZATION
still win; the global setting, which a saved provider.toml spells out as
balanced, no longer applies to Super. Only Super's resolution changes: the
SDK's shared policy and every other model are untouched.

Cost: an 8,192-token checkpoint is about 249 MB instead of 204 MB. The SSD
tier has no per-model cap; the box-wide budget (free/2), the 4 TB/day write
cap and the per-file stage cap (7 GiB on >= 48 GiB Macs) are unchanged, and
a full 262,144-token native checkpoint (~2.6 GB) stays under the stage cap.

The gated checkpoint-profile live test gains a default arm (switch unset),
which expects the native layout, and fails when a native restore differs
from cold.

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

* refactor(provider): refactor pass on Super's native checkpoints (comments only)

The precision helper's comment leads with the default and its reason; the
live profile test's header is rewrapped. No code change.

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

* test(provider): the managed Super slot's durable checkpoints are native by default

CI found the managed-slot test that pinned the old default: the coordinator
path's store took the balanced layout. With the global default `balanced`, the
slot now builds the native layout and reports native checkpoint precision,
end to end through ProviderLoop's managed load. The per-model test now sets
Super's entry to `balanced`, so it still shows the operator's setting reaching
the store (the coded layout beside the assistant's exact history).

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

* test(provider): auto tool calls return as generated; strict and forced stay validated (red)

Red tests for GPT-OSS's tool_noncompliance on OpenRouter agent turns.
They fail on this commit, which only declares the API they use:

- `tool_choice: auto` without `strict`: an undeclared function, arguments
  off the schema and streamed argument text that does not parse are
  returned as generated (OpenAI/vLLM semantics) instead of failing the
  stream after its reasoning (GPT-OSS harmony through the service, the
  router, the validator and Super's local output).
- `strict: true`: a property that declares no type accepts any value;
  the `type: "string"` the ingress normalizer fills in is not enforced.
- Every remaining refusal names its check (`tool_check` on the
  inference_error frame and the local failure log line).

Guards that pass here and must keep passing: strict and forced choices
stay validated, a request without tools never receives a call,
parallel_tool_calls false holds, a call cut off by max_tokens ends
quietly, a turn without tools is unchanged.

Scaffold only (no behavior): ToolNoncomplianceCheck, InferenceFailure.toolCheck,
Prepared.declaredTools, ChatTemplateControls.declaredTools and a
classifier that returns nil.

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

* fix(provider): auto tool calls return as generated; strict checks the caller's schema; refusals name their check

GPT-OSS fails about a third of OpenRouter's agent tool turns (4-16k
prompts) with a 422 tool_noncompliance raised after its reasoning has
streamed, so the client sees a 200 and then an error and the coordinator
cannot fail over. GPT-OSS only receives tool_choice auto.

- `tool_choice: auto` without `strict` returns the model's calls the way
  OpenAI and vLLM do (`Prepared.returnsAutoCallsAsGenerated`): an
  undeclared function and arguments off the schema pass
  `ToolConstraintValidation.validate`; a streamed call whose arguments do
  not parse keeps the raw text it already sent and is closed, so the
  response finishes with tool_calls (`NativeToolStreamRouter`). Any
  function declared `strict: true`, a request without tools, required,
  named and none choices and parallel_tool_calls false keep today's
  validation. One rule in the validator covers every family and path
  (GPT-OSS, Gemma, Qwen, Super, MiMo, GLM, Flint, Bonsai; native and MLX).
- Strict auto checks each call against the declarations as the caller sent
  them (`Prepared.declaredTools`, from the body before ingress
  normalization), so the `type: "string"` filled into a typeless property
  for the templates is no longer enforced.
- A tool_noncompliance failure carries `tool_check` (undeclared_name,
  schema, malformed, diverged, unterminated, parallel, response_format,
  forced_choice, native_output, other) on the inference_error frame and
  the local failure log line. Today's coordinator ignores the key; storing
  it is a coordinator follow-up.

Docs: inference.md (streamed auto tool calls), protocol-messages.md
(inference_error.tool_check); changelog fragment.

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

* docs(provider): review fixes for Super's native checkpoints: the SSD reference, the reference rows, the changelog

Text only (review-2002).
- ssd-kv-cache.md (must-fix): the managed Super slot writes
  native-paged-full-recurrent-v1 by default. The global setting does not
  apply; Super's own per-model entry or the switch selects a profile, whose
  affine layouts the paragraph keeps. Native files can be deltas on the
  target-only owner; the speculating owner's MTP history keeps complete files.
- Super in the reference rows: a provider.toml row for Super's per-model entry
  (cli-reference.md), a row in configuration.md's managed Super slot table,
  and a sentence in kv-cache-quantization.md's introduction. The rows that
  candidate (c) rewrote for Lightning are left alone, so the fold stays clean.
- Changelog: what was measured (3 of 3 ~8,600-token reasoning prompts restored
  from 8,192 = uncached, bit for bit, on an M5 Ultra; balanced changed all 3),
  the sizes at 8,192 and 30,720 tokens, and that an explicit global k4v4,
  k8v4 or k8v8 does not apply to Super either.

The pages' "Last updated" stamps are unchanged: candidate (c) restamps all
four on the same line, so a restamp here would conflict at the fold.

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

* fix(provider): validate a call cut off by max_tokens; name the violation texts once; the new tests compile

- A call parsed from a frame that max_tokens cut off may be missing
  arguments, so it stays held to the declarations without `strict` too
  (`ToolConstraintValidation.validate(_:prepared:truncated:)`): the
  complete-call terminal passes `stopReason == "length"`, the streamed
  router the end-of-generation flag. Today such a call failed when off
  schema; it still does.
- The violation texts the validator and the streamed router throw, and
  `ToolNoncomplianceCheck(violation:)` reads, are one set of constants.
- Test fixes from the first local build: the red commit's two test files
  did not compile (a redeclared local; an argument order that could not
  bind). New test: a cut-off call is still validated.

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

* test(provider): auto validator tests declare strict; the GPT-OSS fixture is valid JSON

- GemmaToolConstraintTests exercises the `auto` JSON-Schema validator
  (tuples, bounds, multipleOf, patterns, Unicode identity, normalized
  boolean schemas…). Without `strict`, `auto` now returns calls as
  generated, so its automatic requests declare their tools `strict`; the
  assertions are unchanged.
- The GPT-OSS service fixture's `strict` placeholder produced invalid JSON.

Local run of the focused suites before this commit: 37 Gemma validator
tests and the 10 GPT-OSS service cases failed for these two reasons only.

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

* test(provider): the GPT-OSS service case asks for no usage frame; the router's call list says what it holds

- CI shard 1 (run 42998445966) failed only at gptOSSAutoCallsReturnAsGenerated's
  usage expectation: its request does not set stream_options.include_usage,
  so no usage frame is sent. Every other expectation (name, raw arguments,
  finish_reason tool_calls, no error) passed for all 7 cases.
- Refactor pass: `completedToolCalls` documents that it holds the calls
  whose frame parsed and that validation accepted.

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

* fix(provider): a Gemma Mac decoding an image request accepts deadline text

Re-pin libs/mlx-swift-lm 505e6bd87c -> ad8a5860e5 (Layr-Labs/mlx-swift-lm#402, merged into main;
independently reviewed): the SDK's first-token projection refuses text (multimodal_work) only
while a row with bidirectional media blocks still has prompt work, not for the
image row's whole life. Only Gemma 4 media has such blocks; every other
model's media is causal and was never refused this way.

The SDK diff is one projection condition plus a doc comment and tests; no
API change, so the provider builds unchanged.

Docs: the multimodal_work row in docs/reference/prediction-decision-telemetry.md.
Changelog: changelog.d/gemma-image-decode-admits-text.md (changelog.py check: 111).

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

* test(provider): three more auto validator tests declare strict

CI run 43001137125 on 18eac522ec: provider build and shard 1 green;
shard 2 failed only "auto admits finite decimal enums and enforces them
post-generation" and "typeless finite schemas keep original semantics
through normalization" (3 issues), whose request bodies declare their
tool without `strict` and expect the auto validator to refuse. They now
declare `strict`, as does the allow-all case beside them; assertions are
unchanged.

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

* Prepare provider 0.10.12

Version 0.10.12; the 47 changelog.d fragments rendered into CHANGELOG.md
(scripts/changelog.py render --version 0.10.12 --date 2026-11-11, 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 dc934f9512 (the 0.10.12 release branch's squash).

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

* test(provider): a loop guard ends a verbatim-repeating answer as length (red)

Answers that degenerate into verbatim repetition run to the output cap
(131,072 since the raise): Qwen 3.6 2.6 % of answers in an hour, Gemma's
greedy Tau2 thinking loops, window 7's Gemma q63 ("Wait, the reaction is:
CO + Cu -> CO2 + Cu (No).").

Red tests and the API they need, with no behaviour yet:
- GenerationLoopDetector: exact token periodicity (a block of 8-512
  tokens repeated back to back over >= 2,048 tokens and >= 8 repeats,
  checked every 64 tokens, never before 4,096).
- GenerationLoopGuard: the detector, off for the rest of the row once
  its text shows a tool-call frame.
- GenerationLoopGuardPolicy: the per-model enable list,
  DARKBLOOM_LOOP_GUARD, never on a constrained/JSON answer or a forced call.
- The bridge carries a guard to the row's pump; the pump must stop the
  row in the engine and end it as `length` with the tokens produced.

Here the detector never fires, the policy returns no guard and the pump
ignores it, so the new suites fail.

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

* test(provider): the loop guard type is public, as submitTokenized is (red)

CI run 43064967484 on 3f18f31f6f stopped at the build: the public
`submitTokenized` overloads take a `GenerationLoopGuard`, which was
internal. The type is public; its members stay internal. Still red:
no behaviour yet.

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

* feat(provider): a loop guard ends a verbatim-repeating answer as length

- GenerationLoopDetector: every 64 generated tokens (never before 4,096),
  fire when the last span tokens repeat a block of p tokens back to back,
  8 <= p <= 512, span >= 2,048 and span >= 8p; the reported period is the
  block's smallest. A check reads at most the last 4,096 tokens and stops
  at the first mismatch per period (~35 ns per token amortized, CPU).
- GenerationLoopGuard: off for the rest of the row once its text shows a
  tool-call frame (also split across deltas).
- GenerationLoopGuardPolicy: on for gemma4/gemma4_text, qwen3_5/
  qwen3_5_moe/qwen4_exp(_text), gpt_oss, nemotron_h (Lightning),
  nemotron_h_omni (Super), glm5_next, mimo_v2; never with a token
  constraint, a forced call, a JSON response_format, or tools whose
  parser reads untagged calls. DARKBLOOM_LOOP_GUARD=0 turns it off; a
  comma list of model_types replaces the default list.
- The bridge pump (every engine: MLX slots, native GLM/MiMo, Super,
  pairs) stops the row in the engine without the caller's cancel
  bookkeeping and ends the engine's cancelled terminal as `length` with
  the engine's usage: no error frame, paid as a completion. One log line
  (engine_v2_loop_guard) and an engine-health event carry the model and
  the period.
- The scheduler's text path resolves the guard per request.

Offline, on 1,044 of our own transcripts (6.0M tokens; M5U windows
2-14, GPQA arms, studio gates, tool runs): 0 of 813 answers that ended
on their own would have fired; every exact loop that ran to its cap or
wall fired (period 1-332 tokens).

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

* refactor(provider): loop guard refactor pass

- The detector keeps its normalized check interval instead of
  re-deriving it per delta.
- The policy lowercases the model_type once and says why MiMo always
  gets its parser's tags; the guard says what turns it off.
- The stop's log line is shorter (model, type, period, span, tokens).

No behaviour change: the standalone detector/guard harness (the new
suites' cases and 10 mutants) and the 1,080-record cross-check against
the Python reference give the same results.

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

* test(provider): the drafted-delta loop test requires its detections instead of unwrapping them

The red run (43067823198, shard 2) showed every detector expectation
failing as designed, then a force unwrap of the missing detection
stopped the test process before the policy suite ran. `#require` fails
the one test instead.

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

* cluster: simpler onboarding for darkbloom cluster (owner notes 1-5)

- The first Mac's wait ends on a set-apart, stressed callout:
  "→ Now run `darkbloom cluster` on the other Mac" (cluster local names
  its own command); plain transcripts get the same line between blank lines.
- darkbloom cluster serves Both with no serving question: through Darkbloom
  with the l…

This branch was successfully deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant