Metadata
| Status | done |
|---|---|
| Assigned | agent-906 |
| Model | codex:gpt-5.6-sol |
| Created | 2026-07-26T22:30:40.242455833+00:00 |
| Started | 2026-07-26T22:45:19.016960554+00:00 |
| Completed | 2026-07-27T00:05:00.664901844+00:00 |
Description
Description
The fresh native Codex 5.6 canary resolved evaluator to codex:gpt-5.6-luna/high, but wg evaluate run failed before spawning Codex with error[WG-PI-ROUTE-REQUIRED]. The configured direct Codex starter promises native Luna evaluation, yet the lightweight evaluator dispatch path accepts only Pi. Implement native Codex CLI one-shot dispatch for explicit evaluator/agency codex: routes, preserving exact model and structured reasoning, with no Pi/Claude fallback.
File scope: src/service/llm.rs and focused evaluator/dispatch tests only. Implement directly — do not decompose further.
Validation
-
Failing test first proves
wg evaluate runwith evaluator route codex:gpt-5.6-luna reaches native Codex rather than WG-PI-ROUTE-REQUIRED - Codex receives native model gpt-5.6-luna and model_reasoning_effort="high"
- Pi and Claude sentinels remain uninvoked; native Codex failure does not cross runtimes
- Existing Pi evaluator behavior remains unchanged
- cargo fmt --check passes
- cargo clippy passes
- cargo build and cargo test pass
- cargo install --path . --locked updates the installed WG binary for the dependent canary
Depends on
- (none)
Required by
Log
- 2026-07-26T22:30:40.218817893+00:00 Task paused
- 2026-07-26T22:30:40.340824394+00:00 Task published
- 2026-07-26T22:44:41.920580277+00:00 Spawn preparation deferred before launch permit; rollback is complete and no circuit-breaker charge was recorded. Repair the reported checkout/configuration condition and retry: spawn transaction for agent-906 rolled back (task remains dispatchable; rollback diagnostics: complete): failed to establish isolated-worktree observer baseline: observer state already exists; use open_at for restart reconciliation
- 2026-07-26T22:45:19.195370806+00:00 Spawned by coordinator --executor codex --model codex:gpt-5.6-sol --isolation required-worktree
- 2026-07-26T22:45:37.639877329+00:00 Starting direct implementation: inspect prior WIP, reproduce evaluator route failure, add focused failing coverage, then implement native Codex one-shot dispatch.
- 2026-07-26T23:44:20.478874787+00:00 TDD regression confirmed: focused evaluator test fails with error[WG-PI-ROUTE-REQUIRED] before fake Codex is spawned.
- 2026-07-26T23:46:13.801160452+00:00 Implementation complete in src/service/llm.rs: agency roles resolve supported execution routes, Codex dispatch uses existing native one-shot runner, explicit-route/plan gates no longer reject Codex. New Codex success/failure tests pass; focused existing Pi routing and failure-isolation tests pass unchanged.
- 2026-07-27T00:01:10.136834970+00:00 Validation checkpoint: cargo fmt --check, cargo clippy, cargo build, and focused Codex/Pi evaluator tests pass. Full cargo test was attempted both normally and serialized; unrelated pre-existing route-expectation/worktree tests fail, while 3836 tests pass in the serialized run.
- 2026-07-27T00:04:36.981197960+00:00 Validated: cargo install --path . --locked completed; /home/bot/.cargo/bin/wg now contains the native Codex evaluator dispatch.
- 2026-07-27T00:04:53.096991945+00:00 Committed: c497039c — pushed to origin/wg/agent-906/fix-native-codex-lightweight-evaluator
- 2026-07-27T00:05:00.664902204+00:00 Task marked as done