Skip to content

Add validator recovery preflight and metadata tooling - #5105

Open
polymorpher wants to merge 9 commits into
harmony-one:mainfrom
polymorpher:recovery-validator-data
Open

Add validator recovery preflight and metadata tooling#5105
polymorpher wants to merge 9 commits into
harmony-one:mainfrom
polymorpher:recovery-validator-data

Conversation

@polymorpher

Copy link
Copy Markdown

Summary

  • add a standalone, read-only harmony-recovery preflight eligibility check for validator databases
  • add validator-metadata scan, reference export, and branch audit workflows with normalization and HMR support
  • include deterministic fixtures, acceptance tests, and operator docs, based on v2026.1.1

Isolation boundary

  • does not modify the normal Harmony binary or validator runtime paths
  • does not modify scripts/go_executable_build.sh, Makefile, or Dockerfile
  • is not invoked by the default build; harmony-recovery is built and run explicitly
  • excludes the parallel harmony-recovery-db producer/recovery-sync pipeline

Test plan

  • git diff --check v2026.1.1...HEAD
  • verify no diff under default build/runtime paths (scripts/go_executable_build.sh, Makefile, Dockerfile, cmd/harmony, core, node, api, internal/chain)
  • go test ./cmd/harmony-recovery ./internal/recovery/... (Go 1.24.2 with the repository's macOS BLS/GMP loader wrapper)

Made with Cursor

polymorpher and others added 9 commits August 13, 2026 14:39
Introduce the harmony-recovery inplace stack (rodb, chainread,
certverify, statecheck, anchor, report, and fixtures) so a live
shard-0 LevelDB can be sampled without writes.

Co-authored-by: Cursor <cursoragent@cursor.com>
Provide the cobra root and preflight subcommand, exit-code delivery,
dependency guard, and golden/fail-path tests for the eligibility sampler.

Co-authored-by: Cursor <cursoragent@cursor.com>
Check in the synthetic LevelDB kits, receipt goldens, generator script,
and gitignore exceptions so the preflight tests have hermetic data.

Co-authored-by: Cursor <cursoragent@cursor.com>
Describe live-node usage, PASS/FAIL meaning, the Telegram receipt
flow, and the operator-only mainnet pilot measurements.

Co-authored-by: Cursor <cursoragent@cursor.com>
Provide the JSON anchor, strict read-only DB opener, integrity
checksums, report types, and write-refusing adapters used by scan,
export, and audit.

Co-authored-by: Cursor <cursoragent@cursor.com>
Implement the shared norm library, HMR1 codec, reference export,
scan helpers, and the masked-overlay branch-audit engine.

Co-authored-by: Cursor <cursoragent@cursor.com>
Extend the preflight-owned harmony-recovery root with the offline
metadata command group and the documented prometheus dependency exemption.

Co-authored-by: Cursor <cursoragent@cursor.com>
Check in the localnet kit, help goldens, generator script, gitignore
exceptions, and the acceptance matrix that pins scan/export/audit.

Co-authored-by: Cursor <cursoragent@cursor.com>
Record the CLI contract, HMR/reference schemas, exit codes, and the
compiled mainnet recovery anchor used by the metadata commands.

Co-authored-by: Cursor <cursoragent@cursor.com>
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