v3/@claude-flow/guidance/docs/adrs/ADR-G010-capability-algebra.md
Status: Accepted Date: 2026-02-01 Author: Guidance Control Plane Team
Agent permissions were previously flat lists of allowed tools. This fails when agents need to delegate partial permissions, apply time-bound constraints, or compose permissions from multiple authorities. A structured permission model is required where capabilities are typed objects that can be reasoned about algebraically.
Introduce CapabilityAlgebra with six operations on typed Capability objects:
| Operation | Semantics |
|---|---|
grant | Create a new capability with scope, resource, actions, constraints |
restrict | Narrow an existing capability (subset of actions, tighter constraints) |
delegate | Transfer capability to another agent with delegation chain tracking |
expire | Set or tighten time-to-live on a capability |
revoke | Permanently invalidate a capability and all downstream delegations |
attest | Attach a cryptographic attestation (claim + signature) to a capability |
Composition uses set-theoretic semantics:
Capabilities carry delegation chains so any agent can trace the full authority path from the original grantor.