What is a Transaction Policy?
A transaction policy is a declarative rule set defining valid agent transactions — specifying allowed amounts, recipients, tokens, contract interactions, time windows, and velocity limits.
WHY IT MATTERS
Policies formalize what an agent is financially allowed to do. Instead of relying on prompt instructions (manipulable), they provide deterministic, verifiable constraints at the infrastructure level.
Good policies are declarative: "Allow USDC up to $500, to whitelisted addresses, max 10/hour." Readable, auditable, composable.
The art is balance — overly restrictive prevents work, overly permissive doesn't protect. Best policies are task-specific and adjust over time.
HOW POLICYLAYER USES THIS
PolicyLayer enables declarative transaction policies evaluated in real-time, definable through DSL or API, updatable without redeploying agents.