Skip to content

feat: distinguish provider failures in scripted runs - #24

Merged
wowi42 merged 6 commits into
mainfrom
worktree/rapid-valley-cbfe
Sep 29, 2026
Merged

wowi42 merged 6 commits into
mainfrom
worktree/rapid-valley-cbfe

Conversation

@Mouhand-Kaddo

@Mouhand-Kaddo Mouhand-Kaddo commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Return distinct provider-failure exits in headless, loop, and chain modes: authentication 4, provider budget/credits 5, model/resource not found 6, rate limit 7, upstream/transport 8, and malformed/failed stream 9. HTTP and SSE failures share classification and the existing retry policy; budget failures never retry.

These codes remain reserved when the next layer adds run limits. JSON output in #26 preserves the same classification. Regression coverage includes HTTP/SSE payloads, retries, malformed streams, and all three scripted modes. The headless reasoning test reuses the directory created by the shared fixture, so this layer passes independently.

Tracks LaFabrique #49.

Stack and validation

#23 → #24 → #25 → #26

Native GitHub stack #28. This PR targets PR #23. PR #22 is merged.

Merged main at 74a5e28 into the stack, retaining merged PR #22’s memory improvements and PR #27’s removal of automatic Exa/Context7 servers. Each updated branch retains its previous remote head and preceding stack layer through additive merges. Configured MCP servers remain supported.

Repaired the session-name mock at its lazy import location, used schema version 2 in non-persistence fixtures, and removed obsolete MCP flag assignments from the memory regression harness. All existing behavioral assertions are retained. Provider codes remain 4–9; context overflow, local cost limit/unknown spend, and execution timeout remain 10/11/12. The existing memory and usage-accounting implementation is unchanged.

Ruff lint and formatting pass; all 2,127 local tests pass on Linux/Python 3.14.3. All four Linux/macOS Python 3.13/3.14 CI jobs pass on 1b22ed5.

@wowi42
wowi42 force-pushed the worktree/rapid-valley-cbfe branch from e8217aa to ef59be5 Compare September 29, 2026 09:37
Base automatically changed from feat/cli-thinking-headers to main September 29, 2026 10:55
@wowi42
wowi42 merged commit 6582bc4 into main Sep 29, 2026
4 of 8 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