Repository navigation
deploy: chain-22 treasury 5 of 6 with its balance carried; perps carried empty - #193
Open
dendisuhubdy wants to merge 4 commits into
Open
dendisuhubdy wants to merge 4 commits into
dendisuhubdy wants to merge 4 commits into
Conversation
…ied empty The owner's decisions of 2026-11-19, in deploy/cut-chain22-genesis.sh: - Treasury: exactly 6 signers, threshold 5 (the standing rule: a multisig is always 5 of 6), all distinct and none of chain 21's treasury signers (its genesis three, nor live ones after a rotation). TREASURY_SIGNERS_CHANGED and TREASURY_ROTATED are gone. Fresh salt kept. - Its balance is CARRIED from chain 21's multisig register: TREASURY's balance must equal the snapshot's rand_getSupply.multisig_rand_held, checked in py_treasury and again on the finished file. "New issuance" wording removed. - MULTISIG_NOT_CARRIED_OK is narrowed to what the carry cannot carry (a token in the treasury vault, RAND in other register accounts) and refused when set with nothing to drop. - No double count: chain 22's seeded RAND (notes + stakes + treasury) must not exceed chain 21's total_supply at the snapshot. - Perps: an empty exchange (now also rand_getSupply perps_collateral_held and perps_rand_held) is carried (empty) with no override, its genesis root still asserted equal; non-empty still needs PERPS_STATE_NOT_CARRIED_OK, which is refused on an empty exchange. - Cut record: the treasury must be on carries: (not reason: alone); without the perps override, carries: must name perps. - check-limits reads the treasury threshold from the file (5); the `genesis --multisig` line is matched at 5 of 6. - Selftest/DRY_RUN fixtures: six deterministic SHAKE-256 keys of Dilithium2 length, none of chain 21's; snapshot carries total_supply and perps_rand_held. New tests for 3 signers, thresholds 2/4/6, 5/7 signers, a reused chain-21 signer (genesis and rotated), balances off the snapshot, perps empty with no override, perps nonzero without it, superfluous overrides, the total-supply bound and the record lines. SELFTEST 404 -> 426 passed, 0 failed; shellcheck clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YGaYNLS2uLR7w6m2JtejVo
…d, perps carried empty, archive2) - OPEN 1/2: the owner chose max_window_heights 256 and max_accounts 65 536; both stay operator inputs with no default. - OPEN 3: the treasury is 5 of 6, six new signers, its balance carried from chain 21's multisig_rand_held; what MULTISIG_NOT_CARRIED_OK still covers; the no-double-count bound; carries: must name the treasury. - OPEN 4: an empty exchange is carried (empty), root asserted equal; the override only for a non-empty one. - Program vaults stay dropped (durian's AMM redeployed, 200 RAND). - Decision 7: rand-archive-2 abandoned; chain 21's history on record starts at height 187 556 on e and obs1 (recorded on the cut record's rollback:). - cut-record.template: carries:/drops:/rollback: hints for these. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YGaYNLS2uLR7w6m2JtejVo
The owner's rule is that every RandProtocol multisig is 5 of 6. The threshold advice, the foundation's steps, the custody notes and the examples (genesis file, id derivation, create, pay, rotate) now use 5 of 6; the status note records chain 22's treasury (six new signers, its RAND carried from chain 21's register). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YGaYNLS2uLR7w6m2JtejVo
…y, under Unreleased Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YGaYNLS2uLR7w6m2JtejVo
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.
Implements the owner's chain-22 decisions of 2026-11-19 in
deploy/cut-chain22-genesis.shand its docs. Deploy script and docs only; no Rust touched.Decisions
TREASURYmust list exactly 6 distinct signers withthreshold 5. None of them may be one of chain 21's treasury signers, whether its genesis three or the live set the snapshot read after a rotation. Validator, guardian and pause keys are still refused. The fresh salt stays, so the treasury gets a new id. TheTREASURY_SIGNERS_CHANGEDandTREASURY_ROTATEDescape hatches are removed.balancemust equal chain 21'srand_getSupply.multisig_rand_heldfrom the snapshot (live: 100000000000000 units, i.e. 100 000 RAND). This is checked inpy_treasuryand again on the finished file. A new bound guards against double counting: the RAND chain 22 seeds (notes + stakes + treasury) may not exceed chain 21'stotal_supplyat the snapshot.MULTISIG_NOT_CARRIED_OKis narrowed to what the carry cannot carry: a token in the treasury vault, or RAND in register accounts other than the treasury. It is refused when set with nothing to drop. Chain 21's account itself (id, signers, nonce) is replaced.da0e3a53…. "Empty" now also covers the supply'sperps_collateral_heldandperps_rand_held. A non-empty exchange is still refused withoutPERPS_STATE_NOT_CARRIED_OK=1, and that override is refused on an empty exchange.PROGRAM_VAULTS_DROPPED_OK=1is unchanged: durian's AMM is redeployed on chain 22, and the 200 RAND in its chain-21 pool is dropped.docs/multisig.mdnow advises 5 of 6, never 2 of 3. The examples (genesis file, id, create, pay, rotate) use 5 of 6.docs/deploy.mdand in the cut-record template'srollback:hint: rand-archive-2 is abandoned, and chain 21's history on record starts at height 187 556 (hosts e and obs1).Cut record:
carries:must now name the treasury (reason:alone no longer counts). Without the perps override,carries:must also name perps.check-limitsreads the treasury threshold from the file.Unchanged: the
REFERENCE_BLOCK_WINDOWandBEACON_COMMIT_DELAY_BLOCKSdefaults (256 each).PERPS_MAX_WINDOW_HEIGHTSandMULTISIG_MAX_ACCOUNTSare still operator inputs with no default. The docs and comments now say the owner chose 256 and 65 536 for them on 2026-11-19.Verification
SELFTEST=1 bash deploy/cut-chain22-genesis.sh: 426 passed, 0 failed (was 404).multisig_rand_held, non-empty perps without the override (perps_collateral_held,perps_rand_held), each override set with nothing to drop, chain 22 seeding more than chain 21'stotal_supply, and records missing the treasury or perps oncarries:.bash -npasses ondeploy/cut-chain22-genesis.shanddeploy/check-beacon-seed.sh. shellcheck is clean, and thedeploy/lib/cut-policy.shselftest gives 50/0.~/.rand-chain22/treasury.txtpasses the new rules (6 distinct keys, none of them chain 21's, a validator's or a guardian's; 5; 100000). No keys were printed.DRY_RUNand the real cut, because norand-nodebinary was available.🤖 Generated with Claude Code
https://claude.ai/code/session_01YGaYNLS2uLR7w6m2JtejVo