Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(release): cover the legacy ui-* aliases in checksums.txt

Martin Vogelc36044020326
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2e87ee7a6..1dc392505 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -164,6 +164,14 @@ jobs:
release-selection.tsv \
> checksums.txt
+ # The legacy ui-* aliases are byte-identical copies published after verify
+ # (scripts/ci/publish-legacy-aliases.sh), so they were absent from
+ # checksums.txt and 0.9.x updaters refused to install them (#1134). Their
+ # digests are added here, BEFORE attestation, so the attested artifact
+ # covers both names.
+ - name: Cover legacy ui-* aliases in checksums
+ run: scripts/ci/append-legacy-alias-checksums.sh checksums.txt
+
- name: Attest checksum provenance
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
with:
diff --git a/scripts/ci/append-legacy-alias-checksums.sh b/scripts/ci/append-legacy-alias-checksums.sh
new file mode 100755
index 000000000..4197df9af
--- /dev/null
+++ b/scripts/ci/append-legacy-alias-checksums.sh
@@ -0,0 +1,59 @@
+#!/usr/bin/env bash
+# Add the legacy ui-* names to checksums.txt, carrying the canonical digest.
+#
+# publish-legacy-aliases.sh publishes byte-identical ui-*-named copies of the
+# release archives so already-released 0.9.x updaters stop 404ing (#1538). It
+# runs after verify, so those copies inherit the hash-bound VirusTotal verdicts
+# — and it therefore left them out of checksums.txt entirely, on the reasoning
+# that the file "covers the canonical names current installers request".
+#
+# That reasoning has a hole. The aliases exist ONLY for 0.9.x updaters, and
+# those verify the NAME they asked for. So the alias fixed the 404 and moved the
+# failure one step later: the updater downloads the archive, cannot find its name
+# in checksums.txt, and refuses to install it (#1134):
+#
+# warning: codebase-memory-mcp-ui-darwin-arm64.tar.gz not found in checksums.txt
+# error: refusing to install an unverified download
+#
+# An alias is a copy, so its sha256 is by construction the digest already
+# computed for the canonical archive. Emitting that digest under the legacy name
+# introduces no new bytes and no new scan surface. This runs BEFORE the
+# attestation step so the attested artifact covers both names.
+#
+# The alias rule MUST stay in step with publish-legacy-aliases.sh: .tar.gz and
+# .zip only, never an already-ui-* name. A name here with no published asset is
+# as broken as an asset with no name, so this fails closed when it matches
+# nothing.
+#
+# Usage: append-legacy-alias-checksums.sh <checksums-file>
+set -euo pipefail
+
+CHECKSUMS="${1:?usage: append-legacy-alias-checksums.sh <checksums-file>}"
+
+if [ ! -s "$CHECKSUMS" ]; then
+ echo "error: $CHECKSUMS is missing or empty" >&2
+ exit 1
+fi
+
+aliases="$(mktemp)"
+trap 'rm -f "$aliases"' EXIT
+
+awk '
+ $2 ~ /^codebase-memory-mcp-/ &&
+ $2 !~ /^codebase-memory-mcp-ui-/ &&
+ ($2 ~ /\.tar\.gz$/ || $2 ~ /\.zip$/) {
+ alias = $2
+ sub(/^codebase-memory-mcp-/, "codebase-memory-mcp-ui-", alias)
+ print $1 " " alias
+ }
+' "$CHECKSUMS" > "$aliases"
+
+if [ ! -s "$aliases" ]; then
+ echo "error: no canonical archives matched the ui-* alias rule in $CHECKSUMS;" >&2
+ echo " publish-legacy-aliases.sh would then publish assets that" >&2
+ echo " checksums.txt does not cover (#1134)." >&2
+ exit 1
+fi
+
+cat "$aliases" >> "$CHECKSUMS"
+echo "added $(wc -l < "$aliases" | tr -d ' ') legacy alias checksum line(s); $CHECKSUMS now covers $(wc -l < "$CHECKSUMS" | tr -d ' ') names"