Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 0 additions & 70 deletions .github/workflows/claude-pr-review.yml

This file was deleted.

198 changes: 0 additions & 198 deletions .github/workflows/marker-emission-aggregate.yml

This file was deleted.

24 changes: 15 additions & 9 deletions .github/workflows/overlay-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,24 @@ jobs:
OVERLAY: ${{ matrix.overlay }}
run: |
set -euo pipefail
# Grep all workflow files for lines referencing this overlay image and
# Grep claude-*.yml workflow files for lines referencing this overlay image and
# extract the @sha256:<hex> suffix. The authoritative pins live in
# claude-pr-review.yml (review), claude-apply-fix.yml (fix), and
# claude-tag-respond.yml (explain / all three in the case block).
IMG=$(grep -rh "claude-runtime-${OVERLAY}@sha256:" .github/workflows/ \
| grep -oE 'ghcr\.io/glitchwerks/claude-runtime-[^@]+@sha256:[a-f0-9]+' \
| sort -u \
| head -n1)
if [ -z "$IMG" ]; then
echo "::error::No digest found for overlay '${OVERLAY}' in .github/workflows/"
# claude-apply-fix.yml (fix) and claude-tag-respond.yml (review / fix /
# explain — all three in its case block).
IMAGES=$(grep -h "claude-runtime-${OVERLAY}@sha256:" .github/workflows/claude-*.yml \
| grep -oE "ghcr\.io/glitchwerks/claude-runtime-${OVERLAY}@sha256:[a-f0-9]+" \
| sort -u || true)
if [ -z "$IMAGES" ]; then
echo "::error::No digest found for overlay '${OVERLAY}' in .github/workflows/claude-*.yml"
exit 1
fi
IMAGE_COUNT=$(printf '%s\n' "$IMAGES" | wc -l)
if [ "$IMAGE_COUNT" -gt 1 ]; then
CONFLICTS=$(printf '%s\n' "$IMAGES" | paste -sd ',' - | sed 's/,/, /g')
echo "::error::Conflicting digest pins found for overlay '${OVERLAY}': ${CONFLICTS}"
exit 1
fi
IMG="$IMAGES"
echo "image=${IMG}" >> "$GITHUB_OUTPUT"
echo "Resolved: ${IMG}"

Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/runtime-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ jobs:
# -------------------------------------------------------------------------
# Per spec §6.2 STAGE 5 + §9.3. Only one of (push to main / workflow_dispatch)
# may open a promote PR — PR validation must NOT cascade. The single commit
# produced bumps all 7 @sha256: occurrences across 5 reusable workflows
# produced bumps all 6 @sha256: occurrences across 4 reusable workflows
# atomically; consumers see either the new set or the old set, never a mix.
# cancel-in-progress: false is deliberate — an in-flight promote completes
# before the next one starts so each promote PR opens against a fully-bumped
Expand Down Expand Up @@ -872,7 +872,6 @@ jobs:
run: |
set -euo pipefail
FILES=(
.github/workflows/claude-pr-review.yml
.github/workflows/claude-apply-fix.yml
.github/workflows/claude-lint-failure.yml
.github/workflows/claude-ci-failure.yml
Expand All @@ -885,13 +884,13 @@ jobs:
-e "s|claude-runtime-explain@sha256:[a-f0-9]{64}|claude-runtime-explain@sha256:${EXPLAIN_DIGEST}|g" \
"$f"
done
# Verify exactly 7 occurrences land. SC2126: grep -c instead of grep|wc -l;
# Verify exactly 6 occurrences land. SC2126: grep -c instead of grep|wc -l;
# but on multiple files grep -c prints <file>:<count> per file, so sum
# them with awk to get the total.
total=$(grep -cE "claude-runtime-(review|fix|explain)@sha256:[a-f0-9]{64}" "${FILES[@]}" \
| awk -F: '{s+=$NF} END {print s+0}')
if [ "$total" -ne 7 ]; then
echo "ERROR digest_count_mismatch expected=7 actual=$total" >&2
if [ "$total" -ne 6 ]; then
echo "ERROR digest_count_mismatch expected=6 actual=$total" >&2
exit 1
fi
echo "digest pin rewrite: $total references updated"
Expand All @@ -902,7 +901,7 @@ jobs:
{
echo "## Runtime image promotion @${{ github.sha }}"
echo
echo "Atomic digest bump across 5 reusable workflows (7 \`@sha256:\` occurrences) per spec §6.2 STAGE 5. Merging this PR is the promote."
echo "Atomic digest bump across 4 reusable workflows (6 \`@sha256:\` occurrences) per spec §6.2 STAGE 5. Merging this PR is the promote."
echo
echo "### Promoted images"
echo
Expand All @@ -922,7 +921,7 @@ jobs:
commit-message: |
promote: runtime images @${{ github.sha }}

Atomic digest bump across 5 reusable workflows (7 occurrences).
Atomic digest bump across 4 reusable workflows (6 occurrences).
See PR body for OCI labels.
branch: auto/runtime-promote-${{ github.sha }}
delete-branch: true
Expand Down
Loading
Loading