What is Access Control?
Access control is the security mechanism that determines which entities (users, agents, contracts) are authorized to perform specific actions on specific resources — enforcing the principle that only authorized parties can access or modify protected assets.
WHY IT MATTERS
Access control is one of the oldest and most fundamental security concepts. In blockchain, it determines who can call admin functions, upgrade contracts, transfer funds, and modify configurations. In agent systems, it determines what each agent can do.
Common models include discretionary (owner decides), mandatory (system-enforced), role-based (RBAC — permissions tied to roles), and attribute-based (ABAC — permissions based on dynamic attributes). Smart contracts typically use role-based patterns with OpenZeppelin's AccessControl library.
For AI agents, access control defines the agent's capability boundary. Which contracts can it interact with? What functions can it call? How much can it spend? Without proper access control, an agent is either too restricted (useless) or too permissive (dangerous).
HOW POLICYLAYER USES THIS
PolicyLayer provides financial access control for AI agents — defining which transactions each agent is authorized to execute based on amount, recipient, token, and other attributes. It's ABAC (Attribute-Based Access Control) applied to financial operations.