feat: add tool permission policy management#2464
Merged
hsluoyz merged 1 commit intoJul 23, 2026
Merged
Conversation
lulululu-debug
force-pushed
the
feat/tool-permission-policy
branch
from
July 16, 2026 04:30
08c4c50 to
9763a19
Compare
lulululu-debug
force-pushed
the
feat/tool-permission-policy
branch
7 times, most recently
from
July 23, 2026 14:44
00d20a0 to
e98c23d
Compare
lulululu-debug
force-pushed
the
feat/tool-permission-policy
branch
from
July 23, 2026 15:11
e98c23d to
9c043ea
Compare
hsluoyz
pushed a commit
that referenced
this pull request
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add tool permission policy management: a DB-backed
ToolPolicyentity with full CRUD API and an admin page to configure fine-grained tool-permission rules per agent (store).Backend
object/tool_policy.go—ToolPolicyentity (owner/name pk) + DB access;GetToolPoliciesForStoreandtoGuardRuletranslate rows intoguard.Rule.controllers/tool_policy.go+ routes — standard get/get-list/add/update/delete API.object/adapter.go— auto-migrate theToolPolicytable.Frontend
ToolPolicyListPage/ToolPolicyEditPage+ToolPolicyBackend— list/edit UI.Rules are configurable here but not yet enforced on tool calls — enforcement lands in the follow-up PR. Built on top of the guard engine from #2463.
Ref: #2462