fix(land): cli-launch failures end needs_human; codex login preflight
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 statuspreflight 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 arun-failedblocker 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](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
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 statuspreflight at stage entry for codex harnesses; a missing credential endsneeds_humanbefore any review or fix step runs. - Makes a review lane whose tail reports a CLI launch refusal (
agent_cli_unresolved,cli_unresolved,login status) endneeds_humaninstead of inventing a run-failed blocker for the fix rounds. - Branches the fix-round agent call by harness so
cliandmodelare literal keys the Cloud model-pin gate can prove statically. - Restricts issue-swarm CLIs to
claude,codex, orcursor-agent, each mapped to a fixed model (claude-sonnet-5,gpt-5.6-sol,gpt-5.6-sol-high); unsupported selections endneeds_humanbefore 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
devinsessiongorgeous· opened viagh pr create· last active 2026-11-02