Repository navigation
Description
Summary
Codex workflows can abort before inference when AWF /reflect advertises a model's endpoint as responses, but gh-aw validates it against /responses. For models with incomplete full routing metadata, the harness reports catalog_unavailable even though catalog retrieval and alias resolution succeeded.
Affected runs
| Workflow | Run | Rejected roles |
|---|---|---|
| Daily A/B Testing Advisor | https://github.com/github/gh-aw/actions/runs/40308635078 | field-presence-checker, workflow-characterizer |
| Package Specification Enforcer | https://github.com/github/gh-aw/actions/runs/40316318267 | readme-spec-extractor, rotation-state-recoverer, test-output-classifier |
Both scheduled runs used main@9a57ef760fda8457186126cf0f098ff595a3b5f7, Codex CLI 0.164.0, and AWF v0.29.0. Both first fail at agent → Execute Codex CLI, step 33, before Codex is spawned. The agent API token-usage files are empty. Conclusion-job failures are downstream effects. Historical health cluster: failure-33fbf1d11720f3e9.
Observed evidence
In both runs:
- Initial
/reflectretrieval and its one refresh succeed. models_fetch_completeistrue; the configured OpenAI endpoint lists 135 models, includinggpt-5-mini-2025-08-07.- Each affected role successfully resolves
smallto that model. - The selected model has this routing metadata:
{
"model_id": "gpt-5-mini-2025-08-07",
"source": "incomplete",
"supported_endpoints": ["chat_completions", "responses"],
"supported_reasoning_efforts": null,
"context_window_tokens": null,
"candidate_metadata_complete": false
}The configured-provider inventory and routing metadata match across both runs. The harness then logs:
model-catalog retrieval prevented alias resolution for 'small'
Sub-agent model 'small' (resolved to 'gpt-5-mini-2025-08-07') has no complete endpoint metadata on the configured awf-reflect endpoints, so it cannot be verified that it supports /responses, the only endpoint Codex sub-agents call.
This is not evidence of failed catalog transport, model absence, or an actual incompatible-model response. No inference request reached /responses.
Root cause
At the failed revision, endpointSupportIn uses a literal supported_endpoints.includes(wireApi) comparison. Codex's policy supplies /responses, so advertised responses is not recognized.
Because candidate_metadata_complete is false, the comparison returns unknown, not unsupported. The sub-agent validation path refreshes once and rejects with catalog_unavailable; the Codex harness exits before spawn.
The producer explains the representation difference: AWF buildRoutingModelMetadata publishes runtime supportedEndpoints or maintained endpointMapping.endpoints unchanged. The maintained mapping uses endpoint enums such as responses and chat_completions, rather than request paths. Full routing-candidate completeness also covers information beyond endpoint support.
Suggested correction
Normalize supported endpoint representations at a shared reflection/validation boundary before compatibility comparisons. Explicitly handle supported enum/path equivalents, including responses versus /responses, chat_completions versus /chat/completions, and supported versioned paths. Reuse that normalization across affected consumers rather than adding a Codex-only string workaround.
Preserve fail-closed behavior for genuinely missing, malformed, or unsupported endpoint metadata. Positively advertised endpoint support should not depend on unrelated reasoning/context metadata being complete. Improve the diagnostic to distinguish successful alias resolution followed by unverifiable endpoint metadata from a catalog fetch failure.
Regression coverage should include the recorded payload shape above, both affected workflows' role configurations, equivalent endpoint spellings, and negative cases for genuinely unknown or unsupported endpoints. Model/pin changes or bypassing the guard would not address the demonstrated mismatch.
Recovery and uncertainty
As of 2026-10-26 around 13:19Z, neither workflow has a newer existing run. Relevant workflow sources/locks and harness/resolver/reflection/routing files are unchanged through main@8bb3a0c40b7e56f1434fb5658d689304d26c77a1.
The same refusal already occurred in Advisor run 40185084356 on October 25 with AWF v0.28.70; the v0.29.0 bump is therefore not the originating cause.
Advisor run 40086220770 succeeded on October 24 with Codex 0.163.0 and AWF v0.28.70, resolving the same small model. Its initial reflection required model-list enrichment, whereas post-run reflection contains the same endpoint-enum metadata. A startup-timing-dependent difference in metadata presence is plausible, but the initial raw response is not preserved, so that explanation remains unverified. The earlier green run does not establish recovery or prove successful inference by each configured child model.
Investigation was read-only: no code changes, pin changes, reruns, or workflow dispatches.
Activity
github-actions commentedon Nov 4, 2026
Assigned to @pelikhan: recent merged work on model routing and engine configuration matches this
model-routingissue.