jig-harness/jig
M16

Releases & versions

A changelog per released artifact written for its consumers, the version chosen once after the merge, a tag only on verified code, a narrowed release identity
1 · The idearead this first

Software that others download, embed or consume (a library, a command-line tool, a plugin, a service’s client library) reaches them as versions, and the people who use it decide from the version number and the changelog whether an upgrade is safe and what it brings. Without a release practice, those two signals stop meaning anything. The changelog lists everything that merged: a restyled project website, a faster CI job and a renamed internal script sit beside the one change that breaks a user’s configuration, which nobody then finds. A repository that ships two things (a library and its command-line tool, the packages of a monorepo) puts both in one changelog under one version, so a fix to one looks like a release of the other. Whoever merges picks the next version, so two pull requests claim the same one, or a breaking change goes out as a patch. And a release is tagged by hand on whatever commit was current, before its checks finished, so the job that publishes from the tag ships code nobody verified. This module is the practice that keeps both signals honest: one changelog per thing you release, written for the people who use that thing; the version chosen once, after the merge, from what the changes do to those people; and a tag only on the commit that released it, once its own checks pass.

Invariantthe rule, independent of any tool

Each released artifact (a thing the repository publishes at a version for others to install, embed or consume) has one changelog, written for that artifact’s consumers: an entry says what changed for someone who uses the artifact, and a change that reaches none of its consumers (CI, the repository’s own tooling, its website, documents only its maintainers read) has no entry. A repository that releases several artifacts at their own versions keeps a changelog and a version per artifact, and each change names the artifacts it reaches. The version is chosen once, after the merge, by a release step that runs one at a time on the integration branch and takes the largest bump the waiting changes ask for, judged by what each does to a consumer, never by a pull request, and a change to what an artifact ships cannot merge without saying which release it needs. Each version is tagged on the commit that released it, and on no other, once that commit’s own required checks pass, so whatever publishes from a tag ships only verified code. The identity that writes the release is let past the integration branch’s rules only as far as the release needs, or the release arrives as a pull request a person merges.

Everything below is that one tool-independent statement made mechanical; the per-ecosystem wiring lives in mappings.md.

2 · The practicewhat each level asks of your repository

M16 Lite — minimum useful

the repository names each artifact it releases, with its changelog and where its version lives; a written rule says which changes get a changelog entry (those the artifact’s consumers would notice) and how a change’s version bump is judged; and each release is tagged.

What the audit checks at Lite convention-only is enough must be mechanically enforced
  1. The repository names each artifact it releases, with its changelog and where its version lives, and writes down which changes get a changelog entry (those the artifact's consumers would notice) and how a change's version bump is judged (expected-absent where the repository releases no versioned artifact).
    released-artifacts-and-entry-rule-writtenWhat the audit looks for (3)
    • a contributor-facing doc or the changelog's own opening names the released artifact(s), the changelog of each and the file or tag that holds each version
    • a written rule says what gets an entry (a change its consumers notice) and what does not (CI, refactors, the repository's own tooling or website), and how the bump is chosen (semantic versioning or the repository's own scheme)
    • a changelog that records changes no consumer sees (CI tweaks, website work, internal tooling) as entries is evidence the rule is missing or not followed
  2. Each released version has a git tag naming it, so a consumer and a publishing job can find the exact code of every version (expected-absent where the repository releases no versioned artifact).
    each-release-taggedWhat the audit looks for (2)
    • the changelog's release headings or the registry's versions each have a matching tag (git tag --list, or the host's tags page)
    • a monorepo's tags name the artifact as well as the version (<artifact>@1.2.0, <artifact>/v1.2.0)

M16 Standard — production teams

a release step on the integration branch, one run at a time, sets each artifact’s version from what the waiting change records ask for, and no pull request sets it; a check fails a pull request that changes what an artifact ships without a record asking for a release; and a repository that releases several artifacts at their own versions keeps a changelog and a version per artifact.

What the audit checks at Standard convention-only is enough must be mechanically enforced
  1. A release step on the integration branch, one run at a time, sets each artifact's version after the merge from the bump its waiting changes ask for, and no pull request sets the version itself (expected-absent where the repository releases no versioned artifact).
    version-set-after-merge-by-one-runWhat the audit looks for (3)
    • a CI job on the integration branch, or a release tool's release pull request, writes the changelog and moves the version (the changelog skill's release command, Changesets, release-please, changie, towncrier, scriv, semantic-release)
    • the job cannot overlap itself (a concurrency group that does not cancel, a single regenerated release pull request), and one run releases everything waiting as one version
    • a pull-request check fails a branch that edits the version or the changelog's release sections (M12's change-records-assembled-after-merge observes the changelog side)
  2. A check fails a pull request that changes what an artifact ships without a change record asking for a release, so no shipped change reaches the integration branch unversioned (expected-absent where the repository releases no versioned artifact).
    shipped-change-requires-releaseWhat the audit looks for (3)
    • a pull-request check maps the artifact's shipped paths to a required record: the changelog skill's check with changelog.release_paths set, `changeset status --since=<base>`, `towncrier check`, or a CI step of the repository's own (for changie or scriv, a step that fails when no fragment was added)
    • a change outside the shipped paths (CI, tooling, website) is not asked for one
    • with release-please or semantic-release, a check that holds the commit type of a change to the shipped paths to one that releases (feat, fix) meets it; Conventional Commits alone, unchecked, are convention
  3. A repository that releases several artifacts at their own versions keeps a changelog and a version per artifact, and each change record names the artifacts it reaches (expected-absent where the repository releases one artifact, or none).
    changelog-and-version-per-artifactWhat the audit looks for (3)
    • each released package or tool has its own changelog and version (a CHANGELOG.md beside each package manifest, a release-please manifest, Changesets' per-package changelogs, Nx Release's projects)
    • a change record names the artifacts it changes and the bump for each, and tags carry the artifact's name
    • artifacts that always release together at one version (one product under two manifests) count as one artifact

M16 Strict — regulated / compliance posture

each version is tagged automatically on its releasing commit once that commit’s required checks pass, and publishing starts from the tag; and the identity that writes the release is narrowed to what the release needs (contents only, its key held for the integration branch alone, force pushes and deletion still blocked for it), or the release arrives as a pull request a person merges.

What the audit checks at Strict convention-only is enough must be mechanically enforced
  1. Each version is tagged automatically on the commit that released it, and on no other, only once that commit's own required checks have passed, and publishing starts from the tag (expected-absent where the repository releases no versioned artifact).
    release-tag-after-verificationWhat the audit looks for (3)
    • a CI job tags the releasing commit after reading that commit's required checks (the changelog skill's tag-plan and tag-push jobs, a workflow_run of the gate workflow, a last pipeline stage), not in the run that wrote the release
    • the publishing job starts on a tag push, not on a push to the integration branch
    • a release tool that commits the release and tags and publishes it in the same run (semantic-release with @semantic-release/git) does not meet it
  2. The identity that writes the release to the integration branch passes its rules only as far as the release needs (contents only, never workflows; its key held by an environment only the integration branch may use; force pushes and deletion still blocked for it), or the release arrives as a pull request a person merges (expected-absent where the repository releases no versioned artifact).
    release-identity-narrowedWhat the audit looks for (4)
    • the release pushes as a dedicated App or deploy key, not a person's token; the host's rulesets or branch protection name it as the one bypass of the pull-request and check rules, and a rule without that bypass blocks force pushes and deletion
    • its key is a secret of a deployment environment restricted to the integration branch, and the job that reads it runs nothing from the repository
    • or: the release tool opens a release pull request and no automation bypasses the integration branch's rules
    • the changelog skill's release-access.ts reports what GitHub's rulesets allow for the release identity

This module is expected-absent for a repository that releases no versioned artifact: a deployed service with no client library, a web application deployed rather than installed, a website, a documentation repository. It is not expected-absent for a deployed service that also publishes one; the audit calibrates by what the repository publishes, not by its shape alone.

Adoption steps

  1. Write down what the repository releases: each artifact, its changelog, where its version lives, and its consumers. Put it where contributors read before their first change (the contributing guide, or the changelog’s own opening paragraph).
  2. Write the rule for what gets an entry: what the artifact’s consumers would notice gets one, what only the maintainers notice does not, with the repository’s own examples of both. Agents follow it when they write a change’s record.
  3. Move each changelog to change records written after the merge (M12 core piece 6), with the tool for your ecosystem from mappings.md, or the plugin’s changelog skill, whose /jig:changelog setup walks a person through it. For several artifacts at their own versions, pick a tool that keeps one changelog per artifact (mappings.md).
  4. Name the files each artifact ships as the paths whose change requires a record that asks for a release (the skill’s changelog.release_paths), and run the branch check on every pull request.
  5. Tag after verification: add the job that tags each releasing commit once its required checks pass, and start publishing from the tag rather than from a push to the integration branch.
  6. Give the release its identity, or switch it to a release pull request, and check that the branch’s rules let it through and nothing more (the skill’s release-access.ts reads this from GitHub).
3 · The mechanicsopen what you need
Core piecesOpen
  1. Name what you release, and who reads about it. List each released artifact, where its version lives (a package.json, a pyproject.toml, a plugin manifest, only its git tags) and where its changelog is. Each changelog has one audience: the consumers of its artifact. Write down which changes get an entry: a new capability, a changed behaviour or default, a fix to something a consumer hit, a deprecation, a removal, a security fix. Changes that only the repository’s own maintainers notice get none: a CI optimization, a refactor, a test, the repository’s own scripts and agent instructions, internal design documents, and a project website, which is deployed rather than released and is M10’s. A changelog that lists them buries the entries its readers need.

  2. A changelog per artifact. A repository that releases one artifact keeps one changelog. One that releases several at their own versions (a monorepo’s packages, a library beside its command-line tool) keeps a changelog and a version per artifact, usually beside the artifact’s own manifest, and each change record names the artifacts it reaches, with the bump each needs. Artifacts that always release together at one version (a plugin and its two manifests, a package published under two names) are one artifact here. Tags then name the artifact as well as the version (<artifact>@1.4.0, <artifact>/v1.4.0), so each artifact’s history is its own.

  3. The version follows what the change does to a consumer. Versions follow semantic versioning (semver.org): a change that breaks something a consumer relies on (a removed or renamed feature, a changed default, a stricter check) asks for a major bump (a minor one before 1.0.0), a compatible new capability a minor one, a fix a patch one. The size of the diff never decides it. A breaking entry says what a consumer must change.

  4. The version is chosen once, after the merge. Each pull request records the release it needs in a change record of its own (a change note, as M12 calls it), never by editing the version. After the merge, a release step on the integration branch writes the waiting records into the changelog and sets the version to the largest bump any of them asks for, as one version: one commit, one tag, so every tag names exactly the tree it points at. Release runs never overlap; a run that finds several merges waiting releases them together. A branch check fails a pull request that changes the files an artifact ships without a record that asks for a release, since its consumers receive the change only through a new version, and fails one that sets the version or adds to the changelog’s sections itself.

  5. A tag only on verified code. Each version is tagged on its releasing commit, the first commit on the integration branch’s own (first-parent) history whose changelog has that version, and only once every check the branch requires has passed on that commit itself; a later commit’s success never stands in for it. A publishing job (a package registry upload, a GitHub Release) starts from the new tag, so it ships only a commit that passed its checks. A release commit whose checks failed stays untagged and is reported, for a person. This tag is a different ref from M10’s verified pointer, which advances after verification to record what runs; M10 does not require a tag per version, and this module does.

  6. The release identity, let past the rules only as far as it needs. The release step’s commit reaches a protected integration branch in one of two ways. Either a dedicated machine identity (a GitHub App, a deploy key) pushes it, allowed past the branch’s pull-request and check rules and nothing else: it can change contents only, never workflows; its key is held by an environment only the integration branch may use; force pushes and deletion stay blocked for it too; and the job that holds the key runs nothing from the repository. That is M10’s exception for a machine identity, applied to the integration branch. Or no identity passes the rules: the release step regenerates a release pull request after each merge, and a person merges it.

  7. The integration branch is not a release pointer. M10’s rule that a release pointer only ever fast-forwards to verified source governs a pointer that says what production runs. A release step commits to the integration branch before that commit’s own checks pass, which a pointer that may advance only to verified source cannot allow, so the two must be different refs. A repository whose integration branch is also that pointer moves the pointer to a ref of its own before it adopts a release step that commits.

In your toolsThe same rule, wired into a specific CI provider, hook manager or tracker. Shows only your stack.Open

The module invariant is tool-independent: a changelog per released artifact, written for its consumers; the version chosen once, after the merge, by one release run at a time; a tag only on the commit that released it, once its checks pass; and a release identity let past the branch’s rules only as far as the release needs. This page maps it onto release tools, CI providers, hosting services and package registries. Replace <placeholders> with your values.

Release tools — per ecosystem

Each tool below writes the changelog after the merge, and most set the version too. towncrier and scriv only collect the fragments under a version they are given: choosing that version and writing it into the artifact’s version file stay a separate step of the release. The tools differ in what a pull request records, who writes the entry, and how the release reaches the integration branch.

ToolEcosystemWhat a pull request recordsRelease stepChangelog and version
changelog skillany (Bun scripts, a GitHub Action)a change note, changes/*.md, with release: patch|minor|majorrelease.ts after each merge, one run at a time; its workflow template pushes the commit as a GitHub App or opens a release pull request, and its tag job tags each releasing commit once its required checks passKeep a Changelog or Common Changelog, the whole file checked against its format’s rules by lint.ts; the version in JSON, TOML or YAML files, a VERSION file, or only tags; one artifact per repository
ChangesetsJavaScript / TypeScript packages.changeset/*.md, naming each package and its bumpchangeset version; its GitHub Action keeps a “Version Packages” pull request open for a person to merge, then changeset publish publishes and tagsa CHANGELOG.md per package; versions in each package.json
towncrierPython, anynewsfragments/<id>.<type>towncrier build --version <v>; the version is given, not computed, and the version file is not writtenconfigurable template and types
scrivPython, anychangelog.d/*.md or .rstscriv collect --version <v>; the version is given, and the version file is not writtenKeep a Changelog’s types by default
changieany (Go binary).changes/unreleased/*.yaml, one kind eachchangie batch <version|auto>, then changie merge; auto derives the bump from the kindsconfigurable; Keep a Changelog’s kinds by default
release-pleaseany, from Conventional Commitsnothing: the commit subject is the entrykeeps a release pull request open, updated after each merge; merging it tags and creates a GitHub ReleaseCHANGELOG.md and the version file per release type
semantic-releaseany, from commit messagesnothing: the commit subject is the entryruns on each push to the release branch and tags and publishes in the same run; with @semantic-release/git it first commits the changelog and the versionthe changelog through its @semantic-release/changelog plugin; the version in the registry and the tag

Choose by what the pull request should record: the change-note tools (the skill, Changesets, towncrier, scriv, changie) have the author write the entry for the artifact’s consumers when the change is fresh; the commit tools write it from the commit subject.

Generating from commits

Release-please and semantic-release need nothing per pull request, so nothing conflicts, but each changelog entry is a commit subject, written for a reviewer of the diff rather than a consumer of the artifact, and a change only the maintainers notice still produces an entry unless its commit type (ci:, chore:, docs:) is configured out. With them, the rule for what gets an entry becomes the rule for which commit types are listed, and the reviewer checks a pull request’s type the way they would check a note. GitLab’s changelog API does the same from Changelog: trailers in commit messages. semantic-release tags and publishes in the run that finds the release; with @semantic-release/git it commits the changelog and the version first and tags that commit, before any check on it has run. Where tags must follow verification, prefer a tool that leaves the tag to a later job.

Several artifacts in one repository

A repository that releases several artifacts at their own versions keeps a changelog and a version per artifact, and each change names the artifacts it reaches.

ToolHow it keeps them apartTags
Changesetseach changeset names its packages and the bump for each; a fixed group keeps packages at one version, and a linked group aligns versions only among packages that release together<package>@<version>
release-please (manifest)release-please-config.json lists each package’s path and release type; .release-please-manifest.json holds each one’s version<component>-v<version> by default
Nx Releaseversion plans (nx release plan) name each project and its bump, or Conventional Commits; independent or fixed versioning per group<project>@<version> for independent projects, v<version> for a fixed group, configurable
release-plzper crate of a Cargo workspace, from Conventional Commits, through a release pull request<crate>-v<version>
Go modulesa module in a subdirectory is versioned by tags of its own<subdir>/v<version>, as the Go toolchain requires
changelog skillone artifact per repository today (README)<tag_prefix><version>

Artifacts that always release together at one version, such as a plugin whose two manifests carry the same version, are one artifact: one changelog, one version, the files listed together.

What gets an entry

The rule is the repository’s own, written where contributors read it; these are the usual answers for one released artifact:

The changeEntry
A new capability, a changed behaviour or default, a deprecation, a removalyes
A fix to something a consumer could hit; a security fixyes
Documentation that ships with the artifact or that its consumers read to use ityes, when it changes what they do
A refactor, a test, a CI or build optimization with no effect on what shipsno
The repository’s own scripts, agent instructions and contributor documentsno
A website about the project, deployed rather than releasedno; its own deploy history is M10’s
A dependency updateonly when a consumer sees it (a changed peer range, a security fix, a dropped runtime)

A tool that requires a record from every pull request has a way to say “no entry”: Changesets’ changeset --empty, or a skip label the repository’s own CI step honours (towncrier, scriv and changie ship none); the changelog skill requires a note only where changelog.release_paths or changelog.note_paths cover a changed file.

Tagging after verification

ProviderThe tag job
GitHub Actionsthe changelog skill’s workflow template: a tag-plan job, started when a check run completes on the integration branch and on a schedule, lists each version whose releasing commit’s required checks have passed (tag.ts --json); a tag-push job that holds the App’s key and runs nothing from the repository creates the annotated tags through GitHub’s API. A cancelled check is run again once with actions: write granted to that job alone. Elsewhere: a job started by workflow_run of the gate workflow that reads the commit’s check runs before it tags
GitLab CIa tag job in the last stage of the integration branch’s pipeline, which runs only when every earlier stage passed on that commit, creating the tag through the Releases or Tags API with a project access token held in a protected variable
anythe job that publishes starts on a tag (on: push: tags: ['v*'], rules: - if: $CI_COMMIT_TAG), never on a push to the integration branch

Protect the tag names too, so the release identity is the only one that creates them: a GitHub tag ruleset on refs/tags/<tag_prefix>* with the release App as its one bypass actor, or GitLab’s protected tags.

Checking what the package holds

A check on the source cannot see the package built from it: a file left out of what gets published, an entry point that points at nothing once the build has run, types that resolve under one module setting and not another, a test folder shipped inside the library. These checks read what the build packs. Make them required checks, so they run on the pull request for early feedback and again on the releasing commit: the release step changes versions and the changelog in a commit of its own, and the tag lands on that commit only once its required checks have passed.

EcosystemCheckWhat it reads
npmpublintthe package’s package.json against the files it would publish, after the build: entry points naming missing files, export conditions in an order a bundler misreads, fields some environments ignore
npm, with TypeScript typesAre the Types Wrong? (attw --pack .)the tarball npm pack makes: whether each entry point’s types resolve under node10, node16 and bundler module resolution, and whether the module format the types claim is the one the code ships
npmnpm pack --dry-runthe list of files the tarball would hold, for a check that compares it with the list the repository expects
Pythontwine checkthe built distributions’ metadata: whether the long description renders on PyPI
Pythoncheck-wheel-contentsa built wheel: compiled .pyc files, duplicate files, a top-level tests or docs package, and, given the source tree (--package or --src-dir), modules of it missing from the wheel
Rustcargo package --list, cargo publish --dry-runthe files the crate’s archive would hold; the dry run also builds the packaged crate on its own, which catches a file the build needs and the package leaves out

The release identity

HostPushes the release commitOr, a release pull request
GitHuba GitHub App with Contents read and write (never Workflows), installed on the repository alone, its client ID and private key in a deployment environment only the integration branch may use; a ruleset lets it bypass the pull-request and check rules, and a second ruleset with no bypass actor keeps force pushes and deletion blocked for it. The changelog skill’s App manifests and release-access.ts set up and check this. A push with the workflow’s GITHUB_TOKEN starts no other workflow, so the release commit would get no checks and its tag would start no publishingthe App with Pull requests read and write as well, force-pushing a release branch no rule protects and opening the pull request; no identity bypasses the integration branch’s rules
GitLaba project access token or a deploy key allowed to push to the protected branch, held in a protected, masked CI/CD variablea merge request opened by the same token from a release branch

Either way, the job that holds the key runs nothing from the repository: the release step runs in an earlier job without it and hands its commit on.

Publishing without a stored token

The job that publishes from the tag needs the registry’s permission. A long-lived registry token kept as a CI secret can be read by any workflow that reaches the secret, and it stays valid after it leaks. With trusted publishing, the registry is told once which repository, workflow file and, optionally, deployment environment may publish the package. The publishing job proves it is that workflow with a short-lived identity token its CI provider issues, and the registry answers with a publish credential that expires within minutes. It is the release identity above applied to the registry: allowed to publish this package from this workflow, and nothing else. Name a deployment environment in the registry’s configuration and let only the release tags use it, so a workflow on another branch cannot publish.

RegistryCI providersThe publishing job, on GitHub Actions
npmGitHub Actions, GitLab CI/CD and CircleCI, on their hosted runnerspermissions: id-token: write and npm publish with npm 11.5.1 or later (Node 22.14.0 or later). A public package published from a public repository on GitHub or GitLab gets provenance without a flag. A trusted publisher configured after 3 September 2026 allows only npm stage publish, which waits for a maintainer to approve each version, until its settings also allow npm publish; allow it, or publish staged. Once it works, the package’s publishing access can disallow tokens altogether
PyPIGitHub Actions, GitLab CI/CD, Google Cloud, ActiveStatepermissions: id-token: write and pypa/gh-action-pypi-publish, which also uploads a publish attestation for each file by default: it names the workflow that uploaded the file, not the one that built it; the credential lasts 15 minutes
crates.ioGitHub Actionspermissions: id-token: write, rust-lang/crates-io-auth-action in a step with an id, then cargo publish with that step’s token output as CARGO_REGISTRY_TOKEN. The crate’s first version is published by hand; the trusted publisher is then set in the crate’s settings

The other CI providers request the identity token their own way (GitLab CI/CD’s id_tokens with the registry as its audience, for one); the registry’s page linked in the first column gives the steps for each.

Listing what the release contains

A software bill of materials (SBOM) lists, in a machine-readable file, the components a released artifact contains: each dependency’s name and version, and its licence and package address where the tool knows them. A consumer’s vulnerability scanner reads it to answer “does this release contain the affected version?” without rebuilding the artifact, and some buyers and regulations ask for one: the European Union’s Cyber Resilience Act requires it of manufacturers whose products are sold there from 11 December 2027. Generate it in the job that builds the release, from the tag’s commit and with the build’s own settings, never by hand; list what the artifact ships, so leave out development-only dependencies; and publish it beside the artifact. CycloneDX and SPDX are the common formats; scanners and the attestation below read either as JSON.

A generator reads a dependency manifest, which is not always the artifact. Where a build step bundles dependencies into the artifact (a JavaScript bundler such as esbuild, for one), the bundle contains what its imports reached, whatever the manifest calls them: a development dependency that is imported ships inside it, and a production dependency nothing imports does not. List such an artifact from what the bundler embedded, for example from its metafile, or run a scanner over the built artifact, rather than from the dependency tree alone.

EcosystemGeneratorWhat it reads
npmnpm sbom --sbom-format cyclonedx --omit dev (or spdx)the installed dependency tree, classified by package.json; --package-lock-only reads the lockfile alone, which leaves out details only the installed packages hold. It describes an artifact that ships that tree as installed, not a bundle
Pythoncyclonedx-py poetry --no-dev -o <file>; pipenv and requirements for those filesthe Poetry or Pipenv manifest and lockfile, or a requirements file; cyclonedx-py environment reads an installed environment instead
Rustcargo cyclonedx --format json, with the release build’s target and features (--target, --features, --all-features, --no-default-features)the workspace’s dependency graph, for the host target and default features unless told otherwise, so a cross-compiled or feature-enabled release needs the same flags as its build; it writes one SBOM beside each Cargo.toml
Any, including a container imagesyft <directory-or-image> -o cyclonedx-json=<file> (or spdx-json=)the packages it finds in a directory or an image, across ecosystems, so it also lists what an image’s base layers add
A GitHub repositorythe dependency graph’s SBOM export, SPDX, through the generate-report and fetch-report endpointsthe repository’s current dependency graph, not a tag’s commit and not one built artifact: the endpoints take no tag or ref, so this is an inventory of the repository, not a release’s SBOM. It suits a repository that releases no package

On GitHub Actions, actions/attest signs the SBOM as an attestation bound to the artifact’s digest, with sbom-path naming the SBOM (JSON, at most 16 megabytes) and permissions: id-token: write, attestations: write, artifact-metadata: write. The artifact is named by kind:

  • A file (a package archive, a binary): subject-path is its path.
  • A container image: subject-name is the image’s fully qualified name without a tag (ghcr.io/<owner>/<image>), and subject-digest its manifest digest (sha256:…), the one a consumer pulls; push-to-registry: true stores the attestation in the registry beside the image as well. That push needs what pushing the image needs: the job logs in to the registry (docker/login-action, for one) with an identity allowed to push, and for GitHub Container Registry with GITHUB_TOKEN that is packages: write beside the permissions above. An image saved to a tarball and given as subject-path attests the archive’s digest, which is not the digest a consumer verifies.

The action runs on public repositories; a private or internal repository needs GitHub Enterprise Cloud, and GitHub Enterprise Server does not support it. A repository outside those uses another attestation tool, such as Sigstore’s cosign attest.

A consumer checks the attestation with gh attestation verify, naming the SBOM’s predicate type (the address naming what an attestation asserts, here the SBOM’s format), since without one the command checks for build provenance instead: --predicate-type https://cyclonedx.org/bom for CycloneDX, --predicate-type https://spdx.dev/Document/v2.3 for SPDX 2.3. The attestation proves which workflow produced the SBOM for which artifact; publishing the SBOM file with the release as well lets a scanner without GitHub’s tooling read it.

Release channels

A channel is a name a consumer installs from that the release tooling moves from one released version to another.

EcosystemA channel isPromotion and rollback
npma dist-tag (latest, next, or one of the project’s own)npm dist-tag add <package>@<version> <tag> points the tag at another published version, earlier or later
A plugin installed from a Git repositorya branch of generated commits, each holding the plugin as installed, built from a version’s taga new commit on the branch, carrying a later version’s tree or an earlier one’s; Jig’s plugin does this (plugin/README.md)

Packages to try before the merge

A consumer can try a change before it merges only if they can install it. A preview package is built from a pull request’s commit and installed from an address that names the pull request or the commit. It is not a release: it has no changelog entry, no version the release step chose and no tag, and it moves none of the release channels (a preview in the registry gets a dist-tag of its own that no release uses), so the version is still chosen once, after the merge. The job that builds it runs the pull request’s own code, so it holds none of the release’s credentials.

EcosystemA preview package
npmpkg.pr.new: its GitHub App installed on the repository, and pkg-pr-new publish run once in the pull request’s workflow. It serves the package from an address of its own (npm i https://pkg.pr.new/<owner>/<repo>/<package>@<commit>, or @<pull-request>) and publishes nothing to npm
npm, in the registrya prerelease version under a dist-tag of its own that no release uses, never latest. npm lets a package have several trusted publishers, but each one can publish any version of that package under any dist-tag, so a preview publisher on the release’s own package could publish a stable version that consumers’ version ranges select. Previews therefore go under a package of their own (<package>-preview, say), which no consumer depends on unless they ask for it, with its own trusted publisher, apart from the release’s, which only an environment the release tags may use can reach: a preview workflow file and a deployment environment only the default branch may use. That workflow starts on workflow_run when the pull request’s workflow completes, which runs it on the default branch whatever the pull request’s branch. A consumer installs a preview under the package’s own name with an alias (npm i <package>@npm:<package>-preview@<version>). The pull request’s job writes the preview package’s name and the version (Changesets’ snapshot releases: changeset version --snapshot <tag>), builds, and packs it into a tarball with npm pack, which it keeps as an artifact. Publishing to npm needs the registry’s permission, which no job that runs the pull request’s code may hold, and publishing a package directory (npm publish, changeset publish) runs that package’s own scripts (prepublishOnly, prepare, postpublish). So a separate job receives the tarball and publishes it as it is, running none of them: npm publish <tarball> --tag <tag> --registry <registry> --access <access> --ignore-scripts, from the preview workflow, under the preview package’s trusted publisher, which allows npm publish. That job trusts nothing the pull request produced, its data included: npm reads the package.json inside the tarball for more than the name and version. A stable version there would satisfy consumers’ version ranges whatever dist-tag it carries, a top-level tag there replaces the one passed with --tag (so it can move latest), and its publishConfig can send the package to another registry (registry, or a scope’s own @<scope>:registry) or make a private package public (access). So before publishing, the job reads that package.json and refuses unless the name is the preview package’s, the version is a prerelease that names the pull request’s commit (Changesets’ prereleaseTemplate can put {commit} in it), and it has no top-level tag and no publishConfig at all. Every setting that decides where and how the package is published (the dist-tag, the registry, which is an https:// address, and the access) comes from the job’s own configuration and is passed as a flag, never from the pull request. npm allows unpublishing only within limits, so these versions stay in the registry; prefer an address outside it
PythonPyPI’s test index, separate from PyPI itself: install the package’s dependencies from PyPI first, then the preview alone (pip install --index-url https://test.pypi.org/simple/ --no-deps <package>), since the test index does not hold them; or the wheel kept as an artifact of the pull request’s CI run
Rusta git dependency on the pull request’s commit (<crate> = { git = "<url>", rev = "<commit>" })
Gogo get <module>@<commit>, which resolves the commit to a pseudo-version

Source: modules/M16-releases-versions/mappings.md

4 · Statuswhat is built, and what is left out on purpose

Runnable form

Jig’s plugin carries the changelog skill, which implements this module for a repository with one released artifact: agents write each change’s note and judge its release, a branch check holds pull requests to the repository’s changelog: configuration, a release step writes the notes into a Keep a Changelog or Common Changelog file and sets the version, a whole-changelog check (/jig:changelog lint) holds the whole file to the rules of its format alone, each rule cited from that format’s specification, and a GitHub Action with a workflow template runs the check, the release (pushed, or as a release pull request) and the tag after verification.

What the module provides

PieceWhat it is
changelog skillThe runnable form: the change note’s procedure, check.ts, lint.ts (the whole changelog against its format’s rules), release.ts, status.ts, tag.ts, convert.ts, release-access.ts, the GitHub Action and the workflow template, and /jig:changelog setup
mappings.mdRelease tools per ecosystem, tools for several artifacts in one repository, tagging after verification, checks of what a package holds, the release identity per CI provider, publishing without a stored token, listing what a release contains, release channels and packages to try before the merge
maturity criteriaThe criteria the audit skill scores

Left out by design

  • Publishing. Uploading to a package registry, creating a GitHub Release, announcing a version: each is a repository’s own pipeline, started by the tag this module makes. The module asks only that a release’s publishing start from the tag. A preview package built from a pull request is not a release: a separate job publishes it, from the pull request’s commit, and it moves none of the release channels. mappings.md shows how a registry lets the release’s job publish without a stored token, and what to check in the package before it does.
  • Pre-release and calendar versions. The practice holds for them, but the skill writes plain major.minor.patch versions; a repository that needs others uses a tool from mappings.md that writes them.
  • Writing entries from commit messages. A commit subject is written for a reviewer of the diff, an entry for a consumer of the artifact. Tools that generate the changelog from commits are compared in mappings.md.
  • Deploying. A service’s path from merge to production is M10’s.

Future

  • Several artifacts in the changelog skill. The skill keeps one changelog and one version per repository; a repository that releases several artifacts uses a tool from mappings.md until it keeps one per artifact (roadmap).
  • Release channels. An artifact released several times a day can offer release channels: one that takes every tagged version, and one a version reaches by promotion after a soak with its checks green and no open regression, with a rollback that withdraws a bad one. Jig’s plugin runs it for a plugin installed from a Git repository (plugin/README.md); how other ecosystems carry it is in mappings.md. It becomes a core piece, with an audit criterion, once a second repository has run it.
  • A bill of materials for each release. A released artifact can carry a software bill of materials generated from the tag’s commit, which a consumer’s scanner reads and some regulations require; mappings.md names the generators per ecosystem and how to attest one. It becomes a core piece, with an audit criterion, once a repository has run it in its release.
  • Other CI providers. The skill’s check and release step run on any provider; its workflow template, its tag job and its access check are GitHub’s until a repository needs another.