Skip to content
Closed

Dev #2720

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
56250fd
fix(release): refuse re-dispatch of published versions + delete dead …
automagik-genie Jul 27, 2026
159bce4
fix(ci): check-action-pins matches quoted uses scalars, anchors SHA (…
automagik-genie Jul 27, 2026
8c4142e
feat(hooks): mechanical git-freeze guard for shared-workspace subagen…
automagik-genie Jul 27, 2026
ec3c0a6
fix(ci): anchor check-action-pins scalar match to the uses: remainder
automagik-genie Jul 27, 2026
7b1fc74
Merge pull request #2715 from automagik-dev/fix/action-pins-quoted-sc…
automagik-genie Jul 27, 2026
79057c7
chore(version): bump to 5.260727.14 [auto-version]
github-actions[bot] Jul 27, 2026
227e90d
fix(hooks): git-freeze guard misread subshells and stopped at the fir…
automagik-genie Jul 27, 2026
b3cd5b1
Merge pull request #2718 from automagik-dev/feat/git-freeze-hook
automagik-genie Jul 27, 2026
f8aca50
chore(version): bump to 5.260727.15 [auto-version]
github-actions[bot] Jul 27, 2026
73007d1
Merge pull request #2717 from automagik-dev/fix/release-publish-harde…
namastex888 Jul 27, 2026
95a1c1b
chore(version): bump to 5.260727.16 [auto-version]
github-actions[bot] Jul 27, 2026
a51c3f0
feat(release)!: remove the homolog channel (stable+dev only)
automagik-genie Jul 27, 2026
9dce641
test(release): verifier LOWs — stale asset comment, no-homolog ratche…
automagik-genie Jul 27, 2026
d8de6dd
Merge pull request #2721 from automagik-dev/feat/remove-homolog-channel
automagik-genie Jul 27, 2026
66397cb
chore(version): bump to 5.260727.17 [auto-version]
github-actions[bot] Jul 27, 2026
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
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"plugins": [
{
"name": "genie",
"version": "5.260727.12",
"version": "5.260727.17",
"source": "./plugins/genie",
"description": "Human-AI partnership for Claude Code. Share a terminal, orchestrate workers, evolve together. Brainstorm ideas, wish them into plans, make with parallel agents, ship as one team. A coding genie that grows with your project."
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-tarballs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
}
if [[ "${VERSION}" != "${PACKAGE_VERSION}" ]]; then
case "${INPUT_CHANNEL}" in
homolog|stable)
stable)
echo "Authenticated ${INPUT_CHANNEL} promotion stamps immutable version ${VERSION} over source ${PACKAGE_VERSION}"
;;
*)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [main, homolog, dev]
branches: [main, dev]
pull_request:
branches: [main, homolog, dev]
branches: [main, dev]
# version.yml pushes its deterministic child with GITHUB_TOKEN, so GitHub
# intentionally suppresses push/pull_request recursion. It dispatches this
# read-only gate against the child's immutable v<version> ref explicitly;
Expand Down
91 changes: 61 additions & 30 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: Release Publish
# signatures from Sigstore Rekor without any custom verification server.
#
# Trigger chain:
# guarded release.yml@main (stable) OR version.yml@main (dev/homolog)
# guarded release.yml@main (stable) OR version.yml@main (dev)
# → Build Tarballs → Sign + Attest → THIS
# All artifacts are from one workflow run; there is no standalone dispatch or
# external run-id recovery path.
Expand All @@ -28,15 +28,15 @@ name: Release Publish

on:
# Reusable only from the trusted main-controlled release chain. Stable manual
# recovery routes through release.yml; dev/homolog route through version.yml.
# recovery routes through release.yml; dev routes through version.yml.
workflow_call:
inputs:
version:
description: 'Version to publish (must match upstream artifact version)'
required: true
type: string
channel:
description: 'Release channel (stable / homolog / dev)'
description: 'Release channel (stable / dev)'
required: false
type: string
default: stable
Expand Down Expand Up @@ -82,7 +82,12 @@ jobs:
name: Admit trusted release orchestrator
runs-on: ubuntu-latest
timeout-minutes: 2
permissions: {}
permissions:
# Read-only, and only so the replay guard below can ask whether the tag
# already carries a published release. contents:write still starts at the
# publish job: nothing may mutate the repository before the caller is
# proven, and the guard runs after the binding step for the same reason.
contents: read
steps:
- name: Bind caller workflow and control commit
shell: bash
Expand All @@ -106,7 +111,7 @@ jobs:
EXPECTED_EVENT=workflow_dispatch
EXPECTED_CALLER="$EXPECTED_STABLE_CALLER"
;;
homolog|dev)
dev)
EXPECTED_EVENT=workflow_run
EXPECTED_CALLER="$EXPECTED_AUTOMATED_CALLER"
;;
Expand All @@ -128,16 +133,53 @@ jobs:
echo "::error ::release-caller.inputs release-publish received malformed release identity inputs"
exit 1
fi
case "$INPUT_SOURCE_BRANCH" in main|homolog|dev) ;; *) exit 1 ;; esac
case "$INPUT_SOURCE_BRANCH" in main|dev) ;; *) exit 1 ;; esac
case "${INPUT_CHANNEL}:${INPUT_SOURCE_BRANCH}" in
stable:main|homolog:homolog|dev:dev) ;;
stable:main|dev:dev) ;;
*)
echo "::error ::release-caller.inputs channel/source branch admission mismatch"
exit 1
;;
esac
echo "Trusted release caller admitted at ${CALLER_SHA}"

- name: Refuse re-dispatch of an already published release
shell: bash
env:
GH_TOKEN: ${{ github.token }}
RELEASE_REPOSITORY: ${{ github.repository }}
INPUT_VERSION: ${{ inputs.version }}
run: |
set -euo pipefail
# A published (non-draft) release is immutable, and this pipeline is
# no longer able to replay one: reconcile-release-assets.sh expects
# the current 20/28-asset delivery fanout while every pre-fanout
# release carries 12 that can never be extended, and
# reconcile-channel-manifests.sh now derives a deterministic
# midnight-UTC released_at that no longer cmp-matches the wall-clock
# timestamps already committed to main. Both failures land AFTER the
# release is published and locked, so refuse the run here instead.
# Always allocate a fresh version (version.yml allocates max-plus-one
# and pushes a fresh tag). See automagik-dev/genie#2674.
# Drafts stay admissible on purpose: an interrupted run must still be
# able to finish the release it already opened.
RELEASE_JSON="$(mktemp)"
RELEASE_ERROR="$(mktemp)"
if gh api "repos/${RELEASE_REPOSITORY}/releases/tags/v${INPUT_VERSION}" \
>"$RELEASE_JSON" 2>"$RELEASE_ERROR"; then
if [[ "$(jq -r '.draft' "$RELEASE_JSON")" != true ]]; then
echo "::error ::release-replay.published v${INPUT_VERSION} already has a published GitHub Release — published releases are non-replayable (immutable asset inventory + deterministic released_at); allocate a fresh version instead. See automagik-dev/genie#2674"
exit 1
fi
echo "v${INPUT_VERSION} exists only as a draft release; admitting so the interrupted publish can complete"
elif grep -q 'HTTP 404' "$RELEASE_ERROR"; then
echo "v${INPUT_VERSION} has no GitHub Release yet"
else
cat "$RELEASE_ERROR" >&2
echo "::error ::release-replay.unknown could not determine whether v${INPUT_VERSION} already has a published release; failing closed. See automagik-dev/genie#2674"
exit 1
fi

prepare-delivery-evidence:
name: Build canonical delivery descriptors
needs: admit
Expand Down Expand Up @@ -205,11 +247,7 @@ jobs:
case "$CHANNEL" in
stable)
SELECTED_MANIFEST=candidate-manifests/.well-known/latest.json
EVIDENCE_CHANNELS=(stable homolog dev)
;;
homolog)
SELECTED_MANIFEST=candidate-manifests/.well-known/homolog.json
EVIDENCE_CHANNELS=(homolog dev)
EVIDENCE_CHANNELS=(stable dev)
;;
dev)
SELECTED_MANIFEST=candidate-manifests/.well-known/dev.json
Expand Down Expand Up @@ -291,7 +329,6 @@ jobs:
for evidence_channel in "${EVIDENCE_CHANNELS[@]}"; do
case "$evidence_channel" in
stable) manifest=candidate-manifests/.well-known/latest.json ;;
homolog) manifest=candidate-manifests/.well-known/homolog.json ;;
dev) manifest=candidate-manifests/.well-known/dev.json ;;
esac
descriptor="descriptors/genie-${VERSION}-${platform}.tar.gz.${evidence_channel}.delivery.json"
Expand Down Expand Up @@ -452,8 +489,7 @@ jobs:
run: |
set -euo pipefail
case "$CHANNEL" in
stable) EXPECTED_PACKS=12 ;;
homolog) EXPECTED_PACKS=8 ;;
stable) EXPECTED_PACKS=8 ;;
dev) EXPECTED_PACKS=4 ;;
*) exit 1 ;;
esac
Expand All @@ -466,7 +502,6 @@ jobs:
for descriptor in "${DESCRIPTORS[@]}"; do
case "$descriptor" in
*.stable.delivery.json) manifest=candidate-manifests/latest.json ;;
*.homolog.delivery.json) manifest=candidate-manifests/homolog.json ;;
*.dev.delivery.json) manifest=candidate-manifests/dev.json ;;
*) exit 1 ;;
esac
Expand Down Expand Up @@ -1012,12 +1047,15 @@ jobs:
name: delivery-candidate-manifests
path: ${{ runner.temp }}/candidate-manifests

- name: Resolve version + channel + asset inventory
# Channel is NOT resolved here: admit already rejects an empty/unknown
# channel, and finalize/manifests read inputs.channel raw. A local
# default would only let publish upload a stable-sized inventory that
# finalize then aborts on, leaving a published-but-unfinalized release.
- name: Resolve version + asset inventory
id: meta
shell: bash
env:
INPUT_VERSION: ${{ inputs.version }}
INPUT_CHANNEL: ${{ inputs.channel }}
run: |
set -euo pipefail
cd dist
Expand All @@ -1041,14 +1079,8 @@ jobs:
echo "::error::workflow_dispatch input version='${INPUT_VERSION}' does not match upstream artifact version='${VERSION}'"
exit 1
fi
# Channel: workflow_dispatch picks; workflow_run defaults to stable.
CHANNEL="${INPUT_CHANNEL:-}"
if [[ -z "${CHANNEL}" ]]; then
CHANNEL="stable"
fi
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
echo "channel=${CHANNEL}" >> "$GITHUB_OUTPUT"
echo "Resolved: VERSION=${VERSION} CHANNEL=${CHANNEL}"
echo "Resolved: VERSION=${VERSION}"
echo "Tarballs: ${#TARBALLS[@]}"
echo "=== dist/ exact inventory: 12 release assets plus selected-channel delivery evidence fanout ==="
ls -la
Expand All @@ -1065,7 +1097,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
VERSION: ${{ steps.meta.outputs.version }}
CHANNEL: ${{ steps.meta.outputs.channel }}
CHANNEL: ${{ inputs.channel }}
DRAFT: ${{ inputs.draft }}
RELEASE_REPOSITORY: ${{ github.repository }}
CANDIDATE_MANIFEST_DIR: ${{ runner.temp }}/candidate-manifests
Expand All @@ -1089,7 +1121,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
environment:
# No reviewers: dev/homolog stay automatic. The environment is restricted
# No reviewers: dev stays automatic. The environment is restricted
# to main and holds the sole credential (the RELEASE_MANIFESTS App key)
# allowed to push the .well-known manifests through the main ruleset.
name: release-manifests
Expand Down Expand Up @@ -1182,7 +1214,6 @@ jobs:
# Filename map (per wish release-channel-dev, 2026-05-11):
# stable → latest.json (kept for back-compat with v1 manifest layout)
# dev → dev.json (replaces the old "next.json" producer concept)
# homolog → homolog.json
#
# The stable-only gate that lived here through v4.260511.3 was lifted —
# every non-draft publish writes the manifest(s) for the channel(s) it
Expand Down Expand Up @@ -1212,7 +1243,7 @@ jobs:
git fetch origin main
git switch --detach origin/main

# Stable/homolog fan out to downstream pointers, but each file
# Stable fans out to the downstream dev pointer, but each file
# moves independently and monotonically. An older delayed release
# may advance stable while preserving newer downstream pointers.
RELEASE_REPOSITORY="${{ github.repository }}" CANDIDATE_MANIFEST_DIR="$CANDIDATE_MANIFEST_DIR" \
Expand All @@ -1221,7 +1252,7 @@ jobs:
# Stage the complete fixed allowlist. Staging before diff handles
# both modified and bootstrap/untracked manifests.
MANIFEST_PATHS=()
for f in latest.json homolog.json dev.json; do
for f in latest.json dev.json; do
[[ -f ".well-known/${f}" && ! -L ".well-known/${f}" ]] && MANIFEST_PATHS+=(".well-known/${f}")
done
git add -- "${MANIFEST_PATHS[@]}"
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
# Trusted release orchestrator. The workflow itself is always dispatched on
# refs/heads/main; a release tag is an explicitly validated source identity,
# never the workflow/control ref. version.yml supplies the exact tag SHA and
# successful source CI run. Automated dev/homolog calls come only from the
# successful source CI run. Automated dev calls come only from the
# trusted local version.yml workflow. Stable is always a first-attempt human
# dispatch; the production environment then requires a different reviewer.

Expand All @@ -30,7 +30,6 @@ on:
type: choice
options:
- main
- homolog
- dev
trigger_sha:
description: 'Head SHA of the admitting CI run (automated channels only; source_sha is the built commit)'
Expand Down Expand Up @@ -74,8 +73,8 @@ permissions:

concurrency:
# Serialize retries/promotions of one immutable version. Cross-version runs
# stay independent so a stable approval wait cannot block automated dev or
# homolog delivery; manifest reconciliation is monotonic and CAS-retried.
# stay independent so a stable approval wait cannot block automated dev
# delivery; manifest reconciliation is monotonic and CAS-retried.
group: release-${{ inputs.version }}
queue: max
cancel-in-progress: false
Expand Down Expand Up @@ -117,7 +116,7 @@ jobs:
run: bash scripts/release-guard.sh guard-trusted-release

# Stable approval is deliberately before build/sign, not only before the
# final upload. Keep it in a stable-only job so dev/homolog automation never
# final upload. Keep it in a stable-only job so dev automation never
# relies on undocumented empty-environment behavior. Rollout requirement:
# production's deployment policy allows protected main, the control ref.
approve-stable:
Expand Down Expand Up @@ -155,7 +154,7 @@ jobs:
build:
needs: authorize
# always() + explicit result check: the default success() status is
# poisoned transitively by the SKIPPED approve-stable job on dev/homolog
# poisoned transitively by the SKIPPED approve-stable job on dev
# (observed 2026-07-20: the v5.260720.4 dev release chain silently skipped
# build/sign/publish). authorize alone decides admission.
if: always() && needs.authorize.result == 'success'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sign-attest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: Sign + Attest Tarballs
#
# Trigger: reusable only inside the trusted main-branch release chain, after
# the explicit source build succeeds. Stable begins at release.yml; automated
# dev/homolog begins at version.yml. It consumes same-run artifacts.
# dev begins at version.yml. It consumes same-run artifacts.
#
# Signing model is cosign KEYLESS — the OIDC identity is bound to this
# workflow file path + ref (Fulcio SAN URI). There is no long-lived key.
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
EXPECTED_EVENT=workflow_dispatch
EXPECTED_CALLER="$EXPECTED_STABLE_CALLER"
;;
homolog|dev)
dev)
EXPECTED_EVENT=workflow_run
EXPECTED_CALLER="$EXPECTED_AUTOMATED_CALLER"
;;
Expand All @@ -122,7 +122,7 @@ jobs:
echo "::error ::release-caller.inputs sign-attest received malformed release identity inputs"
exit 1
fi
case "$INPUT_SOURCE_BRANCH" in main|homolog|dev) ;; *) exit 1 ;; esac
case "$INPUT_SOURCE_BRANCH" in main|dev) ;; *) exit 1 ;; esac
echo "Trusted release caller admitted at ${CALLER_SHA}"

# ---------------------------------------------------------------------------
Expand Down Expand Up @@ -395,7 +395,7 @@ jobs:
--source-branch main
)
# slsa-verifier's --build-workflow-input applies only to a top-level
# workflow_dispatch. Automated dev/homolog runs have version.yml's
# workflow_dispatch. Automated dev runs have version.yml's
# workflow_run context; the helper below binds that signed event to
# the exact successful CI run instead.
if [[ "$CHANNEL" == "stable" ]]; then
Expand Down
Loading
Loading