Release on the forge: npm with a token, the pinned reusables, and the ci-node digest (macula-io/macula-ts#2) #4

Manually merged
terra merged 7 commits from pluto/2-forge-release-green into main 2026-11-25 02:08:25 +00:00
Member

Carries Ceres's reviewed port unchanged (three commits, head 54b3ff7c identical to ceres/2-forge-release-port), taken over after the Supervisor cut the crew: this branch is the run that proves it on the exact tip, before it lands. Nothing in the diff differs from the content Neptunus PASSed.

@macula-io/ts releases from git.macula.io: a v* tag publishes that version to the forge's npm registry with a token, and nothing on GitHub is needed (macula-io/macula-ts#2, macula-io/macula-ts#3).

What changes

  • The registry owner is named once, in package.json's publishConfig: https://git.macula.io/api/packages/macula-pub/npm/, access: public. The workflow names no registry; it derives the npm auth keys (//host/path/:_authToken, :username) from that URL, and the token/user arrive through FORGE_PACKAGES_TOKEN / FORGE_PACKAGES_USER (the SDK's one publisher account on macula-pub, image-build/sdk-publisher-account.sh).
  • Trusted Publishing goes, with id-token: write and the build-provenance attestation it needed.
  • The Node/Go jobs run in macula-ci-node, pinned by digest a0b86199f76a... (built from macula-ci-images main 40f632af, build task 8368, twin task 8303 green, digest read back from the registry). A container carries no marketplace action, so each job's checkout is the plain-shell step the forge repositories carry byte-identical, and there is no JavaScript action anywhere in the file.
  • The two cross-repository reusables are pinned local copies (ci-images-release-guard.yml, ci-images-dependency-advisories.yml): a cross-repository reusable fails to expand on the forge and takes the file's other jobs with it.
  • A rehearsal: workflow_dispatch runs every gate and the linux-x64 leg and stops at npm publish --dry-run -- no tag, nothing uploaded.
  • A tag release still refuses an incomplete prebuild set, by name: only linux-x64 is built on the forge's one Linux runner, and the other four platforms (linux-arm64, darwin-x64, darwin-arm64, win32-x64) are Raf's call in the release menu.
  • README carries the one .npmrc line a consumer needs for the scope.

Proof

  • The linux-x64 leg in the ci-node image: prebuilds/linux-x64/@macula-io+ts.node builds, loads (C ABI 2) and generates a key with build/ removed; needs at most GLIBC_2.34 / GLIBCXX_3.4.29, and loads and generates a key on Ubuntu 22.04.5 (glibc 2.35), so building in the bookworm image does not raise macula-ts#12's floor.
  • The token never reaches npm's argv: the userconfig carries a ${NODE_AUTH_TOKEN} reference, and an upload needs github.event_name == 'push' as well as a tag.
  • The reusables are byte-identical copies of the ci-images commits they name.

Not in this change

The other four prebuild platforms (owner's call, in the release menu).

Refs #2, #3.

🤖 Generated with Claude Code

Fold-in after the read: the Linux-only ruling (33ecdb1c)

DECIDED 2026-11-25 "Linux x64 only (Recommended)": the macula SDK and MCP packages are Linux x64 only. Appended as one commit on top of Ceres's reviewed content, so the reviewed three commits are untouched:

  • package.json declares os: ["linux"] and cpu: ["x64"], so npm refuses a Mac, Windows or arm64 install with its own message rather than letting a linux-only addon fail at load.
  • The release's promised set is exactly linux-x64, on a tag and in the rehearsal alike. Without this the tag path could NEVER publish: it refused a set of five platforms and four are no longer built or promised. The win32 DLL branch of that check goes with the platforms it guarded.
  • Not touched, and named for the separate port: ci.yml and prebuild-matrix.yml still name the five platforms; ci.yml is still GitHub-shaped and fails at workflow expansion on the forge exactly as before.

Proof: the workflow parses, and the promised-set check is the one this PR already ran on its rehearsal path (PROMISED now has one value; the linux-x64 leg is unchanged).

Carries Ceres's reviewed port unchanged (three commits, head 54b3ff7c identical to ceres/2-forge-release-port), taken over after the Supervisor cut the crew: this branch is the run that proves it on the exact tip, before it lands. Nothing in the diff differs from the content Neptunus PASSed. `@macula-io/ts` releases from git.macula.io: a `v*` tag publishes that version to the forge's npm registry with a token, and nothing on GitHub is needed (macula-io/macula-ts#2, macula-io/macula-ts#3). ## What changes - **The registry owner is named once**, in `package.json`'s `publishConfig`: `https://git.macula.io/api/packages/macula-pub/npm/`, `access: public`. The workflow names no registry; it derives the npm auth keys (`//host/path/:_authToken`, `:username`) from that URL, and the token/user arrive through `FORGE_PACKAGES_TOKEN` / `FORGE_PACKAGES_USER` (the SDK's one publisher account on macula-pub, image-build/sdk-publisher-account.sh). - **Trusted Publishing goes**, with `id-token: write` and the build-provenance attestation it needed. - **The Node/Go jobs run in `macula-ci-node`**, pinned by digest `a0b86199f76a...` (built from macula-ci-images main `40f632af`, build task 8368, twin task 8303 green, digest read back from the registry). A container carries no marketplace action, so each job's checkout is the plain-shell step the forge repositories carry byte-identical, and there is no JavaScript action anywhere in the file. - **The two cross-repository reusables are pinned local copies** (`ci-images-release-guard.yml`, `ci-images-dependency-advisories.yml`): a cross-repository reusable fails to expand on the forge and takes the file's other jobs with it. - **A rehearsal**: `workflow_dispatch` runs every gate and the linux-x64 leg and stops at `npm publish --dry-run` -- no tag, nothing uploaded. - **A tag release still refuses an incomplete prebuild set**, by name: only linux-x64 is built on the forge's one Linux runner, and the other four platforms (linux-arm64, darwin-x64, darwin-arm64, win32-x64) are Raf's call in the release menu. - README carries the one `.npmrc` line a consumer needs for the scope. ## Proof - The linux-x64 leg in the ci-node image: `prebuilds/linux-x64/@macula-io+ts.node` builds, loads (C ABI 2) and generates a key with `build/` removed; needs at most GLIBC_2.34 / GLIBCXX_3.4.29, and loads and generates a key on Ubuntu 22.04.5 (glibc 2.35), so building in the bookworm image does not raise macula-ts#12's floor. - The token never reaches npm's argv: the userconfig carries a `${NODE_AUTH_TOKEN}` reference, and an upload needs `github.event_name == 'push'` as well as a tag. - The reusables are byte-identical copies of the ci-images commits they name. ## Not in this change The other four prebuild platforms (owner's call, in the release menu). Refs #2, #3. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Fold-in after the read: the Linux-only ruling (33ecdb1c) DECIDED 2026-11-25 "Linux x64 only (Recommended)": the macula SDK and MCP packages are Linux x64 only. Appended as one commit on top of Ceres's reviewed content, so the reviewed three commits are untouched: - `package.json` declares `os: ["linux"]` and `cpu: ["x64"]`, so npm refuses a Mac, Windows or arm64 install with its own message rather than letting a linux-only addon fail at load. - The release's promised set is exactly `linux-x64`, on a tag and in the rehearsal alike. Without this the tag path could NEVER publish: it refused a set of five platforms and four are no longer built or promised. The win32 DLL branch of that check goes with the platforms it guarded. - Not touched, and named for the separate port: `ci.yml` and `prebuild-matrix.yml` still name the five platforms; `ci.yml` is still GitHub-shaped and fails at workflow expansion on the forge exactly as before. Proof: the workflow parses, and the promised-set check is the one this PR already ran on its rehearsal path (`PROMISED` now has one value; the linux-x64 leg is unchanged).
On the forge a reusable workflow in another repository is callable only when
that repository is public, and a cross-repository call that fails to expand
takes the whole file's other jobs with it (macula-io/martha#601). The release
path here calls three of macula-ci-images': release-guard.yml and
dependency-advisories.yml from release.yml, and doc-snippets-ts.yml from
docs.yml, which release.yml's docs gate calls. Each gets the pinned local
stand-in the mcl-* repositories carry: ten header lines naming its commit, a
line of dashes, then the file byte for byte, and the header carries the diff
command that checks it.

The port itself is not in this commit: the forge release still needs Node and
Go on a forge image (macula-ts#2, waiting on the macula-ci-node image) and the
linux-x64 prebuild leg only.
The release path moves to git.macula.io.

- The registry owner is named ONCE, in package.json's publishConfig: the
  macula-pub npm registry (DECIDED 2026-11-24, the org renamed from macula-sdk
  to macula-pub). The auth keys npm reads are built from that URL, so this
  workflow names no registry of its own.
- Trusted Publishing (OIDC) goes, with the attestation it needed: FORGE_PACKAGES_TOKEN
  and FORGE_PACKAGES_USER carry the SDK's one publisher account.
- The three jobs that need Node and Go run in macula-ci-node pinned by digest
  a0b86199f76a… (built from macula-io/macula-ci-images main 40f632af, build task
  8368, the reproducibility twin task 8303 success, read back from the registry
  by Terra). A container carries no marketplace action, so the checkout is the
  plain-shell step the forge repositories carry byte-identical.
- release-guard and the advisory scan are the pinned local copies: a
  cross-repository reusable fails to expand on the forge.
- A workflow_dispatch rehearsal runs every gate and the linux-x64 leg and stops
  at `npm publish --dry-run`; a tag release still refuses an incomplete prebuild
  set, by name, until the other four platforms are ruled.
- README names the one .npmrc line a consumer needs for the scope.

When macula-ci-images#27 lands (PR 33) the image moves to the macula-pub org and
the three `container:` digests follow it in a follow-up.
Release: the npm token reaches npm as a reference, never as an argument (macula-io/macula-ts#2 r=1)
Some checks failed
ci.yml / Release: the npm token reaches npm as a reference, never as an argument (macula-io/macula-ts#2 r=1) (pull_request) Failing after 0s
docs / snippets (pull_request) Successful in 14s
docs / TypeScript blocks in the docs (pull_request) Successful in 0s
54b3ff7c4b
Neptunus's fold-in on PR 3.

- The auth keys are written into the npm userconfig as `${NODE_AUTH_TOKEN}` /
  `${NODE_AUTH_USER}` references and expanded by npm from the environment when
  it reads the file, instead of `npm config set ... "$NODE_AUTH_TOKEN"`: npm
  records its argv in ~/.npm/_logs, so the old line put the token in a debug
  log and in the file as plain text. The comment above it now says what the code
  does.
- "A rehearsal uploads nothing" is now literally true: publishing requires
  `github.event_name == 'push'` as well as a tag ref, so a workflow_dispatch made
  on a tag ref cannot reach `npm publish`.
Linux x64 only: one prebuild, and a package that says so (macula-io/macula-ts#2)
Some checks failed
ci.yml / Linux x64 only: one prebuild, and a package that says so (macula-io/macula-ts#2) (pull_request) Failing after 0s
docs / TypeScript blocks in the docs (pull_request) Has been cancelled
docs / snippets (pull_request) Has been cancelled
33ecdb173f
DECIDED 2026-11-25 "Linux x64 only (Recommended)": the macula SDK and MCP
packages are Linux x64 only. package.json declares os ["linux"] and
cpu ["x64"], so npm refuses the other platforms at install, and the
release's promised set is exactly the one prebuild this runner builds.

Without this the tag path could never publish: it refused an incomplete
set of five platforms, and four of them are no longer built or promised.
The win32 DLL branch of that check goes with the platforms it guarded;
prebuild-matrix.yml and ci.yml still name the five (ci.yml is the
separate, still-GitHub-shaped port), noted on the PR.
release 0.33.1: published from the forge's npm registry, Linux x64 only (macula-io/macula-ts#2)
Some checks failed
ci.yml / release 0.33.1: published from the forge's npm registry, Linux x64 only (macula-io/macula-ts#2) (pull_request) Failing after 0s
docs / snippets (pull_request) Successful in 14s
docs / TypeScript blocks in the docs (pull_request) Successful in 0s
6e31900afa
advisories: the stand-in is recopied at 2bd9791, so the scan can set up on the forge (macula-io/macula-ts#2)
Some checks failed
ci.yml / advisories: the stand-in is recopied at 2bd9791, so the scan can set up on the forge (macula-io/macula-ts#2) (pull_request) Failing after 0s
docs / TypeScript blocks in the docs (pull_request) Has been cancelled
docs / snippets (pull_request) Has been cancelled
6c5594dd49
The advisories job could not run on the forge at all. The copy in this
repository pinned macula-ci-images at 83a76a35, whose body names
erlef/setup-beam, dtolnay/rust-toolchain and shivammathur/setup-php by short
`uses:` lines; forgejo-runner clones every step's action before it reads the
step's `if:`, and data.forgejo.org holds none of those three, so the job died
at set-up one second in. Measured on release.yml run 4 (54b3ff7c, 2026-11-24
06:25Z): "node in ." and "advisories" both failure beside a green suite.

The copy is now macula-ci-images at 2bd9791, byte for byte below the header
(tail -n +18 check), which carries the full-URL form (macula-ci-images#6,
e57a704) and the plain-shell checkout (macula-ci-images#12, 23f8377). The
caller is unchanged: ecosystem node and no container, so the hosted path runs
on the runner's own job image, whose node installs the pinned 24.20.0 with
setup-node and which already carries python3, npm and git.
CHANGELOG 0.33.1: quote the owner's words for the move off npmjs (macula-io/macula-ts#2)
Some checks failed
ci.yml / CHANGELOG 0.33.1: quote the owner's words for the move off npmjs (macula-io/macula-ts#2) (pull_request) Failing after 0s
docs / snippets (pull_request) Successful in 15s
docs / TypeScript blocks in the docs (pull_request) Successful in 0s
Release to npm / The tag names package.json's version (push) Successful in 3s
Release to npm / guard (push) Successful in 19s
Release to npm / The release guard (push) Successful in 0s
Release to npm / snippets (push) Successful in 16s
Release to npm / TypeScript blocks in the docs (push) Successful in 0s
Release to npm / docs (push) Successful in 0s
Release to npm / advisories (push) Successful in 0s
Release to npm / node in . (container) (push) Has been skipped
Release to npm / suite (push) Successful in 1m29s
Release to npm / node in . (push) Successful in 13s
Release to npm / the linux-x64 prebuild, and the publish (push) Successful in 45s
9d796320bd
The section cited a DECIDED label the Supervisor's brief carried. Mars's read
asked for the words themselves: DECIDED 2026-11-25 "we move off of Big Tech
(and that includes npmjs)". No other text changes.
terra manually merged commit d32e63b31e into main 2026-11-25 02:08:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-io/macula-ts!4
No description provided.