Skip to content

fix(codex): classify terminal failures before stale stderr - #3716

Merged
vybe merged 2 commits into
Abilityai:devfrom
alex-furman:fix/3715-terminal-codex-failure
Oct 14, 2026
Merged

vybe merged 2 commits into
Abilityai:devfrom
alex-furman:fix/3715-terminal-codex-failure

Conversation

@alex-furman

@alex-furman alex-furman commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3715.

Use the terminal turn.failed message for Codex failure classification and detail. Earlier stderr from retries no longer turns model-not-found into an authentication failure or masks a final authentication failure with an older rate limit. Without a terminal failure, existing stderr fallback remains unchanged.

The change adds no new authentication or rate-limit patterns. Empty or malformed terminal message fields produce a neutral runtime failure.

Validation: new regressions fail on stock (7 failed / 1 passed). The patched full Codex suite passes 177 tests. Independent review separately passed 46 classifier/terminal tests. Synthetic events only; no live provider request or whole-project suite.

Journey Impact: extends: J04

Mutation: test_terminal_turn_failure_controls_status_and_detail and test_empty_terminal_failure_does_not_resurrect_stderr_auth reproduce 7 failures on stock; the nonterminal fallback control passes.

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge-train: batch validated on train/20261014-1750 (train PR #3729 green)

@vybe
vybe merged commit 65b78a1 into Abilityai:dev Oct 14, 2026
22 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.

2 participants