Skip to content

fix: pass Codex max reasoning effort - #119

Merged
withally merged 2 commits into
mainfrom
fm/fm-codex-max-effort-f1
Sep 8, 2026
Merged

fix: pass Codex max reasoning effort#119
withally merged 2 commits into
mainfrom
fm/fm-codex-max-effort-f1

Conversation

@withally

@withally withally commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Intent

The Blockvalley second mate reported 2026-09-08: an ordered Codex gpt-6-astra effort MAX spawn silently fell back to medium. Cause confirmed by the main firstmate: bin/fm-spawn.sh lines 1687 to 1694 pass model_reasoning_effort only for low|medium|high|xhigh and deliberately omit max, on the stale premise that the bundled codex catalog advertised only up to xhigh. The installed codex-cli 0.153.4 catalog (~/.codex/models_cache.json) lists gpt-6-astra supported_reasoning_levels low, medium, high, xhigh, max, ultra. The captain has been ordering Astra max seats (Nancy rec room, syd direction 5, Blockvalley own-use build) and every one of them ran at medium. Fix: a Codex spawn with --effort max must pass model_reasoning_effort="max"; keep xhigh behaviour unchanged.

What Changed

  • Allow Codex dispatch profiles to validate and forward max via model_reasoning_effort="max", while keeping ultra outside Firstmate’s effort set.
  • Update Codex harness documentation and bootstrap/spawn tests to document and verify max-effort dispatch.

Risk Assessment

✅ Low: The change is bounded to Codex effort validation, launch formatting, authoritative adapter documentation, and behavior-level coverage; the max path now reaches model_reasoning_effort without altering xhigh handling.

Testing

The supplied baseline, focused spawn/bootstrap/reference tests, live Codex capability check, and end-to-end launch probe all completed successfully. Evidence captures model_reasoning_effort="max" forwarding and unchanged xhigh behavior; the worktree remained clean.

Evidence: Codex max/xhigh spawn probe

Source: Codex max/xhigh spawn probe

Codex max-effort spawn evidence
Date: 2026-09-08

Installed capability:
codex-cli 0.153.4
gpt-6-astra supported reasoning levels: low, medium, high, xhigh, max, ultra

Public spawn probe: fm_test_run_spawn -> bin/fm-spawn.sh -> fake tmux send-keys capture
model: gpt-6-astra

case=max status=0
spawned codex-max-probe harness=codex kind=ship mode=no-mistakes yolo=off
launch=... codex --model 'gpt-6-astra' -c 'model_reasoning_effort="max"' --dangerously-bypass-approvals-and-sandbox ...
meta: model=gpt-6-astra; effort=max

case=xhigh status=0
spawned codex-xhigh-probe harness=codex kind=ship mode=no-mistakes yolo=off
launch=... codex --model 'gpt-6-astra' -c 'model_reasoning_effort="xhigh"' --dangerously-bypass-approvals-and-sandbox ...
meta: model=gpt-6-astra; effort=xhigh

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 2 issues found → auto-fixed ✅
  • ⚠️ bin/fm-spawn.sh:1692 - The new max forwarding at this line is not reflected in the authoritative Codex adapter record: .agents/skills/harness-adapters/references/harness/codex.md:15 still says only low|medium|high|xhigh are supported. Because every spawn loads that record and the shared model/effort contract uses it for selection, future dispatch can still omit max before this code runs. Update the record with the 0.153.4 capability and verification evidence.
  • ⚠️ bin/fm-spawn.sh:1692 - Max is now forwarded unconditionally for every Codex model and installed version, although the repository’s recorded Codex 0.142.1 catalog explicitly omits max and the shared contract requires unsupported efforts to be omitted. On such an older installation, an explicit codex/max profile can now reach the CLI with an invalid setting and fail launch. Making this durable requires an authorized compatibility decision: add version/catalog-aware support detection or raise the required Codex version and fail closed when max is unavailable.

🔧 Fix: Updated Codex adapter record for max effort support
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • bin/fm-test-run.sh --changed --exclude-family real-herdr-gated
  • Baseline: bin/fm-test-run.sh --changed --exclude-family real-herdr-gated (supplied successful baseline)
  • bash tests/fm-spawn-dispatch-profile.test.sh
  • bash tests/fm-bootstrap.test.sh
  • bash tests/fm-harness-adapter-references.test.sh
  • codex --version and gpt-6-astra catalog query
  • End-to-end fm_test_run_spawn probe for max and xhigh
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@withally
withally merged commit 3b220cb into main Sep 8, 2026
14 checks passed
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