omp's default dialect sends the effort twice, at the top of the request
and in chat_template_kwargs. SGLang takes the chat_template_kwargs copy
first (serving_chat.py pops it and sets request.reasoning_effort when it
is not None), but validates the top-level one against its own enum, so
the template's lean, omp's default level here, was a 400 on every
request (omp 18.4.9, 2026-10-01). The proxy now drops the top-level copy
when SGLang would refuse it and chat_template_kwargs names a level: the
level that applies is the one that would have applied. A null there,
which SGLang skips, is filled as an absent one is (the v6.18 move), and
a top-level level SGLang accepts is left alone.
Checked against the flash lane, streamed and not: a top-level lean beside
a chat_template_kwargs lean, high or null, and a value SGLang refuses
beside lean, were a 400 through v6.29 and are answered through v6.30;
the five other shapes (lean alone, at the top or in chat_template_kwargs;
high beside lean or null; a refused value alone) answer the same through
both. omp 18.4.9 in its default dialect: a 400 through v6.29, "pong"
through v6.30.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Qwen3.8-27B defaults to xhigh, the most expensive of its three levels, and the
levels are not modes: they are three sentences the chat template prepends to the
system message, measurable as 42, 30 and 0 tokens of prompt. That is the whole
mechanism, which is what makes it addressable with words.
Measured here over 7,008 runs, the shipped default is not only slower, it is
worse. On 364 public problems (HumanEval 164 with the dataset's tests executed,
GSM8K 200 on the exact final number), xhigh costs 3.19x the thinking tokens of
medium [2.73, 3.69] and scores 2.2 points lower on a paired McNemar test
(p=0.057). On HumanEval alone it is 4.3 points lower at p=0.039, and five of its
ten failures there are truncations: it spent the whole 16,000-token budget
thinking and returned nothing. low, the fix the community recommends, loses
significantly (p=0.021) for an 11% saving.
- lean: 74 words, added as a fourth level and made the default. On those same
364 problems it costs 0.71x the thinking tokens of medium [0.66, 0.77] with no
detectable quality change (-1.1 points, p=0.344). On 58 deliberately
underspecified requests, the shape that makes this model spiral, it costs
0.436x of medium [0.40, 0.47] and 0.047x of xhigh [0.04, 0.06] while producing
17.2 points more usable answers than xhigh [+10.9, +24.1], with zero empty
answers and zero truncations against 6.9% and 10.3%.
- Qwen's three levels come out byte-identical. Ask for medium and you get Qwen's
medium: a repo that quietly redefines a standard level makes every number
measured with it incomparable with everyone else's.
- LEAN_DEFAULT=0 installs the level without taking the default.
Proxy v6.18: SGLang validates reasoning_effort at the API boundary against an
enum compiled into its own request model, so a level the chat template
understands is refused before the template runs. The same value inside
chat_template_kwargs is not validated and reaches it, which is the door opencode
happens to use. The proxy moves a level SGLang refuses into that field and
touches nothing in SGLang's own enum.
The level also has to reach the config opencode actually reads. install.sh
writes a complete config into CONFIG_DIR but only merged limits into the
operator's own file, so a new level appeared everywhere except where it could be
selected. oc-merge-limits.py --add-variant closes that.
LEAN.md carries the method, the pre-registered falsification criteria, the
three-state functional scoring (the answer's code is run, with "not checkable"
kept separate from "broken"), the fairness replay that tripled the token cap to
show the truncations were not an artefact, and what did not work: an expert
persona (no gain, twice the tokens used alone), a decisiveness instruction
(nothing left to remove, lean already sits at 0.00 backtracking markers per
thousand), Chain of Draft (cheapest, loses quality), and four candidates from an
error analysis that all cost tokens and gained nothing. It also states what was
prepared and not run: a 557-problem held-out set with an identical-twin null
control.
Verified live before shipping: 20 end-to-end checks, and on one open request
990 thinking tokens in 19.0 s for lean against 9,084 in 190.9 s for xhigh.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>