mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-30 05:24:50 +02:00
[eric] agents: the dead_lane fault follows the arming convention and is registered in the wiring map
This commit is contained in:
@@ -99,8 +99,8 @@ def injected_dead_conn(provider: str) -> Dict:
|
||||
|
||||
async def dead_connection(provider: str) -> Optional[Dict]:
|
||||
"""The provider's connection if the router considers it dead, else None. Never raises: a preflight that cannot read health must let the turn proceed, because guessing "dead" would ground a working lane."""
|
||||
from backend.apps.agents.core.fault_injection import armed
|
||||
if armed("dead_lane"):
|
||||
from backend.apps.agents.core.fault_injection import armed as p_fault_armed
|
||||
if p_fault_armed("dead_lane"):
|
||||
logger.warning("[fault] dead_lane armed: reporting %s as a dead credential", provider)
|
||||
return injected_dead_conn(provider)
|
||||
try:
|
||||
|
||||
@@ -60,6 +60,7 @@ WIRED_IN = {
|
||||
"auth_401": TURN_RUNNER,
|
||||
"transport_death": TURN_RUNNER,
|
||||
"empty_finish": "backend/apps/agents/manager/streaming/handle_assistant_message.py",
|
||||
"dead_lane": "backend/apps/agents/manager/run/lane_preflight.py",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user