Repository navigation
fix(node): pin the deployment preflight ahead of the lane store, and identify the PaymentPool by getRateBounds() - #2280
Merged
Merged
Conversation
…tore is touched New anvil journey deployment_preflight_guard: a node with a live seller lane is repointed at a codeless address, then at the snapshot TOKEN. Each boot exits nonzero with the matching preflight verdict and never logs the seller-lane rebind drop. With the config reverted, the same lane serves another blob and redeems past its earlier watermark. NodeFixture gains set_payment_pool_address and respawn_expecting_exit; rewrite_payment_pool reuses the new rewrite_payment_pool_address. Closes #2234 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Code Coverage OverviewLanguages: Rust, Solidity Rust / code-coverage/cargo-llvm-covThe overall line coverage in commit 2c2e6ac in the Show a line coverage summary of the most impacted files.
Solidity / code-coverage/forgeThe overall line coverage in commit 2c2e6ac in the Updated |
…preflight FeeRouter and BuybackBurner also answer usdc(), so a node pointed at either passed the preflight, opened the lane store against it and dropped its seller lane state. feeRouter() is a PaymentPool immutable no sibling contract has. The deployment_preflight_guard journey now covers the FeeRouter alongside the TOKEN. Closes #2279 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ibling in e2e DecdnGovernor also answers feeRouter(), so the previous probe still let a Governor address open the lane store and drop the seller lanes. getRateBounds() is declared only by PaymentPool. The preflight unit test now covers the code-3 revert a real node answers as well as empty data. deployment_preflight_guard boots the node against every non-PaymentPool contract in the manifest and requires the unretried verdict for each. Both lane-drop WARN needles are shared from decdn_e2e::node. NodeFixture factors respawn_child and wait_for_exit out of restart, terminate and respawn_expecting_exit; kill/reap errors propagate, and a timeout drains the log before reporting its tail. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e identity probe PaymentPool.getRateBounds() and check_deployment_preflight both say the view is the node's PaymentPool identity probe, so no other contract in the deployment may declare its selector. ChainFixture exposes every deploy-manifest contract entry, and deployment_preflight_guard sweeps that list (plus the settlement USDC) instead of a hand-written one, so a new contract is covered without an edit. The sweep now includes Ed25519Verifier, which the hand list missed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Gas snapshotNo gas changes vs base. |
…t probe selector payment_pool_probe_selector reads the methodIdentifiers forge build records for every contract compiled from contracts/src and fails if any contract other than PaymentPool exposes the getRateBounds() selector. It compares 4-byte selectors taken from the node's own PaymentPool binding, so it covers contracts the e2e deploy leaves undeployed (the dormant BuybackBurner, which is live on Arbitrum Sepolia) and a differently named function that collides with the selector. ChainFixture gains build_contracts, which runs forge build and returns the contracts directory. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ore-e2e # Conflicts: # CHANGELOG.md
…ore-e2e # Conflicts: # CHANGELOG.md
…ore-e2e # Conflicts: # CHANGELOG.md
alpergundogdu
approved these changes
Oct 3, 2026
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.
Summary
deployment_preflight_guard: a node with a live seller lane is repointed at a codeless address, then at every other contract in the deploy manifest plus the settlement USDC. The list is read from the manifest itself (ChainFixture::manifest_contracts), not hand-written, so a new contract joins the sweep without an edit; today that is 12 contracts, includingEd25519Verifier. A contract the e2e deploy leaves undeployed (the dormantBuybackBurner, live on Arbitrum Sepolia) is covered by the selector checkpayment_pool_probe_selector, which scans every contract incontracts/src. Each boot exits nonzero with the matching, unretried preflight verdict, and no boot logs either seller-lane drop WARN. Reverting the config restarts it on the original deployment, where the same pool session pays for another blob and redeems past its earlier watermark.check_deployment_preflightruns beforePersistentPoolStateStore::open, so a typo'd address cannot drop unredeemed lane state. The verdicts were unit-tested against a mocked provider (fix(node): bind the seller store to its PaymentPool deployment #2191); only an e2e catches a reorder.usdc(), whichFeeRouterandBuybackBurneralso answer; a node pointed at either passed the preflight, opened the store against it, and dropped its seller lanes (the journey reproduced it:forfeited_micro_usdc=20). The probe is nowPaymentPool.getRateBounds(), which onlyPaymentPooldeclares —feeRouter()would not do,DecdnGovernoranswers it too. No redeploy: the getter and its binding already exist.PaymentPool.getRateBounds()and thecheck_deployment_preflightdoc both warn that the view is the node's identity probe, so no other contract in the deployment may declare its selector (a NatSpec-only contract change; the gas snapshot is unchanged). The unit test now covers the code-3 revert a real node answers as well as empty return data. Runbook and CHANGELOG follow.NodeFixturegainsset_payment_pool_address(config-only rewrite) andrespawn_expecting_exit(respawn without the health wait, return the exit status after the log drains).restart,terminateandrespawn_expecting_exitsharerespawn_child/wait_for_exit: kill/reap errors propagate, and a timeout drains the log before reporting its tail.rewrite_payment_poolreuses the new address rewrite. Both lane-drop WARN needles are shared fromdecdn_e2e::node, sonode_pull_pool_redeployand this journey match the same text.Test plan
cargo nextest run -p decdn-e2e --features anvil-e2e --test deployment_preflight_guard(~6 s)feeRouter()("the DecdnGovernor boot never logged the unretried getRateBounds() verdict"), and with the preflight moved after the store open (scratch checks, not committed)cargo nextest run -p decdn-e2e --features anvil-e2e --test payment_pool_probe_selector(~1 s, no chain): no contract incontracts/srcother thanPaymentPoolexposes thegetRateBounds()selector, compared by 4-byte selector from forgemethodIdentifiers. Fails as expected with the probe set tofeeRouter()(DecdnGovernor) orusdc()(FeeRouter, BuybackBurner, BuybackBurnerUniswapV3, GuardedBuybackBurner) (scratch checks, not committed)cargo nextest run -p decdn-node preflight(9 tests)--test node_pull_pool_redeploy,--test anvil_pool_redeem,--test node_to_node_coalesce(usesterminate) still pass;cargo nextest run -p decdn-e2e --libincl. the newrewrite_payment_pool_addressunit testforge fmt --check,FOUNDRY_PROFILE=ci forge build --sizes --deny warnings,forge test, deterministic gas snapshot unchanged, aderyn (0 high), slither (exit 0)cargo clippy --workspace --all-targets -- -D warnings,cargo clippy -p decdn-e2e --all-targets --features anvil-e2e -- -D warnings,cargo fmt -- --check,cargo docwith-D warningsCloses #2234
Closes #2279
🤖 Generated with Claude Code