fix(test): retire executed-migration simulations, repoint authoriser truth - #268
Conversation
…truth Main went red when the two Base Safe batches executed on-chain (V4 receipt vault upgrade + authoriser swap): the tests that simulated those migrations from reconstructed pre-state lost their premise, and the live-state pins still asserted the pre-swap V3 authoriser. - The live production authoriser is the V4 clone since the swap executed — verified on-chain across all 22 production vaults. Repoint `testProdReceiptVaultsShareUniformAuthoriser` and `testAssertProductionStateBasePassesLive` to `STOX_PROD_AUTHORISER_V4_CLONE`, deliberately STRICT: a newly-deployed token entering the table on a previous authoriser goes red until its swap batch executes. - Delete `MigrateBeaconOwnersTest` (+harness): the beacon-owner migration executed; walking it from pre-state is dead. Live post-state coverage lives in the strict per-chain beacon-ownership pin. - Delete the two executed-run simulations in the 20260623 upgrade test (`testRunCompletesAndWritesArtifact`, `testAssertPostStateRevertsWhenVaultNotSwapped`) (+harness); keep the migration-window pin and the pre-flight guard tests. - Delete `testAuthoriserSwapReWiresGatingOnLiveVault` from the V3 shadow fork: it required the live vault to still be pre-swap. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VPs1hCTxusmaSeFKvoc4Kr
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (7)
💤 Files with no reviewable changes (3)
📝 WalkthroughWalkthroughThe PR removes obsolete beacon migration and receipt-vault upgrade test harnesses and scenarios, deletes shadow-fork authoriser swap coverage, and updates production invariant tests to reference the V4 authoriser clone. ChangesV4 authoriser test alignment
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Reviewed b01ed8c: approved Human approval given interactively. Merging over two RED checks, so here is the justification for each — both are pre-existing main-red that this PR inherits and neither is introduced by it.
One correction to the PR description, for the recordThe body says main went red because "the live-state pins still asserted the pre-swap V3 authoriser". On main those pins pass: They pass because
Both are worth having; the framing was just wrong. The real main-red causes map elsewhere: Known consequence of the new strictnessThe strict pin is deliberate — a token entering the table on a previous authoriser goes red until its swap executes. #265 adds six such tokens (MU/AMD/AVGO/AMAT/LRCX/TTWO, all still on V3), so merging #265 before #269's swap bundle executes on-chain will red main again by design. Flagging so that is a chosen step, not a surprise. Landing with |

Main went red when the two Base Safe batches executed on-chain (V4 receipt
vault upgrade + authoriser swap): the tests that simulated those migrations
from reconstructed pre-state lost their premise, and the live-state pins
still asserted the pre-swap V3 authoriser.
verified on-chain across all 22 production vaults. Repoint
testProdReceiptVaultsShareUniformAuthoriserandtestAssertProductionStateBasePassesLivetoSTOX_PROD_AUTHORISER_V4_CLONE, deliberately STRICT: a newly-deployedtoken entering the table on a previous authoriser goes red until its swap
batch executes.
MigrateBeaconOwnersTest(+harness): the beacon-owner migrationexecuted; walking it from pre-state is dead. Live post-state coverage
lives in the strict per-chain beacon-ownership pin.
(
testRunCompletesAndWritesArtifact,testAssertPostStateRevertsWhenVaultNotSwapped) (+harness); keep themigration-window pin and the pre-flight guard tests.
testAuthoriserSwapReWiresGatingOnLiveVaultfrom the V3 shadowfork: it required the live vault to still be pre-swap.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01VPs1hCTxusmaSeFKvoc4Kr
Summary by CodeRabbit