mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 11:13:43 +08:00
The knowledge-base trust verification recorded wiki citations from every non-readFile tool response by sniffing its JSON for a top-level title / pages / chunks field. Tools like getGoalStatus return a top-level title, which falsely populated the citation set and then forced [n] citations on the final answer (otherwise flagged EVIDENCE_INSUFFICIENT). Gate citation mining on the wiki_* tool name instead. Likewise, the grounded answer contract (cite-or-refuse) was appended to every ReasoningNode call unconditionally, degrading general agents that have no knowledge base. Append it only when the agent has a wiki_* tool bound, scoping the strict regime to KB-grounded scenarios. Adds a regression test asserting a non-wiki tool with a top-level title creates no wiki citations. |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| pom.xml | ||
| settings.xml | ||