Skip to content

feat(config): advanced configuration management and migration suite#2092

Open
IvanBelyakoff wants to merge 10 commits intozkevmfrom
feat/config-assistant-tools
Open

feat(config): advanced configuration management and migration suite#2092
IvanBelyakoff wants to merge 10 commits intozkevmfrom
feat/config-assistant-tools

Conversation

@IvanBelyakoff
Copy link
Copy Markdown
Collaborator

Description

This PR introduces a comprehensive config management suite for cdk-erigon to address configuration drift, facilitate safe SMT-to-PMT migrations, and provide deep compliance audits.

Key Features

  1. config doctor: Holistic diagnostics comparing YAML configuration against database state and build defaults. Features height-aware SMT-to-PMT safety checks to prevent false positives during 'Shadow Phase' migrations.
  2. config verify-evm: An integrity auditor that scans the database for fork transitions (Shanghai, Cancun, Prague, etc.) and verifies block headers and hash integrity.
  3. config migrate: Automated upgrade path that renames deprecated flags, applies standardized profiles (Type-1, Sovereign, etc.), and creates timestamped backups (.bak) for safety.
  4. config list-migrations: Discovers valid upgrade pathways based on the physical state of the MDBX database.
  5. Portable Audit Script: Added scripts/test_prod_configs.sh, a CI-ready tool to validate production configurations across fleets without local path dependencies.

Technical Improvements

  • Network Type Detection: Centralized logic for consistent classification (FEP, PP, Sovereign, Type-1).
  • MDBX Resilience: Safe database opening logic that avoids panics on partially initialized or restricted environments.
  • Flag Modernization: Support for flag changes from v2.61 through v2.65.

Verification Results

A full audit was conducted against the production fleet. The tools successfully identified:

  • Deprecated flags (initial-commitment, l1-cache-*).
  • Misconfigured PMT activation blocks.
  • Missing simultaneous build flags during SMT-to-PMT transitions.

Verified with successful builds and validated against actual rollup configurations.

@IvanBelyakoff IvanBelyakoff force-pushed the feat/config-assistant-tools branch 3 times, most recently from 776458f to cfffc40 Compare February 19, 2026 16:07
@IvanBelyakoff IvanBelyakoff force-pushed the feat/config-assistant-tools branch from cfffc40 to d4e6305 Compare February 19, 2026 16:08
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