feat(governance): standing-grant revocation dashboard (#620) - #638
Open
cagdasyurekli wants to merge 1 commit into
Open
feat(governance): standing-grant revocation dashboard (#620)#638cagdasyurekli wants to merge 1 commit into
cagdasyurekli wants to merge 1 commit into
Conversation
- Add explicit revoke_trust method to WorkspaceTrustStore mirroring RiskOverrideStore - Add revoke session grant methods in PermissionEngine (tools, commands, domains, readonly) - Add list_active_grants and revoke_grant to SessionManager across workspace trust, MCP tool trust, standing automation rules, session grants, and allowed domains - Record audit events (stage='grant_revoked', status='revoked') for all grant revocations and workspace trust changes - Expose GET /v1/grants and POST /v1/grants/revoke in FastAPI server - Add Active grants tab and revocation section in SettingsView - Add comprehensive unit tests in tests/test_grants.py
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
Closes #620.
Adds a centralized standing-grant revocation mechanism and Settings -> "Active grants" dashboard across the entire ladder of earned autonomy:
revoke_trust()method onWorkspaceTrustStoremirroringRiskOverrideStore:revoke_trust. Audited workspace trust changes (workspace_trust_grantedandgrant_revoked).revoke_mcp_trustin audit store (stage='grant_revoked',status='revoked').update_automation.revoke_tool_for_session,revoke_command_for_session,revoke_domain_for_session, andrevoke_readonly_for_sessiontoPermissionEngineand handled in-memory and persistedSessionRecord.grantsupdates.GET /v1/grants: Lists all active standing grants with metadata, source session/task, and details.POST /v1/grants/revoke: Single endpoint to revoke any grant and record audit event.Verification
tests/test_grants.pycovering store methods, engine session revocations, manager listing/revocation, audit events, and REST endpoints.tests/test_grants.py.