fix(agent): keep knowledge_lookup out of the target gate

knowledge_lookup takes a taxonomy id or keyword, never a connection. Add it to
the intercept noTargetTools list so the target gate does not read targets from
its query. TestDomainToolsDeclareNoTarget now covers the new domain tool.

Refs #521.
This commit is contained in:
BaaRai
2026-11-24 01:19:21 +01:00
parent 9cd000dbd0
commit 99cda59643
+2
View File
@@ -29,6 +29,8 @@ var noTargetTools = toolSet(
"insert_assets", "add_company_scope", "add_task_scope", "list_assets",
"list_untested_assets", "list_companies", "report_finding", "record_fact",
"save_task_credential", "list_task_credentials", "ingest_bbot", "ingest_scan_output", "record_coverage",
// taxonomy lookup: the input is an id or a keyword, never a connection
"knowledge_lookup",
// cross-task orchestration, findings and retests (server)
"list_tasks", "list_llm_profiles", "spawn_task", "pause_task", "get_task_graph",
"list_task_findings", "add_task_hint", "get_task_worker_trace",