Repository navigation
Release provider 0.10.20 into master - #2800
jonathan308 wants to merge 3885 commits into
Conversation
…call frames are text The stop scope for auto requests without tools matched everywhere outside the thought, including the text of Inkling's control tokens, so a stop such as "end" or "text" could cut <|end_message|> or <|content_text|> and lose or garble the answer. Each control token other than the thought's opener is now an excluded span up to its closing |>. None of those openers is a prefix of <|content_thinking|>, so the thought keeps its own span however the text is chunked.
Every request whose prompt plus max_tokens passed 41,432 tokens failed at once with HTTP 500: the DSpark drafter's per-request paged pool is granted less than the pool's segmented reservation charges (capacityExhausted). The provider now caps Inkling 2's serving window at 40,960 (Inkling2ModelIdentity.servedContextTokens) in KVEstimation, so the bridge's existing window rules cut an output that would pass it and refuse a prompt of 40,960 tokens or more as a context error (400 context_length_exceeded), and the drafter can no longer reach the failing size. The SDK fix to the drafter's grant lifts this later.
… and the model registry
…pool fix Pins mlx-swift-lm afc204997e, whose DSpark drafter grants its per-request paged pool what the pool's segments charge. Prompt plus output past 41,432 tokens therefore no longer fails, and the provider's 40,960-token window for Inkling 2 is removed: the slot again serves the checkpoint's model_max_length (1,048,576). Tests: the parsed window is the checkpoint's, and long prompts (45,984, 46,966, 86,965 tokens) reach the engine with the output they asked for.
The engine ends such a request with the SDK's capacityExhausted(needed:available:) text, which fell through to an untyped generation failure. fromSchedulerMessage now maps it to token_budget_exhausted (503 capacity).
Inbound decode repairs tool schemas with default types under a 100,000-node budget per request and decodes a body past it as sent. On Gemma 4 the prompt step (`Gemma4ToolSchemaEnforcement`) ran the same repair again through `ToolSchemaNormalization.injectDefaultTypes`, which had no limit, so a schema the inbound pass had left as sent was rewritten there: each empty member of a large `anyOf` became a new two-key map. A 1.3 million member union took 0.31 s and about 440 MB more peak memory in that step. - `injectDefaultTypes` takes the request's remaining node budget and returns a schema that spends it unchanged, as `ensureParameterTypes` does. - `normalizeToolSpecs` starts one 100,000-node budget per request and shares it across the tools. A schema past it keeps Gemma's render invariants (every property a typed map, a typed root). With the change the same union takes 0.03 s and about 34 MB. - Schemas within the budget are repaired exactly as before: a schema the inbound pass repaired has the same node count here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A shard keeps the 30-minute deadline. The unsharded lane (SDK 27 release preparation on a pull request) runs the whole provider suite serially on one Mac and timed out at 30 minutes with no failed test; it gets 45 minutes, inside the routed job's 60-minute limit. Same change as the standby PR #2593, on current dev.
A full Mac refuses a text request as capacity before rendering its prompt, a prompt being prepared holds the last serving share against another request, a prompt prepared on the last share is served on it, and a failed render returns its share. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A text request now takes one serving share before its prompt is rendered and tokenized, under the owner ID its submission uses. A full Mac refuses the request as capacity before that work, and prompts being prepared at the same time count against the serving width. The bridge's allowance takes the share over in place at submission, so the request cannot lose its place between preparation and admission; a share not taken over is returned when preparation ends, on every exit path. Preparation shares count only toward admission: reported usage, deadline work and calibration evidence still start at submission. The owner's local requests, which wait for room at submission, take none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Inkling 2 Mini: answer text for an undeclared tool call, and a 40,960-token window
…udget:) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rded SDK 27 qualification 45 minutes
…int injectTypes' doc link at injectDefaultTypes(_:budget:)
…cannot be reserved is retryable capacity, not a 500
…nt pool fix Pins mlx-swift-lm b98bcd3343 (#528, landed on SDK main by merge commit 4bb2b43ee8). With MTP on, the assistant's private paged pool was granted its pages plus 4 MiB while the segmented pool charges whole segments, so a request's first step failed with capacityExhausted from 165,849 tokens of prompt plus output, in bands, and at every length from 176,121. The assistant now grants the pool's own charge for its row. The provider already maps a remaining capacityExhausted to retryable capacity (503).
…shes The preparation admission tests now use a local engine that answers each request with one token and a stop terminal, so a served request ends without a stream error and the tests check that it was served. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rve prompt preparation tests on an engine that finishes
…ning MTP: serve long prompts with the SDK's assistant pool fix
… asynchronous step PrefillTestClock.eventually allowed 2 s. In the SDK 27 qualification lane the CI watchdog samples every test process at 900 s, which paused LocalHeadHoldTests.anOwnersRequestTheEngineCouldntAdmitIsSubmittedAgain while its one-second owner retry was due, so the re-submit arrived after the bound and the test failed although the request was then served. A true condition still returns at once; only a condition that never holds waits longer. No eventually call in the suite expects false. Test-only.
Pin mlx-swift-lm 9db9dfc15c (Layr-Labs/mlx-swift-lm#530). A complete prefix checkpoint stored with the balanced profile is restored by decoding its coded rows; the SDK now decodes them on several cores straight into the staged pages, and stages those pages on zero-fill-on-demand memory when the serving pool does. The restored bytes are unchanged. Every Gemma 4 cache hit paid about 141 ms for this at 1,024 cached tokens on an M5 Ultra. Docs: the restore paragraph of the inference architecture, the parallel stage row of the SSD reference, and the DARKBLOOM_PREFIX_CACHE_PARALLEL_STAGE rows of the configuration and CLI references. Changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin mlx-swift-lm f335812335 (Layr-Labs/mlx-swift-lm#530): 9db9dfc15c plus a test-only commit that passes a destination to writeNative in an existing SDK test. No library change against 9db9dfc15c. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An auto request that declares no tools, whose system message describes a tool in text, can make the model answer with a message header and no content kind, e.g. <|message_model|>get_weather(city: Paris)<|end_message|>. The output lexer dropped that header as text outside every message, so the client got a 200 with empty content. With callsAreText (auto, no declared tools, DARKBLOOM_INKLING_UNDECLARED_CALL_TEXT on) the header's text is now the answer, however the message ends: <|end_message|>, EOS, another message or role, the end of generation, a < that opens no marker, or a header over the name bound (the rest is read as content). A header never holds <, so no control token reaches the answer; the request's stop scope already covers header text. Requests that declare tools, none/required/named choices, and the switch at 0 keep dropping it.
…s whole characters Follow-ups for the header-only answer: - Once such an answer goes on as text (past the 256-byte name bound, or after a < that opens no marker), the next control marker ends it unread and is read as a marker, so a later message stays its own and a thought stays reasoning. A marker's prefix waits for its bytes and is never answer text at the end of generation. - The name bound never splits a UTF-8 character: the cut waits for the character to complete.
Pin mlx-swift-lm 20fa3d540d (candidate/0.10.18-c6-sdk, landing PR Layr-Labs/mlx-swift-lm#534): main 4bb2b43ee8 with a merge of #530 (f335812335, the concurrent checkpoint row decode) and a merge of #533 (175069698c, a prompt-length limit for MTP drafting). Against f335812335 it adds only #533's change; #533's provider side and docs are their own PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The slot served the checkpoint's model_max_length (1,048,576 tokens of prompt plus output). A request near that size allocated about 130 GiB of memory up front on a 512 GiB Mac, far more than a 256 GB Mac can spare beside its other models, while 524,288 tokens (the largest window measured with the DSpark drafter on) peaked at 51 GiB. The slot now serves 524,288 tokens: an output that would pass it is cut to what the prompt leaves, a prompt of 524,288 tokens or more is refused as a context error (HTTP 400 context_length_exceeded) before it reaches the engine, and /v1/models lists 524,288. Tests: the parsed window is 524,288; prompts up to 524,222 tokens keep their output; an output past the window is cut; prompts of 524,288, 600,000 and 1,048,511 tokens are refused with 400 and never reach the engine.
Document DARKBLOOM_INKLING_THOUGHT_BUDGET and DARKBLOOM_INKLING_MAX_TOKENS_CAP in the configuration reference, beside the other Inkling 2 keys: the values each accepts, the default (off), where each is read, what it does, the startup line it logs, and that the LaunchAgent forwards it. The pairing rule for the two values (C at least the budget plus 8,192 and a margin) is stated with the cap. Add a changelog fragment for both keys, so the next release preparation renders them into CHANGELOG.md with the other entries. Docs only: no source or test file changes.
… (off by default) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Version 0.10.20; the 6 changelog.d fragments rendered into CHANGELOG.md (scripts/changelog.py render --version 0.10.20 --date 2026-11-30, verbatim, in filename order) under the candidate heading, with the upgrade and rollout notes; v0.10.19 marked published (2026-11-25); the 0.10.20 section of docs/operations/provider-release.md; the GitHub release notes docs/releases/provider-v0.10.20.md. The v0.10.19 section equals master's. Base: release/0.10.20-c1-candidate dc8c467. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…der 0.10.20) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Inkling 2 max-tokens cap added one stored property to the per-request profile, max_tokens_cap: an optional count, absent unless the cap applied. The test that guards the profile's wire shape counts its stored properties, so that a new field is a deliberate change, and checks that none of them is a String. The new field is a count, so only the expected total moves, from 60 to 61, with the comment's tally of counts and flags from 26 to 27. Test-only, one test: no source file changes. Tests: ProtocolTests (profilerWireObjectsHaveNoStringStoredProperties).
Answer a code-identity challenge only when it holds one of the nonce shapes the coordinator sends: base64 of 32 bytes, or that value, a dot and the unpadded URL-safe base64 of a 32-byte digest. Any other text gets no reply. The App Attest assertion path checks for its 32-byte nonce before the value goes into a reply, and the shadow client returns only that shape. Tests cover each coordinator nonce shape and near-miss shapes.
Refuse a downloaded release archive larger than 4 GiB before it is hashed or extracted. Release archives are about 450 MB, so the cap never stops a real release.
One line in CHANGELOG.md and docs/releases/provider-v0.10.20.md.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
left a comment
There was a problem hiding this comment.
Request changes (tracked in Linear DBLM-1526).
-
High: none of the release's content is merged on dev.
- dev's tip is still
96ab346172(#2753, the 0.10.19 sync). - Every source PR is still open on dev: #2778, #2784, #2776, #2780, #2783, and #2794 (the 0.10.20 candidate).
- Some commits have no dev PR at all:
- the Inkling 2 limits:
51f244e446, merged into the candidate asdc8c4672f9; - after the Prepare:
e457a3add4,0a81277cd9(attestation challenge check),f5421cf3fa(4 GiB cap on the update archive),1a1e2efdceand5c6a727524.
- the Inkling 2 limits:
Fix: merge #2794 and dev PRs for the limits and hardening commits, then cut the release from dev. Or get an explicit exception from David.
- dev's tip is still
-
High: the
libs/mlx-swift-lmpin is not on its main branch.- The pin is
b9969ce27d(commit62c5d29299), the head of open Layr-Labs/mlx-swift-lm#560. - #560 is stacked on
ink-engine/mtp-batch-depth, not on main. It carries unreviewed engine code: logit-bias MTP drafting, batch draft depth and the admission ceiling. - A squash merge of #560 would orphan the pinned commit, so this release's tag could not be rebuilt.
Fix: land those SDK PRs on main, and pin the main commit.
- The pin is
-
Medium: the body asks for approval at head
1a1e2efdce, but the head is5c6a727524, a docs-only commit added after it. Update the body or drop that commit. -
Low: the changelog says only "Security hardening". Say that:
- the provider now ignores challenges that are not in the coordinator's exact nonce formats;
- update archives over 4 GiB are refused before hashing and extraction.
Put this in
CHANGELOG.md,docs/releases/provider-v0.10.20.mdanddocs/operations/provider-release.md:31-33.
These are clean:
- The prod default (
?? "prod") is byte-identical to master. - No DevNet host or key is added.
52079c011's content is undone in the squash.- No migrations, and no safety check is removed.
- No wire change needs a coordinator release first.
Separate, and not caused by this PR: master already pins coordinator request-signing keys (prod e7d53f46617e9494, DevNet 7c638fff1a85dd4a, since 0.10.17, #2425). That goes against David's no-pins-until-JWS-P2 ruling. It is filed as DBLM-1528 for his decision.
commented
Dec 2, 2026
|
Superseded by the new 0.10.20 release PR (#2856 and its successor). |
Provider 0.10.20: Inkling 2: tool calls that name their input "arguments" now work; Inkling 2 Mini requests that set logit_bias can draft ahead, a batch picks its drafting depth from all its rows, and Inkling 2 Mini can answer a thinking-off request at once when the coordinator asks for it (no coordinator asks yet). Models that stay loaded keep the memory they need to serve a request when another model unloads, when the budget allows. The link to the coordinator keeps reading while a Mac is busy, so fewer connections drop. Inkling 2 has two new limits, both off by default.
Release head
1a1e2efdcea5820b0b3a418d2420c1814e087872: the 0.10.20 candidate branch (dc8c4672f9) with the 0.10.20 changes (#2778, #2784, #2776, #2780, #2783, #2794 and the memory-regrow fix), the Inkling 2 limits (merged before the Prepare), the 0.10.20 Prepare (version, CHANGELOG and docs/releases/provider-v0.10.20.md) and master's prod default for plain builds.The Inkling 2 limit commits, in order:
The two new keys, both off by default:
DARKBLOOM_INKLING_THOUGHT_BUDGET: Off by default. SetDARKBLOOM_INKLING_THOUGHT_BUDGETto a positive number of tokens to cap how long an Inkling 2 request may think before it answers; the answer itself is then capped at 8,192 tokens.DARKBLOOM_INKLING_MAX_TOKENS_CAP: Off by default. SetDARKBLOOM_INKLING_MAX_TOKENS_CAPto a positive number of tokens to lower an Inkling 2 request'smax_tokensto that number when it asks for more or names none, so more long requests fit in memory at once; a reply that would run past it ends withfinish_reasonlength.Known limit: P1 (keys unset = TODAY) is not shown deterministic: 1 / 36 rows differed (mmlupro-11145), within the measured same-binary noise (1 / 37, ifeval-1216); in both the difference was a late reasoning-tail divergence (a byte-prefix pair, 5-7 tokens past token 4,096) with the same finish ('length') and the same loop-guard stop (one, not ending the thought), placed at a different token: mmlupro-11145 OFF 4,103 vs TODAY 4,096; ifeval-1216 TODAY1 4,101 vs TODAY2 4,096.
Squash-merge only, after approval at this exact head; the signed tag and the publication follow.
Pre-commit hooks did not run; only a local pre-push guard ran. CI is the check.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.