Skip to content

test(zones): run the candidate node against every pinned prover - #9570

Open
0xrusowsky wants to merge 9 commits into
mainfrom
rus/zones-prover-compat
Open

0xrusowsky wants to merge 9 commits into
mainfrom
rus/zones-prover-compat

Conversation

@0xrusowsky

@0xrusowsky 0xrusowsky commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

The L1 node ships continuously, while each hardfork pins its Zone prover enclave in crates/precompiles/src/zone_verifier/pcrs.json until that fork. Nothing ran a candidate node against those pinned provers, so a change in the witnesses the node serves could reach production unchecked.

Solution

The prover E2E publisher gets a compat suite, published for every push to reth-auto-bump and on dispatch. It runs the candidate L1 and Zone nodes against the pinned provers of the active and scheduled forks, each built from its pcrs.json commit, and reports one Tempo Zone Prover Compat status that a node release can require. The reth update loop does not wait on it.

The new read-only witness-shapes Zone xtask command proves TIP-1028 receive-policy slots of candidate recipients on L1 until one absence proof ends inside an extension node and another at a branch's empty child, and prints both recipients. It needs no key and works on any populated registry (Moderato, mainnet). The suite deposits to them, so the Zone reads both proof shapes, and requires Nitro settlement.

The Argo suite and event sensor changes land separately in the internal infrastructure repositories.

@tempoxyz-bot

tempoxyz-bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

👁️ Cyclops Security Review

✅ Reviewed 6d2074a (latest) · Coverage: partial · ⚠️ 1 open finding · report
⚠️ Not checked: The Argo event sensor and compatibility workflow were not staged. The publisher stops at event transmission, so the review could not verify that the consumer binds results to the same SHA and run, tests every intended prover pin, or confirm
⚠️ Not checked: The witness reproductions exercised extracted Rust with test doubles rather than a built tempo-zone-xtask against an actual transport.
⚠️ Not checked: Proof-batch size against the pinned Reth eth_getProof key cap: ruled out without reading the cited code at this commit
⚠️ 1 more unchecked question is listed in the report
ℹ️ Not verifiable from the source alone (needs running code or deployed state): The deployment's RPC scheme, job deadlines, response-order behavior, and release-required status configuration were not staged. The command-level findings do not establish production or release exposu

# Severity Finding Introduced Status
1 ⚪ Informational Proof-request timeout leaves WebSocket connection setup unbounded 6d2074a 🟠 Open

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings marked 🟡 are optional suggestions and need no follow-up push.

Comment thread xtask/src/zones/witness_shapes.rs Resolved
Comment thread xtask/src/zones/witness_shapes.rs Resolved

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review found no issues

No high-confidence issues detected in this change.

Still open from earlier reviews (1):

  • Unresolved: 1 minor or pre-existing.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review found no issues

No high-confidence issues detected in this change.

Comment on lines +28 to +30
let provider = ProviderBuilder::new_with_network::<TempoNetwork>()
.connect(&self.l1_rpc_url)
.await?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Informational · unverified: Proof-request timeout leaves WebSocket connection setup unbounded

The new witness selector is supposed to stop waiting when its configured RPC endpoint stalls. For a WebSocket URL, WitnessShapes::run awaits ProviderBuilder::connect before reaching the 30-second proof timer. The enabled Alloy WebSocket path waits for the initial handshake before returning.

Full finding

The new witness selector is supposed to stop waiting when its configured RPC endpoint stalls. For a WebSocket URL, WitnessShapes::run awaits ProviderBuilder::connect before reaching the 30-second proof timer. The enabled Alloy WebSocket path waits for the initial handshake before returning. A server that accepts one TCP connection and keeps it open without replying to the WebSocket upgrade can therefore hold the CLI indefinitely absent an outer deadline; no eth_getProof request is sent and no timeout error is returned by the command. An isolated Rust test using the exact connection expression and a permanently pending connector confirmed that the command remains pending before the timer can be armed. To reproduce with the full CLI, point it at a loopback socket that accepts the upgrade request and leaves the stream open without replying; assert the command exits on its own deadline. The baseline is the command's 30-second bound for a stalled proof request. Triggering the gap requires control of, or a fault at, the configured WS endpoint and sustaining one open connection; no chain transaction or fee is involved. The deployed scheme, outer job deadline, and resulting job or status impact were not available. Add a connection deadline or an overall command deadline and test a stalled upgrade.

Valid? React with 👍 / 👎.

This branch has not been deployed

No deployments
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.

2 participants