martha#114 step 3: the release is the committed tree, checked on the forge #120

Closed
venus wants to merge 6 commits from venus/114-forge-release into venus/114-installer-2
Member

Refs #114 (step 3). Purpose (release): a Martha release and its installer are made and checked on the forge alone; host00 builds and signs the image.

Stacked on PR 117 (venus/114-installer-2, cb7dcb08); rebase onto main after it lands.

  • c345b1e6 install fetches the pinned installer from the forge npm registry as martha-reader
  • 2b8c68d8 the pin is packed from the installer tag, checked against the registry (sigstore gone)
  • 40420d1a the release dry run is deleted (it rehearsed a GitHub + Sigstore chain the forge lacks)
  • 70742f9c floor.json is committed by the version bump, declare_the_floor.sh --check on the tag
  • 673d7435 pack_a_release.sh --write|--check, root Containerfile (signer-lock + FROM scratch), forge release.yml / installer.yml, ci.yml hand-lock, docs

Needs the release menu's yes: secrets FORGE_PACKAGES_TOKEN and FORGE_READER_TOKEN (forge-setup PR 42), and the host00 signer targets line macula-io/martha git.macula.io/macula-io/martha release . Containerfile tested-lock=package-lock.json.

Refs #114 (step 3). Purpose (release): a Martha release and its installer are made and checked on the forge alone; host00 builds and signs the image. Stacked on PR 117 (venus/114-installer-2, cb7dcb08); rebase onto main after it lands. - c345b1e6 install fetches the pinned installer from the forge npm registry as martha-reader - 2b8c68d8 the pin is packed from the installer tag, checked against the registry (sigstore gone) - 40420d1a the release dry run is deleted (it rehearsed a GitHub + Sigstore chain the forge lacks) - 70742f9c floor.json is committed by the version bump, `declare_the_floor.sh --check` on the tag - 673d7435 pack_a_release.sh --write|--check, root Containerfile (signer-lock + FROM scratch), forge release.yml / installer.yml, ci.yml hand-lock, docs Needs the release menu's yes: secrets FORGE_PACKAGES_TOKEN and FORGE_READER_TOKEN (forge-setup PR 42), and the host00 signer targets line `macula-io/martha git.macula.io/macula-io/martha release . Containerfile tested-lock=package-lock.json`.
The release's package.json names the registry (the forge's npm registry for macula-io) and the reader
token's file beside the installer package; npm is logged in to that registry alone, with a user config
line in the run's own npm home (0600, removed with it). The lock names the tarball where the forge serves
it, under its version. No token, an empty one, or one the registry refuses is a refusal by name, the first
two before npm runs. The fake registry serves the forge's layout and answers 401 without the token, so a
run that forgets to log in fails every happy test (mutant: 4 fail).
pin_the_installer.mjs no longer reads npm provenance (there is none on the forge). It packs installer/
exactly as the installer-v<version> tag holds it, and pins that sha512 only when the registry the root
package.json names serves those bytes: its document names that integrity, and the tarball it hands
over hashes to it. It reads with the reader token, as Bearer. --write commits the pin (the version
bump); --check makes it again on the tag's CI and refuses any difference. Two packs of one tag are
the same bytes (a test, and by hand at 13396641 with npm 11.19.1).

sigstore leaves the installer's devDependencies, with the real attestation fixture.
Mutants: the served-bytes check and the named-integrity check each fail one test.

Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: the pin is exactly the three fields, named by the tree and covered by the bytes npm serves
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: the certificate the pin demands is exactly this repository, this workflow and this ref
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: a version npm holds no attestation for is refused, naming what is missing
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: an attestation that names another repository, workflow or ref is refused, naming both, and nothing is pinned
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: a certificate issued for another repository or ref is refused, naming both
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: an attestation over other bytes is refused, naming the digest it covers
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: an attestation built from another commit than the installer tag names is refused
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: the commit is read from the entry whose uri names this repository and ref, never from the first
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: a tarball that does not hash to the integrity its document names is refused
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: a tree with no installer tag, or an installer/ that moved after its tag, is refused by name
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: a context that already carries a pin is refused, and the pin it holds is left as it was
Drops-test: installer/pin_the_installer/pin_the_installer.node-test.mjs :: a real published attestation is refused under the real trust root: another repository published it
On the forge only host00's signer signs, and only a v* tag signed by Raf or release-bot, so a dry run
can neither push into the release package nor be signed. The v* tag's own CI makes the pin and the
floor again and refuses any difference, and host00's build is the real build (Mars, step 3 scope).
Gone: release-dry-run.yml, rehearse_a_release/, the dry-restore refusal and its release.yml step, the
no-restore guard and the dry-order test (they guarded the dry packer only), dryRunTagPrefix, and the
clean-install proof's --dry-layer/--dry-installer options.

Drops-test-file: prove_the_core/the_release_is_proven/no_restore_reaches_the_release.node-test.ts
Drops-test-file: prove_the_core/the_release_is_proven/the_dry_release_runs_the_installers_order.node-test.ts
Drops-test-file: rehearse_a_release/place_main_as_a_dry_release/dry_release.node-test.mjs
Drops-test-file: rehearse_a_release/place_main_as_a_dry_release/follow_the_live_run_as_the_owner.node-test.mjs
Drops-test-file: rehearse_a_release/place_main_as_a_dry_release/pack_main_as_a_dry_layer.node-test.mjs
Drops-test-file: rehearse_a_release/place_main_as_a_dry_release/refuse_a_dry_restore_tag.node-test.mjs
Drops-test-file: rehearse_a_release/place_main_as_a_dry_release/run_the_live_run_on_main.node-test.mjs
Drops-test-file: rehearse_a_release/the_layer_is_the_tree_and_the_pin.node-test.mjs
Drops-test: installer/hold_the_version_floor/the_packer_declares_the_floor.node-test.mjs :: the release and the dry run both pack through pack_a_release.sh, which declares the floor
Drops-test: installer/keep_the_names_in_one_place/names.node-test.mjs :: a build that fails in the dry run is reported by the command that failed, not by a later check
Drops-test: installer/keep_the_names_in_one_place/names.node-test.mjs :: the dry run pushes into the release package itself, under a tag that is never a version
Drops-test: installer/read_the_release_registry/read_the_release_registry.node-test.mjs :: a dry run's tags, pushed into the release package before any release, are never taken for a version
Drops-test: prove_the_core/the_release_is_proven/the_pictures_are_drawn_at_the_release.node-test.ts :: the dry run reads the pictures as the release does, and immediately before it packs
host00 builds the committed tree, so nothing can be generated at build time. declare_the_floor.sh now
writes floor.json over what is there (the bump commits it), and with --check makes it again from
floor.txt and refuses a missing or different one. The other refusals are unchanged.

Drops-test: installer/hold_the_version_floor/the_packer_declares_the_floor.node-test.mjs :: refused: a floor.json in the tree; it is generated, never committed
A release is the committed tree: host00 builds the root Containerfile, CI only checks (#114)
Some checks failed
dependency advisories / node in . (pull_request) Has been cancelled
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Has been cancelled
dependency advisories / node in installer (pull_request) Has been cancelled
dependency advisories / node in . (container) (pull_request) Has been cancelled
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been cancelled
dependency advisories / node in installer (container) (pull_request) Has been cancelled
c4 model / c4-model (pull_request) Has been cancelled
c4 model / c4-model-1 (pull_request) Has been cancelled
CI / links resolve (pull_request) Has been cancelled
CI / gate coverage (pull_request) Has been cancelled
CI / structural floor (pull_request) Has been cancelled
CI / Martha's names are its own (pull_request) Has been cancelled
CI / no import cycle (pull_request) Has been cancelled
CI / the relay loads in the recorded host (pull_request) Has been cancelled
CI / the host drift check bites (pull_request) Has been cancelled
CI / the engine drift check bites (pull_request) Has been cancelled
CI / the posted text check bites (pull_request) Has been cancelled
CI / the clean-install proof removes its container (pull_request) Has been cancelled
CI / the ring reaches the owner on the live run's tmux (pull_request) Has been cancelled
CI / workflows are valid (pull_request) Has been cancelled
CI / installer (pull_request) Has been cancelled
CI / nothing private (pull_request) Has been cancelled
CI / no test the base passed goes missing (pull_request) Has been cancelled
CI / the pictures change only with the version (pull_request) Has been cancelled
CI / no literal restates a defined value (pull_request) Has been cancelled
CI / every check runs in a job (pull_request) Has been cancelled
CI / every job has a timeout (pull_request) Has been cancelled
CI / File the tested lock for the signer (pull_request) Has been cancelled
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Has been cancelled
standalone / the pinned Node is nodejs.org's (pull_request) Has been cancelled
673d743597
host00's signer builds the committed Containerfile over git archive of the tag, so nothing is
generated at build time and no workflow builds or pushes an image.

- pack_a_release.sh <v> --write|--check --token-file <f>: the version bump writes and commits
  installer.json and floor.json; the tag's CI makes them again and refuses a difference. It no
  longer lays out a context or writes a Containerfile.
- Containerfile at the root: a signer-lock stage holding package-lock.json, then FROM scratch with
  the tree at /martha (held equal to releaseFolder by the names test).
- release.yml runs on the forge: suite, private, and a check job (tag on main, pictures,
  pack_a_release --check reading as martha-reader via secrets.FORGE_READER_TOKEN).
- installer.yml runs on the forge and publishes to the root's installerRegistry with
  secrets.FORGE_PACKAGES_TOKEN; no --provenance. Both secrets come with the release menu's yes.
- ci.yml hand-lock files <commit>.<sha256>.package-lock.json on tested-locks after the gate
  passes on main, as mcl-mail's.
- The tests that held the GitHub image build (buildx, OCI layout, skopeo, release-guard and
  attest calls) go with it; the pin and floor tests now allow those files at the root only.

Drops-test: installer/hold_the_version_floor/the_packer_declares_the_floor.node-test.mjs :: the release packs through pack_a_release.sh, which declares the floor
Drops-test: installer/hold_the_version_floor/the_packer_declares_the_floor.node-test.mjs :: the project's floor is committed as one X.Y.Z line; no floor.json is
Drops-test: installer/keep_the_names_in_one_place/names.node-test.mjs :: each release job passes its own tag prefix, its version root and versions: check to the guard and the signer
Drops-test: installer/keep_the_names_in_one_place/names.node-test.mjs :: nothing reaches the registry until its manifest is checked locally, and what is pushed is what was checked
Drops-test: installer/keep_the_names_in_one_place/names.node-test.mjs :: every image is built by a docker-container builder and checked to be one OCI manifest before it is signed
Drops-test: installer/keep_the_names_in_one_place/names.node-test.mjs :: the guard-input reader bites: a planted prefix is read as planted
Drops-test: installer/keep_the_names_in_one_place/names.node-test.mjs :: a pin is generated, never committed: no pin file is in the tracked tree
release.yml: the tag reaches its scripts through env; the pin refuses a tarball URL outside the registry (#114 PR 120 review r=1)
Some checks failed
dependency advisories / node in . (pull_request) Successful in 10s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 10s
dependency advisories / node in installer (pull_request) Successful in 13s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 5s
CI / structural floor (pull_request) Failing after 27s
CI / no import cycle (pull_request) Successful in 29s
CI / Martha's names are its own (pull_request) Successful in 2m38s
CI / the posted text check bites (pull_request) Successful in 15s
CI / the engine drift check bites (pull_request) Successful in 31s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 12s
CI / workflows are valid (pull_request) Successful in 10s
CI / installer (pull_request) Failing after 1m14s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Failing after 35s
CI / the pictures change only with the version (pull_request) Successful in 17s
CI / the host drift check bites (pull_request) Failing after 5m4s
CI / every check runs in a job (pull_request) Successful in 44s
CI / no literal restates a defined value (pull_request) Successful in 1m8s
CI / every job has a timeout (pull_request) Successful in 49s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 29s
CI / File the tested lock for the signer (pull_request) Has been skipped
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 48s
CI / the relay loads in the recorded host (pull_request) Successful in 14m49s
CI / the clean-install proof removes its container (pull_request) Successful in 16m10s
cb27624d68
- release.yml pasted ${{ github.ref_name }} and the version derived from it into
  two run: scripts, one of them the step that holds the reader token. A tag name
  may carry $( ), ; and quotes, so both now come through env.
- pin_the_installer.mjs sent the reader token to whatever dist.tarball the
  registry's document named. It now refuses a tarball URL outside the registry
  before asking it, held by a test (the guard's mutant fails it: 9 pass, 1 fail).
Owner

Closed by the Supervisor: Raf 2026-11-24 "yes simplify it". A Martha release becomes a tag + forge CI build (pack and publish to the forge npm registry); the host00 key signer and the installer key check are dropped. The branch is kept.

Closed by the Supervisor: Raf 2026-11-24 "yes simplify it". A Martha release becomes a tag + forge CI build (pack and publish to the forge npm registry); the host00 key signer and the installer key check are dropped. The branch is kept.
supervisor closed this pull request 2026-11-24 06:36:33 +00:00
Some checks failed
CI / gate coverage (pull_request) Has been skipped
dependency advisories / node in . (pull_request) Successful in 10s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 10s
dependency advisories / node in installer (pull_request) Successful in 13s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 5s
CI / structural floor (pull_request) Failing after 27s
CI / no import cycle (pull_request) Successful in 29s
CI / Martha's names are its own (pull_request) Successful in 2m38s
CI / the posted text check bites (pull_request) Successful in 15s
CI / the engine drift check bites (pull_request) Successful in 31s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 12s
CI / workflows are valid (pull_request) Successful in 10s
CI / installer (pull_request) Failing after 1m14s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Failing after 35s
CI / the pictures change only with the version (pull_request) Successful in 17s
CI / the host drift check bites (pull_request) Failing after 5m4s
CI / every check runs in a job (pull_request) Successful in 44s
CI / no literal restates a defined value (pull_request) Successful in 1m8s
CI / every job has a timeout (pull_request) Successful in 49s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 29s
CI / File the tested lock for the signer (pull_request) Has been skipped
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 48s
CI / the relay loads in the recorded host (pull_request) Successful in 14m49s
CI / the clean-install proof removes its container (pull_request) Successful in 16m10s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 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
martha-ai/martha!120
No description provided.