Skip to content

sync: l2cm conditional deployer#841

Merged
0xOneTony merged 2202 commits intosc-feat/l2cm-conditional-deployerfrom
sync/l2cm-cd
Feb 9, 2026
Merged

sync: l2cm conditional deployer#841
0xOneTony merged 2202 commits intosc-feat/l2cm-conditional-deployerfrom
sync/l2cm-cd

Conversation

@0xOneTony
Copy link
Copy Markdown
Member

No description provided.

0xForerunner and others added 30 commits October 31, 2025 09:09
Co-authored-by: frankudoags <frankudoags.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
…h#19459)

Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
…op-alloy#606)

<!--
Thank you for your Pull Request. Please provide a description above and
review
the requirements below.

Bug fixes and new features should include tests.

Contributors guide:
https://github.com/alloy-rs/core/blob/main/CONTRIBUTING.md

The contributors guide includes instructions for running rustfmt and
building the
documentation.
-->

<!-- ** Please select "Allow edits from maintainers" in the PR Options
** -->

## Motivation

commit shared flashblock data structures

<!--
Explain the context and why you're making that change. What is the
problem
you're trying to solve? In some cases there is not a problem and this
can be
thought of as being the motivation for your change.
-->

## Solution

<!--
Summarize the solution and provide any necessary context needed to
understand
the code change.
-->

## PR Checklist

- [x] Added Tests
- [x] Added Documentation
- [ ] Breaking changes

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
teddyknox and others added 26 commits February 4, 2026 01:28
…d reconciliation (ethereum-optimism#18993)

Add stateless validators for flashblock processing:
- FlashblockSequenceValidator: validates consecutive indices within blocks
- ReorgDetector: detects chain reorgs via transaction hash comparison
- CanonicalBlockReconciler: determines strategy when canonical blocks arrive
…ereum-optimism#19062)

* Update stalling chain test to be more robust

* Fix reqres sync disabled test for race condition

* Refactor L2 CL node P2P disconnection test

disable batcher
sanity check / wait for p2p disconnect
reuse helpers to do progress / stall assertions
These already run on PRs, so running them again in the merge queue is
redundant and can bounce the queue on transient failures.
… components (ethereum-optimism#19060)

* Generalize generate-release-notes recipe to support multiple components

* update justfile command hint/comment to suggest gh auth token
…imism#18872)

Introduce a new unified ID type system using Go generics to address the                                                                                                                                                                                                                                                  
parallel type system problem in op-devstack. The current system has 19                                                                                                                                                                                                                                                   
separate ID types, each with ~150 lines of boilerplate for marshal/unmarshal,                                                                                                                                                                                                                                            
String(), sorting, and matcher methods.                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                         
The new system provides:                                                                                                                                                                                                                                                                                                 
- ComponentID: single underlying struct for all IDs                                                                                                                                                                                                                                                                      
- ID[T]: generic wrapper with KindMarker constraint for type safety                                                                                                                                                                                                                                                      
- Marker types (L2BatcherMarker, etc.) to avoid circular dependencies                                                                                                                                                                                                                                                    
- IDShape enum to handle three ID formats (key+chain, chain-only, key-only)                                                                                                                                                                                                                                              
- Conversion helpers for incremental migration from old to new types                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                                         
New types use a "2" suffix (L2BatcherID2, NewL2BatcherID2) to coexist with                                                                                                                                                                                                                                               
the existing system during migration. Serialization output is identical to                                                                                                                                                                                                                                               
the old system for compatibility.                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                         
This is Phase 1 of a multi-phase refactor. Future phases will introduce a                                                                                                                                                                                                                                                
unified registry and capability interfaces for polymorphic lookups.                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                         
See docs/design/id-type-system-refactor.md for the full design document.
…hereum-optimism#19084)

During OPCM super-roots migration we temporarily transfer each OptimismPortal’s
ProxyAdmin ownership to the DelegateCallProxy. Restore each portal
ProxyAdmin back to the L1PAO after shared admin contracts are reset
so both portals report the expected proxyAdminOwner()

With this we can re-enable the TestInteropReadiness acceptance-test
…ptimism#19053)

* supernode: Handle genesis L2 block in L1AtSafeHead lookup

Add special case in L1AtSafeHead to return genesis L1 directly when
querying for the genesis L2 block, avoiding unnecessary SafeDB walkback
that would otherwise fail at genesis boundary.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* for the genesis case; check the entire blockid

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
…clude the v prefix (ethereum-optimism#19090)

* op-program: Fix reproducibility test. The short version should not include the v prefix.

* Fix short string for legacy kona too.
…sm#19078)

* op-acceptance: Add start of test to run FPP program across a chain.

* op-acceptance: Execute kona-interop for the generated chain.

* Back to kona release build path.

* Tidy up code.
The Blob Tip Oracle (BTO) previously used ethclient.SubscribeNewHead() for header notifications, which only works over WebSocket connections. This change converts it to polling for new headers instead, allowing it to work with HTTP connections. The polling uses the existing PollRate configuration (2.5s default) to check for new headers at regular intervals.

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
…zz tests (ethereum-optimism#19094)

* test(contracts): enhance OptimismMintableERC721 test coverage with fuzz tests

- Convert constructor test to fuzz test with variable remoteChainId
- Convert safeMint test to fuzz test with variable recipient and tokenId
- Convert safeMint notBridge test to fuzz test with variable caller
- Convert burn test to fuzz test with variable tokenId
- Convert burn notBridge test to fuzz test with variable caller
- Convert tokenURI test to fuzz test with variable tokenId
- Add supportsInterface test for unsupported interfaces
- Add version format validation test using SemverComp.parse()

* fix(test): add IERC721Metadata to supportsInterface fuzz exclusions

The contract inherits IERC721Metadata from ERC721, so it must be excluded
from the unsupported interface fuzz test to prevent false failures.

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix: safer safes interface and deploy

* feat: DeploySaferSafes test

* fix: error string

* fix: forge fmt
* op-acceptance-tests: Add InvalidMessageHalt test for supernode interop

This TDD test verifies the Interop Activity's behavior when an invalid
executing message is included in a chain:
- Validity should NEVER advance to include the invalid block's timestamp
- Safety and unsafety for both chains should continue to advance

The test sends a valid initiating message on chain A, then sends an invalid
executing message on chain B (with an impossible log index), and observes
that the Supernode correctly halts validity advancement while allowing
safety heads to progress.

* op-supernode: Add logsDB infrastructure for interop activity

This prepares the interop activity for implementing the actual interop
algorithm by:

1. Moving stubbed algorithm functions to algo.go:
   - loadLogs: loads and persists logs up to a timestamp
   - verifyInteropMessages: validates executing messages
   - invalidateBlock: handles invalid blocks

2. Adding per-chain logs.DB for log persistence:
   - Uses op-supervisor's logs.DB directly (no wrapper)
   - openLogsDB helper creates DB per chain in data directory
   - Full persistence support (data survives restart)

3. Extending ChainContainer interface with FetchReceipts:
   - Added to ChainContainer, EngineController, and l2Provider interfaces
   - Enables interop activity to fetch receipts for log processing

4. Initializing logsDBs in Interop activity:
   - Creates one logs.DB per chain on startup
   - Properly closes all logsDBs on Stop()

5. Unit tests for log persistence:
   - Tests for open/close, seal block, persistence
   - Tests for multiple chain isolation

* op-supernode: Refactor interop logdb and improve test coverage

This commit reorganizes the interop activity code and adds comprehensive tests:

1. File reorganization:
   - Renamed algo.go to logdb.go for log persistence code
   - Created new algo.go with just verifyInteropMessages
   - Moved invalidateBlock back to interop.go

2. Added LogsDB interface:
   - Defines interface around logs.DB for better testability
   - Enables mock implementations in unit tests

3. Added chain continuity check:
   - verifyPreviousTimestampSealed now returns previous block hash
   - loadLogs verifies block parent matches logsDB hash
   - Added ErrParentHashMismatch error

4. Expanded unit test coverage for logdb:
   - Tests for verifyPreviousTimestampSealed (activation/non-activation)
   - Tests for processBlockLogs (empty, with logs, errors)
   - Tests for loadLogs parent hash mismatch

5. Improved interop_test.go assertions:
   - Verify logsDBs population in constructor tests
   - Verify verifyFn receives correct args
   - Verify timestamps before activation return true
   - Verify Result.IsEmpty for various scenarios
   - Verify data retrieval after handleResult
   - Full cycle tests verify logsDB and L2Heads

* op-supernode: Implement interop message verification

This commit implements the core verification logic for the interop activity,
completing the TDD cycle for the InvalidMessageHalt acceptance test.

Key changes:
- Implement verifyInteropMessages to validate executing messages at each timestamp
- Verify initiating messages exist in source chain's logsDB via Contains query
- Verify timestamp ordering: initiating timestamp < executing timestamp
- Fix verifyPreviousTimestampSealed to accept any sealed block timestamp < ts
  (not just ts-1), handling block times > 1 second
- Add comprehensive unit tests for verification logic

The acceptance test now passes, demonstrating that:
- Valid cross-chain messages are verified successfully
- Invalid executing messages (wrong LogIndex) halt validity advancement
- Safe/unsafe heads continue to advance independently

* op-supernode: Consolidate interop unit tests

Refactor tests for better organization and reduced redundancy:

- Create logdb_test.go for logsDB infrastructure tests
  - TestLogsDB_Persistence (data persistence, multi-chain isolation)
  - TestVerifyPreviousTimestampSealed (7 table-driven cases)
  - TestProcessBlockLogs (5 subtests)
  - TestLoadLogs_ParentHashMismatch

- Rewrite algo_test.go for verification algorithm only
  - TestVerifyInteropMessages_ValidBlocks (3 subtests)
  - TestVerifyInteropMessages_InvalidBlocks (5 subtests)
  - TestVerifyInteropMessages_Errors

- Consolidate interop_test.go for lifecycle/coordination
  - Merge related tests into table-driven patterns
  - Remove trivial getter/empty-case tests

Test count: 62 functions → 19 functions (~55 cases via subtests)
Removed 8 trivial tests that added no value.

* remove unused code

* validate timestamp gap using block time

* implement message expiry time validation

* simplify verifyExecutingMessage logic

* fix logdb timing check and track local safe in acceptance test

* fix loadLogs to process blocks when DB is empty

* simplify timestamp progression test baseline logic

* skip logsDB loading and verification at activation timestamp

For activation-after-genesis, the logsDB cannot handle non-sequential block
sealing (starting from block N instead of genesis). At activation timestamp:
- Skip loading logs (logsDB requires sequential blocks from genesis)
- Skip verification (can't verify cross-chain messages referencing pre-activation data)
- Trust blocks at activation time

Also allow empty logsDB at activation+blockTime (the first real timestamp).

* fix logsDB to start at activation block instead of genesis

* move invalid_message_halt_test to separate package to avoid test pollution
* fix: gaps in VerifyOPCM

* fix: broken test init

* fix: correct env loading

* fix: outdated code

* fix: more outdated code

* fix: bad parsing

* fix: wrong function call

* fix: remove unused MIN verification, fix test env vars

- Remove documented but unimplemented MIN:<value> check type
- Remove unused _verifyMinValue function
- Add missing env vars to test_verifyOpcmCorrectness_succeeds:
  - EXPECTED_L1_PAO_MULTISIG
  - EXPECTED_CHALLENGER
  - EXPECTED_WITHDRAWAL_DELAY_SECONDS

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: skip mainnet-only checks in testing environment

The _verifyZeroOnMainnet check should also be skipped in testing
environments where we can't control the actual chain state.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: use vm mock for isolation

* fix: format

* fix: final test tweaks

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
…m#19065)

* fix: SuperchainConfig comments and test refactoring

- Remove outdated warning comment from SuperchainConfig
- Bump SuperchainConfig version to 2.4.1
- Fix comment in OPContractsManagerV2
- Refactor test helpers: move NeedsSuperchainConfigUpgrade to testutil package
- Update add-game-type-v2 tests to deploy a full OP chain

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: semver lock

* fix: broken test when applying superchain config upgrade

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
…thereum-optimism#19076)

* chore: return migrator address on ReadImplementationAddresses output (#819)

* chore: return migrator address on ReadImplementationAddresses output

* chore: use fixed solidity version

* chore: just pr ready

* test: add zero length code test for opcm

* chore: update tests on migrator (#822)

* refactor: replace contract mocks with vm.mock

* fix: read impl typo

* fix: remove nonexistent delayedWETHPermissionedGameProxy from test

The test referenced input_.delayedWETHPermissionedGameProxy which doesn't
exist in the ReadImplementationAddresses.Input struct. The delayedWETH
implementation is read from OPCM's implementations() return value, not
from an input proxy address.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: use common test

* fix: handle OPCM V2 feature flag in ReadImplementationAddresses tests

The test was using the `opcm` variable directly, which is only set when
OPCM_V2 feature is disabled. Added `_opcm()` helper to return the correct
instance based on the feature flag.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: IamFlux <175354924+0xiamflux@users.noreply.github.com>
Co-authored-by: niha <205694301+0xniha@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
…sm#19075)

* docs: add TODO checker workflow to docs/ai/ci-ops.md

Adds detailed operational instructions for resolving TODO checker
CI failures in a dedicated file following the docs/ai/ pattern.

The workflow includes:
- CircleCI API commands to find the latest scheduled pipeline
- Parsing job output to identify closed issues
- GitHub API commands to find who closed the issue
- Proper reopening comment format with attribution and traceability

This enables natural language commands like "fix the latest TODO
checker failure" to work automatically via AGENTS.md/CLAUDE.md
guidance that Claude Code reads.

References the new ci-ops.md file from AGENTS.md alongside other
topic-specific documentation.

* Simplify docs

* docs: fix TODO checker workflow to work without CIRCLECI_TOKEN

Updates the TODO checker workflow with two key fixes:

1. Remove CIRCLECI_TOKEN requirement - CircleCI API is publicly
   accessible for this repository, so no authentication needed

2. Fix "who closed the issue" detection - Use GraphQL to find the
   most recent person who closed the issue from the timeline, not
   just the closing PR author. This correctly handles cases where
   an issue was closed via PR, then reopened, then closed directly
   by a different user.

Also improves Step 2 to search through recent scheduled pipelines
to find one with the actual "scheduled-todo-issues" workflow, since
the latest may only contain a "setup" workflow.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* Add claude skill for fixing todo check job.

* Put detail in the skill file and simple more human readable instructions in ci-ops.md

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
* feat(op-deployer): build contracts in docker

* fix(tests): comments

* fix(tests): comments

* fix(tests): comments

* fix(tests): comments
…ptimism#18979)

* op-acceptance: Change to creating super cannon kona games

* op-acceptance: Use the interop prestate dir for kona

* Fix lint

* Enable super cannon kona game type in challenger.
ethereum-optimism#19077)

* fix: only allow enabling permissioned game types in opcmv2 deployment (#835)

* fix: only allow permissioned game types in opcmv2 deployment

* docs: add comment for permissionless games config in deployopchain

* feat: add isInitialDeployment argument to std validator script

* fix: undo OPCMv1 changes

* fix: old test content

* fix: expect validator errors for disabled games in deploy test

CANNON and CANNON_KONA are intentionally disabled during initial deployment,
so no implementations are registered. The validator correctly flags this as
PLDG-10 and CKDG-10 errors. Update test to expect these errors.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: revert on non-PERMISSIONED_CANNON game type in DeployOPChain

Address review feedback: raise an error instead of silently overwriting
the disputeGameType input. Only PERMISSIONED_CANNON is valid for initial
deployment since no prestate exists for permissionless games.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: niha <205694301+0xniha@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
…elated code (ethereum-optimism#19080)

* Revert "Revert "op-service: rip out deprecated blob sidecars client and relat…"

This reverts commit aaa41a0.

* Remove unused GetBlobs method from MockBlobsFetcher

* Add NewBlobHint and NewLegacyBlobHint methods

* Refactor blob hint generation in PreimageOracle

* Add Test for Blob Hints in Prefetcher

This commit adds comprehensive testing for blob hints in the prefetcher,
covering both legacy and current blob hint types. The test verifies that
the prefetcher can correctly handle and retrieve blob data based on
different hint implementations.

* Refactor Blob Hint Parsing with Improved Validation

Add parseBlobHint function to handle legacy and current blob hint
formats, improving error handling and hint parsing for blob-related
operations

* Remove trailing newline in prefetcher test file
…m#19096)

Add descriptions for the `ai/` and `handbook/` directories in the docs README. Refine the CODEOWNERS pattern for security-reviews to be more specific, and fix the trailing slash formatting for consistency.

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
* Update RewindFinalizedHeadBackward test to expect panic

* Fix rewind test finalized block reference

* Use error handling instead of panic
@0xiamflux 0xiamflux self-requested a review February 9, 2026 18:13
@0xOneTony 0xOneTony merged commit 290addb into sc-feat/l2cm-conditional-deployer Feb 9, 2026
1 check passed
@0xOneTony 0xOneTony deleted the sync/l2cm-cd branch February 9, 2026 18:36
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.