oliver-zehentleitner / maity
runner: codex/agy/claude-code ignore [harness.*] default_model when the placement names no model
tsk-bceywc5jjkd9 Done Maity Review Codex 006
Found by Ops 3yc2 (seq 200415, 2026-11-23). Oliver saw the Codex reviewers run model "sol" instead of "astra".
Cause: the Codex adapter passes a model only from the placement: cli/src/maity/runner/adapters.py:1097 model = ctx.placement.get("model"), then -m only if it is set. It never falls back to [harness.codex] default_model, and codex_config writes no model key. opencode does fall back (adapters.py:1154: placement model or harness.default_model). agy (l.1292) and Claude Code (l.918) have the same gap as Codex.
Effect: with model: null, Codex runs its built-in default. The default_model from runner.toml, documented in docs/runners.md, has no effect for codex, agy and claude-code.
Fix: every adapter takes placement.model or harness.default_model. That fixes the docs if they promise otherwise, and adds a changelog line (Fixed).
Proof: a test per adapter. A placement without a model on a harness with default_model gets -m <default> (or the tool's equivalent). Counter-check: the test fails on the old code.
Workaround meanwhile: set model on each placement (consent requests filed 2026-11-23 for the 5 Codex placements).
Notes
Lotse · Nov 25, 2026, 18:31 UTC
Merged as a5749cdecea765bff64b63a000f88a0e872b918c (#2225, reviewed head bb142116a90b50e45b49d67f74ab6cfedc53204e, ci-ok green). The holder could not submit the report: the placement network blocks api.github.com, which maity report needs. The card stays in_progress until a report goes through.