Skip to content

Release process

A release is cut by merging a release-please PR, finalizing the changelog and publishing the resulting draft release. This page is the maintainer runbook for that flow and for the signing and verification steps that follow.

Pushes to master drive a release-please workflow that maintains one release PR. Merging that PR creates a draft release; publishing the draft creates the tag and triggers the full build, signing and publication pipeline. The automation flow below shows each step.

Version scheme

Releases follow ordinary SemVer tags, vX.Y.Z:

  • X changes for incompatible public-surface changes.
  • Y changes for backward-compatible features.
  • Z changes for backward-compatible fixes.

While the version is 0.x, the public surfaces are not yet frozen: a breaking change raises the minor version, and a feature raises the minor version too (release-please's bump-minor-pre-major). 1.0.0 is the first stable release, the point from which the rules above hold in full.

The fork's first release is v0.1.0 (ADR-3292). The candidates v1.0.0-rc.1 to v1.0.0-rc.3 were published before the release line was restarted; their tags stay, and their releases are marked withdrawn. The first stable release, v1.0.0, will again be preceded by candidates, starting at v1.0.0-rc.4; the 0.x minor releases have none.

Netflix's tags (v1.0.2 to v3.2.1) are not tags of this repository: the 26 that had been copied into it were deleted on 2026-10-05 (the record, ADR-1805). A vX.Y.Z tag you see in a clone that is not a fork release came from git fetch upstream with tags. The 3.2.x baseline that used to be in the manifest was a source-version alignment with Netflix's SONAME, not a fork release.

release-please uses versioning: default with prerelease: false, bump-minor-pre-major: true and bump-patch-for-minor-pre-major: false (release-please-config.json). .release-please-manifest.json still holds the last candidate, 1.0.0-rc.3; the one-shot release-as: "0.1.0" moves the next release off the candidate line in one step, and the cut of 0.1.0 removes it (see Cutting a release from fragments). ADR-3292 amends ADR-1151 (first release), ADR-1201 and ADR-1348 (candidates); ADR-1127 keeps the single SemVer stream.

Example progression:

v0.1.0        # first VMAFx release
v0.1.1        # fix release
v0.2.0        # feature or breaking release while 0.x
v1.0.0-rc.4   # first candidate of the first stable release
v1.0.0        # first stable release
v1.1.0        # backward-compatible feature release
v2.0.0        # incompatible public-surface release

Release map

ADR-3292 replaces the candidate map of ADR-1341, ADR-1421, ADR-1490, ADR-1868, ADR-1880, ADR-2001 and ADR-2342 with plain 0.x minor releases. The work those records assigned to each candidate keeps its order and its rules; only the version that ships it changed. Each version is a forge milestone, and the user-facing version of this map is the roadmap.

Version Content Former label
0.1.0 First release: the new VMAFx C API with its generated surfaces and the libvmaf compatibility library, device-frame import with fences, the VMAFx-named FFmpeg filters, provenance on every score, host input formats, the outside-hardware tester path, packaging and documentation RC4 (#1723)
0.2.0 Foundations, capability tables and benchmarks: deduplication and libgpudispatch, the GPU and CPU capability tables with their drift checks and format envelopes, benchmarks, profiling and tuning, training readiness, observability, the remaining twin-exactness rows RC5-A, RC5-B, RC6, RC7, RC8, RC3 carry-over
0.3.0 Rust core P1a new
0.4.0 Encoder feedback, embedding and platforms 1.2
0.5.0 Rust core P1b new
0.6.0 Rust core P2 new
0.7.0 New metrics with exact twins 1.3, RC5-C
0.8.0 Metric A/B comparison, the best current mix and more training data 1.4
0.9.0 The next model generation, the one-shot real retrain 1.5, RC9 (#1246)
0.10.0 Integrations, live quality and the cloud-native platform: the OBS Studio plugin (#2239), #2148, #2147, #2144, #2146, #2159, no-reference mode in the plugins (#2413), the live P.1204 monitor (#2417), AI-generated video scoring (#2418), WebRTC, streaming outputs, libVLC and cookbook recipes; the cloud-native platform (#2431) and the work of RC5-D 1.1, RC5-D
0.11.0 Breaking changes only: the libvmaf.h compatibility library removed (ADR-1852 D7), the rest of #1254 2.0
1.0.0 First stable release: Rust core P3 and a frozen public interface; candidates from v1.0.0-rc.4 new

The candidates v1.0.0-rc.1 (release-blocking correctness and the tester report path), v1.0.0-rc.2 (stabilisation) and v1.0.0-rc.3 (twin exactness) were published under the earlier map and are withdrawn; what they proved stays recorded in their release notes and in the records above.

After 1.0.0

Version Content Former label
1.1.0 Rust core P4 and P5 1.2
1.2.0 The host C and C++ code removed 3.0
1.3.0 Open subjective studies 1.3

CPU capability evidence in detail

The CPU capability table of 0.2.0 (formerly RC7) is held to this evidence:

  • The instruction audit is per function, for x86 and aarch64.
  • Emulation covers Intel SDE CPU models and qemu for aarch64 NEON and SVE2 at more than one vector length.
  • Reports from real Xeon or Apple Silicon machines are extra evidence, not a requirement.

Rules for releases and candidates

Tags are immutable, candidates included. If a release finds a correctness defect, land the fix and rerun the affected evidence before the next release. Benchmark and tuning claims start with 0.2.0, and real training starts only in 0.9.0, after the 0.2.0 training-readiness evidence is accepted. Speed given up for exactness is recorded as a tuning row and recovered in 0.2.0 (GPU) or in the Rust SIMD phases (CPU), never traded back for a tolerance. Candidates exist only for 1.0.0; the final v1.0.0 follows accepted evidence of its last candidate.

Every report and acceptance record identifies:

  • the exact commit and the published artifact or image digest;
  • fixtures, host and device, drivers and runtimes, tool versions;
  • commands, exit codes and raw logs.

A green check or benchmark from a different head is not evidence for the release being evaluated.

Ordinary Renovate and version-update PRs are not frozen between releases. They merge under the same required checks, review, digest/pin policy and component-specific validation as any other change. Coordinated major SDK, toolchain and base-image updates keep their specialised validation. If one merges after evidence was collected, rerun the checks or measurements it can affect against the new exact head.

The VMAFx release stream advances independently of Netflix/vmaf. Upstream alignment remains recorded in sync commits and release notes, not encoded in the tag.

Product version vs. libvmaf ABI SONAME

These are two different numbers and only the first one moves at release time.

Number Owner Value today Moves when
Product version release-please 1.0.0-rc.3 (the manifest value); 0.1.0 at the first release Every release. Covers the vX.Y.Z tag, core/meson.build's project(version:), compat/python-vmaf, the three fork-local Python distributions (ai/, dev-llm/, mcp-server/vmaf-mcp/), and the Helm chart's appVersion. It does not reach libvmaf.pc — see ADR-1235.
ABI SONAME / interface version hand-maintained vmaf_soname_version = '3.0.0' at core/meson.build:38, shipping libvmaf.so.3 and advertised as libvmaf.pc's Version: Only on a C API change. No product release resets it.

libvmaf.so keeps its 3.x SONAME while the product is at 0.x, and libvmaf.pc advertises that same 3.x interface version rather than the product version. The coupling is deliberate and load-bearing:

  • unpatched upstream FFmpeg's configure requires libvmaf >= 2.0.0;
  • the fork's own ffmpeg-patches/ require libvmaf >= 3.0.0 for the SYCL and DNN entry points.

A .pc advertising the product version (0.1.0, or 1.0.0 later) satisfies neither. That is how the first release candidate failed the three FFmpeg lanes and Docker Image Build:

Package 'libvmaf' has version '1.0.0-rc.1', required version is '>= 2.0.0'

See ADR-1235.

Warning

Do not "align" the two numbers. The comments at core/meson.build:38 and at the pkg_mod.generate() call in core/src/meson.build say so at the source.

Coordinated version markers

release-please-config.json's extra-files array is the single list of coordinated version markers, and scripts/release/verify-release-version.sh derives its check list from that same array — add a release surface there and the preflight covers it automatically. Each listed file must carry exactly one x-release-please-version marker.

Deliberately not coordinated, and deliberately unannotated: deploy/helm/vmafx/Chart.yaml's version: (chart packaging, nothing publishes it), the three Cargo.toml crate versions, the root pyproject.toml tooling aggregate, and the ARG VMAFX_VERSION=dev defaults in docker/Dockerfile.* (the publish workflows always pass the real value as a build argument). Each carries an inline comment saying so.

Automation flow

The flow in five steps (the diagram at the top of this page shows it graphically):

  1. release-please watches master. On each push it inspects Conventional Commit headers (feat:, fix:, docs:, chore:, ci:, …) to determine whether a release is warranted. If so, it opens or updates one release PR that bumps the root manifest and every coordinated version marker.
  2. Finalize the generated release PR. After all other release changes are merged, run make docs-render (the rendered changelog, ADR index and rebase notes are written when pull requests land, so this is normally a no-op) and the fragment rollover with the PR's exact version and UTC date. Commit that result as the release PR's final change. Any later fragment invalidates the cut and must be rolled again.
  3. Merging the release PR creates a draft GitHub release. It does not yet create the public release tag.
  4. An authenticated operator publishes the draft. Publication creates the vX.Y.Z tag and emits the release.published event. This explicit gate is deliberate: publication is the irreversible step, and a human is the only actor allowed to take it.
  5. The publication workflows check out the published release's immutable tag rather than the default branch. The Docker workflows derive their image tags from the same github.event.release.tag_name; the other release jobs build libvmaf binaries and Python wheels. Every workflow signs and attests its outputs, runs its own smoke checks, and publishes only after those gates pass.
A PR passes its gates and the merge train, lands on master, and release-please and an operator turn master into a release.
From a pull request to a published release
Text description
  • Landing: Pull request (Conventional Commit title), PR gates (deliverables, state.md, audit), Merge train (make lint, make test), master (squashed commit).
  • Release: release-please (release PR, version bump), Draft release (merged release PR), Operator publishes (creates the vX.Y.Z tag), Publication workflows (build, sign, attest, publish).
  • Pull request → PR gates → Merge train → master (fast-forward) → release-please (push) → Draft release (merge) → Operator publishes → Publication workflows (release.published).
  • Scenario 1, Land: A pull request becomes one commit on master. The PR body carries the deliverables; the gates check it and the diff. The merge train restacks the PR, builds and runs the tests. It lands as one squashed commit, fast-forward.
  • Scenario 2, Release: master becomes a published release. release-please reads the commit titles and opens the release PR. Merging the release PR creates a draft release, no tag yet. An operator publishes the draft; that creates the tag. The workflows check out the tag, sign and publish.
  • Release candidates follow the phases in AGENTS.md section 11: RC1 to RC8, then v1.0.0.
  • Publishing the draft is the one irreversible step and is taken by a person.

Test-fixture prereleases (fixtures-* tags) hold data only and no build workflow publishes them, but Scorecard counts them among the last five releases. After publishing one, attest its asset:

gh workflow run fixture-release-provenance.yml -R vidiko/vmafx \
  -f tag=<tag> -f asset=<file> -f sha256=<full sha256>

The workflow refuses a tag outside fixtures-* and an asset whose sha256 differs.

What actually gates a release PR

A release PR's diff is .release-please-manifest.json plus the coordinated version markers. Such a PR runs in the release-light CI tier (ADR-2169), which owes only the tier's always names. Every owed name must report success on the head SHA (ADR-3293): a check that never reported, or that was skipped, fails the aggregator. The names the tier does not owe may be absent or skipped, and fail if they ran and failed.

.release-please-manifest.json and release-please-config.json are also members of the c_core selector in .github/ci-impact.json, so a release PR selects the C build and the Netflix golden gate.

Release-bot identity

release-please.yml authenticates as a GitHub App installation token, never as GITHUB_TOKEN and never as a personal access token.

Why

PRs and pushes made with secrets.GITHUB_TOKEN do not trigger further workflow runs. That is a GitHub loop-breaker, not a configuration mistake. It is why release PRs used to land as action_required with zero jobs: the sole required context could never report and the PR sat BLOCKED behind an admin bypass.

The first step, Mint the release-bot installation token (actions/create-github-app-token), runs on every event. Every later step in the job (both release-please invocations and both read-only gh api probes) uses its output steps.app-token.outputs.token directly. The job's own GITHUB_TOKEN keeps the workflow default contents: read and holds no write scope at all.

One identity, no fallback

Credential Behaviour
RELEASE_BOT_APP_ID + RELEASE_BOT_PRIVATE_KEY Minted per run, short-lived, scoped to this repository, masked by the action.
Missing or broken App secrets The mint step fails and the run is red, on push and on workflow_dispatch alike.

The earlier personal access token fallback (RELEASE_BOT_TOKEN) and the idle-green run without credentials (ADR-1171) are gone (ADR-1151 follow-up note of 2026-10-19). A fallback token is broader-scoped and longer-lived than an App installation token, and praetor's release-token audit refuses a release-please token that is anything but the App step's output. A red run is the signal that the App secrets need repair, which is a maintainer act.

The same App token creates the tag and release of the macOS and Windows tester bundles (macos-tester-bundle.yml, windows-tester-bundle.yml): the job token cannot create the tag of a commit that differs from master's tree in .github/workflows/. Only that one step uses it (tester maintainer notes).

One-time App setup

Warning

One-time maintainer setup. Without the credentials every run fails at the mint step; the workflow never falls back to GITHUB_TOKEN, because that would recreate an unmergeable release PR.

scripts/release/check-release-bot-secrets.sh checks the two secret names locally and is part of the /prep-release dry run, so a release cannot be attempted without the identity. To set it up:

  1. Create a GitHub App owned by the VMAFx org (name it e.g. vmafx-release-bot). Repository permissions: Contents: read & write and Pull requests: read & write. Nothing else.
  2. Install it on vidiko/vmafx only.
  3. Generate a private key and add two repository secrets:
  4. RELEASE_BOT_APP_ID — the App's numeric ID.
  5. RELEASE_BOT_PRIVATE_KEY — the full PEM, including the -----BEGIN…/-----END… lines.

The installation token is minted per run and revoked when the job ends; there is no long-lived credential and nothing to rotate on a schedule. The workflows accept no personal access token: one would tie the release stream to one human's account and expire (ADR-3356).

Process gates on the release PR

Six process gates in rule-enforcement.yml are required contexts (see the branch-protection inventory below). Four of them encode authoring discipline and cannot be satisfied by a PR nobody writes by hand:

Gate Why a release PR cannot pass it unaided
Deliverables Checklist release-please's body is the rendered changelog: no six-item checklist, no opt-out sentinel.
Doc-Substance Gate the coordinated version markers include mcp-server/vmaf-mcp/pyproject.toml, which the gate path-maps to a mandatory docs/mcp/ edit.
docs/state.md Gate the changelog body can carry a closes #N line inherited from a commit subject, which trips the bug-shaped heuristic.
FFmpeg-Patches Surface Sync diff-driven, and a version-marker bump is not a patch-stack change.

Each of those four jobs therefore runs scripts/ci/release-pr-exempt.sh first and skips its work step when the predicate says the PR is machine-generated. The predicate requires both a release-please-- head ref and a bot author, so pushing a branch named release-please--anything does not disarm a required gate. The jobs still report — they report green, not absent, which keeps them distinguishable from a path-filter skip.

The remaining two stay armed on release PRs on purpose:

  • Release Script Contract proves the cut ran and that the one-shot release-as / bootstrap-sha fields are gone. It also runs scripts/ci/tests/test-release-pr-exempt.sh, so the predicate that disarms the other four is itself proven on every PR, release PR included.
  • ADR Collision Guard is diff-driven and trivially green when no ADR is added.

To dry-run the predicate locally:

HEAD_REF=release-please--branches--master--components--vmafx \
  PR_AUTHOR='vmafx-release-bot[bot]' PR_AUTHOR_TYPE=Bot \
  bash scripts/ci/release-pr-exempt.sh

Publication environments

Before publication, repository setup must provide two protected environments:

  • release-publish for GHCR writes, release-blob signing, build-provenance attestations, and GitHub Release attachment;
  • pypi-publish for the PyPI Trusted Publisher identities of vmaf-mcp and vmafx (the wheels job vmafx-publish-pypi). The wheels are built by the reusable .github/workflows/vmafx-wheels.yml, which supply-chain.yml calls as vmafx-wheels-build; the upload stays in supply-chain.yml, so both Trusted Publishers name that workflow. Before uploading, scripts/release/pypi-publish-state.sh compares the built files with what PyPI already holds for the version and stops on any file or SHA-256 that differs (tests: scripts/release/tests/test-pypi-publish-state.sh).

Each must accept selected tag refs matching v* and require the release reviewer.

Warning

GitHub auto-creates a referenced environment that does not exist, with an empty rule set. A write-bearing job naming a missing environment therefore runs straight through with no approval gate, and scripts/release/tests/test-publication-environment-binding.sh only greps the YAML, so it cannot see that server-side drift.

supply-chain.yml's validate-release queries both environments over the API and fails closed unless each carries a required_reviewers protection rule. That preflight is read-only and runs before any job holds write or OIDC scope.

The two build-provenance jobs (provenance for the native files, mcp-provenance for the vmaf-mcp distributions) hold OIDC and attestation write scope, so they run in release-publish as well, with contents: read. Each writes its attestation bundle as a workflow artifact; the protected attachment job is the sole job that uploads the two bundles to the GitHub Release (ADR-1356).

Native Linux release layout

Download the CLI and the whole libvmaf.so* and libvmafx.so* chains into one directory; the CLI finds both libraries next to itself. The native files attached by supply-chain.yml are currently Linux ELF artefacts.

Install layout check

Before packaging, check an already-built Linux shared-library Meson tree:

make install-layout-check INSTALL_LAYOUT_BUILD_DIR=build-cpu
# Equivalent standalone check:
python3 scripts/ci/check_install_layout.py --build build-cpu

The check installs into a disposable DESTDIR without rebuilding, verifies both library chains and SONAMEs against Meson's ABI versions, checks the include/vmafx/ and include/libvmaf/ headers and both pkg-config files, and requires libvmaf.pc to depend on libvmafx. It checks the engine's ELF version definitions and every generated vmafx_* symbol's version node; compatibility vmaf_* symbols remain unversioned by design. Finally, it compiles and runs one C version-query consumer per package with pkg-config and library paths directed into DESTDIR. A dependency the build found outside the default loader path (for example ONNX Runtime in a private prefix) is taken from the build library's own RUNPATH, because Meson strips that RUNPATH at install; the check fails if such a directory holds a libvmaf* library, so a stale SDK never stands in for the staged one. Requirements: Python 3.11+, Meson, GNU-compatible readelf, pkg-config, and a C compiler (CC, default cc). Missing tools, files, dependencies, or version nodes fail with exit 1.

--plant-unversioned supplies a negative control: it inspects the installed engine's version-query symbol as having no version node and must exit 1. It leaves the build untouched. Parser fixtures run in the tooling suite; enable the real install test with VMAF_BUILD_DIR=build-cpu python3 -m pytest scripts/ci/tests/test_check_install_layout.py. Without VMAF_BUILD_DIR, that integration test skips with an explicit reason.

Download

On arm64, download vmafx-linux-arm64.tar.gz and extract it into an empty directory with tar -xzf vmafx-linux-arm64.tar.gz; it preserves the CLI's executable bit. The individual files below are the x86-64 assets. Download libzimg.so.* too when present, since the engine resolves it beside itself.

Meson builds a three-name dynamic-library chain for each of the two libraries: libvmaf.so, its ABI SONAME such as libvmaf.so.3, and its ABI real name such as libvmaf.so.3.0.0; and the same for libvmafx (libvmafx.so, libvmafx.so.1, libvmafx.so.1.0.0). Since the library split (ADR-2094) the CLI and the compat libvmaf.so.3 both need libvmafx.so.1. GitHub artifact and release downloads do not preserve symlinks, so the workflow publishes all six names as regular-file assets, identical within each chain. Each name is hashed, inventoried in both native SBOMs, signed, and listed as a subject of the native build-provenance attestation.

Restore the raw CLI asset's executable bit after the download. The CLI's only RUNPATH entry is $ORIGIN, the directory the CLI itself sits in, so it loads libvmaf.so.3 and libvmafx.so.1 from there without LD_LIBRARY_PATH, from any working directory, as long as the files stay together:

mkdir vmafx-linux && cd vmafx-linux
gh release download v0.1.0 --repo vidiko/vmafx \
  --pattern vmaf --pattern 'libvmaf.so*' --pattern 'libvmafx.so*'
chmod +x vmaf
./vmaf --version
readelf -d vmaf | grep RUNPATH   # Library runpath: [$ORIGIN]

Note

The v1.0.0-rc.1 CLI predates this: it carries Meson's build-tree RUNPATH $ORIGIN/../src, which finds nothing next to the downloaded file. Run that release candidate as LD_LIBRARY_PATH="$PWD" ./vmaf --version.

Runtime requirements

Starting with 0.1.0, both Linux x86-64 and arm64 bundles require glibc 2.28 or newer, libstdc++ GLIBCXX 3.4.25 or newer, and CXXABI 1.3.11 or newer. They compile in the release-build stage of dev/Containerfile, using architecture-specific, digest-pinned manylinux_2_28 images based on AlmaLinux 8 with GCC 14. The pins, NATIVE_GLIBC_FLOOR, NATIVE_GLIBCXX_FLOOR and NATIVE_CXXABI_FLOOR live in build-config.env; container images retain their separate Debian 13 release track.

After staging, scripts/release/check_glibc_floor.py runs objdump -T on the CLI and every staged shared library, including libzimg when present. It compares GLIBC versions numerically against 2.28, GLIBCXX symbol versions against 3.4.25, and CXXABI versions against 1.3.11, and fails for a requirement above any floor, an unrecognised ABI requirement, an unreadable ELF or a failed objdump. The compiler's own runtime libraries must also resolve during the existing clean-environment bundle verification.

Architecture Release assets Consumer check
x86-64 individual vmaf, both library chains, optional libzimg.so.*, models and notices verify-native-artifacts on ubuntu-24.04
arm64 vmafx-linux-arm64.tar.gz, containing the same layout verify-native-artifacts-arm64 on ubuntu-24.04-arm, after extracting the published archive

Both builds also run the verifier inside their glibc 2.28 builder, and both consumer jobs start the CLI in the pinned RELEASE_RUNTIME_CC image. Ubuntu 22.04 / 24.04 and Debian 12 meet the glibc and libstdc++ floors. Check a host with ldd --version and this command:

libstdcxx="$(ldconfig -p | awk '$1 == "libstdc++.so.6" {print $NF; exit}')"
test -n "$libstdcxx"
strings "$libstdcxx" | grep -E 'GLIBCXX|CXXABI'

The withdrawn release candidates used a newer builder; these requirements apply to 0.1.0 and later.

The arm64 archive has its own Sigstore .bundle and is a subject of the native build-provenance attestation. The native vmafx.spdx.json and vmafx.cdx.json SBOMs include the archive and its extracted ELF files, with hash checks for both architectures before signing. Models, licence notices and container provenance are included inside the archive.

The bundles are CPU-only and built without the ONNX Runtime tiny-AI backend, so they need no GPU runtime or libonnxruntime.

How the layout is built

scripts/release/build-native-release-artifacts.sh sets the CLI's RUNPATH $ORIGIN on the staged copy with patchelf; the build tree keeps Meson's $ORIGIN/../src. The clean-environment release gate, scripts/release/verify-native-release-artifacts.sh, exercises the layout before signing and again after an artifact upload/download round trip, with no LD_LIBRARY_PATH. It requires the CLI's RUNPATH to be exactly $ORIGIN (no other entry and no DT_RPATH), its DT_NEEDED entry to resolve to the staged SONAME file, and vmaf --version to report the release version.

Windows vmaf.exe remains a CI build artifact, not a GitHub Release asset, and this workflow currently publishes no macOS native CLI or dylib. Use the production containers or build from source for those platforms until platform-specific release bundles are introduced.

Canonical build environment (ADR-1346)

Native builds retain the container-only publication and tag binding of ADR-1102 and ADR-1346. Issue 2437 replaces ADR-1354's Debian 13 native builder with the older manylinux floor.

Concern What happens
Where build-artifacts in .github/workflows/supply-chain.yml: ubuntu-26.04 for x86-64, ubuntu-26.04-arm for native arm64.
Builder scripts/ci/build-dev-container-stage.sh release-build selects the architecture's digest pin from build-config.env; callers cannot supply an arbitrary base.
Compile scripts/release/build-native-release-artifacts.sh runs inside that image with --pull never --network none, as the runner user, with the checkout bound to GITHUB_SHA.
Dependencies GCC 14 and patchelf are pinned by the base image; Meson and Ninja use requirements/locks/build.txt with hash verification; NASM is built from a SHA256-pinned upstream source release. AlmaLinux/EPEL packages resolve at image-build time.
Staging Both library SONAME chains are regular files; the CLI and engine get RUNPATH $ORIGIN; notices and a container provenance stamp accompany them.
Compatibility check_glibc_floor.py rejects newer symbols before uploading either architecture. The build also verifies the staged bundle inside the builder.
Packaging collect-artifacts retains x86-64 files and archives arm64, then hashes exactly the flat set of release assets used by signing and provenance.
Rehearsal The Dev Container PR job builds the same native stage and runs the same compilation script.
Recovery Recovery dispatch rebuilds both architectures from the selected immutable tag.

The unit tests are not compiled in the release build (-Denable_tests=false); other CI jobs build and run them. The complete downloaded bundles are checked before SBOM generation and publication, including a clean-environment CLI run and a start in the pinned release runtime. The stamp and arm64 archive are signed with Cosign and attached to the release.

Release recovery dispatches

Use the manual supply-chain and Docker dispatches only to recover an existing, published GitHub release (a final release or a candidate). To re-run a workflow unchanged, run it at the immutable tag ref and pass that same tag as its input:

tag=vX.Y.Z
gh workflow run supply-chain.yml --ref "$tag" -f tag="$tag"
gh workflow run docker-publish-production.yml --ref "$tag" -f tag="$tag"
gh workflow run docker-publish-operator-node.yml --ref "$tag" -f tag="$tag"

Where each workflow may run:

  • supply-chain.yml only runs at the tag: its release binaries and their signatures must come from the tag's own workflow.
  • The two image workflows can also be dispatched on master when the tag's build recipe itself was broken. That run builds the tag's source with master's docker/ recipe and signs as master (ADR-1347; see Recovering a release's container images).

Each preflight verifies the coordinated versions and the published GitHub release before any write or OIDC job starts. The protected deployment environments still apply on recovery runs; approval authorizes the write-bearing jobs only, after the read-only preflight has proved the tag/ref/release identity.

The moving latest container tag is resolved from the repository's newest published release rather than from the trigger event, so a recovery dispatch repoints latest when it is recovering the newest release and leaves it alone otherwise. (Before ADR-1151 the guard was github.event_name == 'release', so a recovery run left latest pointing at the broken original digest.)

ADR index regeneration policy

docs/adr/README.md is the rendered index of every ADR in the fork. Its "Index" table is generated from per-ADR fragments under docs/adr/_index_fragments/<slug>.md. The renderer is scripts/docs/concat-adr-index.sh (see ADR-0221 for why the pattern exists and ADR-2197 for who writes the render).

Rendered at landing, not in the pull request

A pull request does not carry CHANGELOG.md, docs/adr/README.md, docs/adr/by-tag/, docs/adr/titles.md, docs/research/titles.md or the fragment block of docs/rebase-notes.md (ADR-2197). scripts/ci/deliverables-check.sh refuses a pull request that edits one of them next to any other file. The outputs are written by one command, make docs-render:

  • per landing batch: after a batch lands, its render goes to master as its own render-only pull request, chore(docs): render generated changelog and ADR index (ADR-3295). The deliverables gate accepts a pull request whose diff touches only the rendered files when make docs-render-check passes on its head commit; it needs none of the other deliverables. When master moves under it, rebase the branch and run make docs-render again; never resolve a conflict in a rendered file by hand. It merges when the forge reports it CLEAN, like every other pull request. Nobody has to open it: the docs-render-pr workflow runs on every push to master and hourly as a fallback (since GitHub drops scheduled runs), calling scripts/ci/check_render_on_master.py --open-after-hours 6, and once a render has been owed on master for 6 hours scripts/ci/open-render-pr.sh renders the master tip on branch chore/docs-render-auto, opens the pull request as the release bot and arms auto-merge; when master moves it renders again, and when master's render is current it closes its own pull request (ADR-3373, ADR-3552). To run it at once: gh workflow run docs-render-pr.yml. To see what it would decide: python3 scripts/ci/check_render_on_master.py --open-after-hours 6;
  • at the release cut: see Cutting a release from fragments;
  • by hand: to see what the render will write, run it in a scratch worktree; it is safe to run at any time and writes nothing else.

make docs-render-check fails when a render is stale. The master push (the Docs job) runs scripts/ci/check_render_on_master.py (ADR-3295): a current render passes; otherwise the last commit that touched a rendered file must pass make docs-render-check on its own tree (a hand edit or a stale render is red at any age), and the render owed since the first landing after it warns for up to 24 hours and turns master red after that. An ordinary pull request does not run it: make docs-fragments-check checks the fragments themselves (changelog sections, ADR index rows, rebase-note headings) and the outputs that stay in the pull request (exact-twin table, AGENTS indexes, charts, vendored assets).

The render needs full history: the order of the index rows and of the rebase notes is the order the fragments landed on the branch, read by scripts/docs/fragment-order.py. A shallow clone fails loudly.

Adding a new ADR

When adding a new ADR (the common case) — write the fragment docs/adr/_index_fragments/<slug>.md as part of the same PR, and nothing else: do not touch README.md or _order.txt. _order.txt is the frozen list of the rows that existed when the index moved to fragments; every other fragment follows it in landing order.

Fixing drift

When fixing drift between fragments and README.md (this sweep's case) — run make docs-render-check to capture the full diff, then audit each row against the four drift classes:

  • Silent loss — fragment exists, README is missing the row. Regenerating with --write keeps the fragment's row.
  • Orphan content — README has a row, fragment does not exist. Backfill the fragment from the README row (the row content already reflects the ADR's accepted state). Do not delete the row without evidence the ADR is genuinely stale (Status: Withdrawn or Superseded in the ADR file body, plus the underlying decision being moot).
  • Reformatted — same content, different shape (column order, status spelling, slug case). Regenerate; the fragment is canonical.
  • Duplicate — the same row appears more than once in README.md, usually from a stale append-only edit. Regenerate; the fragment is emitted exactly once.

After every fragment-side fix, run --write once and verify the README diff matches the audit's expected shape (rows preserved, duplicates collapsed, missing rows restored). Reviewers can re-run --check against the rebuilt branch and expect a clean exit.

Renumbered slugs. When the dedup sweep referenced in the script's header comment renumbers an ADR (e.g. 0270-saliency-… → 0286-saliency-…), the fragment must be renamed to match the new slug — not duplicated. A rename of a fragment listed in the frozen _order.txt changes that entry too; a rename of any other fragment moves its landing position, so rename in the commit that adds it. The fragment body's [ADR-NNNN](NNNN-slug.md) link must match the renumbered slug; mismatches silently render rows that point at non-existent ADR files. The fragment-vs-ADR-file slug audit is one line:

for f in docs/adr/_index_fragments/[0-9]*.md; do
    base=$(basename "$f" .md)
    [[ -f "docs/adr/$base.md" ]] || echo "STALE FRAGMENT: $f"
done

Signing

All release artefacts are signed via Sigstore keyless using the repository's GitHub OIDC identity. No long-lived signing keys live in the repo or in CI secrets.

What is signed

  • Release blobs (libvmaf.so*, libvmafx.so*, vmaf, models.tar.gz, container-build-provenance.txt, THIRD_PARTY_NOTICES.txt, licenses.tar.gz, optional u2netp_mirror.{onnx,pth}): cosign sign-blob bundles attached to the GitHub Release, plus one GitHub build-provenance attestation (actions/attest-build-provenance) that lists every file as a subject. The attestation is an in-toto statement with the SLSA v1 build-provenance predicate, signed through Sigstore; it is stored with the repository's attestations and attached as vmafx-build-provenance.sigstore.json. SPDX + CycloneDX SBOM attached; the SPDX SBOM is also attested on the same subjects with actions/attest (gh attestation verify <file> --repo vidiko/vmafx --predicate-type https://spdx.dev/Document/v2.3). See ADR-1356.
  • Licences of the release blobs (ADR-1513): build-native-release-artifacts.sh writes THIRD_PARTY_NOTICES.txt (every component, licence and copyright line of libvmaf and vmaf, computed from the SPDX headers of the files the build compiled) and licenses.tar.gz (the same file with every licence text), and models.tar.gz carries its own licenses/ directory for the models. Both are written and checked by tools/rc1-tester/image/licensing.py (artifact kinds release-native, release-models); the build fails on a file without a recorded licence. Both tarballs are gzip -9n (ADR-1591); the container layers are zstd at BuildKit's strongest level and need Docker Engine 23.0 or later to pull (ADR-1594, table in Artifact publishing policy).
  • vmaf-mcp Python package (wheel + sdist): cosign sign-blob bundles, a GitHub build-provenance attestation attached as vmaf-mcp-provenance.sigstore.json, an SPDX SBOM attestation on the wheel and sdist, and PEP 740 attestations stored alongside the PyPI artefact (Trusted Publishing, no token). See ADR-0166.
  • Production container images (ghcr.io/vidiko/vmafx:<tag> and the -cuda13 / -rocm10 / -oneapi2026 (also tagged -oneapi2025) / -server variants): cosign keyless signature plus a GitHub-native build-provenance attestation (actions/attest-build-provenance). See ADR-0902.
  • Go service images (ghcr.io/vidiko/vmafx-server:<tag>, ghcr.io/vidiko/vmafx-controller:<tag> (since ADR-1589), ghcr.io/vidiko/vmafx-operator:<tag>, and ghcr.io/vidiko/vmafx-node:<tag>): the same cosign signature, CycloneDX SBOM, and GitHub-native build provenance, emitted by docker-publish-operator-node.yml. Each is built per architecture on a native runner and published as one multi-arch index, which carries the signature, SBOM and provenance (ADR-1349).

Consumer verification recipes

The OIDC identity is the workflow path inside the repo. The release blobs and MCP wheel come from supply-chain.yml; the container images come from docker-publish-production.yml.

# The release tag to verify. v1.0.0-rc.1 and v1.0.0-rc.2 use the
# slsa-verifier recipe further down.
tag=v0.1.0

# Release blob. Every vmaf/libvmaf.so*/libvmafx.so* asset has a matching FILE.bundle.
cosign verify-blob --bundle vmaf.bundle vmaf \
  --certificate-identity \
    "https://github.com/vidiko/vmafx/.github/workflows/supply-chain.yml@refs/tags/${tag}" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

# Release blob, build provenance (ADR-1356). gh fetches the attestation from
# GitHub. Works for every native asset; the vmaf-mcp wheel and sdist from the
# GitHub Release verify the same way.
gh attestation verify vmaf --repo vidiko/vmafx \
  --signer-workflow vidiko/vmafx/.github/workflows/supply-chain.yml \
  --source-ref "refs/tags/${tag}"

# The same check against the attached bundle, without the attestations API.
# Fetch the Sigstore trusted root once while online; after that no network
# access is needed.
gh attestation trusted-root > trusted_root.jsonl
gh attestation verify vmaf --repo vidiko/vmafx \
  --bundle vmafx-build-provenance.sigstore.json \
  --custom-trusted-root trusted_root.jsonl \
  --signer-workflow vidiko/vmafx/.github/workflows/supply-chain.yml \
  --source-ref "refs/tags/${tag}"

# vmaf-mcp wheel on PyPI. The PyPI integrity API supplies the PEP 740
# provenance; pypi-attestations binds it to the expected source repository.
pypi-attestations verify pypi \
  --repository https://github.com/vidiko/vmafx \
  pypi:vmaf_mcp-0.1.0-py3-none-any.whl

# Container image, cosign route. Replace DIGEST with the actual sha256 digest.
cosign verify ghcr.io/vidiko/vmafx@sha256:DIGEST \
  --certificate-identity \
    "https://github.com/vidiko/vmafx/.github/workflows/docker-publish-production.yml@refs/tags/${tag}" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

# Container image, GitHub-native attestation route (added by ADR-0902).
gh attestation verify oci://ghcr.io/vidiko/vmafx@sha256:DIGEST --repo vidiko/vmafx

# Go server/operator/node images use their own workflow identity.
cosign verify ghcr.io/vidiko/vmafx-node@sha256:DIGEST \
  --certificate-identity \
    "https://github.com/vidiko/vmafx/.github/workflows/docker-publish-operator-node.yml@refs/tags/${tag}" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

supply-chain.yml runs the provenance recipe above against the attached bundle for every subject before the bundle can reach the release, so a release whose provenance does not verify is never published.

Build provenance on release assets

Every workflow that creates a GitHub release or publishes release assets attaches build-provenance bundles as *.intoto.jsonl files (ADR-3316). This satisfies the OpenSSF Scorecard Signed-Releases check requirement (scorecard v5.6.0), which scores a release 10 when a release asset name ends in .intoto.jsonl (compared to 8 for cryptographic signature bundles alone).

The .intoto.jsonl asset contains the normalized single-line in-toto SLSA build-provenance attestation statement (jq --compact-output . "$BUNDLE" > *.intoto.jsonl).

The following releases carry .intoto.jsonl provenance assets:

  • Product releases (.github/workflows/supply-chain.yml):
  • vmafx-build-provenance.intoto.jsonl for native binaries (vmaf, libvmaf.so, libvmafx.so), model archives, container provenance statement, and licence archives.
  • vmaf-mcp-provenance.intoto.jsonl for the MCP server Python wheel and source distribution.
  • macOS tester prereleases (.github/workflows/macos-tester-bundle.yml):
  • vmafx-tester-macos-provenance.intoto.jsonl for the macOS Apple silicon tester tarballs.
  • Windows tester prereleases (.github/workflows/windows-tester-bundle.yml):
  • vmafx-tester-windows-provenance.intoto.jsonl for the Windows x64 and Arm64 zip bundles.

Existing Sigstore bundles (*.sigstore.json) remain attached to every release and continue to be verified by the consumer recipes. The .intoto.jsonl assets supplement the Sigstore bundles rather than replacing them.

Consumer verification of .intoto.jsonl provenance

Consumers verify any downloaded release asset against its .intoto.jsonl bundle using the GitHub CLI (gh):

gh attestation verify <asset> \
  --bundle <provenance>.intoto.jsonl \
  --repo vidiko/vmafx

For example, to verify the vmaf release binary against vmafx-build-provenance.intoto.jsonl:

gh attestation verify vmaf \
  --bundle vmafx-build-provenance.intoto.jsonl \
  --repo vidiko/vmafx

v1.0.0-rc.1 and v1.0.0-rc.2 predate ADR-1356. They carry slsa-github-generator provenance as vmafx-build-provenance.intoto.jsonl and vmaf-mcp-provenance.intoto.jsonl instead of the .sigstore.json bundles and have no GitHub attestation. Verify those with slsa-verifier:

slsa-verifier verify-artifact vmaf \
  --provenance-path vmafx-build-provenance.intoto.jsonl \
  --source-uri github.com/VMAFx/vmafx --source-tag v1.0.0-rc.2

An image rebuilt by a recovery run was signed by the workflow on master, not at the tag, so its identity ends in @refs/heads/master. Such an image carries the label io.vmafx.build-recipe=<master commit>; every v1.0.0-rc.1 image was built this way. Check the label, then verify with the master identity:

docker buildx imagetools inspect ghcr.io/vmafx/vmafx:v1.0.0-rc.1 \
  --format '{{json .Image}}' | jq -r '.. | .Labels? // empty | ."io.vmafx.build-recipe"'
cosign verify ghcr.io/vmafx/vmafx@sha256:DIGEST \
  --certificate-identity \
    "https://github.com/VMAFx/vmafx/.github/workflows/docker-publish-production.yml@refs/heads/master" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

# vmafx-server, vmafx-operator and vmafx-node come from the other workflow.
cosign verify ghcr.io/vmafx/vmafx-node@sha256:DIGEST \
  --certificate-identity \
    "https://github.com/VMAFx/vmafx/.github/workflows/docker-publish-operator-node.yml@refs/heads/master" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

For a recovered image the tag identities above fail with no matching CertificateIdentity found, and so does gh attestation verify pinned to the tag with --source-ref refs/tags/<tag> or --source-digest <tag commit>. The GitHub build-provenance attestation records the run that built the image: refs/heads/master and the recipe commit. The built source is the tag's commit, which a recovery run also writes into org.opencontainers.image.revision. The v1.0.0-rc.1 images were recovered before that label was corrected, so theirs names the recipe commit a919f3596 instead of the tag's ce00cf245.

Post-push smoke jobs

The post-push smoke jobs in both Docker workflows run the matching cosign verification recipe before pulling an image, with the identity of the run that signed it (@${GITHUB_REF}: the tag, or master for a recovery run). After that:

  • the production workflow executes the CPU CLI and the Python 3.14 server entrypoints;
  • the Go-service workflow starts the Go scoring server and probes /healthz plus /readyz;
  • it also checks the operator version and executes vmaf --version plus ffmpeg -version from the node image;
  • for ghcr.io/vidiko/vmafx-node:<tag>-sycl, smoke-published-image.sh with kind node-sycl refuses an image whose Config.Env lacks the exact VMAFX_BACKEND=sycl entry (missing or another value), a wrong entrypoint, a mismatched --version or a broken FUSE mount, and prints the GPU skip reason instead of passing SYCL scoring silently.

A signature or runtime-linkage gap fails the release rather than silently shipping a broken image.

CHANGELOG.md fragment workflow (ADR-0221)

The "Unreleased" block of CHANGELOG.md is rendered from per-PR fragment files under changelog.d/<section>/*.md by scripts/release/concat-changelog-fragments.sh. Sections follow Keep-a-Changelog order: added → changed → deprecated → removed → fixed → security. The pre-fragment archive lives verbatim in changelog.d/_pre_fragment_legacy.md and is emitted before the section fragments so existing release-train history is preserved.

When to add a fragment vs edit CHANGELOG.md directly

  • Always add a fragment, never edit CHANGELOG.md directly. Drop a single Markdown bullet under changelog.d/<section>/<topic>.md. The fragment is the source of truth; the rendered CHANGELOG.md is a build artefact that a pull request does not carry (ADR-2197).
  • Filename convention: lowercase kebab-case, optionally prefixed with the task ID (T7-39-foo.md) or ADR number (adr-0312-deferral-retired.md) for implicit lexical ordering within the section.
  • One fragment per PR. Multi-surface PRs may ship multiple fragments, one per user-discoverable surface, each in the appropriate section.

When to regenerate (--write)

make docs-render writes the changelog with the other rendered outputs: it runs once per landing batch for the render-only pull request (ADR-3295) and at the release cut. You need it by hand only to preview a render, or to reconcile a skew:

  • make docs-render-check fails on a stale render; the master push runs it through scripts/ci/check_render_on_master.py, which allows an owed render for up to 24 hours.
  • Pre-existing skew (see the 2026-05-08 sweep) is reconciled by a render-only pull request, not by a feature branch: a pull request that carries a render next to any other file is refused.

Never edit the rendered "Unreleased" block by hand to add new entries — those inline edits will be silently overwritten by the next regen.

Drift classes and resolution policy

Three drift classes can develop between fragments and the rendered block:

Class Symptom Resolution
Silent loss Fragment exists, no matching row in CHANGELOG.md. Regenerate. The fragment is canonical.
Orphan content Row in CHANGELOG.md, no matching fragment. Backfill a fragment if the content is still relevant; delete the row otherwise. Inspect each case manually — never bulk-delete.
Duplicate Same entry appears twice (often once from legacy archive, once from a fragment, or once inline + once from a fragment). Regenerate. The script renders each fragment exactly once.

--write is conservative: it only rewrites the ## [Unreleased] block. Released sections below are untouched.

Cutting a release from fragments

Release-please has skip-changelog: true; it never edits CHANGELOG.md. The cut is two commits on the generated release PR, made after it contains the final manifest and version-marker updates.

  1. Label the release PR autorelease: cut so release-please leaves the branch alone (see Freezing the release PR while you cut it).
  2. Render the final notes:

    make docs-render
    git commit -am 'docs(release): render final 0.1.0 notes'  # skip if nothing changed
    
  3. Roll the fragments over into the versioned section. Replace the example version and UTC date for other releases:

    scripts/release/rollover-changelog-fragments.sh \
      --version 0.1.0 --date YYYY-MM-DD
    git add CHANGELOG.md changelog.d release-please-config.json docs/changelog-archive
    git commit -m 'chore(release): cut 0.1.0 changelog'
    
  4. Push both commits, merge the release PR and publish the draft release.

The rollover requires:

  • a clean tree;
  • exact agreement between the root manifest and every coordinated marker;
  • zero renderer drift;
  • a unique target heading;
  • a non-empty active source set.

It then removes the consumed fragments and legacy source, leaving their exact content in the versioned changelog section and a SHA-256 receipt under changelog.d/releases/. The removals are recoverable from Git history. A second identical invocation is a no-op.

A long body goes to docs/changelog-archive/X.Y.Z.md (see --archive-over). The first release's archive holds the whole fragment history and is larger than the 1 MB check-added-large-files limit, so top-level Markdown files in that directory are exempt from it (ADR-1345). Nothing else in the directory is.

Before the cut: every tester leg green on the commit

A pull request builds only the tester legs whose inputs it changed, and a master push skips a leg whose inputs did not change, so a leg can be red for days unseen (the x64 SYCL Windows zip was, from 2026-10-05 to the rc.3 publish run). Before you label the release pull request autorelease: cut, dispatch every leg at the commit the release is cut on (the release pull request's base, the head of master) with the full SHA, so the run title names its source:

SHA=$(git rev-parse origin/master)
for wf in windows-tester-bundle.yml macos-tester-bundle.yml docker-publish-tester.yml; do
  gh workflow run "$wf" -R vidiko/vmafx --ref master -f ref="$SHA"
done

Then check them (the same script the cut pull request runs, see below):

GH_TOKEN=$(gh auth token) python3 scripts/release/check-candidate-legs.py --sha "$SHA"

It lists every leg of scripts/release/candidate-legs.json that is not success on that commit: skipped, absent and red all count as not green, and a dispatch titled master or a tag proves nothing about a commit. The Release Script Contract job runs the same check on a release pull request that carries the autorelease: cut label, against the pull request's base commit, so the cut cannot merge on an unseen or red leg (ADR-2198). When master moves after the dispatch, dispatch again at the new head.

The one-shot release-as of 0.1.0

release-please-config.json carries "release-as": "0.1.0" on the root package for the first release only (ADR-3292). release-please applies it before it reads the commits, so it moves the manifest's 1.0.0-rc.3 to 0.1.0 in one step; without it, the default strategy would propose 1.1.0-rc.3. The rollover of the 0.1.0 cut checks that release-as equals --version and deletes it, together with any bootstrap-sha, in the cut commit. That removal is required: left in place, release-as proposes 0.1.0 again on every later release and swallows every bump.

Two checks hold it:

  • scripts/release/check-one-shot-fields.sh, run by the Release Script Contract job of rule-enforcement.yml, refuses either field once the manifest holds a final version, 0.x included. It accepts a candidate manifest only with versioning: prerelease (ADR-1348) or, for the restart, with release-as set. scripts/release/tests/test-check-one-shot-fields.sh holds its verdicts.
  • scripts/release/verify-release-version.sh refuses both fields at every tag, candidates included.

To force a later version, use a Release-As: X.Y.Z commit footer; it applies to one release by itself.

Numbering 0.x releases

After 0.1.0 the root package uses versioning: default with bump-minor-pre-major: true and bump-patch-for-minor-pre-major: false: a fix on 0.1.0 gives 0.1.1, and a feature or a breaking change gives 0.2.0. The release PR stays open as a proposal; merge it when the release is due, and check its title before cutting it.

Cutting the candidates of 1.0.0

Only 1.0.0 has candidates, starting at v1.0.0-rc.4 so that no tag of the withdrawn rc.1 to rc.3 is reused. Before the first of them, a pull request sets the root package back to "versioning": "prerelease" with "prerelease": true and "release-as": "1.0.0-rc.4"; the rollover deletes the release-as again in that cut. Later candidates are then numbered by release-please's prerelease versioning (ADR-1348): a fix, feature or breaking change on 1.0.0-rc.4 gives 1.0.0-rc.5. For the final release, set "prerelease": false: the same strategy then proposes 1.0.0.

A candidate is cut the same way as a release, with its full version, for example --version 1.0.0-rc.4. The script accepts exactly the shapes the tag-time verifier accepts, X.Y.Z and X.Y.Z-rc.N. Each candidate gets its own ## [1.0.0-rc.4] - YYYY-MM-DD section and changelog.d/releases/1.0.0-rc.4.json receipt.

Note

With versioning: default on a candidate manifest, a fix on 1.0.0-rc.1 gave 1.0.1-rc.1. check-one-shot-fields.sh rejects that setting on a candidate manifest unless the one-shot release-as is set.

How a candidate moves through the rest of the pipeline:

  • Draft pause. While a vX.Y.Z or vX.Y.Z-rc.N draft waits for publication, release-please.yml skips both release-please phases, so later pushes to master neither move nor duplicate it. More than one waiting draft stops the job for operator cleanup.
  • Version strings. A release build checked out at its tag reports the git describe form from vmaf --version, for example v1.0.0-rc.1-0-gd0f0e7e or v0.1.0-0-g8820048. scripts/release/verify-native-release-artifacts.sh accepts exactly that form (distance 0) or the bare version, never a later commit.
  • Python distributions. Python tools name distributions by the PEP 440 spelling, 1.0.0rc1, not 1.0.0-rc.1. supply-chain.yml derives that spelling once with scripts/release/pep440-version.sh and matches the vmaf-mcp wheel and sdist by it.
  • Pushing the cut. The local pre-push PR-body hook exempts the bot release PR, as CI's Deliverables Checklist does, through scripts/ci/release-pr-exempt.sh. The exemption needs gh to be authenticated and the PR's head ref to be the branch being pushed.

ADR-1128 governs this cutover.

Recovering a release's container images

The image workflows (docker-publish-production.yml, docker-publish-operator-node.yml) normally run at the release tag with the tag's own workflow file. If an image job fails because of the build recipe, fix it on master, then dispatch the workflow on master with the published tag (ADR-1347).

The release-publish environment admits only v* tags, so a run on master is rejected at the environment gate ("Branch "master" is not allowed to deploy to release-publish") before any step runs. Allow master for the recovery only, then take the permission away again:

# 1. Let master deploy to release-publish; the required reviewer still applies.
policy=$(gh api -X POST \
  repos/vidiko/vmafx/environments/release-publish/deployment-branch-policies \
  -f name=master -f type=branch --jq .id)

# 2. Dispatch the recovery runs and approve their release-publish deployments.
gh workflow run docker-publish-production.yml --ref master -f tag=v1.0.0-rc.1
gh workflow run docker-publish-operator-node.yml --ref master -f tag=v1.0.0-rc.1

# 3. After both runs have finished (re-runs need the policy too), remove it.
gh api -X DELETE \
  "repos/vidiko/vmafx/environments/release-publish/deployment-branch-policies/$policy"
gh api repos/vidiko/vmafx/environments/release-publish/deployment-branch-policies \
  --jq '.branch_policies[] | "\(.type) \(.name)"'   # expect only: tag v*

The run verifies the published tag, builds the tag's source with master's build recipe, and labels every image io.vmafx.build-recipe=<master commit>. The recipe is docker/, Dockerfile.go-server and ffmpeg-patches/, the patch series for the FFmpeg that the node image bundles (ADR-1350). Everything else, including all VMAFx and libvmaf code, is the tag's.

Making the container images public

The five packages (vmafx, vmafx-server, vmafx-controller, vmafx-operator, vmafx-node) must be public so that anyone can pull the release images. vmafx-controller does not exist until the first release that publishes it (ADR-1589): after that publish, check its visibility and, if it was created private, switch it as described below. The organization setting Organization settings → Packages → Package creation → Public decides what a new package gets; it has been checked since v1.0.0-rc.1:

  • Setting checked. A package first pushed from this public repository is created public, as vmafx-operator was for v1.0.0-rc.1, and no further step is needed.
  • Setting unchecked. The package is created private, and the per-package option is greyed out ("disabled by organization administrators"). vmafx and vmafx-server were created this way before v1.0.0-rc.1. Once the setting is checked, an organization owner switches such a package once in the web UI: Package settings → Danger Zone → Change visibility → Public, then types the package name to confirm. The REST API cannot do this, because the packages endpoints offer only read and delete.

Later pushes keep the package's visibility.

Check that an anonymous client can pull:

token=$(curl -s "https://ghcr.io/token?scope=repository:vidiko/vmafx-node:pull" | jq -r .token)
curl -s -H "Authorization: Bearer $token" \
  https://ghcr.io/v2/vidiko/vmafx-node/tags/list | jq '.tags'

Freezing the release PR while you cut it

Label the release PR autorelease: cut before you push the cut commits.

release-please force-recreates release-please--branches--master--… on every push to master: the branch always ends up with exactly one bot-authored commit. The two cut commits are hand-added to that same branch, so any merge to master after you push them silently destroys the cut.

While the label is present, release-please.yml skips its PR-update invocation and the branch is left alone; it still creates the draft release once the PR merges. The procedure is:

  1. Hold merges to master (or accept that you may have to redo the cut).
  2. Label the release PR autorelease: cut.
  3. Push the two rollover commits.
  4. Merge the release PR, then publish the draft release.
  5. If you abandon the cut, remove the label and release-please regenerates the branch from scratch on the next push.

scripts/release/verify-release-version.sh is the backstop: at tag time it requires exactly one ## [X.Y.Z] - YYYY-MM-DD heading, a matching changelog.d/releases/X.Y.Z.json receipt, zero active fragments, no _pre_fragment_legacy.md, and no surviving release-as / bootstrap-sha. A tag whose cut never ran cannot publish.

Drift-sweep cadence

CI runs --check on every PR (the docs-fragments lane) so new drift fails loud. A periodic drift-sweep PR (typically once per merge train) reconciles the pre-existing skew that accumulates when in-flight PRs add fragments faster than --write is run.

CHANGELOG drift sweep — historical context

The 2026-05-08 sweep cleared 13 silent-loss fragments, 1 reformatted entry (verbose inline → canonical fragment), and 2 duplicate rows (double ### Changed header + duplicate FastDVDnet entry). No genuine orphans were found — every row in CHANGELOG.md either had a matching fragment or lived in the legacy archive.

Dry-running a release

Before merging a release PR, invoke the /prep-release skill locally. It validates:

  • All commits since the last release parse as Conventional Commits.
  • The Netflix golden-data gate (CPU scalar + fixed-point) passes. GPU / SIMD backends are validated separately via per-backend snapshot tests.
  • CHANGELOG.md renders correctly and references no removed files.
  • Signing credentials (OIDC) resolve in the current CI environment.

Run the release-please preview from an origin-faithful clone, not directly from the development checkout:

  • Local tags include tags fetched from the Netflix upstream remote. Those tags do not necessarily exist in vidiko/vmafx and can make a local preview select the wrong previous release.
  • The preview clone must expose only the fork's advertised tags and the candidate master tree.
  • Supply credentials through a protected file descriptor or token-file path so the CLI never echoes a literal token in its argument list.

See section 11 of AGENTS.md for the one-line summary and the /prep-release skill definition for the full checklist.

master branch protection

master is protected at the GitHub API layer: the policy in the agent hard rules and CONTRIBUTING.md is enforced at the host, not just honoured by convention. The declared rule set and its drift check are in repository security.

  • Required status check (1): Required Checks Aggregator. Branch protection names exactly this one context; every other gate is enforced through it.
  • Linear history required. Merges are squash-or-ff-only.
  • Force-push and deletion disabled.
  • Admin bypass kept on. The owner can land emergency fixes that skip required checks; use sparingly (see the emergency-release section below).

Management: gh api --method PUT repos/vidiko/vmafx/branches/master/protection with a JSON payload. The current rule set is documented in ADR-0037.

What the aggregator requires

The aggregator's own required array (.github/workflows/required-aggregator.yml) is the real inventory, about 80 contexts at the time of writing. Do not copy its count into branch-protection settings. A context missing from the array can be red while the merge button stays green (ADR-1297).

Group Contexts
Builds Ubuntu gcc+DNN, Ubuntu clang+DNN, Windows UCRT64 (MSYS2 UCRT64), Windows MSVC+CUDA, Windows MSVC+SYCL, Ubuntu HIP, Ubuntu gcc, Ubuntu clang, Ubuntu ARM clang, Ubuntu gcc static, macOS clang, macOS clang+DNN, macOS Metal, Ubuntu CUDA, Ubuntu CUDA static, Ubuntu SYCL, Ubuntu SYCL+CUDA, Linux Intel LLVM, macOS Clang+Metal, Windows MSVC+CUDA (full), Windows ARM64 MSVC
Static analysis CodeQL, CodeQL (C/C++), CodeQL (Python), CodeQL (Actions), Pre-Commit, Python Lint, Semgrep, Semgrep OSS, Tidy Changed, Tidy Ratchet, Tidy SYCL, Cppcheck, Markdown Lint, No Conflict Markers, Go API Compatibility
Supply chain and docs Dependency Review, Gitleaks, gitleaks, Scorecard PR Gate (pull requests), Scorecard Master Gate (master pushes), Licence Provenance (guide), Docs, Docs Site Build, Doxygen Public API, ShellCheck + shfmt
Tests Netflix CPU Golden, Coverage Gate, Coverage GPU, SYCL Parity (Arc A380), Sanitizers (address), Sanitizers (thread), Sanitizers (undefined), Sanitizers ASan+UBSan, Assertion Density, Twin Drift, Tiny AI, Tiny-Model Registry Validate, go vet + go test, MCP Smoke, RC1 Tester Report, vmafx-sys CI, cargo-deny
FFmpeg FFmpeg Patch Stack, FFmpeg Ubuntu gcc, FFmpeg macOS clang, FFmpeg SYCL
Packaging and images Docker Image Build, Dev Container Build, helm lint + template
Governance and HISS Standards & Invariant Verification Gate (ADR-1249), HISS Replay Evidence (Linux), HISS Replay Evidence (macOS), HISS Replay Evidence (Windows), Silent-Revert Guard
Process gates Deliverables Checklist, Doc-Substance Gate, docs/state.md Gate, FFmpeg-Patches Surface Sync, ADR Collision Guard, Release Script Contract

Notes on the table

  • The build lanes are libvmaf-build-matrix.yml legs and build.yml rows (ADR-1259). The build.yml Windows row is named Windows MSVC+CUDA (full) so that it cannot stand in for the required Windows MSVC+CUDA lane.
  • Coverage GPU and SYCL Parity (Arc A380) are enforced only while their distinct GPU_COVERAGE_ENABLED / SYCL_ARC_RUNNER_ENABLED variables are true; hosted probes prevent dispatch to missing label sets (ADR-1319).
  • Coverage Gate (about 40 minutes) is built with -fprofile-update=atomic to survive parallel-meson SIMD-counter races (ADR-0110).
  • The process gates report on every non-draft PR. Four of the six auto-exempt the machine-generated release PR; see Process gates on the release PR. The other two stay armed there.
  • A strictMustReport list in the aggregator holds the governance and always-reporting gates whose absence fails the check instead of reading as a path-filter skip.

Note

When adding, renaming or removing a gate, update the aggregator's required array in the same PR and run scripts/ci/check-aggregator-names.sh. Branch protection's contexts list does not change, because it only ever names the aggregator.

Emergency release (out-of-band)

If a CVE requires an out-of-band release that bypasses the release-please PR:

  1. Branch off master into hotfix/CVE-YYYY-NNNN.
  2. Land the fix with a fix: commit and a signed-off-by line.
  3. Manually tag the next ordinary patch version, vX.Y.(Z+1); release-please will reconcile on the next regular push.
  4. Backport the CVE fix to any active stacked release branches.

Upstream parallel

The upstream Netflix release process (manual version bump, manual CHANGELOG editing, draft-a-release on GitHub) is documented at Netflix/vmaf — release.md. It does not apply to this fork.

Do not fetch Netflix's tags into a clone of this repository. After adding the remote, set

git remote add upstream https://github.com/Netflix/vmaf.git
git config remote.upstream.tagOpt --no-tags

so git fetch upstream brings branches only. A tag fetched by mistake is removed locally with git tag -d <name>; the lefthook pre-push guard (scripts/git-hooks/check-push-tags.py) refuses to push a Netflix tag or a tag name outside the fork's patterns, and release-please, tester workflows and archive/* tags keep working.

Go consumers and the inherited tags

Until 2026-10-05 the repository carried Netflix's tags, and go get github.com/VMAFx/vmafx@latest resolved to Netflix's v3.0.0+incompatible. Measured with Go 1.27.1 (the experiments are summarised in ADR-1805):

  • The Go command reads retractions only from the go.mod of the highest version, and Netflix's v1.5.3 (no go.mod) outranked every fork v1.0.x, so a retract could not take effect.
  • After the deletion GOPROXY=direct go list -m -versions github.com/VMAFx/vmafx prints v1.0.0-rc.1 v1.0.0-rc.2 and go list -m github.com/VMAFx/vmafx@latest prints v1.0.0-rc.2; no Netflix version is listed.
  • proxy.golang.org keeps what it has cached: it still answered @latest = v3.0.0+incompatible and listed the Netflix versions on 2026-10-05, and it offers no purge. Its @v/<version>.zip stays served for every cached version by explicit request.

The release line restarts at v0.1.0 (ADR-3292), and its go.mod retracts every release candidate, each entry with its own reason:

retract (
    [v1.0.0-rc.1, v1.0.0-rc.2] // contained a stale root LICENSE-MIT; ...
    v1.0.0-rc.3 // withdrawn: the release line restarts at v0.1.0 (...)
)

Measured on 2026-10-12 with Go 1.27.1 against a scratch module proxy, the retraction holds only where Netflix's versions are absent:

  • Against a proxy that holds only the fork's versions (what GOPROXY=direct sees since the tags were deleted, see above), go list -m -versions prints v0.1.0, @latest resolves to v0.1.0, go list -m -retracted -versions adds the three candidates, and go get of a candidate prints the reason of its entry.
  • Through proxy.golang.org, which still serves the cached v3.0.0+incompatible, the Go command reads retractions from that version's go.mod (it has none): @latest stays v3.0.0+incompatible, the candidates stay listed, and a candidate is fetched without a warning.

Pin the release explicitly when you go through the public proxy:

go get github.com/VMAFx/vmafx@v0.1.0
go install github.com/VMAFx/vmafx/cmd/<tool>@v0.1.0

or bypass the proxy cache: GOPROXY=direct go get github.com/VMAFx/vmafx@latest. Keep the retract block in every later go.mod: only the highest version's go.mod is read, so a release that drops it brings the candidates back.

Release notes and the changelog archive (ADR-1233)

Two different surfaces, produced two different ways:

Surface Produced by Grouped by
GitHub Release body GitHub, from merged pull requests Labels, via .github/release.yml
CHANGELOG.md scripts/release/concat-changelog-fragments.sh, from changelog.d/ changelog.d/ subdirectory

The GitHub body has no slot for hand-written text. A statement the release must carry that no pull request title expresses, such as the rc.3 table of devices verified and not yet verified (ADR-1707), lives in a changelog.d/ fragment (so CHANGELOG.md has it) and the release publisher adds it to the release page with gh release edit --notes-file, keeping the generated body.

Because GitHub groups the release body by label, .github/workflows/pr-type-label.yml derives a type:* label from each PR's Conventional-Commit prefix. If a release body shows a large "Other changes" section, that labeler is not running — the prefix is mandatory, so the label should always be derivable. A pull request from a fork is the exception: the workflow runs on pull_request, whose token is read-only for a fork, so it leaves a notice and a maintainer adds the label.

Archiving an oversized release section

rollover-changelog-fragments.sh --archive-over N (default 400) keeps CHANGELOG.md readable. When the rendered body exceeds N lines it is written to docs/changelog-archive/X.Y.Z.md and the version section keeps a per-section index linking to it:

## [1.0.0-rc.1] - 2026-09-27

This release collects 2790 changelog entries.
They are recorded in full, unedited, in
[`docs/changelog-archive/1.0.0-rc.1.md`](docs/changelog-archive/1.0.0-rc.1.md) — too long to read inline here.

| Section | Entries |
| --- | --- |
| Changed | 625 |
| Added | 510 |
| Removed | 14 |
| Fixed | 1585 |
| Security | 56 |

Nothing is discarded: the archive is tracked, and the rollover receipt still records the sha256 of the complete rendered body. Pass --archive-over 0 to force the old inline behaviour.