DApps keep reimplementing ad hoc validation and compliance rules (roles, KYC, allowlists, limits, workflows, and other legally required validations). This approach is brittle to upgrade, hard to audit, and not reusable across projects. This ERC enables Programmable Compliance by standardizing a Policy Engine
- Each rule is packaged in small contract called artifact
- Each artifact contract can be reused by other policies and has to expose minimal interface (init, exec) and self-descriptors
- A Policy Handler (the recommended approach) bundles and orchestrates policy artifacts as a Directed Acyclic Graph (DAG), allowing applications to compose complex policies from simple building blocks and update them incrementally by swapping or appending artifacts instead of redeploying application logic
- All parameters flow as bytes for uniform on/off-chain integration; variables can be introspected for tooling.
It’s universal by design – applicable across data domains and attachable to any contract as method-level hooks (pre/post) to gate calls and chain validations. Reference implementation in ERC assets.
General and simplified yet precise view of how it works
