Skip to content

fix(ai): classify provider statuses and refusals before retrying - #1

Open
ReganBell wants to merge 1 commit into
yc-software:mainfrom
ReganBell:codex/provider-error-metadata
Open

ReganBell wants to merge 1 commit into
yc-software:mainfrom
ReganBell:codex/provider-error-metadata

Conversation

@ReganBell

Copy link
Copy Markdown

Recognize transient provider HTTP failures such as 520 status code (no body) in the shared Pi assistant retry classifier, while keeping known authentication/request failures and wrapped Anthropic policy refusals terminal. This affects both normal agent turns and summary calls using the existing bounded retry policy.

Status extraction covers the installed OpenAI, Anthropic, Bedrock, and Google SDK message forms. Numeric text elsewhere in an error no longer accidentally enables retries. Existing transport/stream failure matching is unchanged.

Validation: 51 focused retry tests; npm run check passes. The checked model-data snapshot includes the published 0.82.0 catalog plus current generated models because current online hydration omits a provider required by the tracked catalog. No model-catalog changes are included.

QM needs this classifier backported onto its existing 0.82.0 package line; the dependency integration must retain the security.3 coding-agent shrinkwrap fixes and replace its nested pi-ai dependency as well as the direct dependency.

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.

1 participant