Add tool permission sandbox and audit stream

- Tool interface declares required permissions via requires field
- scoped-context builds a least-privileged ToolContext per call
- ToolAuditLogger appends each tool invocation to a Garnet stream
- Operations CLI gains tool-audit:list and tool-audit:show commands
- All onboarding and moderation tools annotated with explicit requires
This commit is contained in:
dahyeon committed 2026-05-19 01:28:54 -07:00
1 parent 21df14cd00
commit d011a2829c
15 files changed
+625 -3

No files matched your search

@@ -90,6 +90,7 @@ export const lookupCommunityRuleTool: Tool<
name: "lookup-community-rule",
description:
"나이 제한, 닉네임 형식, 티어 코드, 하트 인증 규칙, 디스코드 안내 같은 커뮤니티 규칙을 조회한다.",
requires: ["memory-search"],
argsSchema,
resultSchema,
async execute(args, ctx) {