Repository navigation
0.10.18 C8 candidate: eighteen PRs on dev - #2719
Merged
Merged
Conversation
…schemas Moves the SDK pin from 20fa3d540d to 689f2f00bf (Layr-Labs/mlx-swift-lm#535), which reads a tool-call argument written as a JSON literal as that literal when its schema admits the literal and rejects the text as a string, including under not, if/then/else, unions and untyped schemas.
Inkling 2 Mini sometimes opens a text message where a call's header
belongs: <|content_text|>NAME<|content_invoke_tool_json|>{...}. Markers
inside an answer are its text, so the lexer returned the frame as answer
text: no call for a single call, one call fewer in a parallel response.
An answer's first bytes are now held while they can still be a function
name (letters, digits, _ or -, up to 64). If the marker follows, the
message is that call with the name as its header, checked against the
body's name as a header is; any other byte releases the held bytes as
the answer's text. Calls stay text when the request declares no tools.
Moves the SDK pin from 689f2f00bf to cba8c22177, the merge commit that landed Layr-Labs/mlx-swift-lm#535 on main. Its tree is #535's tree on main 52f81662a6.
Holding an answer's name-like opening split the answer into one more
piece ("The" then " answer."), which changed what the loop guard's exit
and streaming clients see. The held bytes now stay unread until it is
decided, and leave with the text that follows them as one piece. The
reading applies only to requests that declare tools
(readsCallOpeningAnswer); the lexer's default and the existing streaming
expectation are as before. Tests: coalescing, the router reading a call
written as an answer message.
The pinned SDK now reads a Qwen XML parameter's text as the JSON literal
the schema admits under a schema with no single non-string type: a number
written exactly as JSON writes it (5 or 2.5 under anyOf string|integer,
[string, integer] or {}), and true, false or null when the schema rejects
the text as a string. The provider's model of the parser
(QwenStrictToolSchema.parserConversion) still read those texts as text, so
QwenStrictToolGrammarTests.theParsersReadingMatchesTheCallParser failed.
QwenParserLiteralReading mirrors the SDK's reading (type, nullable, enum,
const, numeric and string bounds, pattern, not, allOf, anyOf, oneOf,
if/then/else); like parserConversion it reads no $ref. A text reading now
carries the schema under which some texts read as literals, and the
grammar never holds such a parameter as free text. That existing test
assumed a text reading never converts (the old SDK reading); it now
checks such texts against the literal the model names. A new test checks
the model against the parser over 17 schemas and 14 texts. No rendered
prompt changes.
A JSON null in an earlier assistant tool call's arguments was dropped before
the chat template rendered, so the model saw a different call than the one it
made (Gemma 4: call:clear_project_deadline{} for {"deadline": null}) and
repeated the omission. The shared sanitizer now keeps those nulls as Jinja
null at their key or array position (sanitizeMessageForJinja, and Gemma 4's
string-argument path). Gemma 4's format_argument macro and the Qwen 3.5 /
Nemotron 3.5 Lightning XML parameter value gain a branch that writes null;
the rewrite is applied by the serving tokenizer and the render check only, so
the managed Nemotron Super contract renders as before. Tool parameter schemas
keep the drop policy. GLM-5.3, MiMo and Flint already kept these nulls.
The prompt contract stays darkbloom-request-normalization-v9, which still
renders such a call without its nulls. A coordinator request whose tool-call
history carries one, on a model that renders through the shared sanitizer, is
served without the prompt cache: no scope or receipt nonce, so no lookup or
ready receipt, no cached-token usage and no checkpoint write. The template
controls still come from the planned context. Each such request is logged
(public fixed line) and counted in the daemon state
(promptCacheSkippedToolCallNull).
ProductionPromptParityTests classifies a vector body with a history null as
provider-rendered and uncacheable: it checks that the body is served cold and
that the vectors still match the same body with those nulls dropped; the
vectors are unchanged. Guards updated because they asserted exactly the old
drop: JinjaSanitizationTests (the null unit argument stays Jinja null),
Gemma4ToolCallArgumentsTests (a parsed null leaf becomes Jinja null) and
FlintTemplateReplayTests' generic-architecture case (call arguments keep their
nulls; its schema assertions are unchanged).
… pin the 14 cases ProductionPromptParityTests now classifies a vector body as provider-rendered by ToolCallHistoryNullCache.servingContext itself (the serving decision), builds the v9 body for the vector comparison by passing each history call's arguments through the production sanitizeForJinja instead of a test-only dropper, and requires the classified set to be exactly the 14 vector bodies (7 models x endpoint_messages_tool_turn and gemma_tool_turn) whose earlier call carries a null. Every other case is checked as before; the vectors are unchanged.
MiMoV26PromptContractTests.testOtherFamilyStillUsesExistingPermissiveControlAndNullNormalization rendered a MiMo reference body through another family's normalization and expected different tokens, because the shared sanitizer dropped the nulls in that body's earlier call arguments. Those are exactly the nulls it now keeps, as MiMo always has, so the two renders agree. The assertion now requires that agreement; the malformed-control half of the test is unchanged, and MiMo's own render is still pinned by the reference corpus.
…ps a null Adds a second body to testOtherFamilyStillUsesExistingPermissiveControlAndNullNormalization with a null outside any call's arguments (a tool parameter schema's default), which the shared sanitizer still drops and MiMo keeps. The other family's render of it must still differ from MiMo's. The arguments-only reference body keeps the agreement assertion from the previous commit.
ProviderCore declares its own JSONValue, so the unqualified name in QwenParserLiteralReading and its test resolved to the provider's type and the target did not compile. Every use now names MLXLMCommon.JSONValue.
The SDK (M7) now reads null, true and false in XML text as the literal the schema admits even when it also admits a string, in any case and with Python's None for null, as vLLM does. QwenParserLiteralReading follows: any number, Boolean or null type the schema may admit lets a text read as a literal, and an exact spelling wins over the string reading. The mirror test adds those spellings and three string-admitting schemas.
…rals States plainly for clients that rely on typeless strings: a parameter with no declared type reads a number, true, false or null (any letter case, or None) as that JSON value, and an optional string reads null as null. Plain-text argument formats only; quoted JSON strings unchanged.
The schema body now renders twice per family: without the default null the two families must render it alike, and with the default null they must differ, so the null is the only cause of the difference. The schema value is typed as MLXLMCommon.JSONValue explicitly.
…those requests cold
Gemma 4's template prints one render type per tool parameter and never
anyOf/oneOf, and the shared schema repair types a union by its first non-null
member. A union of string and one other scalar type with string first, such as
{"type": ["string", "integer"]} or an anyOf/oneOf of the two, therefore
rendered STRING and Gemma quoted typed values ("-4200" for -4200).
Gemma's tool enforcement (Gemma4ToolSchemaEnforcement invariant 7) now renders
such a property as the other member (INTEGER, NUMBER or BOOLEAN); a null member
is skipped as nullable carries it. Unions with more members, non-scalar
members, an enum, a const or allOf keep STRING. The union stays in the request
and only the render input changes, so the validator and constrained decoding
still accept both members. Other families keep the shared repair's render type.
The prompt contract stays v9, which renders STRING. A coordinator-planned
request whose declared tools get a changed Gemma render type
(ChatTemplateFixes.changesGemmaToolUnionType, the same tool path run on the
declared tools) is served without the prompt cache, like a request whose
tool-call history carries a null: no scope or receipt nonce, logged and counted
(promptCacheSkippedToolUnionType). ProductionPromptParityTests pins the set of
vector bodies this applies to: none.
… the self-test's release The warm case failed once in CI (#2647's dev run, attempt 1) at its check that calibration was scheduled. The startup self-test reads a stream that ends before the bridge's pump releases the request's service charge, and calibration starts only on an idle Mac, so the driver's epilogue could run while the charge was still held and schedule nothing; in production the next capacity tick schedules it. The test's self-test now returns once the bridge has let go of the request, the test awaits the preload driver itself instead of polling it for 5 s, and the warm case's gate allows 600 s so a slow runner can't turn it into a timeout. A one-minute time limit bounds the test. Test-only.
…ne's lease ended the request aRequestsOwnBoundEndsItsWaitInTheEngineQueue asserted that the request took under 2.5 s, with the engine's lease at 3 s. The CI watchdog pauses the test process to sample it once the suite has run 900 s, which can stretch that real-time bound (#2616 widened only the eventually waits). The lease now fires at 20 s and records that it ended the request; the test checks that it did not, with the 1 s lower bound and the engine-queue cancel unchanged. Test-only.
…sent ReasoningEffort.harmonyLevel and the inference architecture's effort table said the coordinator caps OpenRouter's GPT-OSS effort at medium, and that no Mac may run the Harmony levels before that cap is live. The cap was dropped before darkbloom-platform#721 merged: its ingress now passes every effort to the provider as sent, OpenRouter's included, so high, xhigh and max render high for every caller. Comment and docs only.
…d is kept ClusterNativeMemberAttachment.validate refused a saved approval that no longer matches its setup with one fixed line, "Saved pair approval differs from the model, runtime, Plan, profile or schedule", so a DevNet refusal after a rollback and forward could not be traced to a field. It now names each differing pin (model, Plan, artifact, runtime, capability, profile, schedule) with the approval's and the setup's values, a digest by its first 12 hex characters; the checks are the same. The leader's ClusterApprovalSync result carries the refused approval, and the setup record keeps it beside the refusal note (approvalRefused) until the note changes.
…e leader's approval A Mac that refused an approval while it led kept that note in wizard.json after the pair was approved again under the other Mac's leadership (DevNet F5: the status still showed the old refusal). ClusterApprovalSync.receive now clears the note and the refused approval from this Mac's setup record once it saved the approval its leader sent; a refusal keeps them, and a record without either is not written.
…rwarded cancel DistributedQwenMediaLifetime.withSubmission runs its body in a producer task and forwards a cancel to it from withTaskCancellationHandler. The producer can reach the test's gate before the submission has registered that handler. The test then cancelled the submission, opened the gate, and the producer's checkCancellation could run before the forwarded cancel arrived: the body returned normally and the expected CancellationError never came (X7''' SDK 27, after 0.001 s). The handler forwards an earlier cancel as soon as it is registered, so the cancel isn't lost; it can only come after the body has finished. The producer now waits for its own cancellation, an event, before checking it, and a one-minute time limit bounds the test. Test-only.
Inkling 2 Mini's DSpark drafter resolved to typical acceptance when no mtp_acceptance was set. Its drafts are greedy, so typical acceptance kept them far more often than sampling would: on OpenRouter's GPQA shape at temperature 0.5 none of 8 drafter-on samples answered (they repeated to the 32,768-token cap or the loop guard), while all 4 drafter-off samples of the same questions answered correctly. Add the served Inkling identity to MTPAcceptancePolicy.builtInIsExact. A per-model or global setting still wins.
#537 reads null, true and false the XML schema admits, in any case and as Python's None, beside a string type.
…t is released The startup self-test reads a stream that a native engine ends before the bridge's pump releases the request's service charge. Calibration starts only on an idle Mac, so the startup preload's epilogue could find it busy and skip calibration until the next capacity tick. runStartupSelfTestDecode now waits until the slot's bridge has released every request (EngineV2Bridge.awaitRequestsReleased: resumed when the last pump clears, at most 2 s, the shape warm-up's settle bound). Test calibrationStartsWhenTheSelfTestIsReleased holds the self-test's pump after its stream ended (a DEBUG seam) and checks calibration is scheduled once it is released.
Each slot's capacity now carries observed_decode_tps_age_ms: whole milliseconds since publishedDecodeAt, the newest sample that moved the published rate (a reply of at least 32 tokens, or a calibration cell), so a short reply doesn't reset it. It is sent only with a published rate (encodeIfPresent; nil otherwise). The rate, the idle-age rule and every provider decision are unchanged; the coordinator's json.Unmarshal of the heartbeat (protocol/messages.go:1366-1371, no DisallowUnknownFields, no custom UnmarshalJSON for the slot) ignores the field until it reads it. Capacity events compare slots field by field, so the changing age triggers none.
The provider's stop signals start one drain (ProviderTermination.request), which waits for running requests (up to DARKBLOOM_DRAIN_TIMEOUT_SECONDS, 600 by default) and doesn't cancel a running prefill; a second signal was a no-op. A SIGINT after any stop signal now ends the process at once with _exit(130) and a stderr line (ProviderStopSignalState). SIGTERM and SIGHUP still only join the drain: the cluster supervisor and launchd may send SIGTERM more than once. The signal source's merged deliveries are counted (source.data), so two quick Ctrl-Cs still count as two. Tests: the state machine, and child processes where a second SIGINT exits 130 and a second SIGTERM keeps draining.
#543 keeps prefix checkpoints past 65,536 tokens storable in a compact manifest. The provider uses no changed interface; no source change.
… before
Under tool_choice required the declared tools compile, and a marked node
compiles only as exactly {type: string, <marker>: true}
(ToolConstraintSchema); an annotated or false marker is refused there, as
on dev before this change. The test now expects that refusal for the
forced choice and checks the argument reading and grammar under auto.
…guard: add the null-free control for the schema body
…ol property declared without a type untyped; serve those requests cold
…rst union reads a Gemma bare literal by the declared union
…oice refuses annotated render-marked parameters, as before
…swer pieces unchanged unless a call opens the answer
…refused pair approval names its pins; changelog
…ept Inkling 2 Mini drafts exactly by default
…ept drafts exactly for every model by default
… Inkling 2 Mini draft on penalty and stop-string rows
…nderTests: check other families with their own build ids
…artup calibration waits for the self-test's release; changelog
…served_decode_tps_age_ms; changelog
…second Ctrl-C exits at once; changelog
…move the deadline decode rate until a counted request has
…e own-bound head-hold test records whether the engine's lease ended the request
…e coordinator passes GPT-OSS's reasoning effort as sent
…e cancelled Qwen media submit test waits for the forwarded cancel
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
The 0.10.18 candidate: eighteen pull requests merged onto
devin order, one signed merge commit each. It moves the SDK pin toe7918994a7(through #2640, then #2689).3e550134aa4af17dfdcf5318102fbbcd0fbb8777939db0b3d51b0745b4feb6e2202215ef6bc4dcfc3fc008034690d995ec11de58437b5f13006f48994fd38a1a64da50b1c3cbab34fd0b08113a84ea27c086cdee7e5c73d2234fTest plan
AI usage
accurately describes the code changes.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.