Skip to content

Ignore Codex custom-slug fallback-metadata warnings in model_not_supported_error detection - #68427

Merged
pelikhan merged 4 commits into
mainfrom
copilot/fix-model-not-supported-error
Oct 13, 2026
Merged

pelikhan merged 4 commits into
mainfrom
copilot/fix-model-not-supported-error

Conversation

Copilot AI commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

With a custom model slug (e.g. an OpenRouter slug), Codex logs "unknown model / fallback metadata" warnings on every run, including successful ones. The failure classifier matched them as model_not_supported_error, so every failure issue carried that category regardless of the real cause.

detectErrors already filtered some of these warnings before running MODEL_NOT_SUPPORTED_PATTERN, but the filter only matched the exact wording ... fallback model metadata.. This PR widens it.

  • agent_error_patterns.cjs
    • The codex_models_manager::model_info: Unknown model … filter now matches both "fallback metadata" and "fallback model metadata", with or without a trailing period.
    • New filter for Model metadata for `<slug>` not found. Defaulting to fallback metadata…. This line otherwise matched the generic "model … not found" pattern.
    • Real refusals still classify as before; for example, unknown model unavailable still produces model_not_supported_error.
  • agent_execution.test.cjs
    • New test using the three log lines from the report, expecting no category.

Not addressed:

  • Falling back to models: frontmatter metadata when the api-proxy /v1/models returns 404.
  • Suppressing the category when the run produced agent output. This change only removes the false positives caused by these specific warning lines.

Copilot AI changed the title [WIP] Fix failure classifier emitting model_not_supported_error prematurely Ignore Codex custom-slug fallback-metadata warnings in model_not_supported_error detection Oct 13, 2026
Copilot AI requested a review from pelikhan October 13, 2026 13:17
@pelikhan
pelikhan marked this pull request as ready for review October 13, 2026 13:18
Copilot AI balanced review requested due to automatic review settings October 13, 2026 13:18

Copilot AI 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.

🟡 Changes recommended

The new guide is missing from the embedded offline fallback list, causing regeneration inconsistency and a failing synchronization test.

1 open finding
What changed in this PR

Prevents Codex fallback-metadata warnings from being misclassified as unsupported-model failures.

Changes:

  • Broadens warning filtering for custom model slugs.
  • Adds regression coverage for reported log lines.
  • Exposes model-misconfiguration debugging guidance.
File Description
actions/​setup/​js/​agent_error_patterns.cjs Filters benign Codex metadata warnings.
actions/​setup/​js/​agent_execution.test.cjs Tests custom-slug warning classification.
.github/​skills/​agentic-workflows/​SKILL.md Lists the model debugging guide.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · opus50 · 13.4 AIC · ⌖ 45.3 AIC · ◇ 40.1 AIC · ⊞ 1.8K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · gpt56 · 5.42 AIC · ⌖ 5.28 AIC · ⊞ 14.2K · ◷

Generated by Ponytail Reviewer for #68427

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · haiku45 · 4.16 AIC · ⌖ 8.07 AIC · ◇ 1.65 AIC · ⊞ 8.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions github-actions Bot 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.

Request changes

This still has a merge-blocking regression in the skill manifest path: the new debug-model-engine-misconfiguration.md entry was added to .github/skills/agentic-workflows/SKILL.md, but the embedded offline fallback list was not updated, so buildAgenticWorkflowsSkillContent() will diverge whenever the GitHub API path is unavailable.

Blocking theme

The JS classifier change looks directionally correct, but the skill-list edit breaks the offline/embedded source of truth for the same file set. That means local/bootstrap paths can produce different skill content than the checked-in skill document, which is exactly the kind of drift the fallback JSON and its sync test are supposed to prevent. Until the fallback data is regenerated or updated in the same PR, this should not merge.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 18.9 AIC · ⌖ 5.68 AIC · ⊞ 21.3K
Comment /review to run again

@github-actions github-actions Bot 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.

Skills-Based Review 🧠

Applied /diagnosing-bugs — the fix for the reported false positive is correct and well-tested, but one of the three added filter clauses appears unnecessary.

📋 Key Themes & Highlights

Key Themes

  • Root cause correctly addressed: widening fallback model metadata → fallback (?:model )?metadata in the existing Codex WARN filter is the actual fix for the reported false positive (verified by reproducing the exact log lines from #68108 against the regex).
  • One filter clause looks redundant: the new Model metadata for ... not found. Defaulting to fallback metadata filter doesn't change detectErrors() output — MODEL_NOT_SUPPORTED_PATTERN never matched that line shape to begin with (it needs model <slug> not found, not Model metadata for <slug> not found). See inline comment for the verification steps.
  • Good regression test: the new test uses the exact three log lines from the linked issue, which is a solid repro-based regression guard per /diagnosing-bugs principles.

Positive Highlights

  • ✅ Regression test added directly from the bug report's reproduction steps — textbook /diagnosing-bugs discipline.
  • ✅ Confirmed that real refusals (unknown model unavailable) still correctly classify as model_not_supported_error — no over-broadening of the filter.
  • ✅ Clear, honest PR description that explicitly scopes out related but out-of-scope issues (404 fallback-to-frontmatter, output-based suppression).

No blocking issues — the extra filter clause doesn't introduce incorrect behavior, just unnecessary complexity. Flagged inline for the author's consideration.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 83.3 AIC · ⌖ 15.6 AIC · ⊞ 10.3K
Comment /matt to run again

@pelikhan
pelikhan merged commit 27b66e8 into main Oct 13, 2026
45 checks passed
@pelikhan
pelikhan deleted the copilot/fix-model-not-supported-error branch October 13, 2026 14:39
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.91.11

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.

Failure classifier attaches model_not_supported_error to every failure regardless of cause

3 participants