Repository navigation
chore(addresses): r1007 reads its book from @citratelabs/chain-config 0.3.0 - #51
Merged
Merged
Conversation
…ig 0.3.0, not a pinned copy @citratelabs/chain-config 0.3.0 is on npm (shasum 6fb87caa, built from citrate-chain main 308fc9e2). Expect r1007's book to come from the citrate-book-r1007 alias (npm:@citratelabs/[email protected]), with no packagePending and no pinned copy. Red: fails against main (1 of 24). Signed-off-by: Larry Klosowski <[email protected]> Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019cgBjDQkjCEEZwG1zJNnQi
… 0.3.0 - package.json and package-lock.json: citrate-book-r1007 is npm:@citratelabs/[email protected]. Its 40204.json is byte-identical to the chain's root book (sha256 1b908e56...ca96), so the registry pin is unchanged. - networks.json: r1007's book is book.package; book.packagePending is gone. The pinned copy content/chain/address-books/r1007.json is removed. The getCode snapshot stays. - Pages regenerated: /chain/addresses and /r1007 say they are rendered from @citratelabs/[email protected] and point programs at npm install. The retired r1006 and r1005 pages say again that the live book is the current chain-config release, which is now r1007. Green: vitest 157 passed, 4 skipped (gen-addresses 24). gen-addresses and gen-precompiles --check pass against chain main 308fc9e2. truth-lint, content-lint --strict, typecheck and npm run build are green. Signed-off-by: Larry Klosowski <[email protected]> Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019cgBjDQkjCEEZwG1zJNnQi
BerryManifold
approved these changes
Nov 13, 2026
BerryManifold
left a comment
Contributor
There was a problem hiding this comment.
MAC independent reviewer agent, not Codex, not DGX. Reviewed head 86d6ca6.
- Red then green: red 2452be6 (
r1007must come from the package, not a pinned copy) precedes green 86d6ca6. - Lockfile integrity:
node_modules/citrate-book-r1007resolves tohttps://registry.npmjs.org/@citratelabs/chain-config/-/chain-config-0.3.0.tgzwithintegrity sha512-aSbhJq2E…wJkQ4w==. I downloaded that tarball:- shasum
6fb87caaf1654f32a833937c7500263ad5ec1532, matching npm'sdist.shasum; - its sha512 equals the lockfile's
integrityexactly; - its
./40204.jsonexport (src/addresses.40204.json) is byte-identical to citrate-chain main's root book, sha256 1b908e56…3ca96, whichnetworks.jsonstill pins.
- shasum
- Fails closed:
prebuildrunsgen-addresses.mjsbeforenext build, andresolveBookrefuses three ways:- a missing alias throws "the address book package citrate-book-r1007 is not installed: run npm ci";
- a book whose sha256 differs from the registry pin throws;
- a
genesisHashthat differs from the registry's r1007 hash throws.
So no deploy can render a wrong or absent book. The pinnedcontent/chain/address-books/r1007.jsonis removed (tested), and the pages now name the published package.
CI is green. No P1/P2.
Matr0xshka
approved these changes
Nov 13, 2026
Matr0xshka
left a comment
There was a problem hiding this comment.
MAC independent reviewer agent, not Codex, not DGX. Reviewed head 86d6ca6.
- Package:
npm view @citratelabs/[email protected]giveslatest= 0.3.0 and shasum6fb87caaf1654f32a833937c7500263ad5ec1532. I downloaded the registry tarball. Its sha1 is6fb87caa…and its sha512 isaSbhJq2E…wJkQ4w==, which equalspackage-lock.json'sintegrityfornode_modules/citrate-book-r1007, resolved fromregistry.npmjs.org. - Installed book: the package maps
"./40204.json"to./src/addresses.40204.json, which is whatreq.resolve("citrate-book-r1007/40204.json")loads. That file's sha256 is1b908e56f99ef14e0fe260d27e0ce837200ee4bb0884771b5a007ec66a93ca96, andcmpshows it is byte-identical to citrate-chain main'scontracts/addresses/40204.json. - Registry:
networks.jsonr1007 now usespackage: citrate-book-r1007(aliasnpm:@citratelabs/[email protected]) with the sha256 pin unchanged at1b908e56…, andpackagePendingis gone.addresses.mjsrefuses to render if the resolved bytes don't hash to the pin. The pinned copycontent/chain/address-books/r1007.jsonis removed, and a test asserts the alias, that there is nopackagePending, and that the copy is absent. - Pages: the regenerated pages change only prose. r1007 is now "rendered from the published package …@0.3.0", with the
npm installguidance restored, and the r1006 and r1005 archive notes go back to "the live book is the current release". No address row changes, and the CIbuildandchain-syncchecks pass.
No P1. CI is green. Approved.
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.
@citratelabs/[email protected]is published to npm (latest, shasum6fb87caa, built from citrate-chain main308fc9e2). This PR swaps r1007's pinned copy for the package, as #49 planned.citrate-book-r1007alias,npm:@citratelabs/[email protected], inpackage.jsonandpackage-lock.json(integritysha512-aSbhJq2E…). Its40204.jsonis byte-identical to the chain's root book (sha2561b908e56…ca96), so the registry's sha256 pin is unchanged.content/chain/networks.json, r1007 now hasbook.packageand nobook.packagePending. The pinned copycontent/chain/address-books/r1007.jsonis removed; its getCode snapshot stays./chain/addressesand/chain/addresses/r1007say they are rendered from@citratelabs/[email protected]and point programs atnpm install @citratelabs/chain-config.@citratelabs/chain-config", which is r1007 now.Red first
2452be63(test only): r1007 must come from the 0.3.0 alias, with no pinned copy. It fails on main (1 of 24).86d6ca61: the switch.Green: vitest 157 passed, 4 skipped (gen-addresses 24).
gen-addresses --checkandgen-precompiles --checkpass against chain main. truth-lint,content-lint --strict, typecheck,npm run buildand the local pre-push gate are all green.Deploy: merging triggers the Vercel production build of docs.citrate.ai. After merge, run
npm ci: anode_moduleswithout the new alias fails with "citrate-book-r1007 is not installed: run npm ci".🤖 Generated with Claude Code
https://claude.ai/code/session_019cgBjDQkjCEEZwG1zJNnQi