Skip to content

fix(a2a): correct routing threshold for research and knowledge_retrieval agents (#4530)#4541

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4530
Apr 14, 2026
Merged

fix(a2a): correct routing threshold for research and knowledge_retrieval agents (#4530)#4541
mrveiss merged 1 commit intoDev_new_guifrom
issue-4530

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 14, 2026

Closes #4530

Summary

  • Routing threshold in determine_routing() used strict > 0.8 but research and knowledge patterns return confidence exactly 0.8, causing fallthrough to the LLM router which misrouted them
  • Fixed threshold to >= 0.8
  • Added missing phrases (knowledge base, in the documents, in my documents) to KNOWLEDGE_PATTERNS

Test Status

PASS — lint clean

🤖 Generated with Claude Code

…#4530)

Pattern-match confidence for research/knowledge was exactly 0.8 but the
threshold check used strict `> 0.8`, causing both query types to fall
through to the LLM router which misrouted them.  Changed threshold to
`>= 0.8` so these patterns are honoured directly.

Also added missing "knowledge base", "in the documents", and
"in my documents" phrases to KNOWLEDGE_PATTERNS so queries that
explicitly mention the KB are caught without relying on the LLM.
@mrveiss mrveiss merged commit d7e2a08 into Dev_new_gui Apr 14, 2026
3 of 4 checks passed
@mrveiss mrveiss deleted the issue-4530 branch April 14, 2026 14:45
@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant