Skip to content

feat(deployment): add chain-agnostic CCV inventory - #1640

Draft
tt-cll wants to merge 1 commit into
mainfrom
tt/ccv-inventory-prototype
Draft

tt-cll wants to merge 1 commit into
mainfrom
tt/ccv-inventory-prototype

Conversation

@tt-cll

@tt-cll tt-cll commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add a versioned, chain-family-agnostic inventory to CCV env_metadata, derived from records changesets already persist and from on-chain CommitteeVerifier snapshots instead of requiring consumers to walk family-specific state_v2 sections.

  • Normalize NOP signer identities from 20-byte addresses and 65-byte secp256k1 public keys while preserving each family-specific value.
  • Build stable NOP, node, committee, verifier, and executor-pool tables with chain selectors encoded as decimal strings.
  • Resolve committee members to NOPs and nodes, using each executor pool job's exact node when one NOP runs multiple pools.
  • Expose ByNOP, ByChain, flat row, and CSV views.
  • Record invalid, ambiguous, unresolved, drifting, and unsupported configuration as structured issues instead of dropping it.
  • Persist aggregator committee qualifiers and share verifier/executor job-spec parsing with the inventory builder.

On-chain refresh and persistence

The RefreshInventory changeset scans deployed CommitteeVerifiers through their registered family adapters, compares on-chain signer sets with aggregator configs, and stores the resulting inventory in CLD metadata.

Later CCV metadata writes rebuild the offchain-derived data and reconcile the latest on-chain snapshot against current NOP, node, and aggregator records. This preserves on-chain committees while updating their node/CSA attribution and drift findings. Running RefreshInventory again replaces rather than duplicates on-chain committees.

Existing environments need a CCV metadata write to populate the offchain inventory and a RefreshInventory execution to populate on-chain committees. Aggregator configs written before qualifier persistence remain unqualified until regenerated. CLD dependency/registration updates and downstream consumer migration are outside this PR; no existing state_v2 fields are removed.

Related: smartcontractkit/chainlink-ccip-solana#34 makes Solana CommitteeVerifier scans work after in-place 2.x upgrades.

Testing

  • go test ./... -count=1 from deployment
  • go vet ./inventory . ./changesets from deployment
  • Regression coverage proves pool-specific executor node attribution and that a refreshed on-chain committee survives a later JD metadata write with updated CSA attribution.
  • Test fixtures use only synthetic identities, keys, addresses, and NOP aliases.

Checklist

  • Cross-linked related PRs
  • Additive metadata change; no existing state or metadata fields removed

@tt-cll tt-cll changed the title wip feat(deployment): add chain-agnostic CCV inventory Nov 24, 2026
@tt-cll
tt-cll force-pushed the tt/ccv-inventory-prototype branch from 4132ee5 to 9805558 Compare November 25, 2026 12:19
@github-actions

Copy link
Copy Markdown
Contributor

Code coverage report:

Package main tt/ccv-inventory-prototype Diff
github.com/smartcontractkit/chainlink-ccv/aggregator 46.21% 46.21% +0.00%
github.com/smartcontractkit/chainlink-ccv/bootstrap 67.91% 67.91% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 53.78% 53.78% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 52.74% 52.74% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 47.59% 47.59% +0.00%
github.com/smartcontractkit/chainlink-ccv/docs 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/executor 44.92% 44.92% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 36.62% 36.66% +0.04%
github.com/smartcontractkit/chainlink-ccv/integration 70.68% 70.90% +0.22%
github.com/smartcontractkit/chainlink-ccv/internal 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/migration 78.70% 78.70% +0.00%
github.com/smartcontractkit/chainlink-ccv/pkg 84.62% 84.62% +0.00%
github.com/smartcontractkit/chainlink-ccv/pricer 18.67% 18.67% +0.00%
github.com/smartcontractkit/chainlink-ccv/protocol 61.72% 61.72% +0.00%
github.com/smartcontractkit/chainlink-ccv/tools 53.56% 53.56% +0.00%
github.com/smartcontractkit/chainlink-ccv/verifier 45.22% 45.28% +0.06%
Total 48.90% 48.90% +0.00%

This branch has not been deployed

No deployments
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