feat(routing): implement routing decision pipeline — M4-006 #318

Merged
jason.woltje merged 2 commits from feat/m4-routing-pipeline into main 2026-03-23 00:41:05 +00:00

2 Commits

Author SHA1 Message Date
6999186662 feat(routing): implement routing decision pipeline — M4-006
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
Add RoutingEngineService that classifies tasks, evaluates routing rules
in priority order, checks provider health, and applies a Sonnet → Haiku
→ Ollama fallback chain when no healthy rule match is found.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 19:40:17 -05:00
d901066907 test(M3-012): add provider adapter integration tests for all 5 providers
Adds comprehensive integration tests at apps/gateway/src/agent/__tests__/provider-adapters.test.ts
verifying adapter registration, graceful degradation without API keys, the capability
matrix, ProviderService integration, and ProviderCredentialsService encryption logic.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 19:39:34 -05:00