From 9aa3941ced33e6c54df6f4a674736de6421eed14 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 16:40:56 +0000 Subject: [PATCH] ci: make Canon lockstep read this repository's profile, not the template's The job fetched .machine_readable/rsr-profile.a2ml from hyperpolymath/rsr-template-repo at the PR head SHA. In a minted repo that SHA does not exist there, so the job failed with 'no rsr-profile.a2ml' on every run. Read the head repository instead. Verified by running the step script against main: the template URL reproduces the CI error; the repo URL reads the profile and reports the real pin state. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_0136P7ZoXueEiNpcpgdeBR67 --- .github/workflows/dogfood-gate.yml | 8 +++++++- CHANGELOG.adoc | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dogfood-gate.yml b/.github/workflows/dogfood-gate.yml index 925af4c..861ec17 100644 --- a/.github/workflows/dogfood-gate.yml +++ b/.github/workflows/dogfood-gate.yml @@ -404,12 +404,18 @@ jobs: # ephemeral MERGE commit, which is not on the remote and would 404. # The event's head sha is the commit that actually exists there. HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }} + # The repository that owns HEAD_SHA: the PR's head repo (a fork's commit + # is not on the base repo), else this repo. It was hard-coded to + # hyperpolymath/rsr-template-repo, so in every repo minted from the + # template the SHA 404ed there and the job always failed with + # "no rsr-profile.a2ml" no matter what the profile said. + HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name || github.repository }} run: | set -euo pipefail PROFILE="$RUNNER_TEMP/rsr-profile.a2ml" fetched="" for p in ".machine_readable/rsr-profile.a2ml" "machine-readable/rsr-profile.a2ml"; do - URL="https://raw.githubusercontent.com/hyperpolymath/rsr-template-repo/${HEAD_SHA}/${p}" + URL="https://raw.githubusercontent.com/${HEAD_REPO}/${HEAD_SHA}/${p}" if curl -fsSL --retry 3 --max-time 30 "$URL" -o "$PROFILE" 2>/dev/null; then fetched="$p"; break fi diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 5439a97..7f122cf 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -24,6 +24,13 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning]. ==== Fixed +* `dogfood-gate.yml` Canon lockstep fetched the profile from + `hyperpolymath/rsr-template-repo/${HEAD_SHA}` instead of this repository, so in + every minted repo the commit 404ed and the job failed with "no rsr-profile.a2ml" + whatever the profile said. It now reads `${HEAD_REPO}` (the PR head repository, + else this one). The job still fails, now for the true reason: the declared + `[canon]` pin is behind the canon (see the pull request). + * Reverted Dependabot's `codeql-action` 4.38.1 pin to v4.38.0 (`b96794f`), which is what `actions.lock` already recorded. 4.38.1 is blocked estate-wide (nexia-list#100) and was the `startup_failure` on