Repository navigation
0.10.13 candidate (phase B) into dev, for the DevNet build - #2085
Merged
Merged
Conversation
Super has the highest rate of any family: on 0.10.12, 29.6 per 1,000 GPQA-shaped requests (24/812, the last 12 h) end with the loop guard's stop and no answer, all `success` below the cap; identical prompts stop at the same count. Its GPQA rolling score is 82.7 against an 82.8 derank cutoff. Super's requests take its owner's route (NemotronSuperLocalImageHTTP -> NemotronSuperLocalBinding), not the scheduler's text path, so #2040/#2046's continuation never reaches them. Red tests and the API they need, with no behaviour yet: - Super's exit is `</think>` alone, as its pinned template writes a closed thought ("<think>\n" + reasoning + "</think>" + content); the thinking-on prompt opens the thought, thinking off starts outside; never with logprobs; the env list can leave Super's off; the guard carries it (`NemotronSuperRequestPlan.exitThinking(promptTokens:tokenizer:)`, `loopGuard(exitThinking:)`). - End to end through the binding (a scripted Super engine): a repeating thought is continued on the same bridge with the prompt, the row's tokens and `</think>`; the client gets `...</think>Answer: B` and one terminal with every token; a stop that ends the answer is the request's matched stop sequence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Super's requests take its owner's route, so the scheduler's continuation (#2040, #2046) never reached them. Now: - `nemotron_h_omni`'s exit is `</think>` alone: Super's pinned template writes "<think>\n" + reasoning + "</think>" + content, nothing around the marker (`</think>` is an added token, 13, special: false). On by default, subject to the A/B. - NemotronSuperRequestPlan.exitThinking(promptTokens:tokenizer:) resolves it from the rendered text prompt (never with logprobs or media), and the route passes it in the request's guard (`loopGuard(exitThinking:)`). - NemotronSuperLocalBinding.executeBridge continues the answer as the scheduler does (LoopExitThinkingContinuation), within the same admitted request and on the same bridge: it waits for the stopped row's slot (waitForRowRelease, 5 s), submits the prompt + the row's tokens + `</think>` with the budget the row left (at most 8,192), its own usage signal (its matched stop becomes the request's) and a plain guard (GenerationLoopGuard.withoutExit(), so a loop in the answer still ends `length`). A cancel stops whichever row runs, and the request waits for both rows' terminal observations. Never on a pair. - Docs (loop guard section) and a changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tests and the API, no behaviour: GemmaAnswerPieces decodes nothing, GemmaJSONAnswerPolicy declines every request, and the constraint admits nothing, so the new suites fail. - GemmaAnswerPiecesTests: SentencePiece pieces as the bytes the decoder writes (U+2581 spaces, non-ASCII byte fallback, no ASCII byte fallback, control tokens and <unusedN> slots never text), and the pinned contract (marker ids, 262,144 ids, terminators among the engine stops). - GemmaJSONAnswerConstraintTests: one JSON value across token boundaries; non-ASCII bytes only inside strings; fences, prose and endless blank lines refused; a free thought then the answer (the close as its token, spelled from pieces, or fused with the value); no control spelling in the answer; schemas (nested, enums, required, maxItems, keys once); root scalars; the mask independent of the budget; past the state cap the answer continues unconstrained. - GemmaJSONAnswerPolicyTests: eligibility per model type, format and thinking; the DARKBLOOM_GEMMA_JSON_ANSWERS switch and its launchd passthrough; out-of-scope requests keep today's path; unsupported schemas (incl. $ref) fall back to a JSON object or prompt-only, never a refusal; a cluster pair or native-tracked engine gets no Gemma JSON constraint. - GemmaJSONAnswerServingTests: through the scheduler and bridge, streaming, thought then answer through the Gemma 4 parser, a fence dropped, a budget cut stays length with no error, unformatted requests unchanged. - GemmaJSONAnswerRealTokenizerTests (DARKBLOOM_TEST_GEMMA_TOKENIZER_DIR): every piece equals the shipped tokenizer's decode; real prompts and answers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e thought OpenRouter scores 2.1-5.0 % of Gemma 4's structured outputs as failures (41K-108K a day): the provider neither constrained nor checked them. A text request on gemma4 / gemma4_text with a JSON response_format, no tools, no tool_choice, no client stop, the gemma4 reasoning parser and the pinned chat template now samples under GemmaJSONAnswerConstraint: - Vocabulary: Gemma's tokenizer is SentencePiece BPE with byte fallback, not byte-level. GemmaAnswerPieces gives every id the bytes its decoder writes (U+2581 a space, <0x80>..<0xFF> that byte, other pieces their UTF-8); the 24 added tokens, <unusedN> slots and ASCII byte-fallback tokens are never text (a byte-fallback run that is not UTF-8 decodes to U+FFFD per token, so an ASCII byte spelled that way could vanish). Pinned: <|channel> 100, <channel|> 101, <turn|> 106, <eos> 1, exactly 262,144 ids, terminators among the engine stops. Built once per tokenizer and stop set. - Phases: thinking off renders a closed empty thought, so output starts in the answer; thinking on may open a free thought (no EOS, no added token) that the first <channel|> ends, as its token or spelled from pieces, or answer at once. The answer is one JSON value of the shared FlintJSONGrammar (json_object, or json_schema within the subset); no Gemma control spelling completes in it; <turn|>/<eos> only once the value is complete, and after a self-delimited value the terminator only. Whitespace outside strings runs at most 64 bytes, so a model reaching for a fence cannot loop on newlines. - Best effort: no post-validation, so a budget cut stays length as before; past 16,384 interned states the answer continues unconstrained instead of failing; an unsupported json_schema with an object root is held to a JSON object, any other keeps prompt-only steering; a cluster pair or native-tracked engine (which refuse token constraints) gets the request unconstrained (EngineV2Bridge.admittedConstraint). - DARKBLOOM_GEMMA_JSON_ANSWERS=off restores prompt-only answers; LaunchAgent passes it to the launchd job. A constrained row never drafts (mtpBasicEligible); on Gemma's non-recurrent target its decode steps run target-only for every row in them, as a stop or penalty row does today. Docs: inference.md, configuration.md; changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s in the sampler (red) The API only (no request is constrained yet) and the tests: nested objects, arrays, enums, integers vs strings, $ref/$defs, anyOf with null and open objects, required/optional/duplicate/undeclared parameters, reasoning on and off, multiple calls, auto vs required/named/none, unsupported keywords left unconstrained, the per-model switch and its launchd passthrough, the parser reading against Qwen35ToolCallParser, random calls drawn from the masks, and streamed deltas through the router and through the scheduler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2046 now keeps Qwen 3.5/3.6's exit listed and off by default (the A/B found too few Qwen thought loops to show rescues). Conflict in GenerationLoopExitThinkingPolicy: the default list keeps Gemma 4 and, as this branch had it, Super; the doc comment takes #2046's Qwen wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iew fixes From the independent review of ab972c2 (APPROVE WITH NITS) and the first local compile: - Mask keys: states that differ only in a whitespace run no piece can push past the 64-byte cap admit the same tokens, so they share one mask key (GemmaJSONAnswerBoundary.maskEquivalent, using the vocabulary's longest leading whitespace run, 31 bytes for Gemma 4). Indentation no longer multiplies O(vocabulary) mask builds and uploads. - Host memory: no per-state allowed-set cache (the sampler keeps the uploaded mask per key); at most two broad allowed sets per request. - A tool-free tool_choice "auto" is eligible (the same request). - "held to a JSON object" is logged only once the constraint is built. - Comments and docs: a byte-fallback run decodes as a whole (U+FFFD for a run that is not UTF-8); no tokenizer clean-up for Gemma; leading whitespace before the thought stays content. - Tests: compile fixes (raw strings holding "#, nested #require, a Sendable static fixture); a long pretty-printed answer stays far below the state cap and shares masks; whitespace runs share a key until the cap is in reach; an enum spelling a Gemma control in an object root is held to a JSON object; the real-tokenizer check tolerates swift-transformers' clean-up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s in the sampler A strict auto call is checked against the caller's schema when its frame closes, after the answer started streaming, so a call that missed the schema failed a started response (OpenRouter's main remaining Qwen 3.8 uptime cause). On Qwen 3.8, 3.6 and 3.5 (qwen3_5, qwen3_5_moe) on one Mac the sampler now holds every call of a request that declares a strict function to the declared schemas: a declared function, declared parameters at most once, required ones before </function>, and values the call parser reads as schema-valid arguments (text, an enum's exact values, or one JSON value of the declared schema, by the parameter's rendered type). Reasoning and text stay free, auto still decides whether to call, and the prompt does not change. Local $ref/$defs are inlined like the coordinator's resolver; anyOf/oneOf with null, a single allOf and objects beside an open object are folded; annotations (format included) are dropped. A schema outside the shared subset, a cluster pair, a native-tracked engine, media, another family or tool choice keep today's unconstrained calls, never a refusal. The loop guard stays on for these requests. A constrained row drafts no MTP tokens (SDK). DARKBLOOM_STRICT_TOOL_GRAMMAR (off word = today; a list picks builds) and DARKBLOOM_STRICT_TOOL_GRAMMAR_ALL_TOOLS (also non-strict requests) reach launchd providers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh-context review of #2061 (REQUEST CHANGES) found: - 1 (blocker): on by default for all Super traffic before its A/B. Super's continuation re-prefills a 120B hybrid model's whole thought, and its answer quality and pause are unmeasured. - 2 (major): a cancel or drain during the hand-off (the stopped row's release wait, the submission) could return the owner's admission before the second row was submitted: the splice's task was not joined, and a continuation submitted after the cancel was cancelled only later. - 3 (minor): the tests overwrote the terminal (one `info` not checked), and did not cover the answer loop or thinking off on Super's route, the real `</think>` id (13), or the sampling the continuation keeps. Red tests and the API they need, with no behaviour yet: - Super's exit is listed but off by default; the env list turns it on. - On the binding: one terminal `info`; the continuation keeps temperature, seed, top-p/k and penalties; Super's real ids (`</think>` 13); with the exit on, a loop in the answer or after a thinking-off prompt still ends `length` with one submission. - The splice: a cancel during the hand-off starts no continuation, and `finished` (new; a stub here) returns only once the submission returned and was cancelled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e suite's SplitMix64; a real-tokenizer walk The property test's generator was a second internal SplitMix64 in the ProviderCoreTests target (ThroughputSweepTests and SSDBlockIndexTests declare one); it is a private StrictGrammarRandom now. A suite gated by DARKBLOOM_TEST_QWEN_TOKENIZER_DIR builds the vocabulary from the shipped Qwen tokenizer, checks the rendered prompt boundary with tools for thinking on and off, and walks a real tokenization of a call through the grammar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… state-cap walk reaches a fourth state The synthetic Gemma tokenizer spelled "model" and "thought" one character at a time, so the rendered prompt's tail outgrew ReasoningPromptProbe's eight tokens and the policy (correctly) declined: the shipped tokenizer keeps both words whole (checked by GemmaJSONAnswerRealTokenizerTests). A string body is one interned state, so the state-cap test now walks to the colon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tests for ending a repeating GPT-OSS analysis message, before the behaviour: with the served Harmony framing, a verbatim loop inside `<|channel|>analysis<|message|>` should end that message and start the next assistant message (`<|end|><|start|>assistant`), so the model writes its `final` answer or its tool call in the same response. - Policy: `gpt_oss` resolves the exit [200007, 200006, 173781] with the o200k_harmony ids, on by default; the prompt (ending at `<|start|>assistant`) starts outside the analysis; `0`, `off` or a list without `gpt_oss` keeps the `length` stop; never with logprobs; the control tokens must resolve as themselves. - The guard: a loop inside the analysis (its header in three deltas) asks for the exit; a loop in `final` or a commentary preamble does not; a second analysis message does; a call header disarms it; an `<|end|>` in the stopping delta or in flight keeps the stop a `length`. - Serving (scheduler text path, the real bridge, a scripted engine): the continuation's exact prompt and budget and the request's sampling; the answer as content and the analysis as reasoning through the streaming and the collected Harmony parsers, no framing in either; the exit as one chunk between the row's text and the continuation's; a tool call after the exit in both header forms, streamed and complete; every reasoning effort (low, medium, high, xhigh, unset); a continuation that reopens the analysis ends `length`; no budget left; the same events as without the exit where the guard does not fire or fires after the analysis; off. - The served tokenizer and template (opt-in, `DARKBLOOM_TEST_GPTOSS_TOKENIZER_DIR`): the exit's tokens, every effort's prompt boundary, and real tokens through both parsers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Behavior-preserving, from the required refactor-pass subagent (earnings/gemma-json-evidence/review/REFACTOR.md): one guard for the bounded state in nextState and Node.maskEquivalent for the mask-key bookkeeping; clearer private names (thoughtOpen, thoughtCloseMarkers, extendWhitespaceRun); comments and the inference.md section corrected (the answer ends with <turn|> or <eos>; the thought admits the two thought markers; the caps named); test fixture shorthands. Token sets, transitions, mask keys and interning are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cost as the engine applies it A nested JSON string could end in a lone \uD800-\uDFFF escape, which the parser's JSONSerialization refuses, leaving the whole object or array parameter a string the strict check rejects (review M1). JSON values now never spell a surrogate escape (nor a backslash before such text); other escapes and characters written as such are unchanged. Each span's markers are built once per constraint instead of per byte. As with constrained JSON answers, a constrained row stops MTP speculation for every row of the decode steps it shares on these engines, not only its own (review M2): docs, changelog and the policy's comment say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ool call The loop guard's exit from a repeating thought (#2040, #2046) for GPT-OSS's Harmony analysis channel. In OpenRouter's Tau2-Bench airline run on 0.10.12 (`reasoning_effort: high`, temperature 0), 27 % of GPT-OSS's turns ended empty: the analysis repeated itself and the guard stopped the row at 4,097 tokens with no final message and no tool call. - `GenerationLoopExitThinkingPolicy.harmonyAnalysis` for `gpt_oss`: the guard follows `<|channel|>analysis` … `<|end|>` (the prompt ends at `<|start|>assistant`, so it starts outside), and the exit is `<|end|><|start|>assistant` ([200007, 200006, 173781] with the served tokenizer): the analysis message ends and the next assistant message starts, as after the model's own analysis, so the model picks `final` for an answer or `commentary to=functions.…` for a call. The splice, the scheduler's continuation and the parsers are unchanged. - `Markers.controls`: control tokens spelled in the exit's text must resolve as themselves and be among its tokens; otherwise no exit. - `gpt_oss` joins the default list; `DARKBLOOM_LOOP_EXIT_THINKING` without it (or `0`) restores the `length` stop. Docs and changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re grammar-constrained (red) Red first: JSONAnswerFamilyTests expects tool-free JSON response_format answers on the Bonsai 2 builds (prism_hadamard_qwen35, Qwen 3.5's tokenizer) and on Nemotron 3.5 Lightning (nemotron_h listing) to get a JSONAnswerConstraint, and unlisted builds and DARKBLOOM_JSON_ANSWER_GRAMMAR=qwen to keep prompt-only steering. The policy surface is in place (QwenJSONAnswerPolicy becomes JSONAnswerPolicy with per-family profiles; JSONAnswerProfile carries its BPE id range so Nemotron's added tokens at 0...999 are skipped; the nemotron35 and bonsai2 contracts), but no new family is admitted yet, so the admission tests fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…vior change) From the dedicated refactor-pass subagent (AGENTS.md): drop the unused isInsideCall, build the JSON value markers from the text ones, correct a test suite name and the switches' on words in comments, and keep the forbidden spellings once as strings. Masks, transitions, eligibility, switches and the hook API are unchanged; the suite passes (20/20 in the trimmed local run). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… fold Resolution branch for the re-fold, not for merging on its own: #2070 (GPT-OSS exit-thinking, head bf45ff5) and #2061 both start at #2046's head and both add their family to `GenerationLoopExitThinkingPolicy.defaultModelTypes`. The one conflicting line takes both: gemma4, gemma4_text, qwen3_5_moe, nemotron_h_omni and gpt_oss. Everything else merged as written (the markers table keeps both entries; the docs and changelog fragments are each PR's own). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…N answers) for the 0.10.13 fold Resolution branch for the fold (do not merge on its own). The only conflict is the LaunchAgent doc comment both PRs added after the cold-load line: both kept, #2069's first (its fold order). The passthrough list carries every switch: DARKBLOOM_GEMMA_JSON_ANSWERS, DARKBLOOM_STRICT_TOOL_GRAMMAR and DARKBLOOM_STRICT_TOOL_GRAMMAR_ALL_TOOLS. The constraint paths are disjoint: the Gemma JSON policy answers inside ToolConstraintFactory.make for tool-free gemma4 requests; the strict grammar's block runs after it only when no constraint was built, for Qwen 3.5-family tool requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…llow their schema in the sampler JSONAnswerPolicy admits two more families to the JSON-answer grammar the Qwen 3.5 family already uses (JSONAnswerConstraint), each on its own pinned token contract: - PrismML Bonsai 2 (prism_hadamard_qwen35, the listed 27B and 9B builds): Qwen 3.5's tokenizer (base vocabulary and added tokens identical to Qwen 3.8's), so the qwen35 ids under the family name Bonsai. - Nemotron 3.5 Lightning (nemotron_h, the Lightning listing ids; Nano shares the type and is not admitted): special and added tokens at 0...999, byte-level BPE at 1000...131071, <think> 12 and </think> 13 as output pieces, <|im_end|> 11 and </s> 2 as answer terminators. On the signed 0.10.12 (Mac B, 144 answers each) Lightning with thinking off missed the schema 8 times in 72 (raw newlines inside strings, prose, extra keys, wrong types); each is impossible under the grammar. Bonsai 27B was valid 144/144. DARKBLOOM_JSON_ANSWER_GRAMMAR=qwen keeps the grammar to the Qwen types (read at launch, forwarded to the LaunchAgent). Docs: inference.md (the section and the MTP note: Lightning's constrained rows don't speculate either), test.md, configuration.md; changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tokenizer decode; stamps From the delta review of db19ace (APPROVE WITH NITS): - every mask equals exactly the tokens its state accepts (plus the terminators once complete) across whitespace runs, in the opening phase and three answer positions, including the runs where mask sharing stops; - the real-tokenizer check is exact again (the provider's loader turns the tokenizer's clean-up off for Gemma) and asserts that a space before punctuation survives; - the changelog says a tool-free "auto" is covered; inference.md and configuration.md restamped 2026-11-13. No source change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2070) From the fresh-context review (ship with fixes, no P1): - P3-4: `controlTokensResolve` passed on the red commit because every case expected no exit. It now first resolves the served spelling, so each refused case differs from a working one in one respect only. - P3-1 (by design, now pinned): the guard ends an analysis only at `<|end|>`. Both Harmony parsers agree: a `<|start|>assistant` inside an analysis message is dropped and the text after it, a `final` header included, is still reasoning, streamed and collected. A loop there asks for the exit, whose `<|end|>` is what lets an answer through. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d resolution Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… object
A json_object answer's root is an object, so the walk to the array position
starts with {"a": [1, (the bare [1, prefix was refused at the root, as it
must be).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mpts on a single Mac, Bonsai's own terminator (review round 1 + refactor pass)
Independent review (REQUEST CHANGES) and the refactor pass:
- Bonsai 2 27B's artifact declares <|im_end|> alone as EOS, so the slot's stop set
is {248046} and the Qwen contract (both terminators) never matched: bonsai2 now
pins <|im_end|> as its one terminator (a slot that also stops at 248044 never
samples it). The vocabulary checks the stop set before decoding the pieces.
- A cluster pair refuses any token constraint before reserving; Bonsai and
Lightning pairs keep today's prompt-only service (servesDistributedPair is passed
from the text path through ToolConstraintFactory to JSONAnswerPolicy). Qwen's
pair behavior is unchanged.
- Both new families constrain answer-first prompts only
(JSONAnswerProfile.constrainsReasoning false): a constrained row never drafts and
on these targets no row in its step does, Lightning's reasoning runs to
thousands of tokens, and the thinking answers met the schema in our checks
(Lightning 72/72). This also removes the nested-<think> disagreement with
Bonsai's splitter, which only arises while reasoning.
- Lightning: </s> is no longer a content or reasoning marker (no piece; the HTML
close tag stays writable).
- The switch also narrows on 0, off, false, no, none.
- Refactor pass: pieceIDs -> bpeIDs, comment fixes, matchesModelID in the Bonsai
arm, the test helper's unused parameter, the policy test split, docs wording.
- Tests: Bonsai with stops {248046} and both; reasoning-first prompts and pairs;
the switch values; the hybrid8 and rollback Lightning ids; </s> writable; the
opt-in real-tokenizer suite derives the stop set as a slot does
(ModelEOSPolicy.artifactEOSTokenIds + the tokenizer's EOS) and covers Bonsai
(DARKBLOOM_TEST_BONSAI_TOKENIZER_DIR) and Lightning.
- Docs (inference.md, test.md, configuration.md) and the changelog state the
answer-first scope, the pair exclusion, and that these answers lose MTP and the
loop guard and fail the format check when cut, like Qwen's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l marker stays text
A call now commits at <function= (after optional whitespace following
<tool_call>), where the parser and the frame scanner commit to one; any other
first byte is text again, as without the grammar, and the text watcher sees
the bytes since the marker. { (the JSON dialect) and a non-ASCII byte right
after the marker are refused (review S1). With parallel_tool_calls false no
call opens after the first one closed (S3).
A parameter the streamed call would expose as text while the parser converts
it (a {"type":"null"} parameter) declines the request:
QwenStrictToolSchema.streamsAsText mirrors Qwen35ArgumentStreamer and a test
checks it against the streamer (M3). The scheduler hook reads the switch
first and counts the grammar's setup, the first request's vocabulary build
included, in the profile's tool_constraint duration (S8). Opening masks are
cached by the bytes matched, stop tokens are merged into sorted masks instead
of re-sorting, and opaque-span masks are keyed by whether stops are allowed.
Tests: the mention, single-call and streamer-mirror tests; the property test
draws calls for the $ref and union fixtures too and checks each one parsed
and streamed. Docs and changelog: the free phases' tokens (S4), calls inside
the thought (S2), the exit-thinking continuation (S5), and the MTP cost with
up to 8 decode rows (M2).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#expect `#expect(streamed.allSatisfy(\.content.isEmpty))` does not compile: the macro passes the key path as a possibly-throwing function to the rethrowing `allSatisfy`. The streamed content is joined first and checked as a value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…old resolution For a fold in which #2071 (Gemma 4 JSON answers) and #2069 (Qwen strict tool calls) ride before #2075: 97ea9cf (#2075 + the candidate a2652e0) merged with #2077. - ToolConstraintFactory.swift (textual): #2071's Gemma JSON-answer block is kept ahead of #2075's `JSONAnswerPolicy` block; the comment names the policy. - GemmaJSONAnswerConstraint.swift and QwenStrictToolGrammar.swift (semantic): #2075 replaced `JSONAnswerProfile`'s `firstAddedTokenID` with the `bpeIDs` range, so Gemma's `firstAddedTokenID: 0` is `bpeIDs: 0..<0` (no byte-level ids, as items/2075.fix.py does) and the Qwen tools profile's `firstAddedTokenID: 248044` is `bpeIDs: 0..<248044` (the same ids).
… a length finish on the fold (review) On the 0.10.13 candidate, #2053 ends an answer cut at max_tokens as a normal length finish with its content as generated, constrained JSON answers included (MultiModelBatchSchedulerEngine skips JSONAnswerOutput.validate when prepared.cutAtLimit). #2075's changelog fragment and docs still called it the typed 422: they now say a miss at a natural stop is the 422 and a cut is a length finish. The skipped-check notes name the JSON-answer families, not Qwen alone. Comments and docs only (REVIEW-FOLD F1, N2).
…e 9B does not (red) The owner (11:20Z): Qwen 3.8 27B on by default once a central kill path exists. darkbloom-platform #938 (EIGENINFERENCE_STRICT_TOOLS_UNMARK_MODELS) forwards a listed build's tools without strict, which turns the grammar off for it on every Mac. The default table becomes the MoE builds and qwen3.8-27b; the 9B (also qwen3_5) stays opt-in. Red by assertion: the default setting is still [qwen3_5_moe], Qwen 3.8 is not enabled by default, and the scheduler serves its strict request unconstrained. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 27B The owner (11:20Z): Qwen 3.8 on by default once a central kill path exists. darkbloom-platform #938 (EIGENINFERENCE_STRICT_TOOLS_UNMARK_MODELS, Stage 7) forwards a listed build's tools without strict, which turns the grammar off for that build on every Mac with no provider change. The default builds are now qwen3_5_moe (Qwen 3.6, Qwen 3.5 35B) and qwen3.8-27b (defaultBuilds, read as a list entry: a model_type or a model-id part); the 9B (also qwen3_5) stays opt-in. GPU on Qwen 3.8 (STRICT-GRAMMAR): a lone strict answer decodes at ~50 instead of ~120 tok/s (no MTP while constrained); with two or more rows MTP barely drafts anyway; nested strict set 38/40 -> 40/40, repaired strict requests 50/50, Tau2 all-strict 42/42 valid. Docs: inference, configuration, changelog fragment, LaunchAgent note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the default flip Fresh delta review of af3152b..242b6bd (APPROVE WITH NITS): pin that a list replacing the defaults without qwen3.8-27b turns Qwen 3.8 off on that Mac (nit 2); the changelog names the coordinator switch's limits (those calls are then not checked against their schemas; a body above 4 MiB and a Mac with DARKBLOOM_STRICT_TOOL_GRAMMAR_ALL_TOOLS=on are not reached) (nit 1), the neighbours' ~13 % at four rows (nit 5), and words Qwen 3.8's reason as measured: strict calls missing their schemas were its main remaining failure on OpenRouter (nit 4; also inference.md and the doc comment). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t on) into the 0.10.13 fold resolution STRICT-GRAMMAR's FINAL-2 (CONFLICTS.md 12:04Z): its new commits touch only #2069's own files, LaunchAgent note lines, docs sections and changelog fragment; the merge is clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e subset (red) Tests first, against API stubs: Pydantic schemas ($defs/$ref, an enum class, Optional as anyOf with null) are enforced as written on Qwen; value assertions (minimum, pattern, format, maxLength, maxItems over 16, uniqueItems, additionalProperties schemas) leave the structure enforced and the values free, with no refusal after; an object root the subset cannot shape is held to a JSON object; other roots stay prompt-only; Bonsai keeps declining; the switch DARKBLOOM_QWEN_JSON_SCHEMA_REWRITE reaches launchd and its off words restore today's declines. Two schemas leave the prompt-only list: with the switch on they are now constrained. Stubs: ResponseSchemaRewrite.subset(_:relaxingAssertions:), QwenJSONSchemaRewrite (exact compile only), JSONAnswerPolicy's widensSchemas. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…schemas On Qwen 3.5, 3.6 and 3.8 the JSON-answer grammar declined everyday client schemas (Pydantic $defs/$ref and Optional fields, minimum, pattern, format, $schema, maps), and those answers went out unconstrained and sometimes fenced (STRUCTURED-2 §2.4). On the Qwen profile a json_schema the subset refuses is now tried rewritten exactly (#2071's ResponseSchemaRewrite), then with its value assertions dropped (ResponseSchemaRewrite.subset(_: relaxingAssertions:): valueAssertions, item bounds beyond 16, an additionalProperties schema as true; the grammar keeps the structure, types, enums and required keys), then, for an object root, as a JSON object; else today's decline. A widened answer is best effort, as these requests were unconstrained before: JSONAnswerFormat.unchecked skips the check after generation, so none is ever refused. Bonsai and Lightning keep declining. Switch DARKBLOOM_QWEN_JSON_SCHEMA_REWRITE (on; off, 0, false, no restore the decline), forwarded to launchd. One content-free log line per widened answer. Docs (inference.md, configuration.md) and a changelog fragment. Red (4a4a1c4, local): the new suite fails, 17 issues in 6 tests; the other 14 suites pass. The green commit also asserts that widened formats skip the check and subset formats keep it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…red) The GPU A/B (11-13, Mac A, gpt-oss-20b, effort high, T 0, signed 0.10.12 vs this branch) found the exit reliable only with tools: of 66 Tau2-Bench airline turns 0.10.12 lost to the guard, 40 ended with a call or a reply (25 + 15); of 10 GPQA loopers without tools, none: after `<|end|><|start|>assistant` the model opened a new analysis and looped again, billed 3.5-7K more tokens for the same empty answer. - The tests: `resolve` takes `declaresTools`; a GPT-OSS request without tools gets no exit and keeps today's `length` (policy and serving); the other families do not depend on it. The serving suite now declares tools by default (Tau2's shape); the streaming test checks order and content of the joined stream, as a tool handler may hold `<|start|>assistant` (a call header's prefix) for a chunk. - The API only (`declaresTools`, `toolRequestsOnly`), unused: exactly the two new tests fail locally (5 issues; 64 others pass). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`GenerationLoopExitThinkingPolicy.resolve(declaresTools:)`: a family in `toolRequestsOnly` (GPT-OSS) gets its exit only when the request declares tools; the scheduler's text path passes `prepared.tools?.isEmpty == false`. Without tools, the GPU A/B's 10 of 10 GPQA loopers reopened their analysis after `<|end|><|start|>assistant` and looped again (billed 3.5-7K more tokens, still empty), so those requests keep the 0.10.12 `length`. With tools the exit is unchanged: on 126 Tau2-Bench airline turns (effort high, T 0) the empty turns fell from 74 to 38, calls 31 -> 46 (45 valid), replies 21 -> 35. Other families do not depend on tools. Docs and changelog say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the review (REQUEST CHANGES at 5c334d2): the subset's grammar generates only the declared keys of an object that declares properties, so turning a catch-all additionalProperties schema into true beside declared properties (zod's .catchall()), or dropping a key count, a dependency or a not/if/then/else there, could demand keys the grammar never generates: a narrowing. Those keyAssertions and the catch-all now relax only where an object declares no properties; beside declared properties they stay, the compiler refuses them, and an object root falls back to a JSON object (a true superset). valueAssertions keep relaxing everywhere. Docs scope the no-refusal claim to the provider's end-of-generation check (the local non-streaming API's SDK check of the original schema and a state pool exhaustion remain, as on other paths), state the closed-object convention, the 15-digit integer reach and that Gemma's exact rewrite keeps its check; the focused test command and list name the new suite. Tests: the catch-all and key-count cases relax to nothing and are held to a JSON object; an open object loses its key assertions; a map's values are free. Local: 81 tests in 15 suites pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…T-OSS exit-thinking branch #2046 folded at its final head (Qwen listed, off by default; the scheduler's `exitThinkingSetting`), so this branch takes dev rather than #2046's old head. Resolutions: - `defaultModelTypes`: Gemma 4 and GPT-OSS (`["gemma4", "gemma4_text", "gpt_oss"]`); Qwen stays listed and off, as folded. - The scheduler passes both `declaresTools` and `setting: exitThinkingSetting`. - The policy's doc comment and `inference.md` describe Gemma 4 and GPT-OSS on, Qwen listed; the default list in the docs and the changelog names `gpt_oss` (`gemma4,gemma4_text` turns GPT-OSS's off). - Tests: the Harmony serving suite sets `exitThinkingSetting` as a clean process reads it, the off test uses the real switch (`0`, a list without `gpt_oss`), and the streaming test no longer pins chunk boundaries (dev's Harmony header filter may hold a header in progress). Locally (trimmed package, the exit-thinking suites): 67/67, the real-tokenizer suite included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a reference or composition From the delta review (REQUEST CHANGES at 0ef92cb): a wrapper node ($ref, allOf, anyOf with null) declares no properties of its own, so its key count, dependency or not/if/then/else was dropped while the target it inlines may be a closed object, e.g. {"allOf":[A],"minProperties":2} whose every answer the grammar can produce is invalid. relax now keeps keyAssertions (and a catch-all) on such a node; the wrapper check then refuses it, an object root falls back to a JSON object and any other root stays prompt-only, both supersets. Tests: allOf, anyOf-null and $ref wrappers with a key count, a dependency or a not are refused. Docs say which nodes are open. Local: 81 tests in 15 suites pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the no-exit family test serves Lightning From `review-2070-delta2.md` (approve with nits): - M1: the changelog's A/B line also says that 7 turns of the candidate arm got a retryable memory-admission 503 after their retries (45 of 126 ended without an answer, against 74), and that the same build needed such retries with the exit off too. - A request that declares tools with `tool_choice: "none"` renders none (`prepared.tools` is nil), so GPT-OSS's analysis loop keeps its `length`: pinned at the scheduler. A mutation run that passes the request's own `tools` instead fails exactly this test (4 issues; 71 others pass). - `otherFamilyKeepsLength` serves `nemotron_h` (guarded, no thought marker) instead of `gpt_oss`, which now has an exit. Locally (trimmed package, the exit-thinking suites and dev's Super loop-guard suite): 72/72. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…+ #2061 fold resolution #2070 merged dev (the 0.10.13 candidate, #2046 folded at b4cc618), took the GPU A/B's tools-only gate and delta review 2's nits; #2061 moved to 1a87349 (based on b4cc618). This merge takes both new heads at once; its tree is #2070 601fd40 + #2061 1a87349, resolved: - `defaultModelTypes` = ["gemma4", "gemma4_text", "gpt_oss"]; Qwen 3.5/3.6 and Super (`nemotron_h_omni`) listed, off by default, as folded / as in #2061. - The policy's doc comment and `inference.md` describe Gemma 4 and GPT-OSS on (GPT-OSS only for requests that declare tools), Qwen and Super listed and off, and Super's own route and switch. Locally (trimmed package: the exit-thinking suites, the real GPT-OSS tokenizer suite, Super's loop-guard suite): 76/76. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dc 2047@b55ae64d6a 2051@98a9cded8c 2050@f10799abc1 2048@a849c562bf 2049@15f7d676e9 2052@0d2ec9ebfc 2053@42d9add895 2054@854c1ad495 2046@b4cc61883c 2057@220be61dd4 2058@4c5d7d9823 2063@1815e0773e 2065@585133d832 2045@8d7a6b51bd 2072@1542c6357e 2060@5a94d61d60 2061@1a8734918c 2070@dfb14ce00d 2069@5b4d5bc087 2071@3ce6f5cfdb 2075@b6c797c324 2084@7af346143c (it is redone on top) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….13 final fold; head 1a87349)
…ony (0.10.13 final fold; head dfb14ce)
… (0.10.13 final fold; head 5b4d5bc)
…int (0.10.13 final fold; head 3ce6f5c)
…i-lightning (0.10.13 final fold; head b6c797c)
… (0.10.13 final fold; head 7af3461)
Version 0.10.13; the 24 changelog.d fragments rendered into CHANGELOG.md (scripts/changelog.py render --version 0.10.13 --date 2026-11-13, verbatim, in filename order) under the candidate heading, with the upgrade and rollout notes; v0.10.12 marked published (2026-11-12); the 0.10.13 section of docs/operations/provider-release.md. Base: master 485be7b (the 0.10.13 release branch's squash). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
Admin merge to dev for the phase-B DevNet build; no reviewer awake; the master release keeps its human approval. (As #2079. CI 13 pass / 6 skipped on |
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.
Brings
release/candidate-0.10.13at420a0c4ee1intodevfor the phase-B DevNet build (W1-2 phase-B checks). Phase A (#2079) + #2061, #2070 (via #2076), #20695b4d5bc087(Qwen 3.8 default-on: the Stage 7 swap with platform #938, the central off switch, completed 13:44:37Z), #2071 (via #2077), #2075 (via #2083), #2084; "Prepare provider 0.10.13" redone (24 fragments). Tree84f76c414d. The master release goes from the candidate head with a human approval.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.