feature/regulations-chat-tools
main
让对话模型能检索共享法规知识库(EXT-20)。
project command tool awaits trusted source preflight
rdm.reg.search
regulations_search
regulation_evidence
internal/app/regulations_tools.go
applyCompiled
inprocHost
regulations.*
agent-tools
ErrRegulationsUnavailable
state=unavailable
pkg/extension
用户 2026-10-19 经 AskQuestion 选择“在 Backend 加内置工具 regulations_search / regulation_evidence,再升级 RDM 的 backend pin、重新部署”。
go build ./...
go test -count=1 ./internal/app/... ./internal/tools/...
go vet
git diff --check
No dependencies set.
The note is not visible to the blocked user.
目标
让对话模型能检索共享法规知识库(EXT-20)。
project command tool awaits trusted source preflight),插件又无法注册注册表工具,所以模型始终用不到法规库。8788 实测:模型调用rdm.reg.search被拒。regulations_search/regulation_evidence(internal/app/regulations_tools.go),在applyCompiled之后注册;执行经inprocHost的有效账号校验与regulations.*审计路径,调用方为运行属主本人(固定调用方 IDagent-tools);提供方缺失或ErrRegulationsUnavailable返回state=unavailable;子代理回落白名单加入两工具。pkg/extension契约、迁移。授权
用户 2026-10-19 经 AskQuestion 选择“在 Backend 加内置工具 regulations_search / regulation_evidence,再升级 RDM 的 backend pin、重新部署”。
实施与验证
go build ./...、go test -count=1 ./internal/app/... ./internal/tools/...、go vet、git diff --check均 PASS。权威结果以 PR HEAD 的 CI 为准。