refactor(agent): extract fallback policy into auxiliary_fallback_policy (auxiliary_client.py R3-S1) - #80138
refactor(agent): extract fallback policy into auxiliary_fallback_policy (auxiliary_client.py R3-S1)#80138andrexibiza wants to merge 1 commit into
Conversation
…cy (auxiliary_client.py R3-S1, epic NousResearch#78647) Signed-off-by: andrexibiza <84248988+andrexibiza@users.noreply.github.com>
|
Decision recorded against current main Do not land this fallback-policy slice first. The maintained auxiliary sequence is:
The historical #79787 gate is no longer pending: its work was salvaged to main through #85576. The active semantic gates are #79792, which still changes auto-resolution/provider-coherence behavior in this ownership area, and #78378, whose current Enterprise-endpoint disposition must be reconciled before fallback policy is frozen into a new module. Required branch work: rebase after #80139/#80140, retarget any surviving #79792/#78378 logic to the canonical owner, fail closed on duplicate ownership, recompute the exact source-window/golden proof, and rerun current-main fallback/resolver suites. The decision is complete; the current head is not yet landable. |
Summary
agent/auxiliary_client.pygod-file slice R3-S1: extract the runtime fallback policy cluster (window 4891–5369, 479 lines, 9 defs) intoagent/auxiliary_fallback_policy.py. Part of the repo-wide large-file decomposition (tracker #78647, target #78635).What changed and why
c365b2fde16264d31cb79e577ad4519162ac172aea689fa273aca215ef7ded11verified; zero unsanctioned byte differences)_try_payment_fallback,_try_main_agent_model_fallback,_task_minimum_context_length,_candidate_context_window,_try_configured_fallback_chain,_try_configured_fallback_for_unavailable_client,_fallback_entry_api_key,_resolve_fallback_entry,_try_main_fallback_chainagent.auxiliary_client.<name>with__func__identity (tests patch these names;agent/conversation_compression.py:1595imports one of them)_auth_refresh_provider_for_route)Testing
is-identical in fresh interpreters, both import ordersimport agent.auxiliary_fallback_policysucceeds (no eager monolith import)git diff --checkclean · DCO signedCoordination / interlock
Part of #78647
Part of #78635