Skip to content

fix(release): pin native two-batch Gateway recovery - #399

Open
sidhujag wants to merge 2 commits into
mainfrom
codex/v32-gateway-native-recovery
Open

sidhujag wants to merge 2 commits into
mainfrom
codex/v32-gateway-native-recovery

Conversation

@sidhujag

@sidhujag sidhujag commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Fresh zkSYS v32 Gateway deployments use the existing checked-in source and generated-verifier materializer. This PR brings native Gateway priority recovery from Era #24 into that default path. The existing settlement selector accepts a tagged envelope for exactly two consecutive eligible zkOS batches. Native commits run separately, followed by one verification and execution for the exact pair in the same transaction. Era contract, integration tests and profile inventory

Release identity Value
Official Matter Labs base 8fb7c29a4e3174335c6480b23f57822e054f9d5f
Syscoin source-only tree bdb50a9f012bdcd1761149b5729d0cecb89a9eb2
Generated Era tree 1dc3f74ad1f73d076beb506719e5ef9fe698e51f
Era mirror commit 2e2c7061e5f9d2b9ab9349b803c9bf2d0fb570d7
EVM runtime keccak256, 3,213 bytes 0x4f8794f8d2cc92d74bddbb9950e6f3345fe4988ff82ba61a04b61fc3f6c459b8
EraVM bytecode hash 0x0100011751934abf209eeabfb0437f5cbca4104122c1a92c5ecc01954060fa6d

The normal Linux Era build reported exactly one changed row in the 278-contract inventory. The existing generated-verifier overlay retains its four files and two permitted inventory rows. Its single changed patch line is the Git object header for the updated inventory. The generated verifier sources, VK, old proof replay records and fixture binding retain their exact historical identities. The release manifest records the native validator revision separately. Linux build · Linux old/new inventory report

Validation

Two independent checkouts reconstructed both new trees from the official base. The actual production-profile Gateway launcher helper materialized and re-attested the new tree, with its second invocation recording no mutation. The local source-only profile also reconstructed its new tree, and the normal generated helper consumed that source postimage in a separate checkout. An independent Linux run on the exact companion Era head passed all eight native Gateway settlement integration cases, including its real MessageRoot, both native queue entries, ordinary-caller denial and rollback. The final hosted Era run passed all 2,707 L1 Foundry tests, 16 DA tests and the 278-row inventory check. The previous corrected-guest proof and key receipts retain their original tested tree. Hosted L1 and DA suites · Final inventory.

The generated release, Era source attestation, mainnet identity and native audit unit suites ran 107 tests successfully, including read-only reconstruction from the actual official base. scripts/check-server-release-inputs.py passes after refreshing the native source fingerprint. Since the previous fingerprint update, the base had changed only its secret-scanner workflow. The first branch check identified one inherited finding, RUSTSEC-2026-0592, in url 2.5.7. The final commit incorporates the same two-package lockfile correction as server #394/#398 (url 2.5.9 and form_urlencoded 1.2.3). The candidate-specific Linux-target Cargo metadata yielded graph 04622734be48f4859349c766f08f4c402f75caa6f5a2f1017628fe5d1794df85, lock 6ea582d38ef3b03065c96648c02eb30bd9ceea7da1aa4c893b66cf6164a1a96c and source 6c53242ec4a23d45ee5e2663f0894e542417a92f66c1ac1ef9c231fc194144a3. The final x86_64 Linux cargo-audit and cargo-deny jobs passed on this head. Existing advisory dispositions retain their original scopes. Final Linux audit · Final Linux deny · Initial Linux dependency report.

Rollout qualification

Ordinary Gateway settlement still uses the validator timelock. Fresh diamonds record the permissionless proxy independently. A public caller using that proxy outside emergency mode requires the proxy to have been explicitly granted ordinary validator authority. Under emergency mode the native facets authorize the recorded proxy and enforce DA, predecessor, priority-only batch contents and FIFO.

For a fresh deployment, rederive the deterministic permissionless proxy and dependent CTM addresses from the new implementation. For an existing chain, use the authorized proxy upgrade process and verify the implementation runtime and diamond binding. Production recovery qualification requires two accepted priority batches, a real Flock V8 aggregate proof, ordered native execution, production DA, gas and confirmation evidence on the intended topology. Mainnet also needs the separately reviewed guest and VK for its intended Gateway chain ID. This source integration makes no network deployment.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-23T18:08:00.721760Z
We couldn’t complete this review. Comment @codex review to try again.
dc6840a Draft marked ready
🔒 Security Review ❌ Failed 2026-11-23T18:08:07.821257Z
We couldn’t complete this review. Comment @codex security review to try again.
dc6840a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant