Repository navigation
zkevm(test-specs): add fill-side stateless witness plumbing from projects/zkevm - #43
Draft
spencer-tb wants to merge 21 commits into
Draft
spencer-tb wants to merge 21 commits into
spencer-tb wants to merge 21 commits into
Conversation
spencer-tb
force-pushed
the
zkevm-witness-framework
branch
from
August 10, 2026 09:25
3a4d79d to
6be0f06
Compare
spencer-tb
force-pushed
the
zkevm-witness-framework
branch
from
August 10, 2026 09:30
6be0f06 to
445e032
Compare
projects/zkevm
spencer-tb
force-pushed
the
zkevm-witness-framework
branch
from
August 10, 2026 11:01
c6adf83 to
9690e05
Compare
projects/zkevmThis branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
Merges the fill side of the
projects/zkevmframework tier: the execution witness types, the fixture fields and the fill orchestration needed to carry witnesses. Deliberately nothing the EIP process governs. Witness generation itself (the EELS stateless modules) stays on its EIP branch.With no witness emitter present every new field stays
Noneand is excluded from fixture output. The machinery is dormant until a transition tool emits a witness.Key Notes
src/. Nothing outsidepackages/testinganddocs/is touched.StatelessBackendprotocol) resolved at the point of use. The EELS implementation lands with the witness generation tier, where the spec side already resolves forks by name. The branch type checks fully with no mypy overrides.Environmentpreservesextra_dataand the header reads it from the env, because the witness tier t8n builds the stateless input header from env fields. Landing the carry here means that tier ships whole.just staticclean, full mypy clean, all framework unit tests pass.Changes vs
projects/zkevm--statelessflag, off by default, symmetric with the consume side. Upstream fills generate witnesses on every run with only a per test opt out, which doubles fill time, churns every fixture hash and corrupts opcode counts. With the flag off default fills are byte for byte unchanged, and even with it on the machinery stays dormant until an emitter exists.StatelessBackendcapability protocol on the transition tool interface, the same channel everything else uses to reach the spec. Backends gain guest support by implementing the protocol. Unsupported backends are rejected with a typed error at the point of use, which is unreachable for fills that produced no guest payloads.system_contracts()minus per EIP exemptions instead of a flat latest fork list. EIP-6110's deposit contract is exempt because it is log scraped and never executed. Future forks inherit correct expectations automatically.blockchain.pyis two calls plus the data model, and the trust path gate moves into the stateless module.StatelessValidationErrorreplaces bareExceptionraises throughout the orchestration.skip_stateless_validationmarker is registered. Upstream applies it unregistered, so the decorator usage in its own test suite warns and errors under--strict-markers. A comment records why the gas heavy system contract variants skip: their oversized mock contracts exceed the SSZ code size bound of the stateless input.rlp_decodedrule that invalid blocks carry the fields at the top level only.test_supporting_backend_satisfies_the_capability,test_unsupporting_backend_is_rejectedandtest_partial_backend_is_rejectedcover theStatelessBackendcapability contracttest_execution_witness_implicit_code_addressescovers the per fork implicit code derivation, EIP by EIPtest_environment_fork_requirements_preserve_extra_datacovers the env extra data carrytest_execution_witness.py, and the two scoped pyproject mypy overrides from upstream are unnecessary once the bridge is gone.Deferred with the witness generation tier: the pytester fill tests that assert witness content (they need a real emitter), the EELS implementation of the backend operations, and the consume side, which follows separately.
Related Issues or PRs
N/A.
Checklist
just static<type>(<area>): <title>, where<type>and<area>come from an appropriateC-<type>, respectivelyA-<area>, label. The title should match the target squash commit message.Cute Animal Picture