{"repo":"NousResearch/hermes-agent","public_id":"106475","display_label":"Codex entitlement failure causes infinite oscillation loop","summary":"A bug where both the primary and fallback models are unentitled causes the agent to oscillate indefinitely and falsely emit a 'Primary model restored' message. These members address detecting and failing closed when the full fallback chain is exhausted due to 400 entitlement errors.","subsystem":null,"counts":{"members":3,"open_issues":0,"open_issues_distinct":0,"open_prs":0,"closed_issues":1,"merged_prs":1,"attempt_prs":1},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":106549,"merged_at":"2026-09-09T18:29:58+00:00"},"resolution":{"state":"resolved","by":"pr-106549"},"freshness":{"state":"verified","last_verified_at":"2026-09-09T18:29:58+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.6666666666666666},"fix_edges":[{"issue_number":106475,"pr_number":106549,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-09-09T18:29:58+00:00"}],"members":[{"kind":"issue","number":106475,"title":"[Bug]: unentitled primary + unentitled fallback oscillate forever on openai-codex; \"Primary model restored\" is emitted without any recovery","url":null,"state":"closed"},{"kind":"pr","number":106482,"title":"fix(agent): fail closed when Codex account-model entitlement 400s exhaust the chain","url":null,"state":"closed","close_reason":{"refs":[{"kind":"commit","value":"6c89cb032e","number":0},{"kind":"pr","value":"#106549","number":106549}],"category":"merged_via","implication":"superseded"},"merged":false},{"kind":"pr","number":106549,"title":"fix(agent): unentitled Codex primary + fallback no longer oscillate or announce a false restore (#106475, salvage #106482)","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["agent/agent_runtime_helpers.py","agent/chat_completion_helpers.py","agent/fallback_cooldown.py","agent/turn_api_error.py","tests/run_agent/test_entitlement_fail_closed.py"]}],"trust":{"default_tier":"verified","includes_suggested":false}}