feat(orchestrator): combine KG and keyword routing as first-class signals#779
Merged
AlexMikhalev merged 1 commit intomainfrom Apr 9, 2026
Merged
Conversation
…nals Refs #525 - Rewrite decide_route() to collect candidates from all sources (KG, keyword, static) - Score candidates with source-weighted confidence instead of cascade fallback - Add CombinedKgKeyword source when both signals agree on the same model - Add dominant_signal field to RoutingDecision for audit/rationale - 13 new/updated tests covering KG-only, keyword-only, mixed, and no-signal cases - All 384 orchestrator tests pass, clippy clean
5 tasks
AlexMikhalev
added a commit
that referenced
this pull request
Apr 25, 2026
…nals Refs #525 (#779) - Rewrite decide_route() to collect candidates from all sources (KG, keyword, static) - Score candidates with source-weighted confidence instead of cascade fallback - Add CombinedKgKeyword source when both signals agree on the same model - Add dominant_signal field to RoutingDecision for audit/rationale - 13 new/updated tests covering KG-only, keyword-only, mixed, and no-signal cases - All 384 orchestrator tests pass, clippy clean Co-authored-by: Terraphim CI <alex@terraphim.ai>
AlexMikhalev
added a commit
that referenced
this pull request
Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RoutingDecisionEngine::decide_route()to collect candidates from KG, keyword, and static sources simultaneously instead of cascade fallbackCombinedKgKeywordsource type when both KG and keyword signals agree on the same modeldominant_signalfield toRoutingDecisionfor audit/rationale trackingAcceptance Criteria (from #525)
Tests
Refs #525 (Gitea)