From a39f420a838798e3cf26127530474909942ba06c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 18:13:05 +0000 Subject: [PATCH] fix(ci): the Agda receipt names the commit that was actually checked On pull_request runs, agda-meta-checker checks out the PR head (pull_request.head.sha), but GITHUB_SHA is the merge commit GitHub synthesises. The receipt preferred GITHUB_SHA, so it attributed the source hashes to a commit that was never checked out. It now records `git rev-parse HEAD` of the checked tree in every case. Reported by review on #471 after merge. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019a95kk88TZ1iegsBK3kox3 --- scripts/ci/check-agda.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/check-agda.sh b/scripts/ci/check-agda.sh index b12b9dfa..af1be781 100644 --- a/scripts/ci/check-agda.sh +++ b/scripts/ci/check-agda.sh @@ -38,7 +38,7 @@ echo "$total source modules, $((total - missing)) with fresh interfaces" # Source-bound receipt (PROOF-POLICY ยง8): toolchain, flags and the SHA-256 of # every first-party source and library descriptor this run checked. -echo "receipt: $version; commit ${GITHUB_SHA:-$(git -C "$repo_root" rev-parse HEAD)}" +echo "receipt: $version; commit $(git -C "$repo_root" rev-parse HEAD)" echo "receipt: flags --safe --without-K --cubical-compatible; library file $AGDA_LIBRARIES_FILE" while IFS= read -r lib; do if [[ -n "$lib" ]]; then