Role in the System
The enforcer selects applicable assertions, executes them, and returns assertion results. The builder applies the results before publishing its block. Sequencer-specific execution and rollback designs are covered in L2 Enforcement Pipelines.Integration Architecture
The enforcer is an enforcement role, not a required process boundary. An embedded integration links the assertion-execution library into the builder or sequencer and uses its execution context in the block-building pipeline. A separate-service integration delegates enforcement to a sidecar. Define where enforcement runs and how its results affect inclusion for the chosen client. Embedded workers share the node’s resource budget; a separate service also needs a state-transfer interface and a failure policy for that boundary. Ethereum protocol protection additionally requires guards and transaction routing.Enforcement Process
The enforcement process:Step-by-Step
- Read indexed State Oracle data to identify active assertions for the affected contracts.
- Load their bytecode from the local cache.
- Execute the transaction to obtain its state snapshots.
- Run the matching assertions in PhEVM.
- Return assertion results to the builder.
Block Building Integration
The builder excludes candidates that fail active production assertions. Satisfying the enforced assertions does not guarantee inclusion.Invalidation Handling
The integration reports failures to the platform. Other builders do not inherit this decision. The onchain guard restricts protected operations in their blocks.Performance Model
Measure assertion execution against the builder’s block-production budget. Monitor trigger frequency, tail latency, worker backlog, and rejected candidates. Prepare bytecode before enforcement. Define how timeouts, execution errors, and missing artifacts affect inclusion.Production Admission and Resource Limits
Review each assertion before admitting it to production. Check its trigger scope, frequency, runtime, read footprint, and deterministic behavior. Review backtesting and alerting results. Assertions execute read-only. Scoped triggers and bounded execution limit their cost.Resource Isolation and Griefing Controls
Use dedicated worker capacity and explicit execution limits. Publishing an assertion does not grant it production resources. Ingress filters can suppress repeated invalid submissions through short-lived fingerprints. Use conservative thresholds and expiry times for fingerprints that group different transactions.Operational Expectations (Public)
Enforcement is deterministic for the same state, transaction, and assertion code. Alerting records results without production exclusion. Project permissions control access to invalidation details.Assertion Caching
On Ethereum mainnet, the enforcer populates its local Assertion Store from the creation data in the State Oracle’sAssertionAdded events. It reads prepared assertions from that store when evaluating candidate transactions. See Assertion Data Availability.
Learn More
For Ethereum Builders
Plan enforcement, marking, and builder operations
Trust Model
Guarantees, scope, and operational model

