Repository navigation
provider: Muse Glimmer launch fixes (tool calls, reference prompt, M5 Ultra gate, loop guard) and cancelled-row admission wait - #2152
Draft
jonathan308 wants to merge 17 commits into
Conversation
The loop guard and its exit from a repeating thought had no markers for Muse Glimmer's Onyx framing, so neither could be turned on for it. - Guard: the ATEM wrapper and a bare invoke are its call markers, with or without declared tools, since the channel splitter reads calls on any tool channel. A request whose parser is not ATEM gets no guard. - Exit with tools (`museOnyx`): end the reasoning message (`<|eom|>`) and start the next assistant message, so the model picks the recipient. - Exit without tools (`museOnyxToAnswer`): also write ` to=user<|message|>`, as GPT-OSS's final exit does; its output starts inside the answer, so the request's stops apply from the first token (`insideAnswerStopScope`). `DARKBLOOM_GPTOSS_FINAL_EXIT` stays GPT-OSS's switch only. Both stay out of the default lists until an A/B on the model shows the guard firing; `DARKBLOOM_LOOP_GUARD=muse_glimmer` and `DARKBLOOM_LOOP_EXIT_THINKING=muse_glimmer` turn them on. The scheduler takes the guard setting as a field so tests can set it, as it already does for the exit. Every other family's lists and markers are unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
… a 500 The SDK's strict ATEM parser refused calls the reference servers return (an undeclared name, arguments off the schema, an integral `6.0` for an integer), and a tool frame with no parseable call on an `auto` request was a generation failure, HTTP 500. Muse Glimmer's tool channels are now read by the SDK's `ATEMReferenceReader` (mlx-swift-lm bumped to the commit that adds it), with values typed by the caller's declarations as sent. The request's own validation then decides: `auto` without `strict` returns the call as generated, as vLLM does; a strict tool or a forced choice refuses a noncompliant call as the model's noncompliance, HTTP 422. A frame that holds no call is 422 on every request. `DARKBLOOM_MUSE_GLIMMER_REFERENCE_TOOL_CALLS=0` (passed through by the launch agent) restores the strict parser; its failures are 422 too. Other models are unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
Muse Glimmer's template writes a full system block for every system message and its default block only when there is none. Three provider steps changed the prompt the reference servers render: - The ingress repair's render types reached the template, which writes each schema as JSON: a `$ref` parameter was shown as a string, with the repair's marker key. The caller's own declarations now render, unless they carry the reserved metadata, in which case admission decides as before. - A request with a `developer` message now has its system messages merged into one leading block, as vLLM merges them. Without one nothing merges. - The JSON `response_format`, `tool_choice: none` and forced-choice instructions were inserted as a new system message, which replaced the default block or added a second one. They are now appended to the caller's leading system message, else to the last user turn. Every path that renders a request goes through the same restore step (`restoringOriginalRequest`): serving, the prompt-token floor, body tokenization and the benchmark prompt. The golden corpus gains 14 reference cases (developer/system, tool schemas with `$ref`, tool choice none/named, response formats); the 36 earlier cases are unchanged. `DARKBLOOM_MUSE_GLIMMER_REFERENCE_PROMPT=0` renders the earlier prompt. Every other model renders byte for byte as before. Co-Authored-By: Claude <noreply@anthropic.com>
The provider now reports `muse_glimmer_v1` only when the hardware report names an M5 Ultra and the system Metal device is named "Apple M5 Ultra". Both Muse identities require `apple_m5`, `mlx_nax` and `muse_glimmer_v1`, the same shape as GLM-5.3-Flash and the coordinator's set, so a Mac the coordinator would not route Muse to also neither advertises nor loads it. Without them the model is left out of advertisement, by the loop and the standalone server, and a load is refused with the typed, permanent ineligibility before any disk or loader work. The refusal names the requirement. Other models' requirements are unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
- `scripts/muse-glimmer-qualification/live_probe.py` checks a live endpoint's penalties, stop strings, seed, `n`, streaming usage, finish reasons, logprobs and error shapes. It uses the standard library only, prints no key, and has not been run against a live endpoint. - The qualification README lists the request fields that turn drafting off for Muse Glimmer, and why the cohort drafts all or nothing. - Architecture, hardware, configuration, CLI and protocol docs describe the M5 Ultra gate, the reference prompt and tool reading with their switches, and the loop guard's default. - A changelog fragment for the launch fixes. Co-Authored-By: Claude <noreply@anthropic.com>
Mac B's full GPQA run (594 draws, effort medium, 8 rows, the defaults) had two draws, q101-e0 and q173-e0, repeat a reasoning phrase with no answer until the client's 3,600 s wall. Each held a row for an hour. The replay spells each draw's received text back into the raw Onyx output and retokenizes it with the pinned tokenizer. It then feeds it through the production guard policy with the guard and the exit listed. It is gated on MUSE_GLIMMER_NVFP4_DIR and MUSE_GLIMMER_LOOP_RECEIPTS. It asserts: - the defaults give no guard; - both walled draws are cut inside the reasoning message, with the thought ended and the answer asked for, within the first quarter of their tokens and before 900 s; - no other draw is cut. A Python port of the detector gives the same result on the same receipts: both are cut at token 4,099 (about 212 s and 219 s), and none of the other 592 is. Two earlier expectations are corrected: - The strict ATEM parser also reads an integral float as the integer, so that case is not a strict refusal. - The loop test engine does not apply stop strings. The test now checks that the continuation carries the request's stops and the inside-answer scope, which the engine applies. docs/developer/test.md lists the new Muse suites and the replay's variables. Co-Authored-By: Claude <noreply@anthropic.com>
…using it A row whose client went away keeps its serving slot, its whole-Mac share and its KV until the engine drops it at its next step and its pump releases them. A request that arrived on a full Mac in that window was refused with a capacity 503, for a slot already being freed. Mac B's GPQA run saw this twice, each right after a client closed a stream, and each was served on retry. The bridge now records the rows a cancel reached while they still hold a slot. A capacity refusal while one of them retires waits for its release, at most 2 s, using the existing waitForRowRelease. It then revalidates ownership and the deadline, and asks once more: - nothing is admitted before the actual release; - with no such row the refusal is immediate; - DARKBLOOM_CANCELLED_ROW_ADMISSION_WAIT=0 refuses at once, and the key reaches the LaunchAgent. Not covered: a normal close (a FIN) is noticed only when a chunk can't be written, because the server allows input half-close. A request that reaches admission before then is still refused. Tests use a fake engine that drops a cancelled row one step (100 ms) later. They cover: - admission at the release; - an immediate refusal with no cancel, and with the switch off; - a refusal at the bound for a row that never retires. The architecture, configuration and CLI references describe the wait and its switch, with a changelog fragment. Co-Authored-By: Claude <noreply@anthropic.com>
…ctation The SDK's ATEMReferenceReaderTests expected the strict ATEM parser to refuse an integral float (`6.0`) for an integer parameter. The strict parser reads it as the integer, as the provider's own tool-stream test already records, so that case failed in the provider's run of the suite. The SDK commit corrects the expectation; it changes no source. The earlier gap 1 commit's message lists the integral float among the strict parser's refusals. That part is wrong: the strict parser and the reference reader read it alike. Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…SDK base Only the libs/mlx-swift-lm gitlink conflicted. It now pins c7dbf1a0, mlx-swift-lm #429 (ATEM reference reader) with the refreshed feat/muse-glimmer-native (#423 + #434) merged in. This branch started at 7b75e0d and did not contain feat/muse-glimmer-30b's earlier dev merge; this merge brings the whole base in. libs/mlx and libs/mlx-swift stay at 72dffa2d and b1c94d29. Co-Authored-By: Claude <noreply@anthropic.com>
The serving-path test builds its controls as the coordinator path does. This one sends the same body through `LocalChatUploadResponder`, streamed and not, where a `developer` message is decoded again from the repaired body. Co-Authored-By: Claude <noreply@anthropic.com>
Chat, its alias and batch, streamed or not, and a body that needs the ingress repair: 400 invalid_request_error "n > 1 is not supported", param n, before the engine sees the request. n absent, null, 0, 1, 1.5, a string or a Boolean is served as before (the coordinator's integer reading). Co-Authored-By: Claude <noreply@anthropic.com>
…abilities Co-Authored-By: Claude <noreply@anthropic.com>
A body the strict decode refuses (a `developer` message, a scalar `stop`, content-less messages, hosted tools) is decoded again from `InboundChatNormalization`'s output. Its `ChatTemplateControls` were decoded from those repaired bytes, where `developer` is already `system`, so `hasDeveloperMessage` was false and Muse Glimmer's reference prompt never merged the system messages on the local API (gate 4c, 4 of 50 prompts). The coordinator path reads the extensions from the original bytes (`ProviderLoop.decodeInboundChatRequest`); the local API now does the same, for every raw capture (`hasDeveloperMessage`, MiMo, GLM and Flint controls). Only repaired bodies change; a body the strict decode accepts is decoded as before. Co-Authored-By: Claude <noreply@anthropic.com>
The request type has no `n`, so the generic local engine answered one choice whatever `n` asked (go/no-go gate 4). The coordinator refuses `n > 1` for every model with 400 invalid_request_error "n > 1 is not supported", param n (`refuseMultipleChoices`), and Nemotron Super's owner refuses it as an invalid request. The local chat routes now give the coordinator's answer before any engine work: chat, its alias, and any item of a batch, with `n` read as the coordinator reads it (an integer, or a number truncated toward zero). The Super owner keeps its own documented answer. Co-Authored-By: Claude <noreply@anthropic.com>
…SDK base Only the libs/mlx-swift-lm gitlink conflicted. It now pins 1d2ba618, mlx-swift-lm #429 (ATEM reference reader) with the refreshed feat/muse-glimmer-native (#423 + main fe9b5282) merged in. libs/mlx and libs/mlx-swift stay at 72dffa2d and b1c94d29. Co-Authored-By: Claude <noreply@anthropic.com>
…sting bounds #2149 now reads the tool channel in linear time (e2c60ca) and pins #423 with the nesting bounds. Only the libs/mlx-swift-lm gitlink conflicted. It now pins b7672434, mlx-swift-lm #429 (ATEM reference reader) with that #423 (cc2be070) merged in. libs/mlx and libs/mlx-swift stay at 72dffa2d and b1c94d29. Co-Authored-By: Claude <noreply@anthropic.com>
The suite feeds seeded random and hostile model output, at every chunking, through: - the channel splitter; - the tool frame; - the SDK's ATEM reference reader and its strict parser; - the scheduler's forwarding body, under every tool choice. Each must hold up the way the inbound-depth (#2130), queue-budget (#2135) and TOML (#2138) fixes were tested. It must not crash, stall, buffer without bound, leak framing, raise invalidToolPayload or return a 500. A frame the model gets wrong is the model's error, a 422. deepNesting and the deep hostile frames need the nesting bounds of mlx-swift-lm #423 (824db4cf and 31a7ccb2, from d266d4e6 and 7f958c64) in the pin; this branch pins b7672434, which has them. Without them, a value nested a few hundred levels deep stops the test process with SIGBUS, as it would stop a provider. repeatedStrayCloses took about two minutes in a debug build while the splitter rescanned the tool body on every stray closing tag; with the linear splitter of #2149 (e2c60ca) it takes about a second. Test-only. Co-Authored-By: Claude <noreply@anthropic.com>
12 of 21 tasks
GumbiiDigital
added a commit
to GumbiiDigital/d-inference
that referenced
this pull request
Dec 3, 2026
…er fuzzing, local n>1 (replay Layr-Labs#2152) Replays Layr-Labs#2152 onto dev: MuseGlimmerReferencePrompt (caller tool schemas, vLLM developer/system merge, raw-bytes LocalChatTemplateControls), ATEMReferenceReader default with HTTP 422 on malformed frames, Apple M5 Ultra hardware gate (muse_glimmer_v1), Onyx loop guard and exit-thinking (off by default), parser fuzz tests, local n > 1 HTTP 400 refusal, and scripts/muse-glimmer-qualification/live_probe.py. Drops Layr-Labs#2152's all-model 2s CancelledRowAdmissionWait (conflicts with dev's OwnerMemoryWait, grantBelowMinimumKV(), and retainedFaultFence) and updates MuseGlimmerHardwareRequirementTests for dev's .cachePolicy capability.
GumbiiDigital
added a commit
to GumbiiDigital/d-inference
that referenced
this pull request
Dec 3, 2026
…ecks (replay Layr-Labs#2151) Replays Layr-Labs#2151 onto dev against the multimodal libs/mlx-swift-lm pin (d625d5bde2bd6f181227e858422f1d072d84c6cc): adds MuseGlimmerVisionArtifact, MuseGlimmerVisionPolicy, MuseGlimmerVisionBudget, MuseGlimmerImagePrefill, discovery is_vision advertisement, vision test suites, and consolidated changelog.d/muse-glimmer-30b.md. Guards both exitThinking assignment sites with museImages == nil in MultiModelBatchSchedulerEngine.swift so Layr-Labs#2152's Onyx exit-thinking and thought-budget rebuild never apply to image prompts.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Provider fixes for listing Muse Glimmer 30B. A tool call the model gets wrong is never a 500. Prompts render as the reference servers render them. The model loads and is advertised only on an Apple M5 Ultra. The loop guard and thought exit know Muse's Onyx framing but stay off by default.
One fix is for every model: a request that reaches a full Mac while a cancelled row is still giving back its slot now waits for that release, instead of getting a capacity 503.
Two fixes are for the local API (
darkbloom start --local), from the go/no-go:developermessage is decoded again from the ingress repair, which renames it tosystem. The template extensions were decoded from those repaired bytes, so Muse's reference prompt never saw the developer message and never merged it (gate 4c, 4 of 50 prompts). The local API now reads the extensions from the body as sent, as the coordinator path does.nabove 1. The generic local chat routes ignorednand answered one choice. They now refuse it before any engine work, with the coordinator's answer: 400invalid_request_error"n > 1 is not supported",paramn.Stacked on #2149 (
feat/muse-glimmer-30bat58ae7e94b). Thelibs/mlx-swift-lmgitlink points at1d2ba618on the SDK branchfeat/muse-glimmer-atem-reference-reader. That branch is two commits onfeat/muse-glimmer-native, plus merges of its refreshed heads39e5dc5e(mlx-swift-lm#434) andc1103b8c(SDKmainfe9b5282, the SDK pin ofdev):05bf60234addsATEMReferenceReader;313ec342corrects one of its test's expectations.The SDK branch is up as draft Layr-Labs/mlx-swift-lm#429.
Linked issue
None. Part of the Muse Glimmer 30B onboarding, stacked on #2149.
Test plan
At
50cdaaa10(this refresh): the local API fixes, red then greenThese runs used a debug build on an M3 Ultra:
swift build --build-system native --build-tests --disable-index-store;SDKROOTset to the CLTMacOSX27.0.sdk;They ran on a local test-only tree. That tree merges the refreshed #2149, #2150, #2151 and #2152, with the SDK combined from #423 and #427–#432. Its file tree equals the go/no-go's except for the fixes. The run used
swift test --skip-build --no-parallelwith the filterMuseGlimmerReferencePromptTests|LocalMultipleChoicesTests|MuseGlimmerPolicyTests|MuseGlimmerDrafterTests|LaunchAgentRestartTests|LocalStreamingFailureTests.MuseGlimmerReferencePromptTests.localAPIPath, streamed and not (c8a08c072)MuseGlimmerReferencePromptTests.swift:351)nabove 1LocalMultipleChoicesTests.refused, n = 2, 8, 2.0 and 2.5, streamed and not, on a repaired body, on/chat/completionsand in a batch (1cf20bb01)nof one or less is servedLocalMultipleChoicesTests.served: absent, null, 0, 1, 1.5,"2"andtrueGreen at
859b83959(the fixes in; SDKe63ed56d): 84 tests in 8 suites, 83 passed and 1 failed. The failure isLaunchAgentRestartTests"notInstalled explains how to start the provider" (LaunchAgentRestartTests.swift:20): a local debug build is the dev variant, so the message saysdarkbloom-dev start. It fails the same way on the red tree, and no commit here touches it.A wider run on the same tree (filter
MuseGlimmer|Local|NemotronSuper|InboundChat|ChatTemplateControls|LaunchAgent|MTPConfig|SDKFeatureDefaults|MiMo|GLM5|Flint|ToolChoice): 1,595 Swift Testing tests, 1,427 passed, 130 skipped and 38 failed; every Muse Glimmer suite andLocalMultipleChoicesTestspassed. Each failure is environmental and outside the files these commits touch: dev-variant command names (darkbloom-dev), no installed launchd service in the test session, and absent MiMo fixtures (all 59 XCTest failures areMiMoV26*). That reading is by failure message; no base run of the wide filter was made.Not proven here. The local API fixes ran against a fake engine only. Go/no-go gate 4c (developer plus system messages) and the
nprobe were not re-run on an M5.Earlier runs, at
981e3d565.Debug build with tests, native build system:
State and model snapshots go to a per-run directory.
SDKROOTis the CLTMacOSX27.0.sdk.MUSE_GLIMMER_NVFP4_DIRnames the pinned snapshot (for its tokenizer only), andMUSE_GLIMMER_LOOP_RECEIPTSnames the receipts of a 594-draw GPQA run on Mac B, a team test Mac (effort medium, 8 rows, default settings). The only untracked files in the tree were a temporary two-file harness that runs the SDK'sATEMReferenceReaderTestsinside the provider test target.green-all-01 was one run at
5a2026449over the focused filters and the wide filter, 1,542 tests in all:MuseGlimmer,CancelledRowAdmissionTests,EngineDeadlineRetirementBridgeTests,EngineV2Bridge,GenerationLoop,LaunchAgentEnvironmentTests,ATEMReferenceReaderTests,NemotronSuperLoopGuardTests,LoopExitThinkingContinuationTests,ModelRuntimeRequirementsTests,ModelRequirementDisplayTests,StandaloneServerModelAdmissionTests,GLM5Next,EngineV2PrefillGeometryTests,AdvertisedModelSelectionTestsandPickerEntryTests.Swift Testing failure.
ATEMReferenceReaderTests.anIntegralFloatIsAnIntegerAndAWrongTypeKeepsItsText. The SDK test expected the strict parser to refuse6.0for an integer. The strict parser reads it as the integer.313ec342, pinned by981e3d565, corrects the expectation and changes no source. The corrected test runs in the runs below.Swift Testing skips. The opt-in real-hardware, real-checkpoint and paired-Mac suites: GLM-5.3 calibration and checkpoint,
MuseGlimmerLiveTests.servedThroughLoopback, the Nemotron Super pinned checkpoint and the Harmony real tokenizer.XCTest failures. Seven
MiMoV26ServingLoadTestscases (payloadFixtureRequired), the same seven, with the same 8 issues, as on the base7b75e0d99.Mac B replay:
MuseGlimmerLoopGuardTests.macBGPQAReplaypassed.CancelledRowAdmissionTests: 3 of 3 passed:Other checks:
scripts/docs-check.shon the 8 touched docs: OK.scripts/docs-impact-check.pyover the branch: OK.scripts/changelog.py check: 3 valid fragments.swift-format6.4.4 lint on the SDK test file: clean.Red first. A local patch, not part of this PR, reverts each fix's behaviour lines in one red build. The tests and APIs stay, so the new tests still compile.
MuseGlimmerLoopGuardTests, including the Mac B replay (no exit resolves)MuseGlimmerToolStreamTestsMuseGlimmerReferencePromptTests, and the 14 newMuseGlimmerPromptGoldenTestscasesMuseGlimmerHardwareRequirementTestsCancelledRowAdmissionTests: admission at the release, and the refusal at the boundred-focused-01 ran the focused filters on the red build at
981e3d565, with the 7 patched files as the only tracked changes. The focused filters select no XCTest cases.Every fix's tests failed red:
MuseGlimmerLoopGuardTests, includingmacBGPQAReplayMuseGlimmerToolStreamTests:strictToolsRefuse,invalidToolOutput,autoCallsAsGeneratedMuseGlimmerReferencePromptTests; 2 of 6MuseGlimmerPromptGoldenTests: the rendered text and the real-tokenizer token IDsMuseGlimmerHardwareRequirementTestsCancelledRowAdmissionTests:admittedAtRelease,wedgedRowRefusedAtTheBoundThat is 33 failures. The other 15:
GLM5NextHardwareGateTests.capabilityIsReportedOnlyOnQualifyingHardwareandProviderRuntimeCapabilityTests.liveDetectorExplicitBindingOrderpin exact capability sets. Under the red build, both sets also holdmuse_glimmer_v1.EngineV2BridgePumpReceiptTests(4),EngineV2SharedBudgetTests(5),EngineV2SeededSamplingTests(1) andGLM5NextEncryptedCheckpointTests(3). They showfilesWritten == 0orcacheDidNotPersist.SSDPrefixCachePolicy.lowDiskAbsoluteFloorBytes). The internal disk had about 17 GiB free after the run.ATEMReferenceReaderTests(9) passed red, as expected: the red patch reverts the provider's wiring, not the SDK reader.Not proven:
live_probe.pyhas never run against a live endpoint. It passed 8 of 8 probes against an in-process stub.ATEMReferenceReaderTestsran through a temporary provider-side harness against the exact SDK commit the provider links, not under the SDK's ownxcodebuild.check_forkdiff.pywas skipped because the checkout has noupstreamremote.Components touched
mlx-swift-lmgitlink, forATEMReferenceReader)Protocol / interface changes
No protocol/interface changes
Yes — described above and matching side updated
New runtime capability
muse_glimmer_v1. It is reported only for an M5 Ultra whose Metal device names one. Both Muse identities now requireapple_m5,mlx_naxandmuse_glimmer_v1, the coordinator's set. The coordinator's side of this lives in darkbloom-platform, not in this PR. Without these requirements the model is left out of advertisement, and a load is refused as permanently ineligible.HTTP status for Muse tool calls. On an
autorequest, a tool frame the strict parser could not read was a generation failure, HTTP 500. Now:autowithoutstrictreturns the call as generated;New environment keys, all passed through by the launch agent:
DARKBLOOM_MUSE_GLIMMER_REFERENCE_TOOL_CALLSDARKBLOOM_MUSE_GLIMMER_REFERENCE_PROMPTDARKBLOOM_CANCELLED_ROW_ADMISSION_WAITmuse_glimmeris a new value forDARKBLOOM_LOOP_GUARDandDARKBLOOM_LOOP_EXIT_THINKING.Local API,
nabove 1. The generic local chat routes (/v1/chat/completions,/chat/completionsand any item of a batch) answer 400invalid_request_error"n > 1 is not supported",paramn, as the coordinator does (refuseMultipleChoices).nis read as the coordinator reads it: an integer, or a number truncated toward zero. The answer comes before any engine work. Nemotron Super's raw-body owner keeps its own documented 400. Responses and/v1/completionsare unchanged.Local API, template extensions. For a body that needs the ingress repair, the extensions (
hasDeveloperMessage, and MiMo, GLM and Flint raw controls) now come from the body as sent, as on the coordinator path. A body the strict decode accepts is decoded as before.No WebSocket message, CLI flag or release artifact changes. No version bump.
Documentation impact
Updated:
docs/architecture/inference.md: the reference prompt, tool reading, the loop guard default and the cancelled-row admission wait.docs/architecture/hardware-support.mdanddocs/provider/hardware-requirements.md: the M5 Ultra gate.docs/reference/configuration.md,docs/provider/cli-reference.md,docs/reference/protocol-messages.mdanddocs/reference/model-registry-format.md.docs/developer/test.md: the new Muse suites, and the replay's variables.scripts/muse-glimmer-qualification/README.md: the live probe, and the request fields that turn drafting off for Muse.docs/provider/direct-mode.md:nabove 1 in "Refused request shapes".Changelog
changelog.d/<topic>.mdfragment and ranmake changelog-check.The fragments are
changelog.d/muse-glimmer-launch-fixes.md(its developer-merge bullet now covers the local API too),changelog.d/cancelled-row-admission-wait.mdand the newchangelog.d/local-api-multiple-choices.md.scripts/changelog.py checkpassed with 7 valid fragments on the combined tree.Notes for reviewers
Defaults, per fix:
DARKBLOOM_MUSE_GLIMMER_REFERENCE_TOOL_CALLS=0restores the strict parser. Its failures are 422 too.DARKBLOOM_MUSE_GLIMMER_REFERENCE_PROMPT=0renders the earlier prompt.muse_glimmermuse_glimmertoDARKBLOOM_LOOP_GUARDandDARKBLOOM_LOOP_EXIT_THINKING.muse_glimmer_v1DARKBLOOM_CANCELLED_ROW_ADMISSION_WAIT=0refuses at once, as before.CancelledRowAdmissionWait.enabled.muse_glimmerserving profile was added. A reviewed profile would not stop the fallback to width 4 under Low Power or thermal pressure. Width 8 is already the automatic paged width on M5 Ultra. The reviewed-profile evidence rules cannot be met from the Mac B speed runs.a8bd41e9d, lists the integral float6.0among the strict parser's refusals. That is wrong: both readers read it as the integer.d369dd937and981e3d565say so; the history was not rewritten.logprobsorlogit_biasstops drafting for its whole decode step, because the cohort drafts all or nothing.From the go/no-go (2026-11-15):
Local API developer merge (gate 4c).
LocalChatUploadResponderdecodes adeveloperbody a second time, fromInboundChatNormalization.normalize's output.ChatTemplateControlscame from those bytes.dev, no family reads the developer role, so the rendered symptom is Muse-only.Streamed forced or
requiredcall off the schema (gate 4). This is not changed here. The established behaviour is the same for every family ondev: 200, then an SSEserver_errorframe once the call fails validation. That is because the local API commits the stream at admission, and the SDK frames a tool failure astool_noncomplianceonly for multiple calls. Through the coordinator, the same refusal is a 422tool_noncomplianceonly if nothing has reached the client. The coordinator commits at the first content chunk, reasoning included. Muse streams its reasoning before a forced call, as GLM does, so a 422 there would need the reasoning held back. Two options are open for the owner:tool_noncompliancefor a forced-choice violation in the SDK, which applies to every family.nabove 1 (gate 4). The coordinator already refusesn > 1for every model, so OpenRouter traffic never asks a provider for it. This fix makes the local API say the same. Two other answers exist:If the owner prefers that the local API stay as it was, dropping
50cdaaa10and1cf20bb01undoes it.Before And After
Muse tool calls:
flowchart TB subgraph TOOLB["Before"] direction LR tb1["ATEM tool frame"] --> tb2["strict SDK parser"] --> tb3["off-schema call<br/>or empty frame"] --> tb4["HTTP 500"] end subgraph TOOLA["After"] direction LR ta1["ATEM tool frame"] --> ta2["reference reader,<br/>typed by declarations"] --> ta3["request validation"] --> ta4["auto: call as generated<br/>strict, forced or empty: 422"] end TOOLB ~~~ TOOLAMuse prompt, with a
developermessage or a JSONresponse_format:flowchart TB subgraph PB0["Before"] direction LR pb1["system + developer<br/>+ format instruction"] --> pb2["inserted system block<br/>replaces the default"] --> pb3["repaired schema types<br/>and marker key"] --> pb4["prompt differs<br/>from reference"] end subgraph PA0["After"] direction LR pa1["system + developer<br/>+ format instruction"] --> pa2["merged as vLLM merges,<br/>instruction appended"] --> pa3["caller's schemas<br/>as sent"] --> pa4["reference render"] end PB0 ~~~ PA0A request that arrives while a cancelled row retires (every model):
flowchart TB subgraph CB0["Before"] direction LR cb1["client closes stream"] --> cb2["row holds slot<br/>until next step"] --> cb3["new request,<br/>full Mac"] --> cb4["503 capacity"] end subgraph CA0["After"] direction LR ca1["client closes stream"] --> ca2["row noted<br/>as cancelled"] --> ca3["new request waits<br/>up to 2 s for release"] --> ca4["admitted at release,<br/>or 503 at the bound"] end CB0 ~~~ CA0The local API, a body with a
developermessage ornabove 1:flowchart TB subgraph LB0["Before"] direction LR lb1["body with developer<br/>or n = 2"] --> lb2["strict decode fails,<br/>repaired body decoded"] --> lb3["extensions from<br/>repaired bytes"] --> lb4["no developer merge;<br/>n ignored, one choice"] end subgraph LA0["After"] direction LR la1["body with developer<br/>or n = 2"] --> la2["repaired body decoded"] --> la3["extensions from<br/>the body as sent"] --> la4["developer merged;<br/>n > 1: 400, param n"] end LB0 ~~~ LA0Refactor Pass
A dedicated refactor pass and a fresh-context independent review (owner §0) have not been done yet; both are owed before review.
The author's own pass over the final diff found three cleanups. None was applied: each would need another full build on the shared scratch disk, and none changes behaviour.
waitForCancelledRowReleasewaits on one cancelled row. With several retiring at once, racing all of them would admit at the first release.MuseGlimmerLoopGuardTests.swiftis 776 lines. The Mac B replay could move to its own file.Final focused validation: green-focused-02 at
981e3d565, with the red files restored and the corrected SDK test. Swift Testing: 800 in 109 suites; 691 passed, 13 failed, 96 skipped. The focused filters select no XCTest cases. 13 of the failures are the SSD-tier tests named under red-focused-01, which again could not write: the temp volume had 11.9 GiB free, under the SSD tier's 20 GiB floor. That is this Mac's disk, not this branch; they passed in green-all-01.🤖 Generated with Claude Code