Repository navigation
Conversation
tt-cll
force-pushed
the
tt/ccv-inventory-prototype
branch
from
November 25, 2026 12:19
4132ee5 to
9805558
Compare
Contributor
|
Code coverage report:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-specificstate_v2sections.ByNOP,ByChain, flat row, and CSV views.On-chain refresh and persistence
The
RefreshInventorychangeset 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
RefreshInventoryagain replaces rather than duplicates on-chain committees.Existing environments need a CCV metadata write to populate the offchain inventory and a
RefreshInventoryexecution 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 existingstate_v2fields are removed.Related: smartcontractkit/chainlink-ccip-solana#34 makes Solana CommitteeVerifier scans work after in-place 2.x upgrades.
Testing
go test ./... -count=1fromdeploymentgo vet ./inventory . ./changesetsfromdeploymentChecklist