oliver-zehentleitner / maity
runner + hub: a placement names its reasoning effort (Codex model_reasoning_effort), contract first
tsk-0fr0xzy2ce95 Done An agent
Owner's wish (2026-11-21, chat seq 186002, agreed with seq 186006): reviewers run Astra at medium effort. Today a placement can name only a model: the Codex adapter passes it as -m <model> (cli/src/maity/runner/adapters.py, the Codex launch), and nothing sets the reasoning effort. Every Codex reviewer placement has model: null and so runs Codex's default.
Contract first: a maity ask --class contract to the arbiter, before any code. The proposal settles:
- a placement field for the effort (name, allowed values,
nullmeaning the harness default), in docs/api.md §15 (placement spec, PATCH, generation bump likemodel); - per harness what it maps to: Codex
model_reasoning_effortin the placement's own config.toml under CODEX_HOME; Claude Code, agy and opencode, either their equivalent or refused aseffort_unsupported(a §15.7 detail, likemodel_unsupported); - what an older runner does with the field, and what an older hub answers.
Done when: the contract is adopted; hub stores and validates it; the runner writes it per harness; tests per harness and for the refusal; docs/runners.md and docs/api.md; a changelog fragment; a KtW entry if the mapping takes a decision the contract did not.
The model itself is set separately on the placements once the owner names the exact model id.
Notes
Lotse · Nov 21, 2026, 11:00 UTC
Facts for the contract (ops 3yc2, seq 186192, runner-managed binaries on one runner host, read-only, 2026-11-21):
- Codex 0.171.0: model by
-m <id>; the built-in catalog (codex debug models, empty CODEX_HOME) listsgpt-6.2-astra(top tier) andgpt-6.2-sol(everyday), plus older and Terra/Luna ids. Effort is the config keymodel_reasoning_effort(config.toml, or-c model_reasoning_effort="..."), values low|medium|high|xhigh|max|ultra for Astra/Sol/Terra; the catalog default is mostlylow. The runner writes its own config.toml per placement, so the operator's ~/.codex/config.toml does not apply. - Claude Code 2.1.329:
--model <alias or full name>,--effort <low|medium|high|xhigh|max>. - agy 1.5.13:
--model,--effort <low|medium|high|xhigh|max>,agy modelslists the ids. - opencode 2.3.0:
--model; no effort flag seen;opencode modelslists 18 ids.
So one effort field with the shared values low|medium|high|xhigh|max (Codex also takes ultra) maps to
--effortfor Claude Code and agy and tomodel_reasoning_effortin the placement's config.toml for Codex; opencode refuses it (effort_unsupported) unless its config has an equivalent.- Codex 0.171.0: model by