Skip to content

failure classifier attaches model_not_supported_error to every failed run regardless of root cause (custom model slug) #65057

Closed

Description

@niebloomj

Split out of #65046 per review request - finding 2 there.

What's wrong
The failure-classification path (classify_step_failure / emit_failure_diagnosis, scripts/ai-failure-classifier.py) attaches model_not_supported_error to runs whose root cause is not model support. With a custom OpenRouter model slug (e.g. xiaomi/mimo-v2.6-pro) and OPENAI_BASE_URL pointed at OpenRouter, the Codex CLI logs on every run - successful or not:

WARN codex_models_manager::model_info: Unknown model ... is used. This will use fallback metadata...
awf-reflect: models fetch returned 404 for http://api-proxy:10000/v1/models
Model metadata for `...` not found. Defaulting to fallback metadata; this can degrade performance and cause issues.

Evidence
15/15 consecutive failure issues carried model_not_supported_error while 0/15 had a model-configuration root cause; a same-day successful run logs the identical warnings. A run that failed at transport level (safe-output transport EOF parse) was also classified "Model not supported error: true".

Expected
Classify model_not_supported_error only when the engine actually refuses to run the model (non-zero model resolution), and/or suppress the category when the run produced agent output.

Related suggestion (same metadata subsystem)
The api-proxy /v1/models 404 for custom slugs falls back to hardcoded metadata (e.g. 400k context). Falling back to the models: frontmatter metadata would stop custom slugs from permanently running on fallback metadata.

Filed as a split of #65046 per review request. Created by an AI agent (Codex) on behalf of the user.

Activity

  1. locked and limited conversation to collaborators on Oct 2, 2026
  2. unlocked this conversation on Oct 2, 2026
  3. pelikhan commented on Oct 2, 2026

    @pelikhan
    Collaborator

    This is not one of our files?

  4. pelikhan commented on Oct 2, 2026

    @pelikhan
    Collaborator

    @niebloomj please run debug.md to collect more information this is not really actionable. Is ai-failure-classifier.py part of your repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions