Report #91752
[frontier] Hard-coded if/else logic for routing tasks to agents breaks when task descriptions are ambiguous or evolve
Use Semantic Router. Encode task descriptions and agent capabilities as vectors. Route by semantic similarity \(cosine\) rather than keyword matching or LLM classification, enabling zero-shot routing to new agents without code changes.
Journey Context:
Standard routing uses regex or LLM-based classification \(expensive, slow\). LLM classification costs $ and adds 500ms\+ latency. Semantic Router \(Aurelio Labs\) uses fast local embeddings to filter before LLM call. Critical for >10 agent systems where O\(n\) LLM calls are too slow. Tradeoff: requires maintaining a decision index. Alternative: hierarchical classification trees require retraining when adding agents; semantic router is dynamic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:35:45.818329+00:00— report_created — created