The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore: merge origin/main (resolve agent/error_classifier.py,tests/agent/test_error_classifier.py)
teknium1e85cb94da126
diff --cc agent/error_classifier.pyindex b18f6a972df,7b88e2f2de2..8e97f0867b8--- a/agent/error_classifier.py+++ b/agent/error_classifier.py@@@ -48,8 -49,8 +49,9 @@@ class FailoverReason(enum.Enum)image_corrupt = "image_corrupt" # Provider can't decode image bytes — strip and retry (shrinking won't help)model_not_found = "model_not_found" # 404 or invalid model — fallback to different modelprovider_policy_blocked = "provider_policy_blocked" # Aggregator account data/privacy policy excluded the only endpoint- content_policy_blocked = "content_policy_blocked" # Provider safety filter rejected this prompt — don't retry unchanged+ content_policy_blocked = "content_policy_blocked" # Provider safety filter rejected this prompt — deterministic per-request, don't retry unchanged+ model_entitlement = "model_entitlement" # This account cannot use the requested model — rotate credential (model-scoped), else fall back+ incomplete_response = "incomplete_response" # Codex/Responses turn stuck emitting reasoning only (no answer, no tool call) after replay + nudge — hand to a different providerformat_error = "format_error" # 400 bad request — abort or strip + retryrole_alternation = "role_alternation" # Strict chat template rejected adjacent same-role messages — merge them for this destination and retryinvalid_encrypted_content = "invalid_encrypted_content" # Responses replay blob rejected — strip replay state and retrydiff --cc tests/agent/test_error_classifier.pyindex 961d2575cc8,2e7ed826700..3f91c5b3e98--- a/tests/agent/test_error_classifier.py+++ b/tests/agent/test_error_classifier.py@@@ -70,7 -71,7 +71,8 @@@ class TestFailoverReason"reasoning_mandatory","provider_policy_blocked","content_policy_blocked",+ "model_entitlement",+ "incomplete_response","thinking_signature", "long_context_tier","oauth_long_context_beta_forbidden","llama_cpp_grammar_pattern",