Repository navigation
Release dev into master: provider 0.10.11 - #1859
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Threat model review — advisoryReviewed head Review not completed for this head. Previous findings are superseded, not confirmed resolved. 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: 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. |
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
…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>
…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>
…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>
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>
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>
Ready for review. The DevNet build of this head's
devpassed its gates (below). Merge with squash, as #1809, so nodevcommit enters master's history.What this is
The provider 0.10.11 release:
devsince v0.10.10, intomaster. Head695a3b4b59onrelease/dev-to-master-0.10.11:devat12c88dfa7b(fix(cluster, provider): a Gemma 4 pipeline serves the memory plan's request; long requests go to tensor parallel (D6) #1930, 2026-11-09 10:01Z), whose DevNet build is0.10.10-dev.branch.171(run 42597808851);77239c3cf1(dev9640170620+ the prod-default commit8be2e6b0b5+ a signed merge of Sync dev into master: CI build-once, job sizes, memory sampler, fixture retries, and provider TP work (post-0.10.9) #1837's master snapshot), plus one signed merge ofa760773a27(a66fa53b0e, no conflict), plus one signed merge ofmaster465d589b71(917aafbe57; Darkbloom watchdog: copy darkbloom-sandbox's template at d6d257c2 (reads any listing size, rescues partial strands) [master] #1860 and ci: schedule the hourly full CI (dev) run of dev (7 * * * *) #1918 are CI-only master ports, and their shorter copies ofdocs/developer/build.md,scripts/test-darkbloom-route.pyandchangelog.d/ci-hourly-full-dev.mdtakedev's newer text; the tree doesn't change), plus one signed merge of12c88dfa7b(695a3b4b59, fix(cluster, provider): a Gemma 4 pipeline serves the memory plan's request; long requests go to tensor parallel (D6) #1930, no conflict).Package.swiftkeeps 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 validateddev; it supersedes #1837's sync.Behaviour changes for production Macs (read first)
--local-endpoint, including the desktop app's "Alongside the network", pause Darkbloom while their owner uses the local API (off switch:me_first = falseunder[local]in~/.config/darkbloom/provider.toml, thendarkbloom restart). A pair paused for its owner keeps its base reward on the coordinator that ships with 0.10.11 (darkbloom-platform#709 onwards).reasoning_effortis a typed 400 (invalid_reasoning_effort) on every model that reasons; every standard value is accepted.max_tokensis 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.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.high,xhighandmaxrenderhigh); a Mac still on 0.10.10 rendershighasmediumuntil it updates. There is no OpenRouter medium cap (owner, 2026-11-09; darkbloom-platform#721 drops it).v0.10.11on P (the tag run publishes by itself). Seerelease-0.10.11/RELEASE-ORDER-0.10.11.md.Pull requests in this release (90)
30 from the first cut (
dev9640170620; #1828 and #1831 shipped in v0.10.9 through #1809 and are not counted; #1841 is 0.10.12):tp-check gemma run --layer-stride(measuring tool)Not in 0.10.11: #1841 and mlx-swift-lm#386 (Gemma one-Mac adaptive depth, moved to 0.10.12).
Pins:
libs/mlx72dffa2d,libs/mlx-swiftc633d221unchanged;libs/mlx-swift-lm32f5c744→7994762ef9(forkmainwith #388, #389, #390; Swift model code, no Metal kernels).60 since (to
12c88dfa7b):darkbloom --opencode/--hermeswait for the model to load, and a start says when a tool points elsewhere (LS-4)darkbloom cluster leaveleaves a pair in one command, from either Mac (LS-6, R14)darkbloom route this-mac/my-macs/my-macs-firstsaves the route (LS-6, R12)darkbloom --opencodeanddarkbloom --hermes(short forstart --opencode/--hermes)startstarts the pair,--soloserves alone, no start asks without a terminal, and status says what this Mac servesdarkbloom restarton a stopped pair never starts single-Mac servingdarkbloom cluster(local-first L5b-cli)Pins:
libs/mlx72dffa2d,libs/mlx-swiftc633d221unchanged;libs/mlx-swift-lm32f5c744→67110e7b55.Checks on the head (B2.1)
Validation state
12c88dfa7b: success (earlier: 42577423690 ona760773a27).0.10.10-dev.branch.171(run 42597808851): success;metallib_hash5b97893c…70ac(unchanged since v0.10.9);check-weak-imports.shexit 0 ondarkbloom,darkbloom-enclave, the fan helper and both cluster helpers (sdk 27.2, no weak import of Foundation'sDate >=/<=)..167; the delta on.170proved 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 #1923's Gemma tensor-parallel whole context (64K, 128K, a full-windowlength) and found D6, answered for Gemma's pipeline by fix(cluster, provider): a Gemma 4 pipeline serves the memory plan's request; long requests go to tensor parallel (D6) #1930; the re-check on.171(12c88dfa7b) passed every item: both Macs updated by themselves (~15 min, same port and keys); Gemma pipeline lists 65,536 / 32,768, answers ~30K, refuses ~40K with 400prompt_too_longand ~70K with 400context_length_exceededbefore any SSE, cutsmax_tokens300,000 and keeps serving with no worker failure; tensor parallel lists 262,144 and answers 128K; smoke PASS. Eight minor known issues (D1–D8), fixed in 0.10.12, are listed in the notes.GLM5NextManagedLoadTestson a Metal Mac: PASS (the Studio). M5 Ultra pair (Qwen and MiMo pipeline): pending, before the tag.masterreadsbusy_reason: "owner"as a plain drain (coordinator/protocol/messages.go:127,internal/registry/providerdrain/authority.go:53); cluster: a pair takes the requests it can serve and reports its speed (provider 0.10.10) #1844's fields and the facts block were checked against90ee29fc0d(COORDINATOR-COMPAT.md); the real facts block is parsed at D5.Merge rules
Squash only; Release Integrity; signed commits; one approval from David, Gajesh or Kydo (not the last pusher).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.