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

@@ -32,6 +32,7 @@ export const validateNicknameTool: Tool<
name: "validate-nickname",
description:
"새내기 닉네임 형식이 이름/출생 연도/성별/티어 규칙에 맞는지 검사하고, 틀린 부분을 구조화해서 반환한다.",
requires: [],
argsSchema,
resultSchema,
execute(args) {