Least-Privilege Permission Scopes
Commands are grouped into scopes such as view.read, view.modify, data.read, data.mutate and export. The AI layer is granted no scope by default, and each scope must be granted explicitly. Commands outside the granted scopes are rejected before validation even runs.
Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
AI enabled with only view.read and view.modify granted. A scope checklist is visible.
Expected behavior
Sorting succeeds. editCell is rejected with a PermissionError naming data.mutate. Granting data.mutate allows the edit to proceed to the confirmation step. Revoking a scope takes effect immediately for the next command.
Planned API surface
ai.permissions.scopesgrid.ai.grant(scope)grid.ai.revoke(scope)onPermissionDeniedPermissionErrorAcceptance criteria
- Default AI scopes are empty (pending)
- Each op declares exactly one required scope set (pending)
- Denied commands fire onPermissionDenied and never reach execution (pending)
- Direct developer calls can be configured to bypass or respect scopes (pending)
- Scope changes update the catalogue (pending)