Skip to content

Default every model to high reasoning effort; Haiku levels are thinking budgets - #549

Merged
neuromechanist merged 2 commits into
developfrom
feature/issue-548-default-high-effort
Sep 29, 2026
Merged

neuromechanist merged 2 commits into
developfrom
feature/issue-548-default-high-effort

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Closes #548. Follows #546 (the reasoning_effort key).

What

Every model runs at high reasoning effort unless a community says otherwise, on every provider:

Model Unset now Before
Claude Sonnet 5.5 output_config.effort: high sent explicitly (the API's own default, so no change on the Claude Platform) nothing sent
Claude Haiku 4.5 thinking budget 4096 tokens (high) budget 2048, and the key was ignored
GPT-6 Luna high high
gpt-oss-120b high high
Qwen3 Next nothing (no control) nothing

One DEFAULT_REASONING_EFFORT = "high" replaces the per-model defaults table, so a model added later runs at high too.

Haiku

Haiku 4.5 has no effort field; it thinks with a token budget.
Its level is now that budget (THINKING_BUDGET_TOKENS): low 1024 (the API's floor), medium 2048 (what it ran at before), high 4096, none no thinking; xhigh and max give high, since a larger budget leaves too little of max_tokens (default 8000) for the answer.
A budget that would not fit under the request's max_tokens is lowered to leave 1024 tokens for the answer instead of failing every request.
On OpenRouter, Haiku's level goes in the reasoning.effort body field, and OpenRouter turns it into a budget.

Behavior changes to look at

  • Haiku thinks up to twice as long by default on the communities that run it (most of them): more output tokens billed (Haiku is $1 / $5 per 1M) and a longer wait before the first word. A community can set reasoning_effort: medium for the old behavior.
  • ANTHROPIC_THINKING_BUDGET_TOKENS is removed (departing from the issue text, which kept it): .env.example shipped it as 2048, so a server that copied the example would have kept Haiku on the old budget and the new default would not have taken effect there. Settings ignores unknown variables (extra="ignore"), so a leftover value is harmless, and a test pins that it is not a source. There is no longer a deployment-wide switch for Haiku's thinking; a community sets none or a level.
  • A caller's own OpenRouter key now runs Haiku and Sonnet with reasoning: {effort: high} by default (Haiku ran without reasoning there; Sonnet at OpenRouter's own level).

Not verified by a request

There is no Anthropic or OpenRouter key on the development machine.
Haiku's budget levels are OSA's mapping, not a provider's; the budget shape (thinking: {type: enabled, budget_tokens}) is the one Haiku already ran with.
I could not read the deployments' environment (SSH to the host was refused), so whether a server exports ANTHROPIC_MAX_OUTPUT_TOKENS below 5120 is unknown; the fit rule makes that case lower the budget instead of failing.
The first real request through Haiku on the dev deployment is the check to run after merge.

Tests

  • Written-out results (not derived from the tables): unset is high for Sonnet, Haiku, Luna and gpt-oss on every platform; the Haiku budget table; a pinned level-by-level result for every model.
  • The request each path builds: Haiku thinking per level, none, xhigh and max clamped, explicit thinking wins, budget lowered to fit max_tokens and still refused when there is no room; Sonnet output_config when unset; OpenRouter reasoning for Sonnet, Haiku, Luna and gpt-oss when unset; the retired setting is not read.
  • Routing: through the real create_community_assistant, Haiku gets the community's level as a budget.
  • 11 mutations across the default, the budget table, the fit rule, the level mapping, none, the effort field and explicit thinking; all are killed.
  • Full offline suite (3,691 tests) and ruff pass.

Docs

ADR 0015 amended, CHANGELOG, .context/yaml_registry.md, .env.example, the schema field docstring.
The schema reference on docs.osc.earth (osc-docs) still needs the reasoning_effort row.

  • Tests
  • Ruff
  • A real request through Haiku on dev

…ng budgets

Closes part of #548. DEFAULT_REASONING_EFFORT = high replaces the per-model
defaults table, so Sonnet (sent high explicitly, the API default), Haiku, Luna
and gpt-oss run at high on every provider, and a new model does too.

Haiku has no effort field, so its level is a thinking budget: low 1024, medium
2048, high 4096, none no thinking, xhigh and max clamp to high. A budget that
would not fit under max_tokens is lowered to leave 1024 tokens for the answer.
ANTHROPIC_THINKING_BUDGET_TOKENS is removed: the example file shipped 2048, so a
server that copied it would have kept Haiku off the new default.

Tested: 3691 offline tests; budget, default, fit and explicit-thinking tests;
11 mutations killed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant