Skip to content

chore(addresses): r1007 reads its book from @citratelabs/chain-config 0.3.0 - #51

Merged
SaulBuilds merged 2 commits into
mainfrom
chore/addresses-r1007-package
Nov 13, 2026
Merged

SaulBuilds merged 2 commits into
mainfrom
chore/addresses-r1007-package

Conversation

@SaulBuilds

Copy link
Copy Markdown
Contributor

@citratelabs/[email protected] is published to npm (latest, shasum 6fb87caa, built from citrate-chain main 308fc9e2). This PR swaps r1007's pinned copy for the package, as #49 planned.

  • Dependency: a new citrate-book-r1007 alias, npm:@citratelabs/[email protected], in package.json and package-lock.json (integrity sha512-aSbhJq2E…). Its 40204.json is byte-identical to the chain's root book (sha256 1b908e56…ca96), so the registry's sha256 pin is unchanged.
  • Registry: in content/chain/networks.json, r1007 now has book.package and no book.packagePending. The pinned copy content/chain/address-books/r1007.json is removed; its getCode snapshot stays.
  • Pages:
    • /chain/addresses and /chain/addresses/r1007 say they are rendered from @citratelabs/[email protected] and point programs at npm install @citratelabs/chain-config.
    • The retired r1006 and r1005 pages are back to "The live book is the current release of @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 --check and gen-precompiles --check pass against chain main. truth-lint, content-lint --strict, typecheck, npm run build and the local pre-push gate are all green.

Deploy: merging triggers the Vercel production build of docs.citrate.ai. After merge, run npm ci: a node_modules without the new alias fails with "citrate-book-r1007 is not installed: run npm ci".

🤖 Generated with Claude Code

https://claude.ai/code/session_019cgBjDQkjCEEZwG1zJNnQi

SaulBuilds and others added 2 commits November 12, 2026 16:34
…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
@SaulBuilds
SaulBuilds requested a review from a team as a code owner November 13, 2026 00:36

@BerryManifold BerryManifold left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAC independent reviewer agent, not Codex, not DGX. Reviewed head 86d6ca6.

  • Red then green: red 2452be6 (r1007 must come from the package, not a pinned copy) precedes green 86d6ca6.
  • Lockfile integrity: node_modules/citrate-book-r1007 resolves to https://registry.npmjs.org/@citratelabs/chain-config/-/chain-config-0.3.0.tgz with integrity sha512-aSbhJq2E…wJkQ4w==. I downloaded that tarball:
    • shasum 6fb87caaf1654f32a833937c7500263ad5ec1532, matching npm's dist.shasum;
    • its sha512 equals the lockfile's integrity exactly;
    • its ./40204.json export (src/addresses.40204.json) is byte-identical to citrate-chain main's root book, sha256 1b908e56…3ca96, which networks.json still pins.
  • Fails closed: prebuild runs gen-addresses.mjs before next build, and resolveBook refuses 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 genesisHash that differs from the registry's r1007 hash throws.
      So no deploy can render a wrong or absent book. The pinned content/chain/address-books/r1007.json is removed (tested), and the pages now name the published package.

CI is green. No P1/P2.

@Matr0xshka Matr0xshka left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAC independent reviewer agent, not Codex, not DGX. Reviewed head 86d6ca6.

  • Package: npm view @citratelabs/[email protected] gives latest = 0.3.0 and shasum 6fb87caaf1654f32a833937c7500263ad5ec1532. I downloaded the registry tarball. Its sha1 is 6fb87caa… and its sha512 is aSbhJq2E…wJkQ4w==, which equals package-lock.json's integrity for node_modules/citrate-book-r1007, resolved from registry.npmjs.org.
  • Installed book: the package maps "./40204.json" to ./src/addresses.40204.json, which is what req.resolve("citrate-book-r1007/40204.json") loads. That file's sha256 is 1b908e56f99ef14e0fe260d27e0ce837200ee4bb0884771b5a007ec66a93ca96, and cmp shows it is byte-identical to citrate-chain main's contracts/addresses/40204.json.
  • Registry: networks.json r1007 now uses package: citrate-book-r1007 (alias npm:@citratelabs/[email protected]) with the sha256 pin unchanged at 1b908e56…, and packagePending is gone. addresses.mjs refuses to render if the resolved bytes don't hash to the pin. The pinned copy content/chain/address-books/r1007.json is removed, and a test asserts the alias, that there is no packagePending, 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 install guidance restored, and the r1006 and r1005 archive notes go back to "the live book is the current release". No address row changes, and the CI build and chain-sync checks pass.

No P1. CI is green. Approved.

@SaulBuilds
SaulBuilds merged commit 308a6eb into main Nov 13, 2026
10 checks passed
@SaulBuilds
SaulBuilds deleted the chore/addresses-r1007-package branch November 13, 2026 00:43
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.

3 participants