Skip to content

feat(plugins): grant delegation and revocation - #26

Merged
MerhiOPS merged 2 commits into
mainfrom
feat/plugin-system-session-4
Mar 15, 2026
Merged

feat(plugins): grant delegation and revocation#26
MerhiOPS merged 2 commits into
mainfrom
feat/plugin-system-session-4

Conversation

@MerhiOPS

Copy link
Copy Markdown
Contributor

Summary

  • Plugin-grant registrydelegate_grant, revoke_grant, revoke_all_grants, is_delegated, list_delegated_grants layered on top of grant_store
  • Plugin APIcontext.grants.bindFsScope(), context.grants.list(), grant revocation events with handle invalidation
  • App-facing APIdelegateGrant, revokeGrant, prefetchFor exposed through volt:plugins runtime module
  • Deactivation cleanup — auto-revokes all delegated grants via clear_plugin_registrations_locked

Test plan

  • Plugin-grant registry: delegate, revoke, revoke-all, list, duplicate rejection, re-delegation after revoke
  • Plugin-side: bindFsScope valid/invalid/revoked, list grants, revocation event received, inert handles
  • Host-side: delegate → plugin can bind, revoke → plugin gets event, deactivation revokes all
  • Runtime: delegateGrant/revokeGrant roundtrip through Boa, prefetchFor available
  • All files under 300-line soft cap

@MerhiOPS
MerhiOPS merged commit 0860e42 into main Mar 15, 2026
16 checks passed
@MerhiOPS
MerhiOPS deleted the feat/plugin-system-session-4 branch March 15, 2026 15:42
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