Open
Conversation
`@withRole` now replaces the user's roles instead of adding to them, preparing for agent-owned RBAC roles.
- Add required `role` field to agent definitions for RBAC role assignment - Rename `escalatedRole` to `assumedRole` with replace semantics (not additive) - Set `assumedRole` on the environment when an agent executes - Add role tracking to Monitor for audit trail - Add agent-rbac tests for role-based permission enforcement - Replace placeholder `role "admin"` with domain-specific roles across docs, examples, and tests (e.g. incident_ops, hr_ops, support_ops)
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.
Summary
role(agent purpose description) togoalin agent definitionsrolefield to agents for RBAC role assignmentescalatedRoletoassumedRolewith replace semantics — when set, the agent's role completely replaces the user's roles for permission checksassumedRolein the Monitor for audit trailrole "admin"with domain-specific roles (e.g.incident_ops,hr_ops,support_ops,network_ops,sales_ops) across all docs, examples, and testsTest plan
@withRoleuses replace semantics