feat(cluster-tool): add generic dclaim bootstrap planning - #92
Open
huangminghuang wants to merge 3 commits into
Open
feat(cluster-tool): add generic dclaim bootstrap planning#92huangminghuang wants to merge 3 commits into
huangminghuang wants to merge 3 commits into
Conversation
Change-Id: Ia189543da9093bbd03866c6735b8bbf113fbb97b
Change-Id: Ie172d32c05b114d2e304fbf3e8dcf6b86230e8b3
Contributor
Author
|
Addressed the review feedback in
The PR description now explains why each feature is required by OPS-197 and records the PR 2 boundaries. Current-head CI is green, and independent code/scope re-reviews found no remaining issues. |
Change-Id: If05e99bc1344cf6bbddc4fbdf635cdf7171307a9
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.
Why this PR exists
OPS-197 asks
cluster-toolto accept Ethereum and Solana prelaunch balance JSON and to reuse the same bootstrap path in the emissions soak flow.That cannot safely be implemented as independent import paths.
sysio.dclaim::importdoneis global and irreversible, so configured indexer data, per-chain fallback data, and controlled additive credits must first become one validated, deterministic plan. This PR adds that generic planning foundation without changing cluster creation,FlowScenario, or on-chain behavior.Implemented features and why each is needed
pretokenYield - yieldClaimed, with non-positive entitlement filtered as required by the ticket.cluster-toolown source policy without putting emissions-specific behavior inFlowScenario.(chain, native_address)before batching produces the collision-aware entitlement needed by emissions-soak assertions.importseedpayloads. Stable ordering makes later execution, verification, restart reconciliation, reports, and tests reproducible.unmappedrow IDs are global across Ethereum and Solana imports. The planner accepts the livecapcounters.next_unmapped_id, defaults to1for a new table, and enforces theuint64range across every planned batch so chain-local numbering cannot collide or overflow.wire_atomicas a decimal string for clio. The serializer retains an O(1) 1–10,000 boundary assertion without repeating per-credit validation in the push path.DistributionClaimBootstrapResultKeyOutputStorehandle for the finalized plan rather than an ad hoc string or scenario-specific field. Declaring it with the output model keeps the library contract ready for PR 2.Scope boundary
This is PR 1 of the OPS-197 split and is deliberately library-only.
Included:
Deferred to follow-on PRs:
capcounters.next_unmapped_idand storing this plan inOutputStore;sysio.dclaimwrites;There are no changes here to
FlowScenario, CLI behavior, process launch, cluster phases, or chain writes.Follow-on implementation must convert plan
bigintvalues to strings at report/JSON boundaries, log the irreversibleimportdonefinalization explicitly, and decide any aggregate supply ceiling from an authoritative contract requirement rather than inventing one in this planner.Validation
pnpm testpnpm run lintgit diff --checkMerge model
This PR is based directly on
master. Follow-on OPS-197 PRs will be created sequentially from the preceding merged foundation so each review remains focused and the complete feature reachesmasterincrementally.