Skip to content

Add tool governance allowlist#34

Merged
baraajack merged 1 commit into
mainfrom
pr-34-tool-governance
Jun 8, 2026
Merged

Add tool governance allowlist#34
baraajack merged 1 commit into
mainfrom
pr-34-tool-governance

Conversation

@baraajack

Copy link
Copy Markdown
Owner

Summary

Adds tenant-isolated, agent-scoped tool governance.

Included

  • tool_permissions table with RLS enforcement
  • Agent-scoped tool allow-list configuration
  • ToolPermissionRepository for grant lookup and updates
  • Authorization deny path for tools outside configured grants
  • New decision reason: "denied: tool not allowed"
  • Tool permission management API endpoint
  • Kill switch precedence preserved
  • Budget precedence preserved
  • Decision logging preserved before response
  • Idempotency preserved via existing decision log path

Authorization Order

  1. Kill Switch
  2. Budget Controls
  3. Tool Governance
  4. Static Deny Test
  5. Default Allow

Not Included

  • Policy DSL
  • Tool catalog
  • Tool groups
  • Argument inspection
  • SDK changes
  • Human approval
  • Dashboards or reporting
  • Changes to ingestion or observability paths

Validation

  • Authorization service tests
  • Authorization endpoint tests
  • Full test suite passes (125 passed)
  • Tenant isolation preserved
  • Idempotent deny verified
  • Kill switch override verified
  • Budget precedence verified

@baraajack baraajack merged commit d7f3284 into main Jun 8, 2026
4 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.

1 participant