ADR 0106 — A release tag publishes the images and the chart at one version ​
- Status: Accepted (2026-11-27) by the owner: "Cheat how I'm doing here to have automatic commits collections for building versions ... a similar flow for all of them. In prod we'll deploy only fixed versions like that." The platform's twin is its AD-070 (vymalo/another-agentic-platform#129).
Context ​
release-please (release-please.yml, an App token) already collects the Conventional Commits of main into one release pull request and cuts vX.Y.Z when it merges; until now a tag versioned only the Tauri app, whose desktop and mobile workflows build from the published release. The server side had no version at all: orchestrator.yml and web.yml push sha-<7> (and latest) on every green build of main, their bump jobs write that tag into deploy/chart/values.yaml, and Argo CD follows HEAD. The chart's own version (0.2.0) and appVersion (0.1.0) never moved.
Two facts shape how a tag can publish images:
- A release commit builds no image. It changes
CHANGELOG.md, the manifest and the version files (v0.7.1's commit9fdc245changed six such files and nothing underorchestrator/orweb/), and both image workflows run only on their own paths. So there is nosha-<7>of the tag's commit to copy. - The web's image carried no revision label. Its config held Caddy's base labels,
org.opencontainers.image.sourceamong them pointing at the Caddy image's repository (verified 2026-11-27 onweb:sha-a6fb6d7's config at ghcr.io). The orchestrator's hasorg.opencontainers.image.revisionfromdocker/metadata-action(verified the same day onorchestrator:sha-794618a:794618a4…). The web's static export does inline the commit it was built from (NEXT_PUBLIC_BUILD_REVISION) and the edge's sign-in path (NEXT_PUBLIC_SIGN_IN_PATH=/oauth2/start): both strings are in a chunk ofweb:sha-a6fb6d7's/srv(verified 2026-11-27 by reading that layer).
Decision ​
- A tag
vX.Y.Zpublishes three things atX.Y.Z(.github/workflows/release.yml, on the tag, orworkflow_dispatchwith the tag frommain):ghcr.io/vymalo/another-agentic-system/orchestratorand.../webasX.Y.ZandX.Y, and the chart asoci://ghcr.io/vymalo/another-agentic-system/charts/another-agentic-systemX.Y.Z. Neverlatest;X.Ymoves only to the highest patch of its minor. Production pinsX.Y.Z. (main's ownsha-<7>andlateststay what they are, for development.) - The images are copied, not rebuilt. For each workflow, the image of a release is the
sha-<7>of the newest commit at or before the tag that changed that workflow'son.push.paths(tools/release-source.sh, which reads the paths from the workflow, so they cannot drift): the same tree under those paths as the tag, built and smoke-tested bymain, pushed only after its checks passed.release.ymlwaits for it, refuses an image whoseorg.opencontainers.image.revisionlabel is not that commit, and for the web also one whose export does not inline that commit and/oauth2/start; then it copies it by digest (imagetools create --prefer-index=false). If that commit's run did not push, nothing is published and there is no fallback build. web.ymllabels its image withorg.opencontainers.image.revisionand.sourceof this repository, on the build it smoke tests and on the one it pushes. The web's build-time values were checked rather than rebuilt:main's image is built withNEXT_PUBLIC_SIGN_IN_PATH=/oauth2/start, the one value the chart's edge needs, so it is the release image.- Signed and attested in one job. Only the publish job holds
id-token: write. Each image digest and the chart digest get a cosign keyless signature (identity:release.ymlat avtag, or onmainfor a re-run); each image an SPDX SBOM made by syft and attested withactions/attest, and a provenance attestation of the publishing run, whose summary names the run that built the image. Every action is pinned by commit SHA. - Git keeps
sha-<7>; the package says the version.deploy/chart/release-pin.shsetsorchestrator.imageandweb.imagetoX.Y.Zand their digests in a copy of the chart and refuses the file git tracks, sobump-tag.shonmainstays the only writer of those values in git. The chart's_validate.tplaccepts a first-party tagX.Y.Zonly with asha256:digest;sha-<7>as before; nothing else. - A published version is never overwritten. An existing image tag
X.Y.Zmust be the same digest; an existing chart version must have the samevalues.yaml, and is then only signed again. - One version, release-please's.
deploy/chart/Chart.yaml'sversionandappVersioncarry# x-release-please-versionand are inextra-files. The Tauri app keeps following (itsCargo.toml,package.jsonandtauri.conf.jsonwere already there): its desktop and mobile releases are built from the same tag and named by it, so one tag names one version of everything it releases.tools/check-release-version.shholds the files and markers on every pull request that touches them, the single version on release-please's pull request, and the tag's version before anything is published. - The release pull request needs no governance exemption. release-please writes the AI Governance template's sections from the config's
pull-request-header, and the check passes on that body (#596,governance / governance-checkgreen atad14529, verified 2026-11-27).governance.ymlis left as it is.
Consequences ​
- A deployment pins
another-agentic-systemX.Y.Zfrom the OCI registry and leaves the image values alone; home-os can keep followingHEADuntil it moves to a version (its change, not this repository's). - A release depends on
mainbeing green for both images at the tag: a red or cancelled run of the source commit blocks it until its failed jobs are re-run, thenworkflow_dispatchwith the tag publishes. Merging the release pull request right after an image change makesrelease.ymlwait (up to 160 minutes) for that build. - The first release after this ADR moves the chart from 0.2.0 and 0.1.0 to the release's version. Every version change moves the labels
helm.sh/chartandapp.kubernetes.io/version, and the pods' configuration and Secret checksums include them: a release rolls those pods once.render-check.sh's goldens drop those two labels, so its 1321 checks pass with a moved version (run withChart.yamlat 0.9.0, 2026-11-27). - GHCR makes a new package private: the chart's package is made public by hand the first time.
- Unverified until a tag runs it: the images job (the wait, the label and the web's inlined strings read through
imagetoolsanddocker cp), the copy by digest, cosign, the attestations,helm pushand the "not found" answer ofhelm show chartwith Helm 4, and that release-please movesChart.yaml's two marked lines as it moves the Tauri app'sCargo.toml. Theversionandchartjobs ran locally as written, with Helm v4.3.2 (the dry run's outputs, a packagedanother-agentic-system-0.8.0.tgzwith the four pins, and the refusals of a bad tag and of a dispatch from another branch). - Not decided here:
web/package.json's version (0.1.0, theX-Client-Versionthe web and the apps state, ADR 0076) does not follow the release; moving it would also make every release commit rebuild the web.