Skip to main content
Use the Book to learn how an assertion behaves, select a pattern for a known risk, or understand an exploit mechanism. Each page has a different purpose; a case study is not a deployable policy, and compilation alone does not demonstrate protection.

How to Use This Book

Test an Ownership Policy

Follow a local tutorial with three expected results, including a temporary ownership change that escapes an endpoint check.

Browse Assertion Patterns

Look up a pattern’s measured property, configuration, and limitations by risk domain.

Study Historical Exploits

Understand a failure mechanism and the assumptions behind a proposed policy.

Inspect a Composed Vault Policy

See how an ERC-4626 example combines operation checks with a rolling outflow limit.

Find the Right Reference

The Patterns sidebar groups entries by risk: flow limits, authority and configuration, accounting and operation results, solvency, and oracle valuation. Legacy entries remain in their risk group and state the corrections they need. Read the catalog facets to distinguish risk from protocol family, dispatch mechanism, specification, adaptation requirements, and evidence. Protocol-specific Policies contains the ERC-4626 composition, the experimental Aave V3 catalog, and the historical Optimism FMA catalog. Their status and coverage differ; read each reference’s source and limits before adapting it. The reviewed credible-std revision contains the Book’s imported examples and mock contracts. Pages identify separately maintained local fixtures and the tests executed for them.

Ethereum Deployment Scope

The examples demonstrate assertion logic, not complete production integrations. On Ethereum, protection also requires activation at participating builders, an unavoidable guard on each protected path, and transaction routing. Exploit replays establish detection under their test conditions, not universal protection. See Ethereum Integration Planning. Historical examples retain the networks on which the incidents occurred. Sequencer infrastructure designs live separately in L2 and Sequencer Integrations. For your own policy, follow Write Your Own Policies and agree the scope with Phylax. Custom development includes reviewing protocol assumptions, legitimate exceptions, and integration coverage.