Skip to content

feat: add tool permission policy management#2464

Merged
hsluoyz merged 1 commit into
the-open-agent:masterfrom
lulululu-debug:feat/tool-permission-policy
Jul 23, 2026
Merged

feat: add tool permission policy management#2464
hsluoyz merged 1 commit into
the-open-agent:masterfrom
lulululu-debug:feat/tool-permission-policy

Conversation

@lulululu-debug

@lulululu-debug lulululu-debug commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What

Add tool permission policy management: a DB-backed ToolPolicy entity with full CRUD API and an admin page to configure fine-grained tool-permission rules per agent (store).

Backend

  • object/tool_policy.goToolPolicy entity (owner/name pk) + DB access; GetToolPoliciesForStore and toGuardRule translate rows into guard.Rule.
  • controllers/tool_policy.go + routes — standard get/get-list/add/update/delete API.
  • object/adapter.go — auto-migrate the ToolPolicy table.

Frontend

  • ToolPolicyListPage / ToolPolicyEditPage + ToolPolicyBackend — list/edit UI.
  • Menu entry (Connectors group) + nav item + i18n (en/zh).

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

@lulululu-debug
lulululu-debug force-pushed the feat/tool-permission-policy branch from 08c4c50 to 9763a19 Compare July 16, 2026 04:30
@lulululu-debug
lulululu-debug force-pushed the feat/tool-permission-policy branch 7 times, most recently from 00d20a0 to e98c23d Compare July 23, 2026 14:44
@lulululu-debug
lulululu-debug force-pushed the feat/tool-permission-policy branch from e98c23d to 9c043ea Compare July 23, 2026 15:11
@hsluoyz
hsluoyz merged commit d709e96 into the-open-agent:master Jul 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants