Skip to content

dogfood: chant's own releases move onto the workstation release command #4040

Closed

Description

@lex00

Sub-issue of INTENTIUS/behold#678. Phase 5. From the #678 audit. After the workstation release pieces of #4027.

Context

chant releases with just release, release-preflight.sh and publish.yml. If chant release is right, chant should use it. #3856 keeps npm provenance and trusted publishing (#1255, #3191), and both work only through CI OIDC.

Requirements

  1. chant's npm releases go through chant release: the workstation checks, cuts and signs the release with chant release cut, and CI picks up the signed release and publishes it with chant release publish, with OIDC provenance and npm trusted publishing as publish.yml does today. chant never publishes from a workstation; a project with no CI may, and then has no OIDC provenance.
  2. The old scripts are removed once two releases have gone out the new way.

Acceptance

  • Two chant releases cut on a workstation with chant release cut and published by CI with chant release publish, each with npm provenance shown on npmjs.com.
  • The old scripts removed.

Activity

  1. added
    enhancement
    area:ci
    phase:5
    on Oct 16, 2026
  2. lex00 commented on Oct 17, 2026

    @lex00
    ContributorAuthor

    From #4031, the steps to turn signed tags on for chant itself (left out of #4031 on purpose): generate an Ed25519 runner key; add .chant/trust.json with runners and roles.runner; store the private key as a repository secret; regenerate the CI workflow with chant ci workflow --runner-key-secret <NAME>; then set ci.green.signedSince and minReader 0.124.28 in chant.workspace.json. After that scripts/release-preflight.sh checks tags through chant's own ci last-green. Alex decides and holds the key.

  3. lex00 commented on Oct 17, 2026

    @lex00
    ContributorAuthor

    From #4027 (PR open): chant's own just release must add --yes to chant release cut (it is now a dry run by default). The trunk check needs origin/main fetched (fetch-depth: 0 in CI). release cut pushes chant/lifecycle but never the release/<label> tag, so pushing the tag is a separate step after it.

  4. added
    parked
    on Oct 18, 2026
  5. lex00 commented on Oct 18, 2026

    @lex00
    ContributorAuthor

    Parked on 2026-10-18 by Alex's decision, out of behold#678's exit criteria. It can't finish in code: its acceptance needs two real chant releases signed on Alex's workstation (his key added to .chant/allowed_signers, which agents never touch) and published by CI with npm provenance, then the old scripts removed. It also needs #4047, #4048 and #4049 merged and released first.

    Steps when it is picked up:

    1. Release a chant that contains publishing: a publish-target contract, with npm, OCI and forge release assets #4047 to publishing: sign releases with the workstation key and attach SBOMs and provenance #4049 (the publish targets, resume and signing).
    2. Add the release signer's key to .chant/allowed_signers and an identity.gates.release entry if only some people may cut. For signed ci tags too, follow trust: signed green tags and run statements, a role for who may cut a release, signed release records #4031's steps above (runner key, .chant/trust.json, ci workflow --runner-key-secret, ci.green.signedSince, minReader).
    3. Declare chant's npm packages under release.publish in its config (publishing: a publish-target contract, with npm, OCI and forge release assets #4047), core package first (publishing: resume after a failure without republishing, and all-or-nothing visibility #4048's core-first rule).
    4. Change just release to chant release cut <version> --sign --yes, then push the release/<label> tag (chant never pushes it), with origin/main fetched for the trunk check.
    5. Change publish.yml to run chant release publish <ref> --yes on the tag, with OIDC (id-token: write) so npm provenance and trusted publishing apply.
    6. After two releases show provenance on npmjs.com, remove scripts/release-preflight.sh, scripts/publish-packages.sh and the old just release steps.
  6. lex00 commented on Oct 21, 2026

    @lex00
    ContributorAuthor

    #4209 moves chant's releases onto chant release cut --at and chant release publish. Nothing is signed; the signing steps in the 2026-10-18 plan are dropped. It merges after 0.124.34, which goes out through just release-legacy. scripts/release-preflight.sh, scripts/publish-packages.sh and just release-legacy stay until two releases have gone through the new path. The npm target publishes with stage: false straight to latest, since #3904 left dist-tag moves over OIDC off.

  7. lex00 commented on Oct 21, 2026

    @lex00
    ContributorAuthor

    Done in #4209 (e55c97d). Nothing in it signs: no --sign, no key, no allowed_signers.

    • just release runs chant release cut <version> --at <green sha> --yes from a new release/ workspace member and pushes the release/npm/<version> tag. There is no bump commit; the version is one past the highest in any package.json at that commit or in a chant-v* or release/npm/* tag.
    • publish.yml gains a release-publish job on that tag: scripts/release-pack.sh <version> packs all 24 packages at the version, then chant release publish <version> --yes with id-token: write. The npm target takes stage: false (straight to latest, since moving a dist-tag over OIDC was closed as won't-do in Trusted publishing: allow npm dist-tag on all 23 package records, and audit it #3904) and tokenEnv: "NPM_TOKEN", which republishes one package with the token only when OIDC authentication fails.
    • just release-lexicon floors its version at package.json, the lexicon and release/npm/* tags and npm view, so it can't land at or below npm's.
    • A new lexicon adds its line to release/chant.config.ts; scripts/release-member.test.ts fails until it does.

    Deferred: the old path stays as just release-legacy, with scripts/release-preflight.sh and scripts/publish-packages.sh, until two releases have gone out through the new one. 0.124.34 went out through it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cienhancementparkedphase:5

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions