AI-powered virtual executive team — a single coherent executive persona backed by 8 specialist agents (FastAPI + Next.js).
fix: route triage through routing_model (Anthropic-free alert pipeline)
dtmaialedb1432c13616
diff --git a/packages/core/openexecutive/agents/triage.py b/packages/core/openexecutive/agents/triage.pyindex d18dcd53..eda9a0f9 100644--- a/packages/core/openexecutive/agents/triage.py+++ b/packages/core/openexecutive/agents/triage.py@@ -169,8 +169,13 @@ class TriageAgent(BaseAgent):@propertydef model(self) -> str: # type: ignore[override]- # Cheap and fast. Triage runs on every inbound event.- return "claude-haiku-4-5-20251001"+ # Cheap and fast. Triage runs on every inbound event. Uses the+ # configured routing model (like utility_fast) so an Anthropic-free+ # deployment routes triage to its local / OpenRouter model too,+ # rather than forcing a hardcoded Claude model.+ from openexecutive.config import get_settings++ return get_settings().routing_modeldef get_system_prompt(self) -> str:from openexecutive.prompts.triage_prompt import TRIAGE_PROMPTdiff --git a/packages/core/tests/unit/test_triage_agent.py b/packages/core/tests/unit/test_triage_agent.pyindex 8b7cafe9..32549f95 100644--- a/packages/core/tests/unit/test_triage_agent.py+++ b/packages/core/tests/unit/test_triage_agent.py@@ -22,6 +22,18 @@ def _fake_response(tool_input: dict):return SimpleNamespace(content=[block])+def test_triage_model_follows_routing_model(monkeypatch) -> None:+ """Triage must use the configured routing model, not a hardcoded Claude+ slug — otherwise an Anthropic-free (local / OpenRouter) deployment can't+ run the alert pipeline. The property imports get_settings from+ openexecutive.config at call time, so patch it there."""+ monkeypatch.setattr(+ "openexecutive.config.get_settings",+ lambda: SimpleNamespace(routing_model="llama3.3"),+ )+ assert TriageAgent().model == "llama3.3"++def test_triage_returns_parsed_decision_and_passes_context() -> None:fake_input = {"alert": True,