Skip to content

Release dev into master: provider 0.10.11 - #1859

Merged
jonathan308 merged 1520 commits into
masterfrom
release/dev-to-master-0.10.11
Nov 9, 2026
Merged

jonathan308 merged 1520 commits into
masterfrom
release/dev-to-master-0.10.11

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Ready for review. The DevNet build of this head's dev passed its gates (below). Merge with squash, as #1809, so no dev commit enters master's history.

What this is

The provider 0.10.11 release: dev since v0.10.10, into master. Head 695a3b4b59 on release/dev-to-master-0.10.11:

Package.swift keeps master's prod default; version stays 0.10.10 here; "Prepare provider 0.10.11" bumps it and renders the changelog (66 fragments). Squashing this PR moves master from #1837's partial snapshot to the validated dev; it supersedes #1837's sync.

Behaviour changes for production Macs (read first)

  • Macs serving with --local-endpoint, including the desktop app's "Alongside the network", pause Darkbloom while their owner uses the local API (off switch: me_first = false under [local] in ~/.config/darkbloom/provider.toml, then darkbloom restart). A pair paused for its owner keeps its base reward on the coordinator that ships with 0.10.11 (darkbloom-platform#709 onwards).
  • An unknown reasoning_effort is a typed 400 (invalid_reasoning_effort) on every model that reasons; every standard value is accepted.
  • Cut, don't refuse: an oversized max_tokens is cut to the window on one Mac and on every pair; OpenRouter requests the coordinator undercounts on GLM-5.3-Flash, MiMo V2.6 and Nemotron Super are served cut instead of refused. A request the memory can't hold is a 503 before any SSE header.
  • Known issue D6 (rare, fixed in 0.10.12): a pair, in tensor parallel or pipeline mode, can restart once (about 1 minute; in-flight requests fail) if a member Mac runs out of memory partway through a long request. It has existed since October and is not fixed in this release. Gemma's pipeline is capped (fix(cluster, provider): a Gemma 4 pipeline serves the memory plan's request; long requests go to tensor parallel (D6) #1930), which makes it rarer there; Gemma tensor parallel's whole context makes it possible on long Gemma requests, as it already was on Qwen tensor parallel.
  • One local port and one key per Mac (Macs updated from 0.10.10 keep 8000).
  • Gemma 4 pairs: tensor parallel serves the whole 262,144-token context (prompts to 262,143, answers to 32,768; proven on real Macs at 64K, 128K and a full-window length). Pipeline serves 65,536 with prompts up to 32,768 and refuses longer requests at once with a typed 400 (prompt_too_long / context_length_exceeded); its whole context waits for 0.10.12 (fix(cluster, provider): a Gemma 4 pipeline serves the memory plan's request; long requests go to tensor parallel (D6) #1930; proven on real Macs on .171). The release facts change accordingly: Gemma's pipeline qualification carries a 32,768 prompt limit.
  • GPT-OSS effort (provider: Gemma 4 thinks for an effort, GPT-OSS renders its Harmony level; the coordinator's effort table is checked against the provider's (B-J2-1, stacked on #1909) #1916): every reasoning level works for GPT-OSS, including through OpenRouter, once the Mac runs this release (high, xhigh and max render high); a Mac still on 0.10.10 renders high as medium until it updates. There is no OpenRouter medium cap (owner, 2026-11-09; darkbloom-platform#721 drops it).
  • Rollout order: coordinator first, for darkbloom-platform#721's matching effort mapping and typed 400 and the contracts snapshot: squash this PR → Prepare PR squash (P) → snapshot into [bug] doctor's "model fits in RAM" check reports a false FAIL: it samples free memory once while the load gate evicts and resamples #721 and merge it → deploy the coordinator → tag v0.10.11 on P (the tag run publishes by itself). See release-0.10.11/RELEASE-ORDER-0.10.11.md.

Pull requests in this release (90)

30 from the first cut (dev 9640170620; #1828 and #1831 shipped in v0.10.9 through #1809 and are not counted; #1841 is 0.10.12):

PR What
#1819 Qwen3.8-27B pairs decode with the speculative assistant through Darkbloom (includes #1718)
#1820 Qwen TP decode: submit every 8 layers (about −15 % per token solo, −13 % at 4)
#1822, #1824 Gemma TP: build greedy and sampled steps one ahead
#1827 tp-check gemma run --layer-stride (measuring tool)
#1830, #1832, #1834 Qwen TP build-ahead protocol and native executor (gated, off by default)
#1836 Release each chunk of a chunked file read
#1839 A pair's local API ends a rejected stream with the single-Mac error chunk
#1842 Gemma TP prefill: one shared expert dispatch per prompt chunk (1.87×, same tokens)
#1844 A pair takes the requests it can serve and reports its speed
#1852 App Attest stop bound test
#1814, #1817, #1821, #1825, #1829, #1833, #1838, #1848, #1849 CI, tests and fixtures (no provider behaviour change; #1829 also bounds update hash memory)
#1855 Sync master (v0.10.10) into dev
#1846 DevNet and production no longer share a pair on one Mac (DevNet pairs unpair once)
#1856 CI cluster test plan launch timing (test only)
#1843 Gemma TP prefill: prompt chunks in row parts, sums issued as built (off by default)
#1854 Qwen TP: assisted lanes prefill merged prompt steps (the wavefront; same bytes)
#1857 #1846's nits: a production member refused for the other app's GPU hold exits 76
#1858 The cluster setup lists no tok/s; after an update the advice ranks by earlier builds' measurements
#1851 Decode a video again when its reader fails, and keep the cause (David; moves the SDK pin to mlx-swift-lm#389's merge)

Not in 0.10.11: #1841 and mlx-swift-lm#386 (Gemma one-Mac adaptive depth, moved to 0.10.12).

Pins: libs/mlx 72dffa2d, libs/mlx-swift c633d221 unchanged; libs/mlx-swift-lm 32f5c744 → 7994762ef9 (fork main with #388, #389, #390; Swift model code, no Metal kernels).

60 since (to 12c88dfa7b):

PR Author What
#1930 jonathan308 fix(cluster, provider): a Gemma 4 pipeline serves the memory plan's request; long requests go to tensor parallel (D6)
#1927 jonathan308 docs: a pair paused for its owner keeps its base reward on the 0.10.11 coordinator (darkbloom-platform#709)
#1925 davidtai Wait for the native cancel event in the local disconnect cancellation test
#1924 davidtai Follow only same-origin and Hugging Face CDN redirects for MiMo prompt fixtures
#1923 jonathan308 cluster, provider: a Gemma 4 pair serves its whole 262,144-token context in both modes, cuts an oversized max_tokens, and refuses in one Mac's words before any SSE header — R-FULL D2/D3
#1919 davidtai Wait for the release and engine cancel events in the MiMo cancellation test
#1917 davidtai ci: hourly full CI (dev) run of dev (workflow_dispatch selects every suite)
#1916 jonathan308 provider: Gemma 4 thinks for an effort, GPT-OSS renders its Harmony level; the coordinator's effort table is checked against the provider's (B-J2-1, stacked on #1909)
#1914 jonathan308 provider: this Mac's model list says which models reason, and OpenCode follows it (B-J2-1 part 2, stacked on #1909)
#1913 jonathan308 fix(checks): the diagnostics and placement-flow runners compile again, and CI runs them
#1912 jonathan308 provider: a streamed local request that can't get this Mac's memory is a 503 before any header (R-FULL PR B; stacked on #1910)
#1911 jonathan308 tools: say what happened to your default model, name the URL and "(your pair)" (journey 2a J2-e/f/g; stacked on #1904)
#1910 jonathan308 provider: me first re-routes Darkbloom work that hasn't answered when your request waits (R-FULL PR A)
#1909 jonathan308 provider: every model that reasons takes every reasoning effort, as its own level (B-J2-1)
#1908 jonathan308 cluster, status: a paired start says what it does, Apple's check reads as progress, and both Macs show the pause, from now
#1907 jonathan308 test(provider): pin cluster local's own model list and the pair's 5 s progress cadence (#1897 review follow-up)
#1906 jonathan308 doctor: a Local API section first, and no network checks on Only me (LS-6, R17)
#1905 jonathan308 desktop, cluster: the app on a paired Mac offers Start serving, never Autopilot, and its lines say what happened
#1904 jonathan308 tools: darkbloom --opencode / --hermes wait for the model to load, and a start says when a tool points elsewhere (LS-4)
#1903 jonathan308 cluster: darkbloom cluster leave leaves a pair in one command, from either Mac (LS-6, R14)
#1902 jonathan308 cli: darkbloom route this-mac/my-macs/my-macs-first saves the route (LS-6, R12)
#1901 jonathan308 cli: darkbloom --opencode and darkbloom --hermes (short for start --opencode / --hermes)
#1900 jonathan308 LS-1 PR-c: a simpler start — Autopilot only for the network, a picker that opens on what fits, no key on screen
#1899 jonathan308 LS-1 PR-b: Only me serves in the background, and the service always serves the saved choice
#1897 jonathan308 provider: this Mac's /v1/models says what each model takes, and a long prompt shows progress (R-FULL D7, D8; stacked on #1893)
#1896 jonathan308 LS-1 PR-a: one local API port per Mac, and a local API that can't listen says why
#1895 jonathan308 cluster: the Mac that follows no longer says a serving pair hasn't served
#1894 jonathan308 cluster: every Mac of a pair answers locally in Both, me first (member relay, one key per Mac) — LS-3
#1893 jonathan308 provider: a single Mac serves its model's whole window and holds every request to it
#1892 jonathan308 cluster: on a paired Mac start starts the pair, --solo serves alone, no start asks without a terminal, and status says what this Mac serves
#1891 jonathan308 docs: the first docs lead to local use, with one set of mode names (LS-5 docs)
#1890 jonathan308 fix(provider): the update check asks again, 15 s a try, and says what failed
#1889 jonathan308 cluster: the memory re-plan never starts a pair its owner just stopped
#1888 jonathan308 cluster: a pair stays started when its automatic stop after an update fails
#1887 jonathan308 cluster: darkbloom restart on a stopped pair never starts single-Mac serving
#1885 davidtai ci: restore the prompt parity fixtures from a verified cache
#1884 jonathan308 cluster: Both, me first for a pair in darkbloom cluster (local-first L5b-cli)
#1880 jonathan308 cli: darkbloom start --opencode / --hermes (I-D2b, stacked on #1878 + #1873)
#1870, #1877, #1879, #1876, #1878, #1873, #1875, #1881 jonathan308 local-first L0–L5b (carried by #1880 and #1884)
#1861, #1862, #1864, #1865, #1866, #1867, #1868, #1869, #1871, #1872, #1874, #1882, #1883, #1886 davidtai media reader retries (#1867, #1886, #1871), CI and test fixes

Pins: libs/mlx 72dffa2d, libs/mlx-swift c633d221 unchanged; libs/mlx-swift-lm 32f5c744 → 67110e7b55.

Checks on the head (B2.1)

b2-check.sh 695a3b4b59 12c88dfa7b (pre-push, 2026-11-09 ~10:04Z):
head contains master (465d589b71), Prepare 0.10.10 102ba6f74b and dev 12c88dfa7b
prod default count 1; submodule pins == dev's; Package.swift = master; BuildEnvironmentTests.swift: no ?? "dev", one ?? "prod"
toolchain OK (swift 6.4.2, DARKBLOOM_PROVIDER_TOOLCHAIN: release, build_sdk_version 27.2); check-date-comparisons.py clean
head version "0.10.10"; rendered fragments back: none; pending fragments: 66
the new merge signed (G); origin/master..head: 1,519 commits verified on GitHub (+ the merge)

Validation state

Merge rules

Squash only; Release Integrity; signed commits; one approval from David, Gajesh or Kydo (not the last pusher).


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

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
d-inference Error Error Nov 9, 2026 10:21am UTC
d-inference-console-ui-dev Error Error Nov 9, 2026 10:21am UTC
d-inference-landing Ready Ready Preview Nov 9, 2026 10:21am UTC
darkbloom-status Ready Ready Preview Nov 9, 2026 10:21am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 9, 2026 10:21am UTC

Request Review

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Threat model review — advisory

Reviewed head 695a3b4b59a1 against base 465d589b7144.

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 and others added 14 commits November 7, 2026 20:15
UX audit R14: leaving a pair takes four steps (`cluster pair --status`,
read a pin, `cluster pair --forget <pin>`, `start`), and nothing says
what happens to the other Mac.

The tests ask for `darkbloom cluster leave [--yes]`, from either Mac:
- it parses with `--yes`/`-y`, and `darkbloom cluster --help` lists it;
- a Mac in no pair has nothing to leave (exit 0, nothing touched); a
  pairing record that can't be read changes nothing (exit 1);
- in a terminal it says what leaving does, then asks "Leave the pair?
  [y/N]"; Enter, no, anything else or the input's end change nothing;
  without a terminal it refuses unless `--yes`;
- yes stops this Mac's part first (the pair on both Macs while the other
  Mac answers, then this Mac's cluster service), then forgets every
  pairing of this Mac, in that order; a part that doesn't stop leaves
  the Mac paired, and a pairing that can't be forgotten is said;
- it ends with what happens to the other Mac (it stopped too, or wasn't
  reached; it keeps its pairing until `cluster leave` there), how to
  serve each Mac alone (`start`) and how to pair again (`cluster` on
  each Mac); single-Mac serving here keeps running and is said so;
- the stop, as `darkbloom uninstall` already takes it for the pair, no
  longer says "Run `darkbloom cluster` to start it again" or "stop
  --service there too" when this Mac is leaving (`finishStop(leaving:)`).

Seams, with today's behaviour: `Cluster.Leave` and `ClusterLeaveFlow`
exist but aren't reachable and do nothing; `finishStop` takes `leaving`
and ignores it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cluster: on a paired Mac `start` starts the pair, `--solo` serves alone, no start asks without a terminal, and status says what this Mac serves
Brings #1896, #1889, #1895 and #1892 in, so the review's fixes for #1896's
new long-form line apply to today's code.

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

`darkbloom --opencode` / `--hermes` set the tools up as soon as the local
API answers, before the model loads, so the limits they write are the
catalog's or none ("run it again once the model is loaded"); and after a
port or key change nothing says the tools point elsewhere (UX audit R11).
Tests first; the skeleton adds only the names the tests use, unwired:
ModelLoads, InterruptWatch, LiveLine and ModelLoadWait (it never waits),
ToolPointer and ToolAddress (they read nothing), the planners' `pointer`,
`Start.noteToolsPointingElsewhere` (it says nothing), the step's
`modelLoadWait` (unused), `runAgainOnceLoaded` (today's words),
`ToolIntegrationStep.command` (#1901's helper) and `LocalEndpoint.tokenPath`
made public.

- ModelLoadWaitTests (fakes: a scripted daemon state, a clock that moves
  only between looks, no file, port or signal):
  - a model still loading: the step waits, reads `/v1/models` again, and
    writes this Mac's window (262,144) instead of the catalog's 131,072;
  - nothing loading (or Only me, which loads before it listens): no wait;
  - a provider that hasn't said what it loads yet is asked again a second
    later; no word at all, or nothing loaded and nothing to load: set up
    after that second look;
  - the deadline: one ✗ line naming `darkbloom --opencode --hermes` and
    `darkbloom status`, nothing written;
  - Ctrl-C: nothing written, and the start says so;
  - a model it waited for that didn't load: nothing written, `darkbloom
    status` says why;
  - one live line on a terminal (drawn in place, erased at the end); none
    without one, only a line as it starts and one as it ends;
  - only the API's own process's state counts; models this Mac doesn't
    list, or that are loaded, aren't waited for; the live watch takes the
    signal only while it waits (SIGUSR2 stands in for SIGINT).
- ToolAddressTests: a later start on another port says so in one line
  with `darkbloom --opencode --hermes` and changes no file; only the tools
  set up are named; another key file is named, the same key in another file
  isn't; mixed misses get one line; no line with a tool flag or without a
  local API; the planners' files read back (a key file under ~, and one
  with a quote and a space in its path).
- StartToolIntegrationTests: the line for a model left unloaded names it,
  `darkbloom status` and the short command.

Red (prod identity, CPU-only, sandboxed): ModelLoadWaitTests 11 of 12 fail
(28 issues), ToolAddressTests 5 of 6 (11 issues), StartToolIntegrationTests
1 of 16 (2 issues). Passing on both sides by design: the live line's words
and clipping, and no line with a tool flag or without a local API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1896 (merged into this branch from dev) added a user-facing line with the
long form: `start --port <n>` replacing a saved port says ``Local API port:
8007 (saved, instead of 8005: tools set up for 8005 need `darkbloom start
--opencode` or `--hermes` again).`` (`LocalAPIPort.note(named:saved:)`).
Its two pins now expect `darkbloom --opencode` (#1901 review, the verdict).

Red (prod identity, CPU-only, sandboxed): LocalAPIPortTests 1 issue,
LocalAPIOnePortTests 1 issue: exactly these two expectations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
UX audit R14: leaving took `cluster pair --status`, a pin,
`cluster pair --forget <pin>` and `start`, and nothing said what
happens to the other Mac.

- `darkbloom cluster leave` reuses the steps `darkbloom uninstall`
  already takes for the pair, in its order:
  1. this Mac's part stops: `Cluster.Stop.leavePair`, now shared with
     uninstall (its closure moved there unchanged): the pair stops on
     both Macs and this Mac's cluster service leaves login, as
     `cluster stop --service`; when the pair can't stop together, only
     this Mac's part, as `cluster stop --local-only`;
  2. every pairing of this install is forgotten with
     `cluster pair --forget <pin>` (`ClusterUnpairing`, as Start over):
     the leading Mac tells the other Mac first, which reclaims its pair
     cache and stops its part.
- In a terminal it says the pair in one sentence and what leaving does,
  then asks `Leave the pair? [y/N]` (No by default); without a terminal
  it refuses unless `--yes`. A part that doesn't stop leaves the Mac
  paired (exit 1, "try again"); nothing else changes: single-Mac
  serving, models and the cable port setup stay.
- It ends with what happens to the other Mac (stopped too, or not
  reached; it keeps its pairing until `cluster leave` there), that
  `darkbloom start` serves each Mac alone (or that single-Mac serving
  keeps running here), and that `darkbloom cluster` on each Mac pairs
  them again. A Mac in no pair has nothing to leave; an unreadable
  pairing record changes nothing.
- `Cluster.Stop.turnServiceOff` is `cluster stop --service`'s path,
  unchanged, as a function; `finishStop(leaving:)` drops "Run `darkbloom
  cluster` to start it again" and "stop --service there too" while a Mac
  leaves (uninstall too: its summary says what to do on the other Mac).
- `darkbloom cluster --help` lists `cluster leave`.

Docs: cli-reference (`darkbloom cluster leave`, uninstall's step 2),
two-mac-cluster.md (Leaving the pair, Undo); changelog fragment
`cluster-leave.md`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d, true lines, `start --solo` when away (red)

#1892's review, follow-up (`review-1892-1895.md`, last section).

The app's Autopilot enroll on a paired Mac was a dead end. Onboarding starts
with Autopilot. Its `autopilot` action first downloaded a model, then ran
`start --autopilot …`, which the pair refuses in three CLI lines. Retry
repeated them, and nothing pointed to Start serving, which starts the pair.

- DesktopAppOnAPairedMacTests (provider):
  - autopilotIsRefusedFirst: the app's `autopilot` and `autopilot_models` on a
    paired Mac are refused in `DesktopBackend.arguments(for:)`, ahead of
    `runAutopilot`'s downloads. The words are the app's: "This Mac serves in a
    pair; Autopilot isn't available for pairs yet. Use Start serving." On an
    unpaired Mac the enroll is unchanged.
  - snapshotOffersStartServing: the snapshot on a paired Mac reports no
    `autopilot` capability (the app then offers its plain Start, as it already
    does for a runtime without Autopilot) and a `pair` with its model. On an
    unpaired Mac: `autopilot`, and `pair` null.
  - appStartLinesAreTrue: the app's Start line says what happened. A serving
    pair "serves" its model (never "started" one that already ran); after exit
    3 the pair "was asked to start … and isn't serving (above)", not "serves".
    The app's `--local-endpoint`, which a pair doesn't take, is said: "No local
    API was added on this Mac: …". A pair serving Only me has one here, so
    nothing is said.
  - otherMacAwayNamesSolo (the review's nit 4): `.otherMacAway`'s Next names
    `darkbloom start --solo` once this Mac's part was given up, and not before
    (it would be refused then).
  - appStartStartsThePair now pins those words too.
- desktop-app:
  - onboardingStartPlan: a paired Mac's start action starts the pair with no
    model and no local API of its own;
  - onboarding: a paired Mac's start page offers "Start serving" for the pair,
    with its model, never Autopilot, and sends that action.

On 9f41e9c: DesktopAppOnAPairedMacTests fails 4 of 4 (6 issues), and
appStartStartsThePair 1; the two app tests fail. Each for the reasons above
(the enroll runs, and the refresh says "Turn on Autopilot first"; the snapshot
says autopilot and no pair; the old line; no hint).

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

`darkbloom --opencode` / `--hermes` now wait, before they write a tool's
config, while the local API's own process still loads the models this Mac
lists for its start; then they read `/v1/models` again, so the tools get
the limits this Mac gives each model (its window) instead of the catalog's
or none. And a start without a tool flag says, in one line, when a tool set
up for Darkbloom points elsewhere, never changing its file (UX audit R11).

- ModelLoadWait (ToolIntegration): the API's process's own daemon state
  (`ModelLoads.reported`: only by the pid in `local.json`), its start's
  pending models and its loaded ones. Only me's server loads before it
  listens, so it isn't waited for; a provider that names nothing loaded and
  nothing to load is asked once more a second later (its API may answer
  before it says what it loads). A model that isn't loading (unloaded when
  idle, or loaded only on a request) isn't waited for: one line names it,
  `darkbloom status` and `darkbloom --opencode`.
- One live line on a terminal (`⠙ Loading Gemma 4 26B before setting up
  OpenCode… 42s`, erased at the end); without one, a line as it starts and
  one as it ends. At most 10 minutes. The deadline, a model that didn't
  load, or Ctrl-C (`InterruptWatch` takes SIGINT only while it waits, then
  gives it back) write nothing, say so in one line with the next step, and
  `Darkbloom keeps serving.`
- ToolAddress: OpenCode's and Hermes' provider blocks read back
  (`pointer`: the base URL and the key file `{file:}` / `key_cmd` reads),
  against this start's local API: its base URL and `local_token`
  (`LocalEndpoint.tokenPath`, or another file holding the same key). One
  line names the tools that miss it, what they point at, and `darkbloom
  --opencode` / `--hermes`. Called by the background and the terminal
  starts without a tool flag, not by launchd's child, not without a local
  API.
- The changelog fragment.

Green (prod identity, CPU-only, sandboxed): ModelLoadWaitTests 12/12,
ToolAddressTests 6/6, StartToolIntegrationTests 16/16; DarkbloomCLITests
1193 tests in 171 suites, with the suites that run the built binary or
open Metal skipped as before (CI runs them).

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

#1901 review (the verdict and N1), on the merge with dev:

- `LocalAPIPort.note(named:saved:)`, which `start --port <n>` prints when it
  replaces a saved port, now says ``tools set up for 8005 need `darkbloom
  --opencode` or `--hermes` again``. Its quotes in cli-reference.md,
  direct-mode.md and troubleshooting.md, and #1896's pending fragment, say
  the same. ProviderCore can't reach `ToolIntegrationStep.command`, so the
  line stays a literal.
- N1: install-next-start-opencode.md describes the installer as it ends
  now (`Next: ~/.darkbloom/bin/darkbloom --opencode`), so the release notes
  no longer contradict this PR's fragment, which drops its own installer
  sentence. #1891 did the same for that line.
- The other pending notes that led with the long form (#1880's two, and
  #1892's pair-2 repro, now "a start with `--opencode`") and the tool code's
  developer comments say the short form. No open PR touches them.
- The long form now appears only as the alias: the help's "(same as `start
  --opencode`)", the CLI reference's global-options row, this PR's
  fragment, the comments that say "short for", the alias tests, and the
  Hermes fixtures of a file an earlier version wrote.

Green (prod identity, CPU-only, sandboxed): LocalAPIPortTests 9/9,
LocalAPIOnePortTests 10/10, ToolShortcutTests 8/8,
StartToolIntegrationTests 16/16, the planners and HermesVersionTests 36/36,
DarkbloomCLITests 1197/1197 (the suites that run the built binary and the
two Metal tests skipped, as before), test-install-identity.py 8/8;
docs-check, changelog-check and diff --check clean.

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

Renders dev's pending LS-4 markers as today's behaviour:

- local-first.md (Use it from OpenCode or Hermes): it waits for your model
  on one live line (at most 10 minutes; a timeout, a model that didn't load
  or Ctrl-C write nothing); run it again when your models change; a later
  start names a tool set up for another address or key file, with the
  command that points it there, and never changes its file.
- quickstart.md: the live line in the opening block; step 5 waits for the
  models it started with, and the tools get this Mac's limits.
- cli-reference.md (Set up OpenCode or Hermes): step 4, the wait
  (`ModelLoadWait`: the API's own daemon state, the second look, the lines,
  the deadline, Ctrl-C); the one-line notice of a start without a tool flag
  (`ToolAddress`).
- tool-integrations.md: the wait in the flow and in Models, step 6 (follow
  the address), a failure-mode row and the code map.
- direct-mode.md: the key file row names `LocalEndpoint.tokenPath()` and the
  notice; the port-in-use fix says the start names tools still set up for the
  old port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a bound on its tries

The re-review of #1890 (changes needed, tests only) found:
- fixed pauses passed every test: one within a round (always the top
  of its range, Q3) and 120 s between the rounds (Q4);
- `automatic: false` and `automatic: true` in place of
  `automatic: request == nil` (ClusterServiceCommand.swift) passed every
  suite (Q1, Q2);
- under a mutant whose rounds never ended (Q7), UpdateCheckCommandTests'
  `unansweredCheckSaysWhatToDo` ran for 1 h 50 min until it was killed.
  Its coordinator fails every try at once and its updater doesn't pause,
  so only `next(after:...)` could end the check's `while true`: nothing
  bounded the tries. A time limit wouldn't have ended it either: Swift
  Testing's `.timeLimit` records an issue at its limit, then waits for
  an exit test's child (here, a 1-minute limit around a spinning child:
  the issue at 60 s, the child still spinning at 300 s, when it was
  killed).

Seams that change nothing:
- `SelfUpdater.ReleaseCheck.random` draws a pause from its range
  (`Double.random(in:)`); the check doesn't use it yet.
- `ReleaseCheck.nextForTesting` stands in for `next(after:...)`'s
  decision in a test (nil outside tests); `maximumTries` is `attempts`
  times `rounds`, which the check doesn't use yet.
- `Cluster.Service.supervisorConfiguration(..., runCycle:)` runs one
  cycle in the environment its `run` built (by default
  `ClusterPairUpdateCycle.run`), so a test can read that environment.

Tests:
- SelfUpdaterReleaseCheckTests (20 tests, 10 issues here):
  - each pause is drawn from its range: with a source that answers a
    quarter of the way in, a pair's check without an answer draws from
    0.5-1, 1-2, 60-120, 0.5-1 and 1-2 s, and pauses 0.625, 1.25, 75,
    0.625 and 1.25 s (fails: the check draws its own pauses);
  - a check whose every decision is to ask again (`.askAgain` or
    `.nextRound`) stops after its rounds' 6 tries, saying "(6 tries)"
    (fails: 100 requests, where the test's stand-in stops by itself);
  - the pauses' own source, of `standard` and of `pairCycle`, stays
    inside each range and spreads over more than half of it in 200
    draws (passes).
  The suite gets a 1-minute time limit for each test: a check that
  keeps asking in-process is cancelled at it, and a cancelled check
  stops.
- ClusterServiceUpdateTests: through the supervisor's own `run`, a cycle
  without a request gets a release check of 2 rounds, and a cycle for a
  `darkbloom update` request 1 (passes; Q1 and Q2 fail it).
- UpdateCheckCommandTests: each exit test's child ends itself after 60 s
  (`endChildAfter` in CLICommandSandbox.swift: its own thread, exit code
  124 and a line on standard error), and a test shows that a spinning
  child is ended that way (passes).
- WatchdogRecoveryIntegrationTests: a 2-minute time limit for each test
  (its offline updaters check in the test's own task).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The repro comment named the long form; it now reads as the matching
pending note does. Comment only: ClusterPairCommandsTests 118/118.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1892 (F1): on a paired Mac a plain `start`, the app's Start included,
starts the pair. This PR: a saved Only me needs no terminal. The rule
the conflicts are resolved with (the orchestrator's): pair membership
wins. On a paired Mac a plain `start`, with or without a terminal,
starts the pair; `[local] mode` is single-Mac serving's, so it applies
where the Mac isn't paired, or with `--solo`.

- ClusterPairCommandsTests: the pair's saved Only me without a terminal.
  The app's Start starts the pair (ensureService, serve; the part is not
  released; no refusal). `start --solo` serves this Mac alone, Only me in
  the background: the part is released first and the start goes ahead,
  never refused (#1892's test expected the refusal Only me no longer has).
- StartModelSelection: both, #1892's `requireModelsNamedWithoutTerminal`
  and this PR's `selectStartupModels` doc; its comment now says Only me
  without a terminal takes the last selection, never the picker.
- local-first.md: this PR's bullets (the saved choice at login, restart
  and update; scripts and the app serve it, Only me included, asking
  nothing) with #1892's "The models:" and "On a Mac in a pair" bullets,
  which now add that the saved choice applies with `--solo`.
- troubleshooting.md: #1892's row and this PR's no-model row.
- two-mac-cluster.md: a saved Only me is this Mac's alone: `--solo`
  serves it in the background; without `--solo`, `start` starts the pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 and others added 8 commits November 8, 2026 21:28
…ners CI now runs

Behaviour-preserving cleanup of #1913: one doc row and one comment. No runner, workflow, test or input changes.

- docs/developer/build.md (Build Once): shard 1 of test-cluster-focused runs the pairing, diagnostics and placement
  flow runners, as the workflow's comment and test.md say since this PR. The table still named only the pairing
  runner.
- scripts/ci-component-paths.py: ProviderBuildEnvironment/** is a cluster input because the console, diagnostics and
  placement flow runners compile it, and only the console runner reads the wiring table. The comment named only the
  console runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m-platform#709 on

The 0.10.11 coordinator deploy carries darkbloom-platform#709. Its members'
reward intervals count a leader whose only drain is the owner pause as
serving-ready, so a pair paused for its owner keeps its base reward, as a
single Mac does, and stays unroutable. The pages and the changelog fragment
said a paused pair loses it "on the deployed coordinator", which stops being
true once #709 is deployed, before the 0.10.11 tag.

Each place now describes both coordinators:
- from #709 on (the coordinator that ships with 0.10.11): the pair keeps its
  base reward, linked to #709 and its files at a5e0b4c973;
- before #709 (90ee29fc0d, which production ran with 0.10.10): both Macs lose
  it for the pause plus the idle minutes, with the existing code links.

Places: changelog.d/cluster-pair-me-first.md, docs/architecture/owner-pause.md
(Pairs), docs/provider/direct-mode.md, docs/provider/local-first.md,
docs/provider/two-mac-cluster.md, docs/reference/protocol-messages.md and the
ProviderBusyReason.owner comment. `[local] me_first = false`, or Darkbloom
network, still avoids the pause altogether.

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

fix(checks): the diagnostics and placement-flow runners compile again, and CI runs them
cluster, provider: a Gemma 4 pair serves its whole 262,144-token context in both modes, cuts an oversized max_tokens, and refuses in one Mac's words before any SSE header — R-FULL D2/D3
… serving publicly

From the independent review of #1927 (approve; nits N1-N4):
- N1: owner-pause.md says the reward rule counts a leader whose only drain
  is the owner pause "as not draining", the code's rule
  (cluster_public_routing.go at a5e0b4c973). The pair must still admit, have
  its model loaded and serve the public.
- N2: it names the two cases #709 pins. A committed provider_drain barrier on
  any member ends the intervals. An update that starts during a pause ends them
  once its barrier commits or the pause ends, whichever is first.
- N3: the fragment names no release version (CONTRIBUTING.md): "from
  darkbloom-platform#709 on".
- N4: protocol-messages.md says coordinators treat owner "as a plain drain
  for routing".

Same topic, outside the first commit: cluster-control-protocol.md said neither
connection of a pair is eligible for base rewards "whether or not the pair is
serving". Already at 90ee29fc0d, a member counts while its pair is publicly
serving-ready, for its share of the pair's capacity with the pair's model
(providerRewardSnapshotLocked, memberPubliclyServingLocked). The page now
says so, with the owner pause per coordinator as in owner-pause.md.

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

docs: a pair paused for its owner keeps its base reward on the 0.10.11 coordinator (darkbloom-platform#709)
….10.11)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
master's #1860/#1918 are shorter master ports of dev's CI docs and test; these files take dev's version:

- changelog.d/ci-hourly-full-dev.md
- docs/developer/build.md
- scripts/test-darkbloom-route.py

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 and others added 4 commits November 9, 2026 01:05
…request, as every family's pipeline does (red)

Journey 3, D6 (`validation-evidence/journey-3-delta.md`, DevNet .170 = dev a760773 on
pair-2): a 128K Gemma pipeline request failed the M5 Max stage's live memory check
mid-prefill, and the stage's worker exited (`forced-exit … reason=worker-failure`). The
client got an untyped 500 after 286 s and the pair lost readiness for about a minute.
A pipeline stage's running-request refusal ends its worker for every family
(QwenResidentRequestExecution.run's check → WorkerCoordinator's catch); only tensor
parallel ends one request alone. So a Gemma pipeline goes back to the memory plan's
request, the path Qwen's pipeline serves, and tensor parallel keeps 262,144.

Red first:
- PairContextWindowTests.aGemmaPipelineServesItsMemoryPlan (was
  aGemmaPipelineServesItsWholeProfile): Gemma's TP serves 262,143 / 32,768 / 262,144; its
  pipeline serves the memory scope, 32,768 / 32,768 / 65,536; the leader refuses a
  40,000-token prompt (`prompt_too_long`) and a 65,536-token one
  (`context_length_exceeded`, one Mac's words naming 65,536); no adapter's pipeline
  serves past its memory plan.
- ResidentAdmissionGemma4Tests.theStagesServeTheMemoryPlanAndLoadSizesIt (was
  bothModesServeTheDeclaredContextAndLoadSizesTheMemoryPlan): a Gemma stage's served
  profile is the memory plan; it refuses a 32,769-token prompt and 262,143 + 1.

On a760773: PairContextWindowTests 1 test, 6 issues; ResidentAdmissionGemma4Tests 1
test, 5 issues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…equest, so a long request goes to tensor parallel (D6)

Journey 3, D6 (DevNet .170 = dev a760773 on pair-2): a 128K Gemma pipeline
request (M3 Ultra 1 layer / M5 Max 29 layers) failed the M5 Max stage's
running-request memory check mid-prefill ("Resident request needs 8.38 GiB …
has 2.00 GiB … 594 MiB was compressed": past the 512 MiB harm guard, so no file
cache counted). The worker exited (`darkbloom-forced-exit-v1 status=1
reason=worker-failure phase=claimed`), the client got an untyped 500 after
286 s and the pair lost readiness for about a minute.

Root cause, pre-existing for every layer-stage pipeline (Qwen and Gemma stages;
MiMo's pipeline has the same throw at MiMoResidentRuntime.swift:610-617):
- QwenResidentRequestExecution.swift:115-137, the driver's per-step `check()`,
  calls `checkRunning` (:36-50) → `requireContinuing`, which throws "A running
  request of N context tokens …" (QwenResidentContinuingRequest.swift:23-48);
- the throw leaves `runQwenLayerStageGenerationRequest` and `runtime.start`
  into WorkerCoordinator.swift:292-306, whose catch begins the
  "worker-failure" exit and shuts the worker down;
- the peer then loses input and the session ends `peer_lost`.
The check dates from 2026-10-11 (de80be2, 78a81f1). #1923 made it
reachable at long contexts for a Gemma pipeline: its stages took up to 262,144
tokens. Tensor parallel ends such a request alone (its local stop), which is why
Gemma TP passed every size up to 262,144 on pair-2.

The fix: `ClusterRuntimeAdapter.pipelineServesWholeProfile` is false for every
adapter, so a Gemma pipeline takes Qwen's tested pipeline path. The provider's
`ClusterModelFeaturePolicy.servedProfile` is the memory scope, the worker's
`LayerStageResidentAdmission.servedProfile` is the memory plan,
`requireWithinServedProfile` refuses a longer reservation, each stage's KV host
is bounded at 65,536, and READY's capacity is the planned bytes. A Gemma
pipeline pair advertises and serves prompt 32,768, output 32,768, context
65,536. Its leader answers before any streamed byte, as #1923's typed answers
do: a prompt of 65,536 or more gets 400 `context_length_exceeded` naming
65,536; 32,769 to 65,535 gets 400 `prompt_too_long` naming 32,768; and
`max_tokens` is cut to min(32,768, 65,536 − prompt). Gemma tensor parallel
keeps 262,143 / 32,768 / 262,144.

Comments in ClusterModelFeaturePolicy, LayerStageResident and
Gemma4ResidentFamily, and docs (two-mac-cluster.md "Response length",
protocol-messages.md, inference.md "Gemma 4 native context on a pair") and the
changelog fragment now say the same.

Green, with the GPU denied (the Metal tests run in CI):
- cluster: ResidentAdmissionGemma4Tests 13, Gemma4NativeContextTests 6,
  ResidentAdmission27BTests 8, LongContextLimitsTests 7;
- provider: PairContextWindowTests 6, DistributedCBv2EngineTests 18,
  LocalContextWindowTests 10, DistributedHTTPCompletionTests 10,
  ClusterPairSlotTests 11, ClusterRuntimeApprovalFactsTests 23,
  DistributedPairMeasurementTests 9.
docs-check, docs-impact-check --base origin/dev, changelog check and
git diff --check pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(cluster, provider): a Gemma 4 pipeline serves the memory plan's request; long requests go to tensor parallel (D6)
….10.11)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 9, 2026
0.10.11 ships without #1932 (#1859 was approved at 695a3b4), keeps
#1930's Gemma pipeline cap, and lists D6 as a known issue. The whole D6 fix
ships in 0.10.12 (#1932 in dev, then #1934, #1935 and #1933). The docs say
what is true from the release that ships them:
- inference.md, D6's section: "Before 0.10.12 a refusal that remained was
  thrown from the request's `check`" (it said 0.10.11).
- inference.md, Gemma's pipeline: 0.10.11 serves the memory plan's request
  in the pipeline; from 0.10.12 a stage's refusal ends that request alone, and
  the pipeline still serves the memory plan's request until serving the whole
  context there is proven on real pairs. It said "0.10.11 keeps the pipeline
  at the memory plan's request all the same", as if 0.10.11 had the abort.
Fragments carry no version: pipeline-stage-memory-abort.md names none, and
gemma-pair-native-context.md stays as 0.10.11 ships it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathan308
jonathan308 merged commit 49e9a4c into master Nov 9, 2026
73 of 75 checks passed
@jonathan308 jonathan308 mentioned this pull request Nov 9, 2026
1 of 9 tasks
jonathan308 added a commit that referenced this pull request Nov 11, 2026
Syncs master into dev with the release: #1859's tree is a dev snapshot dev already holds;
#1938's diff (version 0.10.11, the CHANGELOG render, the 66 rendered fragments removed,
provider-release.md) applies unchanged. dev keeps its plain-build default.

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

This branch had an error being deployed

2 failed (outdated) and 3 active deployments
Preview – eigen-homepages-darkbloom — 695a3b4b Deployed Nov 9, 2026 by vercel[bot]
Preview – d-inference-landing — 695a3b4b Deployed Nov 9, 2026 by vercel[bot]
Preview – darkbloom-status — 695a3b4b Deployed Nov 9, 2026 by vercel[bot]
Preview – d-inference — 77239c3c Deployed Nov 6, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 77239c3c Deployed Nov 6, 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