fix(land): cli-launch failures end needs_human; codex login preflight

Merged
KH
1mo ago
+117-18

First production shadow run (lr_dd097d26c48c4685b4361a95b622c50b) died at C-1: agent_cli_unresolved — codex is not authenticated in stage sandboxes (connected cliCredentials are interactive-only). Two changes:

  • codex login status preflight at stage entry (shared HOME across the run's steps) — a missing credential ends needs_human immediately, not inside a review or fix step.
  • A review lane whose tail is a cli-resolution refusal (agent_cli_unresolved, login status) ends needs_human instead of inventing a run-failed blocker for the fix rounds.

The credential side lands separately in cloud (executor runs codex login --with-api-key from the delivered OPENAI_API_KEY when no CLI_CREDENTIALS mount exists). 83/83 tests, tsc clean.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes flow handling so CLI launch failures end needs_human instead of unrepairable fix rounds or cryptic mid-run failures, and pins broker sessions to supported CLI/model pairs.

  • Adds a codex login status preflight at stage entry for codex harnesses; a missing credential ends needs_human before any review or fix step runs.
  • Makes a review lane whose tail reports a CLI launch refusal (agent_cli_unresolved, cli_unresolved, login status) end needs_human instead of inventing a run-failed blocker for the fix rounds.
  • Branches the fix-round agent call by harness so cli and model are literal keys the Cloud model-pin gate can prove statically.
  • Restricts issue-swarm CLIs to claude, codex, or cursor-agent, each mapped to a fixed model (claude-sonnet-5, gpt-5.6-sol, gpt-5.6-sol-high); unsupported selections end needs_human before commands or sessions start.

The credential delivery itself lands separately in cloud, which runs codex login --with-api-key from the delivered OPENAI_API_KEY when no CLI_CREDENTIALS mount exists.


Agent Relay sessions

  • devin session gorgeous · opened via gh pr create · last active 2026-11-02