Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(release): make customer promotion convergent

rcourtmand130d00867e6
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index fc56f158f7..cdbf01b14e 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -77,7 +77,7 @@ Optional environment variables:
### How It Works
-1. **Trigger**: Runs automatically when a GitHub release is published
+1. **Trigger**: Runs from the lease-owning Release Convergence workflow after an exact activation marker is committed
2. **Target selection**: Stable tags deploy to `demo-stable`; prerelease tags are skipped because the public v6 preview target is retired after GA
3. **Service identity**: Stable runs default to the `pulse` service identity
4. **Governance check**: Validates the selected tag is reachable from the governed release branch for that version
@@ -91,10 +91,8 @@ Optional environment variables:
### Testing
-To test without publishing a release:
-1. Go to `Actions` tab in GitHub
-2. Select `Update Demo Server` workflow
-3. Provide a stable tag and choose `stable` or `auto`
+Use `Release Dry Run` for the governed no-mutation demo-path preflight, or run
+`Verify Demo Server` to verify the current committed stable target manually.
### Benefits
@@ -103,25 +101,15 @@ To test without publishing a release:
- ✅ Validates the real server installer path on the selected target
- ✅ Removes release-operator guesswork about which demo should move
-## Deploy Demo Server
+## Verify Demo Server
**File**: `deploy-demo-server.yml`
-Manually deploys the current branch build to the stable demo environment
-without changing the governed release workflow.
-
-- Uses the same `demo-stable` environment contract as the release-driven updater
-- Joins Tailscale before SSH so governed demo targets can stay on private
- addresses instead of requiring public runner reachability
-- Requires `DEMO_EXPECTED_HOSTNAME`, `DEMO_LOCAL_BASE_URL`, and `DEMO_PUBLIC_HEALTH_URL`
-- Supports optional `DEMO_SERVICE_NAME`, `DEMO_INSTALL_DIR`, `DEMO_TEST_PORT`,
- `DEMO_AUTH_USER`, and `DEMO_AUTH_PASS`
-- Assumes the target service and install directory already exist on the host
-- Verifies the SSH target reports the governed expected hostname before deploy
-- Verifies that the public demo shell serves the same frontend entry asset that
- was built and deployed
-- Uses `scripts/run_demo_public_browser_smoke.sh` to prove the public demo
- still renders the login shell in Chromium after deploy/update verification
+The former branch-build deploy path is retired because it could replace the
+stable public demo with unreleased `main`. Its manual dispatch is now a
+non-mutating wrapper that verifies the current committed stable target. All
+stable demo writes require an exact stable tag and activation marker and run
+from `release-convergence.yml` under the global customer-promotion lease.
## Helm CI
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index 5eaddc08f9..93b643152b 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -1299,22 +1299,6 @@ jobs:
asset_source: staged
release_id: ${{ needs.create_release.outputs.release_id }}
- update_stable_demo:
- needs:
- - prepare
- - create_release
- - release_readiness
- - activate_release
- if: ${{ always() && needs.prepare.result == 'success' && needs.create_release.result == 'success' && needs.release_readiness.result == 'success' && needs.activate_release.result == 'success' && needs.prepare.outputs.is_prerelease != 'true' && startsWith(needs.prepare.outputs.version, '6.') }}
- permissions:
- contents: read
- uses: ./.github/workflows/update-demo-server.yml
- secrets: inherit
- with:
- tag: ${{ needs.prepare.outputs.tag }}
- target: stable
- verify_only: false
-
# Publish the Helm chart for this release. publish-helm-chart.yml also
# listens for `release: published` events directly, but the create_release
# publish step PATCHes a draft release to draft=false rather than creating
@@ -1339,24 +1323,6 @@ jobs:
chart_version: ${{ needs.prepare.outputs.version }}
app_version: ${{ needs.prepare.outputs.version }}
- # Publish and prove the mutable Helm Pages index only after the GitHub
- # release has survived public activation verification. The legacy
- # workflow_run chain remains forbidden because it bypasses this ordering.
- publish_helm_pages:
- needs:
- - prepare
- - publish_docker
- - validate_release_assets
- - publish_helm_chart
- - activate_release
- if: ${{ always() && needs.prepare.result == 'success' && needs.publish_docker.result == 'success' && needs.validate_release_assets.result == 'success' && needs.publish_helm_chart.result == 'success' && needs.activate_release.result == 'success' && needs.prepare.outputs.historical_asset_backfill_only != 'true' && github.event.inputs.draft_only != 'true' }}
- permissions:
- contents: write
- uses: ./.github/workflows/helm-pages.yml
- secrets: inherit
- with:
- chart_version: ${{ needs.prepare.outputs.version }}
-
# One immutable-readiness gate joins every exact-version path before the
# GitHub release crosses its public activation boundary. v6 additionally
# requires the staged Pro image and signed packet; older release lines have
@@ -1378,26 +1344,6 @@ jobs:
- name: Confirm immutable release readiness
run: echo "All exact-version release paths are ready for customer activation."
- # Mutable image aliases move only after the exact-version images and staged
- # release assets have passed validation and the GitHub release has survived
- # public activation verification. promote-floating-tags.yml has no implicit
- # workflow_run trigger, so this explicit call is the sole owner of
- # rc/latest/major/minor pointers for both runtime images.
- promote_floating_tags:
- needs:
- - prepare
- - release_readiness
- - activate_release
- if: ${{ always() && needs.prepare.result == 'success' && needs.release_readiness.result == 'success' && needs.activate_release.result == 'success' }}
- permissions:
- contents: read
- packages: write
- uses: ./.github/workflows/promote-floating-tags.yml
- secrets: inherit
- with:
- tag: ${{ needs.prepare.outputs.tag }}
- prerelease: ${{ needs.prepare.outputs.is_prerelease == 'true' }}
-
# Stage the exact private Pro image and signed R2 packet as soon as the draft
# release/tag exist. This slow build runs in parallel with public artifact
# validation, but does not update the live paid-runtime broker manifest.
@@ -1521,122 +1467,94 @@ jobs:
build_run_id="$(jq -r '.workflow_run_id // empty' <<<"${build_dispatch}")"
wait_for_workflow rcourtman/pulse-enterprise "${build_run_id}" "private Pro build" 7200
- # The paid-runtime broker is a mutable customer pointer, so promote it only
- # after every exact-version public artifact and staged install path is ready
- # and the GitHub release has survived public activation verification. A
- # rerun reuses the run-stable R2 prefix produced by the staging job.
- promote_private_pro_runtime:
+ # Durably enqueue customer convergence before crossing the irreversible
+ # publication boundary. The separate run waits for release-activation.json,
+ # so it cannot mutate a customer surface until public verification commits.
+ dispatch_release_convergence:
needs:
- prepare
+ - create_release
- release_readiness
- stage_private_pro_runtime
- - activate_release
- if: ${{ always() && needs.prepare.result == 'success' && needs.release_readiness.result == 'success' && needs.stage_private_pro_runtime.result == 'success' && needs.activate_release.result == 'success' && startsWith(needs.prepare.outputs.version, '6.') }}
+ if: ${{ always() && needs.prepare.result == 'success' && needs.create_release.result == 'success' && needs.release_readiness.result == 'success' && ( !startsWith(needs.prepare.outputs.version, '6.') || needs.stage_private_pro_runtime.result == 'success' ) }}
runs-on: ubuntu-24.04
- timeout-minutes: 65
+ timeout-minutes: 10
+ permissions:
+ actions: write
+ contents: read
+ outputs:
+ run_id: ${{ steps.dispatch.outputs.run_id }}
+ run_url: ${{ steps.dispatch.outputs.run_url }}
steps:
- - name: Promote and verify private Pro runtime
+ - name: Dispatch durable customer convergence
+ id: dispatch
env:
- GH_TOKEN: ${{ secrets.WORKFLOW_PAT }}
- VERSION: ${{ needs.prepare.outputs.version }}
+ GH_TOKEN: ${{ github.token }}
TAG: ${{ needs.prepare.outputs.tag }}
+ VERSION: ${{ needs.prepare.outputs.version }}
IS_PRERELEASE: ${{ needs.prepare.outputs.is_prerelease }}
+ TARGET_COMMITISH: ${{ needs.create_release.outputs.target_commitish }}
+ RELEASE_ID: ${{ needs.create_release.outputs.release_id }}
R2_PREFIX: ${{ needs.stage_private_pro_runtime.outputs.r2_prefix }}
run: |
set -euo pipefail
-
- if [[ -z "${GH_TOKEN:-}" ]]; then
- echo "::error::WORKFLOW_PAT is required to dispatch private Pro promotion workflows."
- exit 1
- fi
- if [[ -z "${R2_PREFIX:-}" ]]; then
- echo "::error::Private Pro staging did not return an R2 prefix."
- exit 1
- fi
-
- wait_for_workflow() {
- local repo="$1"
- local run_id="$2"
- local label="$3"
- local timeout_seconds="$4"
- local deadline=$((SECONDS + timeout_seconds))
-
- if [[ ! "${run_id}" =~ ^[0-9]+$ ]]; then
- echo "::error::Dispatch for ${label} did not return an exact workflow run ID."
- return 1
- fi
-
- echo "Watching exact ${label} run ${run_id} in ${repo}."
-
- while (( SECONDS < deadline )); do
- run_state="$(
- gh run view "${run_id}" \
- --repo "${repo}" \
- --json status,conclusion,url \
- --jq '[.status, (.conclusion // ""), .url] | @tsv'
- )"
- status="$(awk -F '\t' '{print $1}' <<<"${run_state}")"
- conclusion="$(awk -F '\t' '{print $2}' <<<"${run_state}")"
- url="$(awk -F '\t' '{print $3}' <<<"${run_state}")"
- echo "${label}: status=${status} conclusion=${conclusion:-pending} ${url}"
- if [[ "${status}" == "completed" ]]; then
- if [[ "${conclusion}" == "success" ]]; then
- echo "[OK] ${label} completed successfully: ${url}"
- return 0
- fi
- echo "::error::${label} failed with conclusion=${conclusion}: ${url}"
- return 1
- fi
-
- sleep 30
- done
-
- echo "::error::Timed out waiting for ${label} after ${timeout_seconds}s."
- return 1
- }
-
- allow_ga_publish=false
- if [[ "${IS_PRERELEASE}" != "true" ]]; then
- allow_ga_publish=true
- fi
- echo "Dispatching live paid-runtime promotion for ${TAG} with R2 prefix ${R2_PREFIX}."
- promote_dispatch="$(
+ dispatch="$(
jq -n \
+ --arg tag "${TAG}" \
--arg version "${VERSION}" \
+ --arg prerelease "${IS_PRERELEASE}" \
+ --arg target_commitish "${TARGET_COMMITISH}" \
+ --arg release_id "${RELEASE_ID}" \
--arg r2_prefix "${R2_PREFIX}" \
- --arg allow_ga_prefix "${allow_ga_publish}" \
+ --arg source_release_run_id "${GITHUB_RUN_ID}" \
'{
ref: "main",
return_run_details: true,
inputs: {
+ tag: $tag,
version: $version,
+ prerelease: $prerelease,
+ target_commitish: $target_commitish,
+ release_id: $release_id,
r2_prefix: $r2_prefix,
- allow_ga_prefix: $allow_ga_prefix
+ source_release_run_id: $source_release_run_id
}
}' | \
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2026-03-10" \
- repos/rcourtman/pulse-pro/actions/workflows/promote-paid-runtime-release.yml/dispatches \
+ "repos/${{ github.repository }}/actions/workflows/release-convergence.yml/dispatches" \
--input -
)"
- promote_run_id="$(jq -r '.workflow_run_id // empty' <<<"${promote_dispatch}")"
- wait_for_workflow rcourtman/pulse-pro "${promote_run_id}" "private Pro live promotion" 3600
-
- # Customer activation is the publication barrier between exact-version
- # staging and every mutable customer pointer or live environment. If public
- # asset reads fail immediately after activation, quarantine the release back
- # to draft before those downstream mutations become eligible to run.
+ run_id="$(jq -r '.workflow_run_id // empty' <<<"${dispatch}")"
+ run_url="$(jq -r '.html_url // empty' <<<"${dispatch}")"
+ if [[ ! "${run_id}" =~ ^[0-9]+$ ]] || [ -z "${run_url}" ]; then
+ echo "::error::Customer convergence dispatch did not return an exact workflow run."
+ exit 1
+ fi
+ echo "run_id=${run_id}" >> "$GITHUB_OUTPUT"
+ echo "run_url=${run_url}" >> "$GITHUB_OUTPUT"
+ echo "[OK] Customer convergence is durably queued as ${run_url}."
+
+ # release-activation.json is the irreversible publication commit. Before the
+ # marker is public, any verification failure returns the release to draft.
+ # After the marker is public, customer convergence owns retriable rollout and
+ # the release is never described as rolled back merely because a mutable
+ # external surface is temporarily unavailable.
activate_release:
needs:
- prepare
- create_release
- release_readiness
- if: ${{ always() && needs.prepare.result == 'success' && needs.create_release.result == 'success' && needs.release_readiness.result == 'success' }}
+ - dispatch_release_convergence
+ - stage_private_pro_runtime
+ if: ${{ always() && needs.prepare.result == 'success' && needs.create_release.result == 'success' && needs.release_readiness.result == 'success' && needs.dispatch_release_convergence.result == 'success' }}
+ continue-on-error: true
runs-on: ubuntu-24.04
- timeout-minutes: 10
+ timeout-minutes: 15
permissions:
+ actions: read
contents: write
steps:
- name: Publish the fully staged release
@@ -1646,15 +1564,47 @@ jobs:
RELEASE_ID: ${{ needs.create_release.outputs.release_id }}
EXPECTED_COMMIT: ${{ needs.create_release.outputs.target_commitish }}
IS_PRERELEASE: ${{ needs.prepare.outputs.is_prerelease }}
+ CONVERGENCE_RUN_ID: ${{ needs.dispatch_release_convergence.outputs.run_id }}
+ R2_PREFIX: ${{ needs.stage_private_pro_runtime.outputs.r2_prefix }}
run: |
set -euo pipefail
release_json=$(mktemp)
publish_payload=$(mktemp)
quarantine_payload=$(mktemp)
+ activation_marker_dir=$(mktemp -d)
+ activation_marker="${activation_marker_dir}/release-activation.json"
+ verified_marker=$(mktemp)
activated=false
+ committed=false
+
+ require_viable_convergence_owner() {
+ local owner_state
+ owner_state="$(
+ gh run view "${CONVERGENCE_RUN_ID}" \
+ --repo "${{ github.repository }}" \
+ --json event,status,conclusion,workflowName,displayTitle,url \
+ --jq '[.event, .status, (.conclusion // ""), .workflowName, .displayTitle, .url] | @tsv'
+ )"
+ owner_event="$(awk -F '\t' '{print $1}' <<<"${owner_state}")"
+ owner_status="$(awk -F '\t' '{print $2}' <<<"${owner_state}")"
+ owner_conclusion="$(awk -F '\t' '{print $3}' <<<"${owner_state}")"
+ owner_workflow="$(awk -F '\t' '{print $4}' <<<"${owner_state}")"
+ owner_title="$(awk -F '\t' '{print $5}' <<<"${owner_state}")"
+ owner_url="$(awk -F '\t' '{print $6}' <<<"${owner_state}")"
+ expected_title="Release convergence ${TAG} source ${GITHUB_RUN_ID}"
+ if [ "${owner_event}" != "workflow_dispatch" ] || \
+ [ "${owner_workflow}" != "Release Convergence" ] || \
+ [ "${owner_title}" != "${expected_title}" ] || \
+ [ "${owner_status}" = "completed" ] || \
+ [ -n "${owner_conclusion}" ]; then
+ echo "::error::Exact convergence owner ${CONVERGENCE_RUN_ID} is not viable for ${TAG}: status=${owner_status} conclusion=${owner_conclusion:-none} ${owner_url}."
+ return 1
+ fi
+ echo "Verified viable convergence owner ${CONVERGENCE_RUN_ID}: ${owner_status} ${owner_url}."
+ }
quarantine_on_error() {
- if [ "$activated" = "true" ]; then
+ if [ "$activated" = "true" ] && [ "$committed" != "true" ]; then
echo "::warning::Public asset verification failed; returning ${TAG} to draft quarantine."
gh api "repos/${{ github.repository }}/releases/${RELEASE_ID}" \
-X PATCH --input "$quarantine_payload" >/dev/null || true
@@ -1687,6 +1637,7 @@ jobs:
'{draft: false, make_latest: $make_latest}' > "$publish_payload"
jq -n '{draft: true, make_latest: "false"}' > "$quarantine_payload"
+ require_viable_convergence_owner
gh api "repos/${{ github.repository }}/releases/${RELEASE_ID}" \
-X PATCH --input "$publish_payload" > "$release_json"
activated=true
@@ -1706,12 +1657,51 @@ jobs:
-o /dev/null "${base}/${asset_name}"
done
+ # Close the dispatch-to-commit race: the exact durable convergence
+ # owner must still be queued or running immediately before the marker
+ # makes activation irreversible.
+ require_viable_convergence_owner
+ jq -n \
+ --arg tag "${TAG}" \
+ --arg target_commitish "${EXPECTED_COMMIT}" \
+ --arg release_id "${RELEASE_ID}" \
+ --arg source_release_run_id "${GITHUB_RUN_ID}" \
+ --arg convergence_run_id "${CONVERGENCE_RUN_ID}" \
+ --arg r2_prefix "${R2_PREFIX}" \
+ '{
+ schema_version: 1,
+ tag: $tag,
+ target_commitish: $target_commitish,
+ release_id: $release_id,
+ source_release_run_id: $source_release_run_id,
+ convergence_run_id: $convergence_run_id,
+ r2_prefix: $r2_prefix
+ }' > "${activation_marker}"
+ gh release upload "${TAG}" \
+ "${activation_marker}" --clobber
+ # The successful upload is the single irreversible logical boundary:
+ # convergence may observe the marker immediately, so no later
+ # activation-side read failure may return the release to draft.
+ committed=true
+ curl -fsSL --retry 12 --retry-delay 5 --retry-all-errors \
+ -o "${verified_marker}" "${base}/release-activation.json"
+ jq -e \
+ --arg tag "${TAG}" \
+ --arg target_commitish "${EXPECTED_COMMIT}" \
+ --arg release_id "${RELEASE_ID}" \
+ --arg source_release_run_id "${GITHUB_RUN_ID}" \
+ --arg convergence_run_id "${CONVERGENCE_RUN_ID}" \
+ --arg r2_prefix "${R2_PREFIX}" \
+ '.schema_version == 1 and .tag == $tag and .target_commitish == $target_commitish and .release_id == $release_id and .source_release_run_id == $source_release_run_id and .convergence_run_id == $convergence_run_id and .r2_prefix == $r2_prefix' \
+ "${verified_marker}" >/dev/null
trap - ERR
- rm -f "$release_json" "$publish_payload" "$quarantine_payload"
- echo "[OK] Activated and publicly verified ${TAG}; mutable customer promotion may begin."
+ rm -f "$release_json" "$publish_payload" "$quarantine_payload" \
+ "$verified_marker"
+ rm -rf "$activation_marker_dir"
+ echo "[OK] Irreversibly committed and publicly verified ${TAG}; convergence run ${CONVERGENCE_RUN_ID} owns customer rollout."
- release_verdict:
- name: Definitive Release Verdict
+ release_commit_verdict:
+ name: Release Activation Commit Verdict
needs:
- prepare
- release_smoke
@@ -1720,36 +1710,35 @@ jobs:
- publish_docker
- validate_release_assets
- install_sh_smoke
- - update_stable_demo
- publish_helm_chart
- - publish_helm_pages
- release_readiness
- - promote_floating_tags
- stage_private_pro_runtime
- - promote_private_pro_runtime
+ - dispatch_release_convergence
- activate_release
if: ${{ always() && needs.prepare.result == 'success' && needs.prepare.outputs.historical_asset_backfill_only != 'true' }}
runs-on: ubuntu-24.04
steps:
- - name: Enforce terminal release outcomes
+ - name: Enforce irreversible release commit outcome
env:
+ GH_TOKEN: ${{ github.token }}
DRAFT_ONLY: ${{ github.event.inputs.draft_only }}
VERSION: ${{ needs.prepare.outputs.version }}
- IS_PRERELEASE: ${{ needs.prepare.outputs.is_prerelease }}
+ TAG: ${{ needs.prepare.outputs.tag }}
+ EXPECTED_COMMIT: ${{ needs.create_release.outputs.target_commitish }}
+ RELEASE_ID: ${{ needs.create_release.outputs.release_id }}
CREATE_RESULT: ${{ needs.create_release.result }}
SMOKE_RESULT: ${{ needs.release_smoke.result }}
WINDOWS_INSTALL_COMMAND_RESULT: ${{ needs.windows_install_command_smoke.result }}
DOCKER_RESULT: ${{ needs.publish_docker.result }}
VALIDATE_RESULT: ${{ needs.validate_release_assets.result }}
INSTALL_RESULT: ${{ needs.install_sh_smoke.result }}
- DEMO_RESULT: ${{ needs.update_stable_demo.result }}
HELM_RESULT: ${{ needs.publish_helm_chart.result }}
- HELM_PAGES_RESULT: ${{ needs.publish_helm_pages.result }}
READINESS_RESULT: ${{ needs.release_readiness.result }}
- FLOATING_RESULT: ${{ needs.promote_floating_tags.result }}
PRIVATE_PRO_STAGE_RESULT: ${{ needs.stage_private_pro_runtime.result }}
- PRIVATE_PRO_PROMOTION_RESULT: ${{ needs.promote_private_pro_runtime.result }}
- ACTIVATION_RESULT: ${{ needs.activate_release.result }}
+ CONVERGENCE_DISPATCH_RESULT: ${{ needs.dispatch_release_convergence.result }}
+ CONVERGENCE_RUN_ID: ${{ needs.dispatch_release_convergence.outputs.run_id }}
+ CONVERGENCE_RUN_URL: ${{ needs.dispatch_release_convergence.outputs.run_url }}
+ R2_PREFIX: ${{ needs.stage_private_pro_runtime.outputs.r2_prefix }}
run: |
set -euo pipefail
require_result() {
@@ -1771,17 +1760,29 @@ jobs:
require_result "exact-version Docker staging" "$DOCKER_RESULT" success
require_result "staged install.sh smoke" "$INSTALL_RESULT" success
require_result "Helm staging" "$HELM_RESULT" success
- require_result "public Helm repository promotion" "$HELM_PAGES_RESULT" success
require_result "immutable release readiness" "$READINESS_RESULT" success
- require_result "floating-tag promotion" "$FLOATING_RESULT" success
- require_result "release activation" "$ACTIVATION_RESULT" success
+ require_result "durable customer convergence dispatch" "$CONVERGENCE_DISPATCH_RESULT" success
if [[ "$VERSION" == 6.* ]]; then
require_result "private Pro staging" "$PRIVATE_PRO_STAGE_RESULT" success
- require_result "private Pro live promotion" "$PRIVATE_PRO_PROMOTION_RESULT" success
- if [ "$IS_PRERELEASE" != "true" ]; then
- require_result "stable demo deployment and verification" "$DEMO_RESULT" success
- fi
fi
+
+ marker="$(mktemp)"
+ curl -fsSL --retry 6 --retry-delay 5 --retry-all-errors \
+ -o "${marker}" \
+ "https://github.com/${{ github.repository }}/releases/download/${TAG}/release-activation.json"
+ jq -e \
+ --arg tag "${TAG}" \
+ --arg target_commitish "${EXPECTED_COMMIT}" \
+ --arg release_id "${RELEASE_ID}" \
+ --arg source_release_run_id "${GITHUB_RUN_ID}" \
+ --arg convergence_run_id "${CONVERGENCE_RUN_ID}" \
+ --arg r2_prefix "${R2_PREFIX}" \
+ '.schema_version == 1 and .tag == $tag and .target_commitish == $target_commitish and .release_id == $release_id and .source_release_run_id == $source_release_run_id and .convergence_run_id == $convergence_run_id and .r2_prefix == $r2_prefix' \
+ "${marker}" >/dev/null
+ rm -f "${marker}"
fi
- echo "Release verdict passed for v${VERSION}."
+ echo "Release activation commit passed for v${VERSION}."
+ if [ "${DRAFT_ONLY:-false}" != "true" ]; then
+ echo "Customer convergence continues independently in ${CONVERGENCE_RUN_URL}."
+ fi
diff --git a/.github/workflows/deploy-demo-server.yml b/.github/workflows/deploy-demo-server.yml
index eafbbac0a5..bd6a2e4b63 100644
--- a/.github/workflows/deploy-demo-server.yml
+++ b/.github/workflows/deploy-demo-server.yml
@@ -1,335 +1,22 @@
-name: Deploy Demo Server
+name: Verify Demo Server
+# This historical bootstrap entry point is deliberately non-mutating. Stable
+# demo writes belong exclusively to release-convergence.yml, where an exact
+# committed stable tag is admitted under the global customer-promotion lease.
on:
workflow_dispatch:
- inputs:
- target:
- description: 'Demo target to deploy'
- required: true
- default: stable
- type: choice
- options:
- - stable
- # schedule:
- # - cron: '0 0 * * *' # Nightly at midnight
permissions:
contents: read
jobs:
- resolve:
- runs-on: ubuntu-24.04
- outputs:
- target: ${{ steps.target.outputs.target }}
- environment_name: ${{ steps.target.outputs.environment_name }}
-
- steps:
- - name: Resolve demo target environment
- id: target
- env:
- INPUT_TARGET: ${{ inputs.target }}
- run: |
- set -euo pipefail
- TARGET="$INPUT_TARGET"
- case "$TARGET" in
- stable)
- ENVIRONMENT_NAME="demo-stable"
- ;;
- *)
- echo "::error::Unsupported demo target: ${TARGET}"
- exit 1
- ;;
- esac
-
- echo "target=$TARGET" >> "$GITHUB_OUTPUT"
- echo "environment_name=$ENVIRONMENT_NAME" >> "$GITHUB_OUTPUT"
-
- deploy:
- needs: resolve
- runs-on: ubuntu-24.04
- environment: ${{ needs.resolve.outputs.environment_name }}
- env:
- DEMO_EXPECTED_HOSTNAME: ${{ vars.DEMO_EXPECTED_HOSTNAME }}
- DEMO_LOCAL_BASE_URL: ${{ vars.DEMO_LOCAL_BASE_URL }}
- DEMO_SERVICE_NAME: ${{ vars.DEMO_SERVICE_NAME }}
- DEMO_INSTALL_DIR: ${{ vars.DEMO_INSTALL_DIR }}
- DEMO_PUBLIC_HEALTH_URL: ${{ vars.DEMO_PUBLIC_HEALTH_URL }}
- DEMO_TEST_PORT: ${{ vars.DEMO_TEST_PORT }}
- DEMO_AUTH_USER: ${{ vars.DEMO_AUTH_USER }}
- DEMO_AUTH_PASS: ${{ vars.DEMO_AUTH_PASS }}
-
- steps:
- - name: Validate demo environment configuration
- env:
- DEMO_SERVER_HOST: ${{ secrets.DEMO_SERVER_HOST }}
- DEMO_SERVER_USER: ${{ secrets.DEMO_SERVER_USER }}
- DEMO_SERVER_SSH_KEY: ${{ secrets.DEMO_SERVER_SSH_KEY }}
- run: |
- set -euo pipefail
- [ -n "$DEMO_SERVER_HOST" ] || { echo "::error::DEMO_SERVER_HOST is required in the selected demo environment."; exit 1; }
- [ -n "$DEMO_SERVER_USER" ] || { echo "::error::DEMO_SERVER_USER is required in the selected demo environment."; exit 1; }
- [ -n "$DEMO_SERVER_SSH_KEY" ] || { echo "::error::DEMO_SERVER_SSH_KEY is required in the selected demo environment."; exit 1; }
- [ -n "$DEMO_EXPECTED_HOSTNAME" ] || { echo "::error::DEMO_EXPECTED_HOSTNAME is required in the selected demo environment."; exit 1; }
- [ -n "$DEMO_LOCAL_BASE_URL" ] || { echo "::error::DEMO_LOCAL_BASE_URL is required in the selected demo environment."; exit 1; }
- [ -n "$DEMO_PUBLIC_HEALTH_URL" ] || { echo "::error::DEMO_PUBLIC_HEALTH_URL is required in the selected demo environment."; exit 1; }
-
- - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
-
- - name: Set up Go
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
- with:
- go-version-file: go.mod
- cache: true
-
- - name: Set up Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- with:
- node-version: '20'
- cache: 'npm'
- cache-dependency-path: 'frontend-modern/package-lock.json'
-
- - name: Install frontend dependencies
- run: npm --prefix frontend-modern ci
-
- - name: Restore frontend build cache
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
- with:
- path: frontend-modern/dist
- key: frontend-build-${{ hashFiles('frontend-modern/package-lock.json', 'frontend-modern/src/**/*', 'frontend-modern/index.html', 'frontend-modern/postcss.config.cjs', 'frontend-modern/tailwind.config.cjs') }}
-
- - name: Build frontend
- run: |
- if [ -d "frontend-modern/dist" ] && [ -f "frontend-modern/dist/index.html" ]; then
- echo "Using cached frontend build"
- else
- npm --prefix frontend-modern run build
- fi
-
- rm -rf internal/api/frontend-modern
- mkdir -p internal/api/frontend-modern
- cp -r frontend-modern/dist internal/api/frontend-modern/
-
- - name: Capture expected frontend entry asset
- id: frontend
- run: |
- set -euo pipefail
- ENTRY_ASSET="$(grep -o '/assets/index-[^\" ]*\.js' frontend-modern/dist/index.html | head -n 1)"
- [ -n "$ENTRY_ASSET" ] || { echo "::error::Unable to resolve the built frontend entry asset."; exit 1; }
- echo "entry_asset=$ENTRY_ASSET" >> "$GITHUB_OUTPUT"
-
- - name: Build static binary
- env:
- PULSE_LICENSE_PUBLIC_KEY: ${{ secrets.PULSE_LICENSE_PUBLIC_KEY }}
- run: |
- set -euo pipefail
- VERSION="v$(cat VERSION | tr -d '\n')"
- BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
- GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown")
- SERVER_LDFLAGS="$(if [ -n "${PULSE_LICENSE_PUBLIC_KEY:-}" ]; then ./scripts/release_ldflags.sh server --version "${VERSION}" --build-time "${BUILD_TIME}" --git-commit "${GIT_COMMIT}" --license-public-key "${PULSE_LICENSE_PUBLIC_KEY}"; else ./scripts/release_ldflags.sh server --version "${VERSION}" --build-time "${BUILD_TIME}" --git-commit "${GIT_COMMIT}"; fi)"
- CGO_ENABLED=0 go build \
- -ldflags="${SERVER_LDFLAGS}" \
- -buildvcs=false \
- -trimpath \
- -o pulse ./cmd/pulse/
-
- - name: Tailscale
- id: tailscale
- uses: tailscale/github-action@306e68a486fd2350f2bfc3b19fcd143891a4a2d8 # v4
- with:
- oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
- oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
- tags: tag:infra
- version: '1.94.2'
- ping: ${{ secrets.DEMO_SERVER_HOST }}
-
- - name: Diagnose Tailscale setup failure
- if: failure() && steps.tailscale.outcome == 'failure'
- env:
- DEMO_SERVER_HOST: ${{ secrets.DEMO_SERVER_HOST }}
- run: bash .github/scripts/check-demo-reachability.sh diagnose
-
- - name: Verify demo network path
- env:
- DEMO_SERVER_HOST: ${{ secrets.DEMO_SERVER_HOST }}
- run: bash .github/scripts/check-demo-reachability.sh
-
- - name: Setup SSH
- env:
- DEMO_SERVER_HOST: ${{ secrets.DEMO_SERVER_HOST }}
- DEMO_SERVER_SSH_KEY: ${{ secrets.DEMO_SERVER_SSH_KEY }}
- run: bash .github/scripts/setup-demo-ssh.sh
-
- - name: Verify target host identity
- env:
- DEMO_SERVER_HOST: ${{ secrets.DEMO_SERVER_HOST }}
- DEMO_SERVER_USER: ${{ secrets.DEMO_SERVER_USER }}
- run: |
- set -euo pipefail
- REMOTE_HOSTNAME="$(
- ssh -i ~/.ssh/id_ed25519 \
- -o IdentitiesOnly=yes \
- -o StrictHostKeyChecking=yes \
- -o UserKnownHostsFile=~/.ssh/known_hosts \
- "$DEMO_SERVER_USER@$DEMO_SERVER_HOST" \
- "hostname"
- )"
- [ "$REMOTE_HOSTNAME" = "$DEMO_EXPECTED_HOSTNAME" ] || {
- echo "::error::Demo environment points at host $REMOTE_HOSTNAME but expected $DEMO_EXPECTED_HOSTNAME."
- exit 1
- }
-
- - name: Resolve deploy paths
- id: config
- run: |
- set -euo pipefail
- TARGET="${{ needs.resolve.outputs.target }}"
- SERVICE_NAME="${DEMO_SERVICE_NAME:-}"
- if [ -z "$SERVICE_NAME" ]; then
- SERVICE_NAME="pulse"
- fi
- if [ "$TARGET" != "stable" ]; then
- echo "::error::Unsupported demo target: ${TARGET}"
- exit 1
- fi
- INSTALL_DIR="${DEMO_INSTALL_DIR:-}"
- if [ -z "$INSTALL_DIR" ]; then
- if [ "$SERVICE_NAME" = "pulse" ]; then
- INSTALL_DIR="/opt/pulse"
- else
- INSTALL_DIR="/opt/$SERVICE_NAME"
- fi
- fi
- TEST_PORT="${DEMO_TEST_PORT:-8082}"
- AUTH_USER="${DEMO_AUTH_USER:-demo}"
- AUTH_PASS="${DEMO_AUTH_PASS:-demo}"
-
- echo "service_name=$SERVICE_NAME" >> "$GITHUB_OUTPUT"
- echo "install_dir=$INSTALL_DIR" >> "$GITHUB_OUTPUT"
- echo "test_port=$TEST_PORT" >> "$GITHUB_OUTPUT"
- echo "auth_user=$AUTH_USER" >> "$GITHUB_OUTPUT"
- echo "auth_pass=$AUTH_PASS" >> "$GITHUB_OUTPUT"
-
- - name: Deploy to server
- env:
- DEPLOY_HOST: ${{ secrets.DEMO_SERVER_HOST }}
- DEPLOY_USER: ${{ secrets.DEMO_SERVER_USER }}
- run: |
- set -euo pipefail
- SSH_OPTS=(
- -i ~/.ssh/id_ed25519
- -o IdentitiesOnly=yes
- -o StrictHostKeyChecking=yes
- -o UserKnownHostsFile=~/.ssh/known_hosts
- )
-
- TARGET_SERVICE="${{ steps.config.outputs.service_name }}"
- INSTALL_DIR="${{ steps.config.outputs.install_dir }}"
- TEST_PORT="${{ steps.config.outputs.test_port }}"
- AUTH_USER="${{ steps.config.outputs.auth_user }}"
- AUTH_PASS="${{ steps.config.outputs.auth_pass }}"
-
- ssh "${SSH_OPTS[@]}" "${DEPLOY_USER}@${DEPLOY_HOST}" "rm -f /tmp/pulse-new; rm -rf /tmp/pulse-demo-test" || true
- scp "${SSH_OPTS[@]}" pulse "${DEPLOY_USER}@${DEPLOY_HOST}:/tmp/pulse-new"
-
- ssh "${SSH_OPTS[@]}" "${DEPLOY_USER}@${DEPLOY_HOST}" \
- "TARGET_SERVICE=$(printf '%q' "$TARGET_SERVICE") INSTALL_DIR=$(printf '%q' "$INSTALL_DIR") TEST_PORT=$(printf '%q' "$TEST_PORT") AUTH_USER=$(printf '%q' "$AUTH_USER") AUTH_PASS=$(printf '%q' "$AUTH_PASS") bash -s" <<'EOF'
- set -euo pipefail
- chmod +x /tmp/pulse-new
- PULSE_DATA_DIR=/tmp/pulse-demo-test \
- FRONTEND_PORT="$TEST_PORT" \
- PULSE_MOCK_MODE=true \
- PULSE_AUTH_USER="$AUTH_USER" \
- PULSE_AUTH_PASS="$AUTH_PASS" \
- nohup /tmp/pulse-new > /tmp/demo-deploy-test.log 2>&1 &
- PID=$!
- sleep 5
- if curl -fsS "http://127.0.0.1:${TEST_PORT}/api/health"; then
- echo 'Health check passed'
- kill "$PID"
- rm -rf /tmp/pulse-demo-test
- rm -f /tmp/demo-deploy-test.log
- else
- echo 'Health check failed'
- cat /tmp/demo-deploy-test.log || true
- kill "$PID" || true
- rm -rf /tmp/pulse-demo-test
- exit 1
- fi
-
- sudo test -d "$INSTALL_DIR/bin"
- sudo systemctl stop "$TARGET_SERVICE"
- sudo mv /tmp/pulse-new "$INSTALL_DIR/bin/pulse"
- sudo systemctl start "$TARGET_SERVICE"
- EOF
-
- - name: Verify production
- run: |
- set -euo pipefail
- sleep 5
- curl -fsS "$DEMO_PUBLIC_HEALTH_URL"
-
- - name: Verify frontend parity
- env:
- DEPLOY_HOST: ${{ secrets.DEMO_SERVER_HOST }}
- DEPLOY_USER: ${{ secrets.DEMO_SERVER_USER }}
- run: |
- set -euo pipefail
- case "$DEMO_PUBLIC_HEALTH_URL" in
- */api/health)
- PUBLIC_ROOT_URL="${DEMO_PUBLIC_HEALTH_URL%/api/health}/"
- ;;
- *)
- echo "::error::DEMO_PUBLIC_HEALTH_URL must end with /api/health for frontend verification."
- exit 1
- ;;
- esac
-
- SSH_OPTS=(
- -i ~/.ssh/id_ed25519
- -o IdentitiesOnly=yes
- -o StrictHostKeyChecking=yes
- -o UserKnownHostsFile=~/.ssh/known_hosts
- )
-
- extract_entry_asset() {
- python3 -c 'import re, sys; html = sys.stdin.read(); match = re.search(r"<script\b[^>]*\bsrc=\"(/assets/index-[^\"]*\.js)\"", html); sys.exit(1) if match is None else sys.stdout.write(match.group(1))'
- }
-
- EXPECTED_ASSET="${{ steps.frontend.outputs.entry_asset }}"
- if ! REMOTE_ASSET="$(
- ssh "${SSH_OPTS[@]}" "${DEPLOY_USER}@${DEPLOY_HOST}" \
- "curl -fsS ${DEMO_LOCAL_BASE_URL}/" | extract_entry_asset
- )"; then
- echo "::error::Failed to resolve the remote frontend entry asset."
- exit 1
- fi
- if ! PUBLIC_ASSET="$(curl -fsS "$PUBLIC_ROOT_URL" | extract_entry_asset)"; then
- echo "::error::Failed to resolve the public frontend entry asset."
- exit 1
- fi
- [ "$REMOTE_ASSET" = "$EXPECTED_ASSET" ] || {
- echo "::error::Remote service is serving $REMOTE_ASSET but the build expected $EXPECTED_ASSET."
- exit 1
- }
- [ "$PUBLIC_ASSET" = "$EXPECTED_ASSET" ] || {
- echo "::error::Public demo is serving $PUBLIC_ASSET but the build expected $EXPECTED_ASSET."
- exit 1
- }
-
- - name: Verify public browser smoke
- run: |
- set -euo pipefail
- case "$DEMO_PUBLIC_HEALTH_URL" in
- */api/health)
- export PULSE_PUBLIC_SITE_URL="${DEMO_PUBLIC_HEALTH_URL%/api/health}/"
- ;;
- *)
- echo "::error::DEMO_PUBLIC_HEALTH_URL must end with /api/health for browser verification."
- exit 1
- ;;
- esac
- ./scripts/run_demo_public_browser_smoke.sh
-
- - name: Cleanup SSH material
- if: always()
- run: rm -f ~/.ssh/id_ed25519 ~/.ssh/known_hosts
+ verify_current_stable_demo:
+ name: Verify Current Committed Stable Demo (No Mutation)
+ permissions:
+ contents: read
+ uses: ./.github/workflows/update-demo-server.yml
+ secrets: inherit
+ with:
+ tag: latest
+ target: stable
+ verify_only: true
diff --git a/.github/workflows/helm-pages.yml b/.github/workflows/helm-pages.yml
index c7a3fbc713..f8a845b6fd 100644
--- a/.github/workflows/helm-pages.yml
+++ b/.github/workflows/helm-pages.yml
@@ -1,10 +1,9 @@
name: Release Helm Chart to GitHub Pages
run-name: Release Helm Chart ${{ inputs.chart_version }}
-# Called explicitly from create-release.yml after the exact Docker image is
-# pullable and the GitHub release is activated, or dispatched manually for a
-# governed published-release backfill. This workflow mutates the public Pages
-# index and must never advertise a draft or quarantined release.
+# Called only from release-convergence.yml while it holds the global customer-
+# promotion lease. This workflow mutates the public Pages index and must never
+# expose a direct dispatch path that bypasses that lease.
on:
workflow_call:
inputs:
@@ -12,11 +11,6 @@ on:
description: "Chart version (e.g., 6.2.0-rc.9)."
required: true
type: string
- workflow_dispatch:
- inputs:
- chart_version:
- description: "Chart version (e.g., 4.28.0)"
- required: true
permissions:
contents: write
diff --git a/.github/workflows/promote-floating-tags.yml b/.github/workflows/promote-floating-tags.yml
index 5978d78bcf..ae7e8ccecd 100644
--- a/.github/workflows/promote-floating-tags.yml
+++ b/.github/workflows/promote-floating-tags.yml
@@ -6,10 +6,8 @@ run-name: Promote Floating Tags ${{ inputs.tag }}
# by publish-docker.yml; this workflow is the sole owner of mutable aliases and
# refuses to point them at a draft or quarantined GitHub release.
#
-# Triggers:
-# - workflow_call: called explicitly from create-release.yml after the exact
-# version images and release assets pass their staging checks.
-# - workflow_dispatch: manual backfill path.
+# This mutator is callable only from release-convergence.yml, which owns the
+# global customer-promotion lease. A direct dispatch would bypass that lease.
on:
workflow_call:
@@ -22,22 +20,6 @@ on:
description: "Is this a prerelease?"
required: true
type: boolean
- workflow_dispatch:
- inputs:
- tag:
- description: 'Release tag (e.g., v6.0.0)'
- required: true
- type: string
- prerelease:
- description: 'Is this a prerelease?'
- required: true
- type: boolean
- default: false
- force_latest:
- description: 'Move :latest to this tag even if it is not the highest stable (rollback)'
- required: false
- type: boolean
- default: false
permissions:
contents: read
@@ -140,7 +122,6 @@ jobs:
TAG: ${{ steps.extract.outputs.tag }}
PRERELEASE: ${{ steps.extract.outputs.prerelease }}
OWNER: ${{ github.repository_owner }}
- FORCE_LATEST: ${{ github.event_name == 'workflow_dispatch' && inputs.force_latest || false }}
run: |
set -euo pipefail
VERSION="${TAG#v}"
@@ -170,7 +151,7 @@ jobs:
-t "ghcr.io/${OWNER}/${image}:${MAJOR_MINOR}"
-t "ghcr.io/${OWNER}/${image}:${MAJOR}"
)
- if [ "$TAG" = "$HIGHEST_STABLE" ] || [ "${FORCE_LATEST}" = "true" ]; then
+ if [ "$TAG" = "$HIGHEST_STABLE" ]; then
docker_hub_tags+=( -t "rcourtman/${image}:latest" )
ghcr_tags+=( -t "ghcr.io/${OWNER}/${image}:latest" )
echo "Promoting stable aliases for ${image} from ${TAG}, including :latest."
diff --git a/.github/workflows/promote-private-pro-runtime.yml b/.github/workflows/promote-private-pro-runtime.yml
new file mode 100644
index 0000000000..553d69ea15
--- /dev/null
+++ b/.github/workflows/promote-private-pro-runtime.yml
@@ -0,0 +1,145 @@
+name: Promote Private Pro Runtime
+run-name: Promote Private Pro Runtime ${{ inputs.tag }}
+
+on:
+ workflow_call:
+ inputs:
+ version:
+ description: "Exact Pulse version without the leading v."
+ required: true
+ type: string
+ tag:
+ description: "Exact Pulse release tag."
+ required: true
+ type: string
+ prerelease:
+ description: "Whether this release targets the RC broker slot."
+ required: true
+ type: boolean
+ r2_prefix:
+ description: "Signed private Pro packet prefix staged before activation."
+ required: true
+ type: string
+ pulse_lease_sha:
+ description: "Exact customer-promotion lease commit owned by this convergence run."
+ required: true
+ type: string
+ pulse_convergence_run_id:
+ description: "Exact Release Convergence run that owns the lease."
+ required: true
+ type: string
+ pulse_owner_asset_name:
+ description: "Unique immutable convergence-owner evidence asset."
+ required: true
+ type: string
+ pulse_owner_asset_sha256:
+ description: "SHA-256 digest of the immutable convergence-owner evidence."
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+jobs:
+ promote:
+ runs-on: ubuntu-24.04
+ timeout-minutes: 65
+ steps:
+ - name: Promote and verify private Pro runtime
+ env:
+ GH_TOKEN: ${{ secrets.WORKFLOW_PAT }}
+ VERSION: ${{ inputs.version }}
+ TAG: ${{ inputs.tag }}
+ IS_PRERELEASE: ${{ inputs.prerelease }}
+ R2_PREFIX: ${{ inputs.r2_prefix }}
+ PULSE_LEASE_SHA: ${{ inputs.pulse_lease_sha }}
+ PULSE_CONVERGENCE_RUN_ID: ${{ inputs.pulse_convergence_run_id }}
+ PULSE_OWNER_ASSET_NAME: ${{ inputs.pulse_owner_asset_name }}
+ PULSE_OWNER_ASSET_SHA256: ${{ inputs.pulse_owner_asset_sha256 }}
+ run: |
+ set -euo pipefail
+
+ if [[ -z "${GH_TOKEN:-}" ]]; then
+ echo "::error::WORKFLOW_PAT is required to dispatch private Pro promotion workflows."
+ exit 1
+ fi
+ if [[ -z "${R2_PREFIX:-}" ]]; then
+ echo "::error::Private Pro staging did not return an R2 prefix."
+ exit 1
+ fi
+
+ wait_for_workflow() {
+ local repo="$1"
+ local run_id="$2"
+ local label="$3"
+ local timeout_seconds="$4"
+ local deadline=$((SECONDS + timeout_seconds))
+
+ if [[ ! "${run_id}" =~ ^[0-9]+$ ]]; then
+ echo "::error::Dispatch for ${label} did not return an exact workflow run ID."
+ return 1
+ fi
+
+ echo "Watching exact ${label} run ${run_id} in ${repo}."
+ while (( SECONDS < deadline )); do
+ run_state="$(
+ gh run view "${run_id}" \
+ --repo "${repo}" \
+ --json status,conclusion,url \
+ --jq '[.status, (.conclusion // ""), .url] | @tsv'
+ )"
+ status="$(awk -F '\t' '{print $1}' <<<"${run_state}")"
+ conclusion="$(awk -F '\t' '{print $2}' <<<"${run_state}")"
+ url="$(awk -F '\t' '{print $3}' <<<"${run_state}")"
+ echo "${label}: status=${status} conclusion=${conclusion:-pending} ${url}"
+ if [[ "${status}" == "completed" ]]; then
+ if [[ "${conclusion}" == "success" ]]; then
+ echo "[OK] ${label} completed successfully: ${url}"
+ return 0
+ fi
+ echo "::error::${label} failed with conclusion=${conclusion}: ${url}"
+ return 1
+ fi
+ sleep 30
+ done
+
+ echo "::error::Timed out waiting for ${label} after ${timeout_seconds}s."
+ return 1
+ }
+
+ allow_ga_publish=false
+ if [[ "${IS_PRERELEASE}" != "true" ]]; then
+ allow_ga_publish=true
+ fi
+ echo "Dispatching live paid-runtime promotion for ${TAG} with R2 prefix ${R2_PREFIX}."
+ promote_dispatch="$(
+ jq -n \
+ --arg version "${VERSION}" \
+ --arg r2_prefix "${R2_PREFIX}" \
+ --arg allow_ga_prefix "${allow_ga_publish}" \
+ --arg pulse_lease_sha "${PULSE_LEASE_SHA}" \
+ --arg pulse_convergence_run_id "${PULSE_CONVERGENCE_RUN_ID}" \
+ --arg pulse_owner_asset_name "${PULSE_OWNER_ASSET_NAME}" \
+ --arg pulse_owner_asset_sha256 "${PULSE_OWNER_ASSET_SHA256}" \
+ '{
+ ref: "main",
+ return_run_details: true,
+ inputs: {
+ version: $version,
+ r2_prefix: $r2_prefix,
+ allow_ga_prefix: $allow_ga_prefix,
+ pulse_lease_sha: $pulse_lease_sha,
+ pulse_convergence_run_id: $pulse_convergence_run_id,
+ pulse_owner_asset_name: $pulse_owner_asset_name,
+ pulse_owner_asset_sha256: $pulse_owner_asset_sha256
+ }
+ }' | \
+ gh api \
+ --method POST \
+ -H "Accept: application/vnd.github+json" \
+ -H "X-GitHub-Api-Version: 2026-03-10" \
+ repos/rcourtman/pulse-pro/actions/workflows/promote-paid-runtime-release.yml/dispatches \
+ --input -
+ )"
+ promote_run_id="$(jq -r '.workflow_run_id // empty' <<<"${promote_dispatch}")"
+ wait_for_workflow rcourtman/pulse-pro "${promote_run_id}" "private Pro live promotion" 3600
diff --git a/.github/workflows/release-convergence.yml b/.github/workflows/release-convergence.yml
new file mode 100644
index 0000000000..c9bf6dc692
--- /dev/null
+++ b/.github/workflows/release-convergence.yml
@@ -0,0 +1,401 @@
+name: Release Convergence
+run-name: Release convergence ${{ inputs.tag }} source ${{ inputs.source_release_run_id }}
+
+# GitHub publication is an irreversible commit only after create-release.yml
+# uploads and publicly verifies release-activation.json. This workflow is
+# dispatched before that commit, waits for the marker, serializes every global
+# mutable customer surface behind an explicit ref lease, and remains safely
+# re-runnable until all surfaces converge.
+on:
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: "Exact committed GitHub release tag."
+ required: true
+ type: string
+ version:
+ description: "Exact release version without the leading v."
+ required: true
+ type: string
+ prerelease:
+ description: "Whether this release targets the RC channel."
+ required: true
+ type: boolean
+ target_commitish:
+ description: "Exact release source commit."
+ required: true
+ type: string
+ release_id:
+ description: "GitHub release database ID committed by create-release.yml."
+ required: true
+ type: string
+ r2_prefix:
+ description: "Signed private Pro packet prefix for v6 convergence."
+ required: false
+ default: ""
+ type: string
+ source_release_run_id:
+ description: "create-release.yml run that staged this convergence."
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+jobs:
+ await_activation_commit:
+ name: Await irreversible activation commit
+ runs-on: ubuntu-24.04
+ timeout-minutes: 360
+ permissions:
+ actions: read
+ contents: read
+ outputs:
+ activation_owner_run_id: ${{ steps.marker.outputs.activation_owner_run_id }}
+ activation_marker_sha256: ${{ steps.marker.outputs.activation_marker_sha256 }}
+ steps:
+ - name: Wait for verified public activation marker
+ id: marker
+ env:
+ GH_TOKEN: ${{ github.token }}
+ TAG: ${{ inputs.tag }}
+ EXPECTED_COMMIT: ${{ inputs.target_commitish }}
+ EXPECTED_RELEASE_ID: ${{ inputs.release_id }}
+ EXPECTED_SOURCE_RUN_ID: ${{ inputs.source_release_run_id }}
+ EXPECTED_CONVERGENCE_RUN_ID: ${{ github.run_id }}
+ EXPECTED_R2_PREFIX: ${{ inputs.r2_prefix }}
+ run: |
+ set -euo pipefail
+ marker_url="https://github.com/${{ github.repository }}/releases/download/${TAG}/release-activation.json"
+ for attempt in $(seq 1 2100); do
+ release_state="$(
+ gh api "repos/${{ github.repository }}/releases/tags/${TAG}" \
+ --jq '[.id, .tag_name, .target_commitish, (.draft | tostring), (.published_at // "")] | @tsv' \
+ 2>/dev/null || true
+ )"
+ release_id="$(awk -F '\t' '{print $1}' <<<"${release_state}")"
+ actual_tag="$(awk -F '\t' '{print $2}' <<<"${release_state}")"
+ actual_commit="$(awk -F '\t' '{print $3}' <<<"${release_state}")"
+ is_draft="$(awk -F '\t' '{print $4}' <<<"${release_state}")"
+ published_at="$(awk -F '\t' '{print $5}' <<<"${release_state}")"
+ marker="$(mktemp)"
+ if [ "${release_id}" = "${EXPECTED_RELEASE_ID}" ] && \
+ [ "${actual_tag}" = "${TAG}" ] && \
+ [ "${actual_commit}" = "${EXPECTED_COMMIT}" ] && \
+ [ "${is_draft}" = "false" ] && \
+ [ -n "${published_at}" ] && \
+ curl -fsSL --retry 2 --retry-delay 2 --retry-all-errors \
+ -o "${marker}" "${marker_url}" && \
+ jq -e \
+ --arg tag "${TAG}" \
+ --arg commit "${EXPECTED_COMMIT}" \
+ --arg release_id "${EXPECTED_RELEASE_ID}" \
+ --arg source_run_id "${EXPECTED_SOURCE_RUN_ID}" \
+ --arg r2_prefix "${EXPECTED_R2_PREFIX}" \
+ '.schema_version == 1 and .tag == $tag and .target_commitish == $commit and .release_id == $release_id and .source_release_run_id == $source_run_id and (.convergence_run_id | test("^[0-9]+$")) and .r2_prefix == $r2_prefix' \
+ "${marker}" >/dev/null; then
+ activation_owner_run_id="$(jq -r '.convergence_run_id' "${marker}")"
+ if [ "${activation_owner_run_id}" != "${EXPECTED_CONVERGENCE_RUN_ID}" ]; then
+ original_status="$(
+ gh api \
+ "repos/${{ github.repository }}/actions/runs/${activation_owner_run_id}" \
+ --jq '.status' 2>/dev/null || true
+ )"
+ if [ "${original_status}" != "completed" ]; then
+ rm -f "${marker}"
+ echo "Original convergence owner ${activation_owner_run_id} is ${original_status:-unavailable}; successor adoption is not yet allowed."
+ sleep 10
+ continue
+ fi
+ echo "[OK] Adopting committed ${TAG} from completed convergence owner ${activation_owner_run_id}."
+ fi
+ activation_marker_sha256="$(sha256sum "${marker}" | awk '{print $1}')"
+ echo "activation_owner_run_id=${activation_owner_run_id}" >> "$GITHUB_OUTPUT"
+ echo "activation_marker_sha256=${activation_marker_sha256}" >> "$GITHUB_OUTPUT"
+ rm -f "${marker}"
+ echo "[OK] ${TAG} crossed the verified activation commit point."
+ exit 0
+ fi
+ rm -f "${marker}"
+ echo "Activation marker for ${TAG} is not committed yet (${attempt}/2100)."
+ sleep 10
+ done
+ echo "::error::Timed out waiting for the verified activation marker for ${TAG}."
+ exit 1
+
+ acquire_customer_promotion_lease:
+ name: Acquire global customer-promotion lease
+ needs: await_activation_commit
+ runs-on: ubuntu-24.04
+ timeout-minutes: 360
+ permissions:
+ actions: read
+ contents: write
+ outputs:
+ lock_sha: ${{ steps.acquire.outputs.lock_sha }}
+ superseded: ${{ steps.admit.outputs.superseded }}
+ desired_tag: ${{ steps.admit.outputs.desired_tag }}
+ owner_asset_name: ${{ steps.owner.outputs.owner_asset_name }}
+ owner_asset_sha256: ${{ steps.owner.outputs.owner_asset_sha256 }}
+ steps:
+ - name: Checkout release control
+ uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+ with:
+ fetch-depth: 1
+ persist-credentials: true
+
+ - name: Acquire repository-ref lease
+ id: acquire
+ env:
+ GH_TOKEN: ${{ github.token }}
+ TAG: ${{ inputs.tag }}
+ run: |
+ set -euo pipefail
+ scripts/release_control/customer_promotion_lease.sh acquire "${TAG}"
+
+ - name: Enforce committed-release monotonicity
+ id: admit
+ env:
+ GH_TOKEN: ${{ github.token }}
+ TAG: ${{ inputs.tag }}
+ IS_PRERELEASE: ${{ inputs.prerelease }}
+ run: |
+ set -euo pipefail
+ releases="$(mktemp)"
+ marker="$(mktemp)"
+ cleanup() { rm -f "${releases}" "${marker}"; }
+ trap cleanup EXIT
+ gh release list --limit 500 --json isDraft,isPrerelease,publishedAt,tagName > "${releases}"
+
+ desired_tag=""
+ while IFS= read -r candidate; do
+ [ -n "${candidate}" ] || continue
+ marker_url="https://github.com/${{ github.repository }}/releases/download/${candidate}/release-activation.json"
+ if curl -fsSL --retry 2 --retry-delay 1 --retry-all-errors \
+ -o "${marker}" "${marker_url}" && \
+ jq -e --arg tag "${candidate}" \
+ '.schema_version == 1 and .tag == $tag' "${marker}" >/dev/null; then
+ desired_tag="${candidate}"
+ break
+ fi
+ done < <(
+ jq -r --argjson prerelease "${IS_PRERELEASE}" \
+ '.[] | select(.isDraft == false and .isPrerelease == $prerelease and .publishedAt != null) | .tagName' \
+ "${releases}" | sort -Vr
+ )
+
+ if [ -z "${desired_tag}" ]; then
+ echo "::error::No committed ${IS_PRERELEASE} channel release was found."
+ exit 1
+ fi
+ echo "desired_tag=${desired_tag}" >> "$GITHUB_OUTPUT"
+ if [ "${desired_tag}" != "${TAG}" ]; then
+ echo "superseded=true" >> "$GITHUB_OUTPUT"
+ echo "[OK] ${TAG} is superseded by committed ${desired_tag}; no global customer pointer will move backward."
+ else
+ echo "superseded=false" >> "$GITHUB_OUTPUT"
+ echo "[OK] ${TAG} is the monotonic ${IS_PRERELEASE} channel convergence target."
+ fi
+
+ - name: Bind this lease as the active convergence successor
+ id: owner
+ env:
+ GH_TOKEN: ${{ github.token }}
+ TAG: ${{ inputs.tag }}
+ TARGET_COMMITISH: ${{ inputs.target_commitish }}
+ RELEASE_ID: ${{ inputs.release_id }}
+ SOURCE_RELEASE_RUN_ID: ${{ inputs.source_release_run_id }}
+ R2_PREFIX: ${{ inputs.r2_prefix }}
+ ACTIVATION_OWNER_RUN_ID: ${{ needs.await_activation_commit.outputs.activation_owner_run_id }}
+ ACTIVATION_MARKER_SHA256: ${{ needs.await_activation_commit.outputs.activation_marker_sha256 }}
+ LEASE_SHA: ${{ steps.acquire.outputs.lock_sha }}
+ run: |
+ set -euo pipefail
+ owner_dir="$(mktemp -d)"
+ verified_record="$(mktemp)"
+ cleanup() { rm -rf "${owner_dir}"; rm -f "${verified_record}"; }
+ trap cleanup EXIT
+ owner_asset_name="release-convergence-owner-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${LEASE_SHA}.json"
+ owner_record="${owner_dir}/${owner_asset_name}"
+ jq -n \
+ --arg tag "${TAG}" \
+ --arg target_commitish "${TARGET_COMMITISH}" \
+ --arg release_id "${RELEASE_ID}" \
+ --arg source_release_run_id "${SOURCE_RELEASE_RUN_ID}" \
+ --arg r2_prefix "${R2_PREFIX}" \
+ --arg activation_owner_run_id "${ACTIVATION_OWNER_RUN_ID}" \
+ --arg activation_marker_sha256 "${ACTIVATION_MARKER_SHA256}" \
+ --arg convergence_run_id "${GITHUB_RUN_ID}" \
+ --arg lease_sha "${LEASE_SHA}" \
+ --arg owner_asset_name "${owner_asset_name}" \
+ '{
+ schema_version: 1,
+ tag: $tag,
+ target_commitish: $target_commitish,
+ release_id: $release_id,
+ source_release_run_id: $source_release_run_id,
+ r2_prefix: $r2_prefix,
+ activation_owner_run_id: $activation_owner_run_id,
+ activation_marker_sha256: $activation_marker_sha256,
+ convergence_run_id: $convergence_run_id,
+ lease_sha: $lease_sha,
+ owner_asset_name: $owner_asset_name
+ }' > "${owner_record}"
+ owner_asset_sha256="$(sha256sum "${owner_record}" | awk '{print $1}')"
+ echo "owner_asset_name=${owner_asset_name}" >> "$GITHUB_OUTPUT"
+ echo "owner_asset_sha256=${owner_asset_sha256}" >> "$GITHUB_OUTPUT"
+ gh release upload "${TAG}" "${owner_record}"
+ curl -fsSL --retry 8 --retry-delay 2 --retry-all-errors \
+ -o "${verified_record}" \
+ "https://github.com/${{ github.repository }}/releases/download/${TAG}/${owner_asset_name}"
+ printf '%s %s\n' "${owner_asset_sha256}" "${verified_record}" | sha256sum --check --
+ jq -e \
+ --arg tag "${TAG}" \
+ --arg activation_owner_run_id "${ACTIVATION_OWNER_RUN_ID}" \
+ --arg activation_marker_sha256 "${ACTIVATION_MARKER_SHA256}" \
+ --arg convergence_run_id "${GITHUB_RUN_ID}" \
+ --arg lease_sha "${LEASE_SHA}" \
+ --arg owner_asset_name "${owner_asset_name}" \
+ '.schema_version == 1 and .tag == $tag and .activation_owner_run_id == $activation_owner_run_id and .activation_marker_sha256 == $activation_marker_sha256 and .convergence_run_id == $convergence_run_id and .lease_sha == $lease_sha and .owner_asset_name == $owner_asset_name' \
+ "${verified_record}" >/dev/null
+ echo "[OK] Bound convergence run ${GITHUB_RUN_ID} to lease ${LEASE_SHA} for ${TAG}."
+
+ promote_floating_tags:
+ name: Converge Docker aliases
+ needs: acquire_customer_promotion_lease
+ if: ${{ needs.acquire_customer_promotion_lease.result == 'success' && needs.acquire_customer_promotion_lease.outputs.superseded != 'true' }}
+ permissions:
+ contents: read
+ packages: write
+ uses: ./.github/workflows/promote-floating-tags.yml
+ secrets: inherit
+ with:
+ tag: ${{ inputs.tag }}
+ prerelease: ${{ inputs.prerelease }}
+
+ publish_helm_pages:
+ name: Converge Helm Pages
+ needs: acquire_customer_promotion_lease
+ # Helm Pages is an additive version index, not a floating pointer. Every
+ # committed chart is merged under the lease, even when a newer release has
+ # already won admission for the rollback-prone customer surfaces.
+ if: ${{ needs.acquire_customer_promotion_lease.result == 'success' }}
+ permissions:
+ contents: write
+ uses: ./.github/workflows/helm-pages.yml
+ secrets: inherit
+ with:
+ chart_version: ${{ inputs.version }}
+
+ promote_private_pro_runtime:
+ name: Converge paid-runtime broker
+ needs: acquire_customer_promotion_lease
+ if: ${{ needs.acquire_customer_promotion_lease.result == 'success' && needs.acquire_customer_promotion_lease.outputs.superseded != 'true' && startsWith(inputs.version, '6.') }}
+ permissions:
+ contents: read
+ uses: ./.github/workflows/promote-private-pro-runtime.yml
+ secrets: inherit
+ with:
+ version: ${{ inputs.version }}
+ tag: ${{ inputs.tag }}
+ prerelease: ${{ inputs.prerelease }}
+ r2_prefix: ${{ inputs.r2_prefix }}
+ pulse_lease_sha: ${{ needs.acquire_customer_promotion_lease.outputs.lock_sha }}
+ pulse_convergence_run_id: ${{ github.run_id }}
+ pulse_owner_asset_name: ${{ needs.acquire_customer_promotion_lease.outputs.owner_asset_name }}
+ pulse_owner_asset_sha256: ${{ needs.acquire_customer_promotion_lease.outputs.owner_asset_sha256 }}
+
+ update_stable_demo:
+ name: Converge stable demo
+ needs: acquire_customer_promotion_lease
+ if: ${{ needs.acquire_customer_promotion_lease.result == 'success' && needs.acquire_customer_promotion_lease.outputs.superseded != 'true' && inputs.prerelease != true && startsWith(inputs.version, '6.') }}
+ permissions:
+ contents: read
+ uses: ./.github/workflows/update-demo-server.yml
+ secrets: inherit
+ with:
+ tag: ${{ inputs.tag }}
+ target: stable
+ verify_only: false
+ activation_convergence_run_id: ${{ github.run_id }}
+ customer_promotion_lease_sha: ${{ needs.acquire_customer_promotion_lease.outputs.lock_sha }}
+ convergence_owner_asset_name: ${{ needs.acquire_customer_promotion_lease.outputs.owner_asset_name }}
+ convergence_owner_asset_sha256: ${{ needs.acquire_customer_promotion_lease.outputs.owner_asset_sha256 }}
+
+ convergence_verdict:
+ name: Customer Promotion Convergence Verdict
+ needs:
+ - acquire_customer_promotion_lease
+ - promote_floating_tags
+ - publish_helm_pages
+ - promote_private_pro_runtime
+ - update_stable_demo
+ if: ${{ always() }}
+ runs-on: ubuntu-24.04
+ steps:
+ - name: Require every applicable surface to converge
+ env:
+ VERSION: ${{ inputs.version }}
+ IS_PRERELEASE: ${{ inputs.prerelease }}
+ LEASE_RESULT: ${{ needs.acquire_customer_promotion_lease.result }}
+ SUPERSEDED: ${{ needs.acquire_customer_promotion_lease.outputs.superseded }}
+ DESIRED_TAG: ${{ needs.acquire_customer_promotion_lease.outputs.desired_tag }}
+ FLOATING_RESULT: ${{ needs.promote_floating_tags.result }}
+ HELM_PAGES_RESULT: ${{ needs.publish_helm_pages.result }}
+ PRIVATE_PRO_RESULT: ${{ needs.promote_private_pro_runtime.result }}
+ DEMO_RESULT: ${{ needs.update_stable_demo.result }}
+ run: |
+ set -euo pipefail
+ require_success() {
+ local surface="$1"
+ local result="$2"
+ if [ "${result}" != "success" ]; then
+ echo "::error::${surface} convergence ended as ${result}; the committed release remains public and this convergence run must be retried."
+ return 1
+ fi
+ }
+
+ require_success "global customer-promotion lease" "${LEASE_RESULT}"
+ require_success "Helm Pages" "${HELM_PAGES_RESULT}"
+ if [ "${SUPERSEDED}" = "true" ]; then
+ if [ "${FLOATING_RESULT}" != "skipped" ] || \
+ [ "${PRIVATE_PRO_RESULT}" != "skipped" ] || \
+ [ "${DEMO_RESULT}" != "skipped" ]; then
+ echo "::error::Superseded convergence mutated or attempted a rollback-prone customer surface."
+ exit 1
+ fi
+ echo "[OK] Added ${VERSION} to Helm Pages without moving rollback-prone pointers behind ${DESIRED_TAG}."
+ exit 0
+ fi
+ require_success "Docker aliases" "${FLOATING_RESULT}"
+ if [[ "${VERSION}" == 6.* ]]; then
+ require_success "paid-runtime broker" "${PRIVATE_PRO_RESULT}"
+ if [ "${IS_PRERELEASE}" != "true" ]; then
+ require_success "stable demo" "${DEMO_RESULT}"
+ fi
+ fi
+ echo "[OK] Every applicable customer surface converged for v${VERSION}."
+
+ release_customer_promotion_lease:
+ name: Release global customer-promotion lease
+ needs:
+ - acquire_customer_promotion_lease
+ - convergence_verdict
+ if: ${{ always() && needs.acquire_customer_promotion_lease.outputs.lock_sha != '' }}
+ runs-on: ubuntu-24.04
+ permissions:
+ contents: write
+ steps:
+ - name: Checkout release control
+ uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+ with:
+ fetch-depth: 1
+ persist-credentials: true
+
+ - name: Release owned repository-ref lease
+ env:
+ GH_TOKEN: ${{ github.token }}
+ LOCK_SHA: ${{ needs.acquire_customer_promotion_lease.outputs.lock_sha }}
+ run: |
+ set -euo pipefail
+ scripts/release_control/customer_promotion_lease.sh release "${LOCK_SHA}"
diff --git a/.github/workflows/retry-release-convergence.yml b/.github/workflows/retry-release-convergence.yml
new file mode 100644
index 0000000000..6e30758e4c
--- /dev/null
+++ b/.github/workflows/retry-release-convergence.yml
@@ -0,0 +1,90 @@
+name: Retry Release Convergence
+run-name: Retry release convergence run ${{ github.event.workflow_run.id }} attempt ${{ github.event.workflow_run.run_attempt }}
+
+# A committed release is never returned to draft because a mutable surface is
+# temporarily unavailable. Re-run the complete convergence workflow so it
+# reacquires the global lease and replays every idempotent surface. Successful
+# surfaces are safe to repeat; retrying only failed jobs would bypass the lease.
+on:
+ workflow_run:
+ workflows:
+ - Release Convergence
+ types:
+ - completed
+
+permissions:
+ actions: write
+ contents: read
+
+jobs:
+ retry_committed_convergence:
+ if: ${{ github.event.workflow_run.conclusion != 'success' }}
+ runs-on: ubuntu-24.04
+ timeout-minutes: 10
+ steps:
+ - name: Re-run the complete committed convergence
+ env:
+ GH_TOKEN: ${{ github.token }}
+ RUN_ID: ${{ github.event.workflow_run.id }}
+ RUN_ATTEMPT: ${{ github.event.workflow_run.run_attempt }}
+ DISPLAY_TITLE: ${{ github.event.workflow_run.display_title }}
+ MAX_ATTEMPTS: "5"
+ run: |
+ set -euo pipefail
+ if [[ ! "${DISPLAY_TITLE}" =~ ^Release\ convergence\ (v[^[:space:]]+)\ source\ ([0-9]+)$ ]]; then
+ echo "::error::Cannot derive the convergence tag from display title ${DISPLAY_TITLE}."
+ exit 1
+ fi
+ tag="${BASH_REMATCH[1]}"
+ source_release_run_id="${BASH_REMATCH[2]}"
+ marker_url="https://github.com/${{ github.repository }}/releases/download/${tag}/release-activation.json"
+ release_state="$(
+ gh api "repos/${{ github.repository }}/releases/tags/${tag}" \
+ --jq '[(.draft | tostring), (.published_at // "")] | @tsv' \
+ 2>/dev/null || true
+ )"
+ is_draft="$(awk -F '\t' '{print $1}' <<<"${release_state}")"
+ published_at="$(awk -F '\t' '{print $2}' <<<"${release_state}")"
+ marker="$(mktemp)"
+ committed=false
+ if [ "${is_draft}" = "false" ] && [ -n "${published_at}" ] && \
+ curl -fsSL --retry 2 --retry-delay 2 --retry-all-errors \
+ -o "${marker}" "${marker_url}" && \
+ jq -e \
+ --arg tag "${tag}" \
+ --arg source_release_run_id "${source_release_run_id}" \
+ --arg convergence_run_id "${RUN_ID}" \
+ '.schema_version == 1 and .tag == $tag and .source_release_run_id == $source_release_run_id and .convergence_run_id == $convergence_run_id' \
+ "${marker}" >/dev/null; then
+ committed=true
+ fi
+ if [ "${committed}" != "true" ]; then
+ rm -f "${marker}"
+ source_status="$(
+ gh api "repos/${{ github.repository }}/actions/runs/${source_release_run_id}" \
+ --jq '.status' 2>/dev/null || true
+ )"
+ if [ "${source_status}" != "completed" ] && (( RUN_ATTEMPT < 50 )); then
+ echo "Activation source run ${source_release_run_id} remains ${source_status:-unknown}; renewing the pre-commit convergence owner."
+ gh api \
+ --method POST \
+ -H "Accept: application/vnd.github+json" \
+ -H "X-GitHub-Api-Version: 2026-03-10" \
+ "repos/${{ github.repository }}/actions/runs/${RUN_ID}/rerun"
+ exit 0
+ fi
+ echo "${tag} never crossed the irreversible activation commit and source run ${source_release_run_id} is ${source_status:-unavailable}; convergence will not retry."
+ exit 0
+ fi
+ rm -f "${marker}"
+
+ if (( RUN_ATTEMPT >= MAX_ATTEMPTS )); then
+ echo "::error::Committed release ${tag} still has convergence debt after ${RUN_ATTEMPT} attempts. Re-run the complete convergence workflow after repairing the failing surface."
+ exit 1
+ fi
+ echo "Re-running complete convergence run ${RUN_ID} for committed ${tag}; next attempt is $((RUN_ATTEMPT + 1))/${MAX_ATTEMPTS}."
+ gh api \
+ --method POST \
+ -H "Accept: application/vnd.github+json" \
+ -H "X-GitHub-Api-Version: 2026-03-10" \
+ "repos/${{ github.repository }}/actions/runs/${RUN_ID}/rerun"
diff --git a/.github/workflows/update-demo-server.yml b/.github/workflows/update-demo-server.yml
index f44c8c27e9..cf058e5c79 100644
--- a/.github/workflows/update-demo-server.yml
+++ b/.github/workflows/update-demo-server.yml
@@ -17,25 +17,26 @@ on:
required: false
default: false
type: boolean
- workflow_dispatch:
- inputs:
- tag:
- description: 'Stable release tag to deploy (e.g., v6.0.0)'
- required: true
+ activation_convergence_run_id:
+ description: 'Exact Release Convergence owner. Required for every mutating call.'
+ required: false
+ default: ''
type: string
- target:
- description: 'Demo target to deploy'
+ customer_promotion_lease_sha:
+ description: 'Exact active customer-promotion lease. Required for every mutating call.'
required: false
- default: auto
- type: choice
- options:
- - auto
- - stable
- verify_only:
- description: 'Verify connectivity and the current stable demo without changing the host'
+ default: ''
+ type: string
+ convergence_owner_asset_name:
+ description: 'Unique immutable owner record for the active convergence lease.'
required: false
- default: false
- type: boolean
+ default: ''
+ type: string
+ convergence_owner_asset_sha256:
+ description: 'SHA-256 digest of the immutable convergence owner record.'
+ required: false
+ default: ''
+ type: string
permissions:
contents: read
@@ -179,6 +180,72 @@ jobs:
[ -n "$DEMO_LOCAL_BASE_URL" ] || { echo "::error::DEMO_LOCAL_BASE_URL is required in the selected demo environment."; exit 1; }
[ -n "$DEMO_PUBLIC_HEALTH_URL" ] || { echo "::error::DEMO_PUBLIC_HEALTH_URL is required in the selected demo environment."; exit 1; }
+ - name: Require exact committed activation marker for mutation
+ if: inputs.verify_only != true
+ env:
+ GH_TOKEN: ${{ github.token }}
+ TAG: ${{ needs.resolve.outputs.tag }}
+ CONVERGENCE_RUN_ID: ${{ inputs.activation_convergence_run_id }}
+ LEASE_SHA: ${{ inputs.customer_promotion_lease_sha }}
+ OWNER_ASSET_NAME: ${{ inputs.convergence_owner_asset_name }}
+ OWNER_ASSET_SHA256: ${{ inputs.convergence_owner_asset_sha256 }}
+ run: |
+ set -euo pipefail
+ if [[ ! "${TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || \
+ [[ ! "${CONVERGENCE_RUN_ID}" =~ ^[0-9]+$ ]] || \
+ [[ ! "${LEASE_SHA}" =~ ^[0-9a-f]{40}$ ]] || \
+ [[ "${OWNER_ASSET_NAME}" != "release-convergence-owner-${CONVERGENCE_RUN_ID}-"*"-${LEASE_SHA}.json" ]] || \
+ [[ ! "${OWNER_ASSET_SHA256}" =~ ^[0-9a-f]{64}$ ]]; then
+ echo "::error::Stable demo mutation requires an exact stable tag, convergence owner, and lease."
+ exit 1
+ fi
+ release_state="$(
+ gh release view "${TAG}" --json isDraft,isPrerelease,publishedAt,tagName \
+ --jq '[.tagName, (.isDraft | tostring), (.isPrerelease | tostring), (.publishedAt // "")] | @tsv'
+ )"
+ if [ "$(awk -F '\t' '{print $1}' <<<"${release_state}")" != "${TAG}" ] || \
+ [ "$(awk -F '\t' '{print $2}' <<<"${release_state}")" != "false" ] || \
+ [ "$(awk -F '\t' '{print $3}' <<<"${release_state}")" != "false" ] || \
+ [ -z "$(awk -F '\t' '{print $4}' <<<"${release_state}")" ]; then
+ echo "::error::Stable demo mutation refuses inactive or prerelease tag ${TAG}."
+ exit 1
+ fi
+ marker="$(mktemp)"
+ owner_record="$(mktemp)"
+ curl -fsSL --retry 4 --retry-delay 2 --retry-all-errors \
+ -o "${marker}" \
+ "https://github.com/${{ github.repository }}/releases/download/${TAG}/release-activation.json"
+ jq -e \
+ --arg tag "${TAG}" \
+ '.schema_version == 1 and .tag == $tag and (.convergence_run_id | test("^[0-9]+$"))' \
+ "${marker}" >/dev/null
+ activation_owner_run_id="$(jq -r '.convergence_run_id' "${marker}")"
+ activation_marker_sha256="$(sha256sum "${marker}" | awk '{print $1}')"
+ observed_lease_sha="$(
+ gh api \
+ "repos/${{ github.repository }}/git/ref/heads/release-customer-promotion-lock" \
+ --jq '.object.sha'
+ )"
+ if [ "${observed_lease_sha}" != "${LEASE_SHA}" ]; then
+ echo "::error::Stable demo lease is ${observed_lease_sha:-absent}, expected ${LEASE_SHA}."
+ exit 1
+ fi
+ curl -fsSL --retry 4 --retry-delay 2 --retry-all-errors \
+ -o "${owner_record}" \
+ "https://github.com/${{ github.repository }}/releases/download/${TAG}/${OWNER_ASSET_NAME}"
+ printf '%s %s\n' "${OWNER_ASSET_SHA256}" "${owner_record}" | sha256sum --check --
+ jq -e \
+ --arg tag "${TAG}" \
+ --arg activation_owner_run_id "${activation_owner_run_id}" \
+ --arg activation_marker_sha256 "${activation_marker_sha256}" \
+ --arg convergence_run_id "${CONVERGENCE_RUN_ID}" \
+ --arg lease_sha "${LEASE_SHA}" \
+ --arg owner_asset_name "${OWNER_ASSET_NAME}" \
+ '.schema_version == 1 and .tag == $tag and .activation_owner_run_id == $activation_owner_run_id and .activation_marker_sha256 == $activation_marker_sha256 and .convergence_run_id == $convergence_run_id and .lease_sha == $lease_sha and .owner_asset_name == $owner_asset_name' \
+ "${owner_record}" >/dev/null
+ rm -f "${marker}" "${owner_record}"
+ echo "[OK] Stable demo mutation is bound to committed ${TAG} convergence run ${CONVERGENCE_RUN_ID}."
+
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
diff --git a/.gitignore b/.gitignore
index 053ecc0969..cbd04f53b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -228,6 +228,7 @@ scripts/release_control/*
!scripts/release_control/commercial_cancellation_reactivation_rehearsal.py
!scripts/release_control/contract_audit.py
!scripts/release_control/contract_audit_test.py
+!scripts/release_control/customer_promotion_lease.sh
!scripts/release_control/control_plane.py
!scripts/release_control/generate_platform_support_frontend_module.py
!scripts/release_control/control_plane_audit.py
diff --git a/docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md b/docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md
index 29ca2c577c..e208d82307 100644
--- a/docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md
+++ b/docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md
@@ -39,7 +39,7 @@ Use this as the final gate before cutting a Pulse v6 pre-release.
## Promotion Policy
- [ ] For a routine stable patch, run `./scripts/trigger-stable-patch.sh --dry-run <version>` from the exact pushed candidate SHA, wait for the whole run including `Verify Current Stable Demo Path (No Mutation)` to pass, then run `./scripts/trigger-stable-patch.sh <version>` once.
- [ ] Confirm a routine stable patch has no same-version RC and no diff in the RC-required authentication/tenant, licensing/billing, persisted-data/migration, relay/mobile-trust, or installer/update/rollback boundaries. Otherwise use RC promotion or record the emergency hotfix reason.
-- [ ] Treat `Definitive Release Verdict` as the release result. Do not accept a green asset-publish job while Docker publication, demo deployment, public browser verification, Helm/floating-tag promotion, or private Pro promotion is detached or incomplete.
+- [ ] Treat `Release Activation Commit Verdict` as the irreversible GitHub release result, and follow its exact linked `Release Convergence` run until `Customer Promotion Convergence Verdict` is green. A red convergence run is retriable customer-surface debt, not evidence that the committed release returned to draft.
- [x] Record the previous stable tag and exact rollback pin command before publishing a new prerelease or stable release.
- [ ] For any prerelease or stable publication, confirm the repo variable `PULSE_UPDATE_SIGNING_PUBLIC_KEY` is set to the intended active update signer public key and that the release workflows are consuming it alongside `PULSE_UPDATE_SIGNING_KEY`, so accidental trust-root rotation fails closed before publication.
- [x] For the first GA or an RC-required stable promotion, confirm the release pipeline has already been exercised on a real prerelease tag, not only linted or YAML-parsed.
diff --git a/docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md b/docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md
index 3b02a80260..5148cbb9ba 100644
--- a/docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md
+++ b/docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md
@@ -136,14 +136,24 @@ TLS-unverified receipts leave the claim at `implemented` or
and poll that exact run ID. Selecting the newest run by workflow, branch, or
dispatch timestamp is forbidden because different release versions and manual
dispatches may run concurrently.
-6. The public v6 release pipeline must publish and publicly verify the GitHub
- release before it dispatches `rcourtman/pulse-pro` `Promote Paid Runtime
- Release` with the same version and R2 prefix. The live paid-download broker
- is a mutable customer pointer and must never advance to a release that can
- still be returned to draft quarantine by activation verification. A failed
- private build or live promotion fails the public release workflow; private
- Pro RC/GA advancement must not depend on an operator noticing a checklist
- item after the public RC has shipped.
+6. The public v6 release pipeline must durably dispatch a dedicated convergence
+ run before it publishes GitHub, then publish and publicly verify the GitHub
+ release before that run may dispatch `rcourtman/pulse-pro` `Promote Paid
+ Runtime Release` with the same version and R2 prefix. The live paid-download
+ broker is a mutable customer pointer and must never advance before the
+ verified `release-activation.json` commit marker exists. A failed private
+ build prevents that commit. A failed live promotion is post-commit
+ convergence debt: it fails and retries the separate convergence run without
+ claiming that the already-public release rolled back.
+ The activation marker must bind the exact staged R2 prefix. The dispatch must
+ pass that prefix with the exact Pulse lease SHA and convergence run ID.
+ `pulse-pro` must reject an unleased dispatch, verify the public Pulse lock ref,
+ lease commit owner, active convergence run, and activation marker without
+ relying on its repository-scoped `GITHUB_TOKEN`, then repeat that check
+ immediately before live mutation. `pulse-pro` may serialize only the same
+ validated lease correlation, never all releases or arbitrary R2 prefixes.
+ Exact duplicates are therefore sequential and target-identical, while
+ invalid lease values cannot replace a legitimate pending child.
7. Customer-facing private Pro archive or Docker promotion must use the generated
paid-runtime proof packet from the Pro release workflow. The canonical command
is `scripts/promote_paid_runtime_release_packet.sh --release-dir <proof-packet-dir> --admin-token-file <explicit-token-file> --execute-live`
@@ -274,15 +284,36 @@ TLS-unverified receipts leave the claim at `implemented` or
4. Exact-version Docker publication, staged release-asset verification, exact
Helm OCI publication, staged install smoke, and the exact-version private
Pro build begin from the unpublished draft and converge at one immutable
- readiness gate. `activate_release` is the next and only transition: it
- publishes the GitHub release, verifies the public checksums, installer, and
- canonical Linux archive URLs, and returns the release to draft quarantine
- on verification failure.
-5. Mutable Docker aliases, the live paid-runtime broker, the public Helm Pages
- index, and stable demo deployment depend directly on successful activation.
- They may fan out in parallel only after the release can no longer be
- quarantined by activation verification. `Definitive Release Verdict` still
- fails unless every applicable terminal result passes.
+ readiness gate. The pipeline must durably dispatch the release convergence
+ run before publication. `activate_release` then publishes the GitHub release,
+ verifies the public checksums, installer, provider-MSP bundle, and canonical
+ Linux archive URLs, and returns the release to draft quarantine on any
+ failure before `release-activation.json` is successfully uploaded. The upload
+ is the irreversible release commit point because convergence may observe it
+ immediately; activation-side read-back and the final verdict are post-commit
+ public proof and may never return the release to draft.
+5. Mutable Docker aliases, the live paid-runtime broker, the additive public
+ Helm Pages index, and stable demo deployment belong to the separately visible Release
+ Convergence run after the commit point. A global repository-ref lease must
+ serialize those surfaces across every release version while exact-version
+ staging remains version-parallel. Under the lease, every committed release
+ must merge its chart into Helm Pages. If a newer committed activation marker
+ exists, the superseded run must skip only Docker aliases, the paid-runtime
+ broker, and the stable demo rather than move those targets backward.
+ Any surface failure leaves the GitHub release committed, fails the convergence
+ verdict, releases or stale-recovers the lease, and re-runs the complete
+ idempotent convergence workflow. It must not fail a so-called definitive
+ release verdict or return the committed release to draft.
+ The three reusable mutation workflows expose `workflow_call` only; direct
+ dispatch of aliases, Pages, or demo deployment would bypass the lease and is
+ prohibited. Non-mutating demo verification remains part of Release Dry Run.
+ The activation marker keeps the original convergence owner immutable. After
+ that owner completes, a fresh workflow dispatch from repaired `main` may
+ adopt the same exact release, source run, target commit, release ID, and R2
+ lineage. It must first acquire the global lease, then publish a unique
+ immutable owner asset named with its run ID, attempt, and lease SHA. Every
+ child receives that exact asset name and digest. A clobbered constant owner
+ asset is forbidden because stale CDN bytes could authorize the prior owner.
6. `Release Dry Run` remains the no-public-release rehearsal surface. It calls
the same candidate builder and no-mutation demo verification, but a separate
dry run is not required before a normal release because the single publish
@@ -318,14 +349,13 @@ TLS-unverified receipts leave the claim at `implemented` or
A version-bound unsigned Windows decision must additionally be supplied
through `--unsigned-windows-exception-reason`; it never follows implicitly
from emergency patch status.
-5. The release workflow must await Docker publication, stable demo deployment,
- public health/browser verification, install smoke, Helm publication,
- floating-tag promotion, and private Pro promotion where applicable. The
- terminal `Definitive Release Verdict` job is the one release result; an
- asynchronously dispatched demo workflow is not release completion. Every
- mutable pointer and live-environment job must depend on successful GitHub
- release activation and public verification, never only on pre-activation
- exact-version readiness.
+5. The release workflow must await every immutable readiness gate, durably
+ enqueue the exact convergence run, and verify the public activation marker.
+ `Release Activation Commit Verdict` is the release result. Docker aliases,
+ stable demo deployment and browser proof, Helm Pages, and private Pro live
+ promotion are post-commit convergence outcomes in the linked workflow run.
+ They remain blocking convergence debt until green, but their failure must
+ not misreport the committed GitHub release as an atomic rollback.
## Rollout Rules
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 4d748c7c4f..fd8361a866 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -55,12 +55,19 @@ TLS floor in the dynamic config.
14. `.github/workflows/deploy-demo-server.yml`
15. `.github/workflows/helm-pages.yml`
16. `.github/workflows/promote-floating-tags.yml`
-17. `.github/workflows/publish-docker.yml`
-18. `.github/workflows/publish-helm-chart.yml`
-19. `.github/workflows/release-dry-run.yml`
-20. `.github/workflows/update-demo-server.yml`
-21. `.github/workflows/validate-release-assets.yml`
-22. `.github/workflows/install-sh-smoke.yml`
+17. `.github/workflows/promote-private-pro-runtime.yml`
+18. `.github/workflows/publish-docker.yml`
+19. `.github/workflows/publish-helm-chart.yml`
+20. `.github/workflows/release-convergence.yml`
+21. `.github/workflows/release-dry-run.yml`
+22. `.github/workflows/retry-release-convergence.yml`
+23. `.github/workflows/update-demo-server.yml`
+24. `.github/workflows/validate-release-assets.yml`
+25. `.github/workflows/install-sh-smoke.yml`
+26. `scripts/release_control/customer_promotion_lease.sh`
+27. `pulse-pro:.github/workflows/promote-paid-runtime-release.yml`
+28. `pulse-pro:scripts/validate_paid_runtime_distribution.py`
+29. `pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py`
23. `.github/ISSUE_TEMPLATE/v6_rc_feedback.yml`
23. `docs/RELEASE_NOTES.md`
24. `docs/releases/`
@@ -439,7 +446,7 @@ upgrade, update, release, or artifact-selection behavior.
## Extension Points
1. Add or change deployment-type detection, update planning, or apply behavior through `internal/updates/`
-2. Add or change release-build metadata injection, Docker build-context allowlists, release artifact assembly, governed promotion metadata resolution, artifact release-line validation, post-install live-runtime claim proof, the canonical version file, operator-facing release packet content, prerelease feedback intake wording, historical published-release integrity backfill, release asset validation status publication, download endpoint checksum/signature header proof, end-to-end install.sh smoke against staged or published release assets, or the canonical in-repo v6 upgrade guide through `scripts/build-release.sh`, `scripts/release_asset_common.sh`, `scripts/backfill-release-assets.sh`, `scripts/release_ldflags.sh`, `scripts/check-workflow-dispatch-inputs.py`, `scripts/release_control/live_runtime_proof.py`, `scripts/release_control/live_runtime_proof_test.py`, `scripts/release_control/mobile_release_gate.py`, `scripts/release_control/render_release_body.py`, `scripts/release_control/resolve_release_promotion.py`, `scripts/release_control/validate_artifact_release_line.py`, `scripts/release_control/record_rc_to_ga_rehearsal.py`, `scripts/release_control/internal/record_rc_to_ga_rehearsal.py`, `scripts/release_control/release_promotion_policy_support.py`, `.dockerignore`, `Dockerfile`, `.github/ISSUE_TEMPLATE/v6_rc_feedback.yml`, `docs/RELEASE_NOTES.md`, `docs/releases/`, `docs/UPGRADE_v6.md`, `docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md`, `docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md`, `docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md`, `scripts/validate-release.sh`, `scripts/validate-published-release.sh`, the operator dispatch helpers `scripts/trigger-release.sh` and `scripts/trigger-release-dry-run.sh`, and the governed release workflows `.github/workflows/backfill-release-assets.yml`, `.github/workflows/create-release.yml`, `.github/workflows/deploy-demo-server.yml`, `.github/workflows/helm-pages.yml`, `.github/workflows/install-sh-smoke.yml`, `.github/workflows/publish-docker.yml`, `.github/workflows/publish-helm-chart.yml`, `.github/workflows/promote-floating-tags.yml`, `.github/workflows/release-dry-run.yml`, `.github/workflows/update-demo-server.yml`, and `.github/workflows/validate-release-assets.yml`
+2. Add or change release-build metadata injection, Docker build-context allowlists, release artifact assembly, governed promotion metadata resolution, artifact release-line validation, post-install live-runtime claim proof, the canonical version file, operator-facing release packet content, prerelease feedback intake wording, historical published-release integrity backfill, release asset validation status publication, download endpoint checksum/signature header proof, end-to-end install.sh smoke against staged or published release assets, or the canonical in-repo v6 upgrade guide through `scripts/build-release.sh`, `scripts/release_asset_common.sh`, `scripts/backfill-release-assets.sh`, `scripts/release_ldflags.sh`, `scripts/check-workflow-dispatch-inputs.py`, `scripts/release_control/live_runtime_proof.py`, `scripts/release_control/live_runtime_proof_test.py`, `scripts/release_control/mobile_release_gate.py`, `scripts/release_control/render_release_body.py`, `scripts/release_control/resolve_release_promotion.py`, `scripts/release_control/validate_artifact_release_line.py`, `scripts/release_control/record_rc_to_ga_rehearsal.py`, `scripts/release_control/internal/record_rc_to_ga_rehearsal.py`, `scripts/release_control/release_promotion_policy_support.py`, `.dockerignore`, `Dockerfile`, `.github/ISSUE_TEMPLATE/v6_rc_feedback.yml`, `docs/RELEASE_NOTES.md`, `docs/releases/`, `docs/UPGRADE_v6.md`, `docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md`, `docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md`, `docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md`, `scripts/validate-release.sh`, `scripts/validate-published-release.sh`, the operator dispatch helpers `scripts/trigger-release.sh` and `scripts/trigger-release-dry-run.sh`, and the governed release workflows `.github/workflows/backfill-release-assets.yml`, `.github/workflows/create-release.yml`, `.github/workflows/deploy-demo-server.yml`, `.github/workflows/helm-pages.yml`, `.github/workflows/install-sh-smoke.yml`, `.github/workflows/promote-floating-tags.yml`, `.github/workflows/promote-private-pro-runtime.yml`, `.github/workflows/publish-docker.yml`, `.github/workflows/publish-helm-chart.yml`, `.github/workflows/release-convergence.yml`, `.github/workflows/release-dry-run.yml`, `.github/workflows/retry-release-convergence.yml`, `.github/workflows/update-demo-server.yml`, and `.github/workflows/validate-release-assets.yml`
Normal releases are single-build promotions. The exact pushed SHA must
produce one release candidate with the policy-required native signing lanes
through `.github/workflows/build-release-candidate.yml` while independent
@@ -751,7 +758,7 @@ upgrade, update, release, or artifact-selection behavior.
the helper must wait for the Organization selector to hold the requested org
before a scenario navigates onward, so an interrupted org-list bootstrap
cannot fall back to `default` and mask the scoped UI under test.
-6. Add or change governed release-promotion workflow inputs, operator-facing promotion metadata, the canonical version file, prerelease feedback intake prompts, artifact publication lineage enforcement, release note or changelog packet composition, or stable-promotion rehearsal summaries through `.github/workflows/create-release.yml`, `.github/workflows/helm-pages.yml`, `.github/workflows/publish-docker.yml`, `.github/workflows/publish-helm-chart.yml`, `.github/workflows/promote-floating-tags.yml`, `.github/workflows/release-dry-run.yml`, `.github/workflows/update-demo-server.yml`, `.github/ISSUE_TEMPLATE/v6_rc_feedback.yml`, `docs/RELEASE_NOTES.md`, `docs/releases/`, `docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md`, `docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md`, `docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md`, `scripts/check-workflow-dispatch-inputs.py`, `scripts/release_control/mobile_release_gate.py`, `scripts/release_control/mobile_release_gate_test.py`, `scripts/release_control/render_release_body.py`, `scripts/release_control/validate_artifact_release_line.py`, `scripts/release_control/record_rc_to_ga_rehearsal.py`, `scripts/release_control/internal/record_rc_to_ga_rehearsal.py`, `scripts/release_control/release_promotion_policy_support.py`, `scripts/trigger-release.sh`, and `scripts/trigger-release-dry-run.sh`
+6. Add or change governed release-promotion workflow inputs, operator-facing promotion metadata, the canonical version file, prerelease feedback intake prompts, artifact publication lineage enforcement, release note or changelog packet composition, or stable-promotion rehearsal summaries through `.github/workflows/create-release.yml`, `.github/workflows/helm-pages.yml`, `.github/workflows/promote-floating-tags.yml`, `.github/workflows/promote-private-pro-runtime.yml`, `.github/workflows/publish-docker.yml`, `.github/workflows/publish-helm-chart.yml`, `.github/workflows/release-convergence.yml`, `.github/workflows/release-dry-run.yml`, `.github/workflows/retry-release-convergence.yml`, `.github/workflows/update-demo-server.yml`, `.github/ISSUE_TEMPLATE/v6_rc_feedback.yml`, `docs/RELEASE_NOTES.md`, `docs/releases/`, `docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md`, `docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md`, `docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md`, `scripts/check-workflow-dispatch-inputs.py`, `scripts/release_control/mobile_release_gate.py`, `scripts/release_control/mobile_release_gate_test.py`, `scripts/release_control/render_release_body.py`, `scripts/release_control/validate_artifact_release_line.py`, `scripts/release_control/record_rc_to_ga_rehearsal.py`, `scripts/release_control/internal/record_rc_to_ga_rehearsal.py`, `scripts/release_control/release_promotion_policy_support.py`, `scripts/trigger-release.sh`, and `scripts/trigger-release-dry-run.sh`
That release-promotion boundary also owns prerelease note packet lineage:
shipped RC notes must remain historically accurate, the top-level
`docs/RELEASE_NOTES.md` index must continue to point at the current shipped
@@ -925,11 +932,11 @@ upgrade, update, release, or artifact-selection behavior.
workflow-run details from GitHub and poll the exact returned run ID; it must
never infer its child from the newest matching workflow/branch/timestamp,
because version-scoped release concurrency and manual dispatches can overlap.
- Only after public release
- asset validation, staged install smoke, exact public Docker publication,
- exact Helm OCI publication, and successful GitHub release activation and
- public verification may it call the private `rcourtman/pulse-pro` `Promote
- Paid Runtime Release` workflow with the same version and R2 prefix.
+ Only after public release asset validation, staged install smoke, exact
+ public Docker publication, exact Helm OCI publication, durable convergence
+ dispatch, and the publicly readable activation-commit marker may the
+ convergence run call the private `rcourtman/pulse-pro` `Promote Paid Runtime
+ Release` workflow with the same version and R2 prefix.
The promotion workflow downloads the signed proof packet and runs
`scripts/promote_paid_runtime_release_packet.sh --release-dir <proof-packet-dir> --execute-live`
from `repos/pulse-pro`. That command is the canonical live-broker promotion
@@ -937,13 +944,24 @@ upgrade, update, release, or artifact-selection behavior.
manifest on `pulse-license`, runs the customer-path live proof, and restores
the previous remote manifest if the gate fails. GA promotions also require
`--allow-ga-prefix`. A failed private build leaves the GitHub release
- unpublished; a failed live promotion leaves the already activated GitHub
- release public and restores the previous broker manifest. Both failures
- must fail the public release workflow; future private Pro publication must
- not depend on an operator noticing a manual checklist step after the public
- RC has shipped.
- A promotion-only failure must be recoverable by rerunning the public
- release run's failed jobs: the paid-runtime R2 prefix is derived from
+ unpublished. A failed live promotion leaves the already committed GitHub
+ release public, restores the previous broker manifest, and fails the
+ separately retriable convergence workflow. It must not turn the activation
+ workflow red or imply that GitHub publication rolled back.
+ The activation marker must bind the exact staged R2 prefix. The Pulse caller
+ must pass that prefix with its exact customer-promotion lease SHA and
+ convergence run ID to `pulse-pro:.github/workflows/promote-paid-runtime-release.yml`.
+ That mutator must reject missing or stale ownership, verify the live public
+ Pulse lock ref, lease commit message, active workflow run, and activation
+ marker before packet handling and again immediately before broker mutation.
+ Those public cross-repository REST reads must be deliberately unauthenticated
+ with bounded retry rather than depend on the repository-scoped `pulse-pro`
+ `GITHUB_TOKEN`. Its Actions concurrency key may serialize only the validated
+ Pulse lease SHA. That makes copied valid dispatches target-identical and
+ sequential without letting arbitrary invalid values replace the legitimate
+ pending child. The ref lease remains the cross-release serialization primitive.
+ A promotion-only failure must be recoverable by rerunning the complete
+ convergence workflow: the paid-runtime R2 prefix is derived from
run-stable values (the run's creation date and run id, never the
wall-clock date at attempt time), and the private build dispatch sets
`reuse_existing_packet=true` so `Build Pro Release` validates a complete
@@ -952,24 +970,45 @@ upgrade, update, release, or artifact-selection behavior.
A rebuilt packet from identical inputs is waste and lineage churn; a
non-empty prefix that fails packet validation must fail the private build
instead of being overwritten.
- GitHub release publication is the atomic barrier between exact-version
- staging and mutable customer rollout, not a final notification after live
- pointers have already moved. `activate_release` must verify the draft's tag,
- target commit, prerelease state, and unpublished state, depend on all
- required immutable public and private readiness jobs, and only then PATCH
- `draft=false`. It must prove the public checksums, installer, and canonical
- Linux archive URLs immediately after activation; a failed public read must
- attempt to return the release to draft quarantine and fail closed before
- any mutable pointer or live-environment job becomes eligible. Exact-version
- artifacts may exist before this boundary so they can be tested.
+ A successfully uploaded `release-activation.json` asset is the irreversible
+ release commit, not the earlier `draft=false` PATCH by itself. Before that
+ marker, `activate_release` must verify the draft identity and every required
+ public asset and return failures to draft quarantine. The convergence run is
+ dispatched first but must wait for a marker bound to the exact tag, target
+ commit, release ID, source release run, and convergence run. Successful
+ marker upload is the irreversible commit because convergence can observe it
+ immediately; activation-side read-back failure after upload must not
+ quarantine the release. Once that marker is public, the
+ release remains committed and mutable-surface failures become explicit
+ convergence debt rather than a fictional release rollback.
One immutable-readiness join must cover the staged release packet, staged
install smoke, exact public Docker images, exact Helm OCI chart, and (for
- v6) the exact Pro image and signed packet. After that join, activation and
- public verification must succeed before the Docker floating aliases,
+ v6) the exact Pro image and signed packet. After that join, activation must
+ publish the marker before the Docker floating aliases,
paid-runtime broker manifest, public Helm Pages index, or stable demo may
- advance. Those independent post-activation mutations may run in parallel,
- and the definitive verdict must await all of them without pretending the
- external systems share a transaction.
+ advance. The separate convergence workflow must hold the global
+ `release-customer-promotion-lock` ref lease across those mutations. This
+ avoids version-scoped release runs racing global customer state and avoids
+ GitHub Actions concurrency's replaceable pending slot. Under the lease,
+ committed releases are compared per stable/RC channel. Every committed
+ release must add its chart to Helm Pages under the lease, including an older
+ release that finishes after a newer one. Superseded runs skip only Docker
+ aliases, paid-runtime broker state, and stable demo deployment, so overlapping
+ or out-of-order completion cannot move a rollback-prone channel backward or
+ omit a committed chart version. The reusable alias, Pages, and demo mutators
+ must not expose direct workflow dispatch paths that bypass the lease; the dry
+ run retains non-mutating demo verification. A failed surface fails only convergence;
+ the full workflow is retried so it reacquires the lease and safely replays
+ all idempotent surfaces.
+ The activation marker preserves its original convergence run ID. Once that
+ run is completed, a fresh manual convergence dispatch from fixed workflow
+ code may adopt the same immutable tag, source run, target commit, release ID,
+ R2 prefix, and activation-marker digest. Adoption happens only after lease
+ acquisition and publishes a unique immutable owner record whose asset name
+ includes the new run ID, run attempt, and lease SHA. Downstream demo and paid
+ broker mutation must verify the exact passed owner filename and SHA-256. A
+ clobbered constant owner record is forbidden because cached prior bytes could
+ authorize stale ownership.
A support-only private Pro prerelease image is a narrower exception for
customer verification of an already-fixed defect. It may dispatch the private
`Build Pro Release` workflow with `publish_docker_image=true`,
@@ -1792,10 +1831,13 @@ than cross-package contention on 2-core hosted runners.
That same governed demo-deployment boundary now owns the post-GA single-demo
contract. `.github/workflows/create-release.yml`,
`.github/workflows/update-demo-server.yml`, and `.github/workflows/deploy-demo-server.yml`
-must treat `demo-stable` as the only active public demo target: stable releases
-may update it, prerelease tags must not create or update a second public v6
-preview target by default, and any future preview surface requires a new
-explicitly governed target instead of reusing the retired v6-preview path.
+must treat `demo-stable` as the only active public demo target. Stable releases
+may update it only from the lease-owning convergence workflow with an exact
+stable tag and matching activation marker. The historical deploy workflow is a
+non-mutating verification wrapper and must never deploy branch-tip source.
+Prerelease tags must not create or update a second public v6 preview target by
+default, and any future preview surface requires a new explicitly governed
+target instead of reusing the retired v6-preview path.
That same demo deployment boundary also owns service-identity and public-shell
parity proof. Stable demo runs default to the `pulse` service identity, must
prove that the SSH target reports the governed expected hostname before any
@@ -1806,11 +1848,11 @@ response as enough evidence that the public shell actually updated. That proof
must use a deterministic HTML parser for the actual module entry script rather
than brittle escaped shell regex or a first-match asset scrape that can fail
differently over SSH or select the wrong preloaded chunk.
-Those same governed demo deploy/update workflows also own the runner-to-host
-network path. They must establish the canonical Tailscale connectivity step
+The governed demo update workflow also owns the runner-to-host network path.
+It must establish the canonical Tailscale connectivity step
before SSH setup so stable or preview targets may stay on governed private
hostnames or Tailscale IPs, rather than silently depending on public SSH
-reachability from GitHub-hosted runners. The workflows must use the current
+reachability from GitHub-hosted runners. The workflow must use the current
pinned Tailscale GitHub Action, its target `ping` readiness gate, and the shared
`.github/scripts/check-demo-reachability.sh` TCP/22 diagnostic before SSH key
capture. A successful tailnet join alone is not connectivity proof. After that
@@ -1819,15 +1861,17 @@ setup must wait for configured demo hostnames to resolve, accept configured IP
literals without a DNS precheck, and then capture host keys with bounded
short retries before any installer or binary copy runs; a long `ssh-keyscan`
loop must not hide an ACL, peer-propagation, firewall, or sshd failure.
-`create-release.yml` must call the update workflow as an awaited reusable job,
-and its terminal `Definitive Release Verdict` must require stable demo runtime,
-frontend, public health, and browser proof. During a stable release cut, the
+`release-convergence.yml` must call the update workflow as a reusable job after
+the irreversible activation commit. Its `Customer Promotion Convergence
+Verdict` must require stable demo runtime, frontend, public health, and browser
+proof. During a stable release cut, the
update workflow must wait for the activated public release assets and install
the exact requested version through the normal signed release path. It must not
accept an unpublished draft release ID or install draft assets into the live
demo. The stable demo update may run in parallel with the other mutable
customer pointers only after activation, and the definitive verdict must await
-its proof. An
+its proof. A demo failure is retriable convergence debt and cannot retroactively
+unpublish the committed GitHub release. An
asynchronous dispatch or manual SSH deployment is not release completion. A one-shot `ssh-keyscan`
against a private demo target is not sufficient release or deploy proof.
Those same workflows also own customer-visible browser truth for the public
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index 527d5b4b43..ed9b078bf1 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -4120,9 +4120,12 @@
".github/workflows/deploy-demo-server.yml",
".github/workflows/helm-pages.yml",
".github/workflows/promote-floating-tags.yml",
+ ".github/workflows/promote-private-pro-runtime.yml",
".github/workflows/publish-docker.yml",
".github/workflows/publish-helm-chart.yml",
+ ".github/workflows/release-convergence.yml",
".github/workflows/release-dry-run.yml",
+ ".github/workflows/retry-release-convergence.yml",
".github/workflows/update-demo-server.yml",
".github/workflows/validate-release-assets.yml",
"cmd/pulse-control-plane/main.go",
@@ -4162,6 +4165,9 @@
"Makefile",
"package-lock.json",
"package.json",
+ "pulse-pro:.github/workflows/promote-paid-runtime-release.yml",
+ "pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py",
+ "pulse-pro:scripts/validate_paid_runtime_distribution.py",
"scripts/backfill-release-assets.sh",
"scripts/build-release.sh",
"scripts/check-workflow-dispatch-inputs.py",
@@ -4186,6 +4192,7 @@
"scripts/pulse-auto-update.sh",
"scripts/release_asset_common.sh",
"scripts/release_candidate_manifest.py",
+ "scripts/release_control/customer_promotion_lease.sh",
"scripts/release_control/internal/record_rc_to_ga_rehearsal.py",
"scripts/release_control/record_rc_to_ga_rehearsal.py",
"scripts/release_control/release_promotion_policy_support.py",
@@ -4302,9 +4309,12 @@
".github/workflows/helm-pages.yml",
".github/workflows/install-sh-smoke.yml",
".github/workflows/promote-floating-tags.yml",
+ ".github/workflows/promote-private-pro-runtime.yml",
".github/workflows/publish-docker.yml",
".github/workflows/publish-helm-chart.yml",
+ ".github/workflows/release-convergence.yml",
".github/workflows/release-dry-run.yml",
+ ".github/workflows/retry-release-convergence.yml",
".github/workflows/update-demo-server.yml",
".github/workflows/validate-release-assets.yml",
"docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md",
@@ -4316,8 +4326,12 @@
"frontend-modern/src/components/WhatsNewCard.tsx",
"frontend-modern/src/components/whatsNewModel.ts",
"frontend-modern/src/utils/localStorage.ts",
+ "pulse-pro:.github/workflows/promote-paid-runtime-release.yml",
+ "pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py",
+ "pulse-pro:scripts/validate_paid_runtime_distribution.py",
"scripts/check-workflow-dispatch-inputs.py",
"scripts/generate-release-notes.sh",
+ "scripts/release_control/customer_promotion_lease.sh",
"scripts/release_control/internal/record_rc_to_ga_rehearsal.py",
"scripts/release_control/mobile_release_gate.py",
"scripts/release_control/record_rc_to_ga_rehearsal.py",
@@ -4334,6 +4348,7 @@
"test_prefixes": [],
"exact_files": [
"frontend-modern/src/components/__tests__/whatsNewModel.test.ts",
+ "pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py",
"scripts/installtests/build_release_assets_test.go",
"scripts/release_control/internal/record_rc_to_ga_rehearsal_test.py",
"scripts/release_control/mobile_release_gate_test.py",
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index e3f9dc1182..d0fcad2130 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -328,9 +328,14 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {
if err != nil {
t.Fatalf("read validate-release-assets.yml: %v", err)
}
+ convergenceContent, err := os.ReadFile(repoFile(".github", "workflows", "release-convergence.yml"))
+ if err != nil {
+ t.Fatalf("read release-convergence.yml: %v", err)
+ }
workflow := string(content)
validationWorkflow := string(validationContent)
+ convergenceWorkflow := string(convergenceContent)
required := []string{
`historical_asset_backfill_only:`,
`description: 'Repair an already-published release packet in place without rebuilding binaries'`,
@@ -400,22 +405,20 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {
`publish_helm_chart:`,
`chart_version: ${{ needs.prepare.outputs.version }}`,
`app_version: ${{ needs.prepare.outputs.version }}`,
- `uses: ./.github/workflows/helm-pages.yml`,
- `publish_helm_pages:`,
- // Mutable image aliases have one explicit owner at the activation
- // barrier; no implicit workflow_run may race that call.
- `uses: ./.github/workflows/promote-floating-tags.yml`,
- `promote_floating_tags:`,
- `tag: ${{ needs.prepare.outputs.tag }}`,
- `prerelease: ${{ needs.prepare.outputs.is_prerelease == 'true' }}`,
// Draft-only mode stops after staged validation and skips the
// customer activation sequence.
`needs.prepare.outputs.historical_asset_backfill_only != 'true' && github.event.inputs.draft_only != 'true'`,
+ `dispatch_release_convergence:`,
+ `release-convergence.yml/dispatches`,
+ `return_run_details: true`,
`activate_release:`,
- `needs.activate_release.result == 'success'`,
+ `continue-on-error: true`,
`Publish the fully staged release`,
`'{draft: false, make_latest: $make_latest}'`,
`returning ${TAG} to draft quarantine`,
+ `release-activation.json`,
+ `release_commit_verdict:`,
+ `Release Activation Commit Verdict`,
}
for _, needle := range required {
if !strings.Contains(workflow, needle) {
@@ -424,7 +427,7 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {
}
publishedReleaseGuard := `needs.prepare.outputs.historical_asset_backfill_only != 'true' && github.event.inputs.draft_only != 'true'`
- for _, job := range []string{"install_sh_smoke", "publish_helm_chart", "publish_helm_pages"} {
+ for _, job := range []string{"install_sh_smoke", "publish_helm_chart"} {
block := workflowJobBlock(t, workflow, job)
if !strings.Contains(block, publishedReleaseGuard) {
t.Fatalf("create-release.yml job %s must skip historical backfill and draft-only runs before invoking downstream workflow_call", job)
@@ -434,9 +437,23 @@ func TestCreateReleaseUploadsPowerShellInstaller(t *testing.T) {
if !strings.Contains(readinessJob, publishedReleaseGuard) {
t.Fatal("release_readiness must skip historical backfill and draft-only runs")
}
- floatingJob := workflowJobBlock(t, workflow, "promote_floating_tags")
- if !strings.Contains(floatingJob, `needs.activate_release.result == 'success'`) {
- t.Fatal("floating-tag promotion must run only after successful public activation")
+ for _, job := range []string{"promote_floating_tags", "publish_helm_pages", "promote_private_pro_runtime", "update_stable_demo"} {
+ if strings.Contains(workflow, "\n "+job+":\n") {
+ t.Fatalf("create-release.yml must not mutate customer surface %s inline", job)
+ }
+ }
+ for _, needle := range []string{
+ `await_activation_commit:`,
+ `release-activation.json`,
+ `acquire_customer_promotion_lease:`,
+ `uses: ./.github/workflows/promote-floating-tags.yml`,
+ `uses: ./.github/workflows/helm-pages.yml`,
+ `uses: ./.github/workflows/promote-private-pro-runtime.yml`,
+ `uses: ./.github/workflows/update-demo-server.yml`,
+ } {
+ if !strings.Contains(convergenceWorkflow, needle) {
+ t.Fatalf("release-convergence.yml missing durable customer-promotion contract: %s", needle)
+ }
}
if !strings.Contains(workflow, `draft: true`) {
@@ -905,7 +922,7 @@ func TestReleaseValidationRequiresSignedSidecars(t *testing.T) {
}
}
-func TestDockerAndDemoBuildsUseCanonicalReleaseLdflags(t *testing.T) {
+func TestDockerBuildUsesCanonicalReleaseLdflags(t *testing.T) {
dockerfileBytes, err := os.ReadFile(repoFile("Dockerfile"))
if err != nil {
t.Fatalf("read Dockerfile: %v", err)
@@ -964,26 +981,6 @@ func TestDockerAndDemoBuildsUseCanonicalReleaseLdflags(t *testing.T) {
t.Fatalf("Dockerfile release go builds must all disable automatic VCS stamping: builds=%d clean_builds=%d", builds, cleanBuilds)
}
- workflowBytes, err := os.ReadFile(repoFile(".github", "workflows", "deploy-demo-server.yml"))
- if err != nil {
- t.Fatalf("read deploy-demo-server workflow: %v", err)
- }
- workflow := string(workflowBytes)
- workflowRequired := []string{
- `./scripts/release_ldflags.sh server --version "${VERSION}" --build-time "${BUILD_TIME}" --git-commit "${GIT_COMMIT}"`,
- `-buildvcs=false`,
- `demo-stable`,
- `workflow_dispatch:`,
- `target:`,
- }
- for _, needle := range workflowRequired {
- if !strings.Contains(workflow, needle) {
- t.Fatalf("deploy-demo-server workflow missing canonical release ldflags usage: %s", needle)
- }
- }
- if strings.Contains(workflow, `preview-v6`) || strings.Contains(workflow, `demo-preview-v6`) {
- t.Fatal("deploy-demo-server workflow must not keep a separate v6 preview demo target after GA")
- }
}
func TestDockerRuntimeShipsPinnedAppriseCLI(t *testing.T) {
@@ -1342,7 +1339,7 @@ func TestHelmChartDoesNotPublishRetiredExplorePrepassMonitoring(t *testing.T) {
}
}
-func TestDeployDemoWorkflowFailsClosedForStableAndVerifiesFrontendParity(t *testing.T) {
+func TestDeployDemoWorkflowIsRetiredToNonMutatingVerification(t *testing.T) {
workflowBytes, err := os.ReadFile(repoFile(".github", "workflows", "deploy-demo-server.yml"))
if err != nil {
t.Fatalf("read deploy-demo-server workflow: %v", err)
@@ -1350,38 +1347,22 @@ func TestDeployDemoWorkflowFailsClosedForStableAndVerifiesFrontendParity(t *test
workflow := string(workflowBytes)
required := []string{
- `DEMO_EXPECTED_HOSTNAME: ${{ vars.DEMO_EXPECTED_HOSTNAME }}`,
- `DEMO_LOCAL_BASE_URL: ${{ vars.DEMO_LOCAL_BASE_URL }}`,
- `[ -n "$DEMO_EXPECTED_HOSTNAME" ] || { echo "::error::DEMO_EXPECTED_HOSTNAME is required in the selected demo environment."; exit 1; }`,
- `[ -n "$DEMO_LOCAL_BASE_URL" ] || { echo "::error::DEMO_LOCAL_BASE_URL is required in the selected demo environment."; exit 1; }`,
- `ENVIRONMENT_NAME="demo-stable"`,
- `options:`,
- ` - stable`,
- `Capture expected frontend entry asset`,
- `Verify target host identity`,
- `uses: tailscale/github-action@306e68a486fd2350f2bfc3b19fcd143891a4a2d8 # v4`,
- `ping: ${{ secrets.DEMO_SERVER_HOST }}`,
- `bash .github/scripts/check-demo-reachability.sh`,
- `bash .github/scripts/setup-demo-ssh.sh`,
- `SERVICE_NAME="pulse"`,
- `Unsupported demo target: ${TARGET}`,
- `Demo environment points at host $REMOTE_HOSTNAME but expected $DEMO_EXPECTED_HOSTNAME.`,
- `Verify frontend parity`,
- `Verify public browser smoke`,
- `./scripts/run_demo_public_browser_smoke.sh`,
- `extract_entry_asset()`,
- `<script\b[^>]*\bsrc=\"(/assets/index-[^\"]*\.js)\"`,
- `Remote service is serving $REMOTE_ASSET but the build expected $EXPECTED_ASSET.`,
- `Public demo is serving $PUBLIC_ASSET but the build expected $EXPECTED_ASSET.`,
+ `name: Verify Demo Server`,
+ `workflow_dispatch:`,
+ `Verify Current Committed Stable Demo (No Mutation)`,
+ `uses: ./.github/workflows/update-demo-server.yml`,
+ `tag: latest`,
+ `target: stable`,
+ `verify_only: true`,
}
for _, needle := range required {
if !strings.Contains(workflow, needle) {
- t.Fatalf("deploy-demo-server workflow missing stable isolation or frontend parity proof: %s", needle)
+ t.Fatalf("retired deploy-demo-server workflow missing non-mutating verification contract: %s", needle)
}
}
- for _, forbidden := range []string{`pulse-v6-preview`, `preview-v6`, `demo-preview-v6`} {
+ for _, forbidden := range []string{`go build`, `scp `, `docker compose`, `verify_only: false`} {
if strings.Contains(workflow, forbidden) {
- t.Fatalf("deploy-demo-server workflow must not retain retired v6 preview target %s", forbidden)
+ t.Fatalf("retired deploy-demo-server workflow must not mutate the stable demo: %s", forbidden)
}
}
}
@@ -1432,6 +1413,11 @@ func TestUpdateDemoWorkflowUsesGovernedNetworkPath(t *testing.T) {
`/api/license/runtime-capabilities`,
`Mock mode enabled`,
`Demo server mock mode did not enable after entitlement sync`,
+ `Require exact committed activation marker for mutation`,
+ `activation_convergence_run_id:`,
+ `release-activation.json`,
+ `.convergence_run_id == $convergence_run_id`,
+ `Stable demo mutation refuses inactive or prerelease tag`,
`Verify public browser smoke`,
`./scripts/run_demo_public_browser_smoke.sh`,
}
@@ -1970,21 +1956,33 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
if err != nil {
t.Fatalf("read validate-release-assets.yml: %v", err)
}
+ convergenceBytes, err := os.ReadFile(repoFile(".github", "workflows", "release-convergence.yml"))
+ if err != nil {
+ t.Fatalf("read release-convergence.yml: %v", err)
+ }
+ leaseScriptBytes, err := os.ReadFile(repoFile("scripts", "release_control", "customer_promotion_lease.sh"))
+ if err != nil {
+ t.Fatalf("read customer_promotion_lease.sh: %v", err)
+ }
createWorkflow := string(createBytes)
candidateWorkflow := string(candidateBytes)
validationWorkflow := string(validationBytes)
+ convergenceWorkflow := string(convergenceBytes)
+ leaseScript := string(leaseScriptBytes)
createJob := workflowJobBlock(t, createWorkflow, "create_release")
backendJob := workflowJobBlock(t, createWorkflow, "backend_tests")
integrationJob := workflowJobBlock(t, createWorkflow, "integration_tests")
validationJob := workflowJobBlock(t, createWorkflow, "validate_release_assets")
privateStageJob := workflowJobBlock(t, createWorkflow, "stage_private_pro_runtime")
readinessJob := workflowJobBlock(t, createWorkflow, "release_readiness")
- privatePromotionJob := workflowJobBlock(t, createWorkflow, "promote_private_pro_runtime")
+ dispatchJob := workflowJobBlock(t, createWorkflow, "dispatch_release_convergence")
activationJob := workflowJobBlock(t, createWorkflow, "activate_release")
- floatingJob := workflowJobBlock(t, createWorkflow, "promote_floating_tags")
- helmPagesJob := workflowJobBlock(t, createWorkflow, "publish_helm_pages")
- demoJob := workflowJobBlock(t, createWorkflow, "update_stable_demo")
+ leaseJob := workflowJobBlock(t, convergenceWorkflow, "acquire_customer_promotion_lease")
+ privatePromotionJob := workflowJobBlock(t, convergenceWorkflow, "promote_private_pro_runtime")
+ floatingJob := workflowJobBlock(t, convergenceWorkflow, "promote_floating_tags")
+ helmPagesJob := workflowJobBlock(t, convergenceWorkflow, "publish_helm_pages")
+ demoJob := workflowJobBlock(t, convergenceWorkflow, "update_stable_demo")
for _, needle := range []string{
`./scripts/build-release.sh "${{ inputs.version }}"`,
@@ -2051,8 +2049,13 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
t.Fatalf("immutable readiness must exclude mutable customer state: %s", forbiddenDependency)
}
}
- if !strings.Contains(activationJob, "- release_readiness") {
- t.Fatal("release activation must depend on immutable release readiness")
+ for _, dependency := range []string{"- release_readiness", "- stage_private_pro_runtime"} {
+ if !strings.Contains(dispatchJob, dependency) {
+ t.Fatalf("durable convergence dispatch missing staged dependency: %s", dependency)
+ }
+ }
+ if !strings.Contains(activationJob, "- dispatch_release_convergence") {
+ t.Fatal("release activation must depend on the exact durable convergence dispatch")
}
for _, forbiddenDependency := range []string{
"- update_stable_demo",
@@ -2066,21 +2069,34 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
if !strings.Contains(activationJob, `'{draft: false, make_latest: $make_latest}'`) {
t.Fatal("release activation must be the job that crosses the draft publication boundary")
}
+ for _, needle := range []string{`release-activation.json`, `require_viable_convergence_owner`, `continue-on-error: true`} {
+ if !strings.Contains(activationJob, needle) {
+ t.Fatalf("release activation missing irreversible handoff contract: %s", needle)
+ }
+ }
+ for _, needle := range []string{`sort -Vr`, `superseded=true`} {
+ if !strings.Contains(leaseJob, needle) {
+ t.Fatalf("global customer-promotion lease missing monotonicity contract: %s", needle)
+ }
+ }
+ for _, needle := range []string{`refs/heads/release-customer-promotion-lock`, `--force-with-lease="${LOCK_REF}:${observed_sha}"`} {
+ if !strings.Contains(leaseScript, needle) {
+ t.Fatalf("shared global customer-promotion lease helper missing contract: %s", needle)
+ }
+ }
for jobName, jobBlock := range map[string]string{
- "floating-tag promotion": floatingJob,
- "public Helm Pages promotion": helmPagesJob,
- "private Pro live promotion": privatePromotionJob,
- "stable demo deployment": demoJob,
+ "floating-tag promotion": floatingJob,
+ "private Pro live promotion": privatePromotionJob,
+ "stable demo deployment": demoJob,
} {
- if !strings.Contains(jobBlock, "- activate_release") ||
- !strings.Contains(jobBlock, `needs.activate_release.result == 'success'`) {
- t.Fatalf("%s must depend on successful public activation", jobName)
+ if !strings.Contains(jobBlock, `needs: acquire_customer_promotion_lease`) ||
+ !strings.Contains(jobBlock, `needs.acquire_customer_promotion_lease.outputs.superseded != 'true'`) {
+ t.Fatalf("%s must run under the monotonic global promotion lease", jobName)
}
}
- for _, dependency := range []string{"- release_readiness", "- stage_private_pro_runtime", "- activate_release"} {
- if !strings.Contains(privatePromotionJob, dependency) {
- t.Fatalf("private Pro live promotion missing required dependency: %s", dependency)
- }
+ if !strings.Contains(helmPagesJob, `needs: acquire_customer_promotion_lease`) ||
+ strings.Contains(helmPagesJob, `superseded != 'true'`) {
+ t.Fatal("additive Helm Pages indexing must run under the lease for every committed release")
}
if strings.Contains(demoJob, "release_id:") {
t.Fatal("stable demo must use activated public assets, not an unpublished release id")
@@ -2107,7 +2123,7 @@ func TestReleaseCutGatesCriticalFrontendAndWindowsRuntimeProof(t *testing.T) {
windowsJob := workflowJobBlock(t, workflow, "windows_install_command_smoke")
smokeJob := workflowJobBlock(t, workflow, "release_smoke")
createJob := workflowJobBlock(t, workflow, "create_release")
- verdictJob := workflowJobBlock(t, workflow, "release_verdict")
+ verdictJob := workflowJobBlock(t, workflow, "release_commit_verdict")
for _, needle := range []string{
`npm --prefix frontend-modern run type-check`,
@@ -2138,7 +2154,7 @@ func TestReleaseCutGatesCriticalFrontendAndWindowsRuntimeProof(t *testing.T) {
t.Fatal("release assembly must fail closed on the Windows install-command smoke")
}
if !strings.Contains(verdictJob, `require_result "Windows install command smoke" "$WINDOWS_INSTALL_COMMAND_RESULT" success`) {
- t.Fatal("definitive release verdict must report the Windows install-command smoke")
+ t.Fatal("release activation commit verdict must report the Windows install-command smoke")
}
}
@@ -2149,7 +2165,16 @@ func TestCreateReleasePublishesPrivateProRuntime(t *testing.T) {
}
workflow := string(content)
stageJob := workflowJobBlock(t, workflow, "stage_private_pro_runtime")
- promotionJob := workflowJobBlock(t, workflow, "promote_private_pro_runtime")
+ promotionContent, err := os.ReadFile(repoFile(".github", "workflows", "promote-private-pro-runtime.yml"))
+ if err != nil {
+ t.Fatalf("read promote-private-pro-runtime.yml: %v", err)
+ }
+ convergenceContent, err := os.ReadFile(repoFile(".github", "workflows", "release-convergence.yml"))
+ if err != nil {
+ t.Fatalf("read release-convergence.yml: %v", err)
+ }
+ promotionJob := workflowJobBlock(t, string(promotionContent), "promote")
+ convergencePromotionJob := workflowJobBlock(t, string(convergenceContent), "promote_private_pro_runtime")
for _, needle := range []string{
`needs.create_release.result == 'success'`,
@@ -2178,11 +2203,14 @@ func TestCreateReleasePublishesPrivateProRuntime(t *testing.T) {
}
}
for _, needle := range []string{
- `needs.stage_private_pro_runtime.result == 'success'`,
- `R2_PREFIX: ${{ needs.stage_private_pro_runtime.outputs.r2_prefix }}`,
+ `R2_PREFIX: ${{ inputs.r2_prefix }}`,
+ `PULSE_LEASE_SHA: ${{ inputs.pulse_lease_sha }}`,
+ `PULSE_CONVERGENCE_RUN_ID: ${{ inputs.pulse_convergence_run_id }}`,
`return_run_details: true`,
`r2_prefix: $r2_prefix`,
`allow_ga_prefix: $allow_ga_prefix`,
+ `pulse_lease_sha: $pulse_lease_sha`,
+ `pulse_convergence_run_id: $pulse_convergence_run_id`,
`repos/rcourtman/pulse-pro/actions/workflows/promote-paid-runtime-release.yml/dispatches`,
`promote_run_id="$(jq -r '.workflow_run_id // empty' <<<"${promote_dispatch}")"`,
`wait_for_workflow rcourtman/pulse-pro "${promote_run_id}" "private Pro live promotion"`,
@@ -2192,6 +2220,17 @@ func TestCreateReleasePublishesPrivateProRuntime(t *testing.T) {
t.Fatalf("promote_private_pro_runtime missing required contract: %s", needle)
}
}
+ for _, needle := range []string{
+ `uses: ./.github/workflows/promote-private-pro-runtime.yml`,
+ `r2_prefix: ${{ inputs.r2_prefix }}`,
+ `pulse_lease_sha: ${{ needs.acquire_customer_promotion_lease.outputs.lock_sha }}`,
+ `pulse_convergence_run_id: ${{ github.run_id }}`,
+ `needs: acquire_customer_promotion_lease`,
+ } {
+ if !strings.Contains(convergencePromotionJob, needle) {
+ t.Fatalf("release convergence private Pro promotion missing required contract: %s", needle)
+ }
+ }
if strings.Contains(stageJob, "continue-on-error: true") || strings.Contains(promotionJob, "continue-on-error: true") {
t.Fatal("private Pro staging and promotion must fail the release pipeline on error")
}
diff --git a/scripts/release_control/customer_promotion_lease.sh b/scripts/release_control/customer_promotion_lease.sh
new file mode 100755
index 0000000000..1e694f4a64
--- /dev/null
+++ b/scripts/release_control/customer_promotion_lease.sh
@@ -0,0 +1,115 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+LOCK_REF="refs/heads/release-customer-promotion-lock"
+COMMAND="${1:-}"
+
+require_runtime() {
+ : "${GITHUB_REPOSITORY:?GITHUB_REPOSITORY is required}"
+ : "${GITHUB_RUN_ID:?GITHUB_RUN_ID is required}"
+ : "${GITHUB_RUN_ATTEMPT:?GITHUB_RUN_ATTEMPT is required}"
+ : "${GITHUB_ACTOR:?GITHUB_ACTOR is required}"
+ : "${GITHUB_ACTOR_ID:?GITHUB_ACTOR_ID is required}"
+ : "${GH_TOKEN:?GH_TOKEN is required}"
+}
+
+acquire() {
+ local tag="${2:-}"
+ local timeout_seconds="${CUSTOMER_PROMOTION_LEASE_TIMEOUT_SECONDS:-21000}"
+ if [ -z "${tag}" ]; then
+ echo "::error::A lease owner label is required."
+ return 1
+ fi
+ if [[ ! "${timeout_seconds}" =~ ^[0-9]+$ ]] || [ "${timeout_seconds}" -lt 1 ]; then
+ echo "::error::CUSTOMER_PROMOTION_LEASE_TIMEOUT_SECONDS must be a positive integer."
+ return 1
+ fi
+
+ export GIT_AUTHOR_NAME="${GITHUB_ACTOR}"
+ export GIT_AUTHOR_EMAIL="${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
+ export GIT_COMMITTER_NAME="${GIT_AUTHOR_NAME}"
+ export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL}"
+ local lock_message="Release customer promotion lock run=${GITHUB_RUN_ID} attempt=${GITHUB_RUN_ATTEMPT} owner=${tag}"
+ local lock_commit
+ lock_commit="$(printf '%s\n' "${lock_message}" | git commit-tree "$(git rev-parse 'HEAD^{tree}')" -p HEAD)"
+ local deadline=$((SECONDS + timeout_seconds))
+
+ while (( SECONDS < deadline )); do
+ if git push origin "${lock_commit}:${LOCK_REF}" >/dev/null 2>&1; then
+ echo "lock_sha=${lock_commit}" >> "${GITHUB_OUTPUT}"
+ echo "[OK] Acquired global customer-promotion lease ${lock_commit}."
+ return 0
+ fi
+
+ local observed_sha
+ observed_sha="$(git ls-remote origin "${LOCK_REF}" | awk '{print $1}')"
+ if [[ ! "${observed_sha}" =~ ^[0-9a-f]{40}$ ]]; then
+ echo "Customer-promotion lease changed while acquiring; retrying."
+ sleep 15
+ continue
+ fi
+ git fetch --no-tags origin "${observed_sha}" >/dev/null 2>&1
+ local owner_message owner_run_id owner_attempt owner_status
+ owner_message="$(git show -s --format=%B "${observed_sha}")"
+ owner_run_id="$(sed -n -E 's/.* run=([0-9]+).*/\1/p' <<<"${owner_message}" | head -1)"
+ owner_attempt="$(sed -n -E 's/.* attempt=([0-9]+).*/\1/p' <<<"${owner_message}" | head -1)"
+ local reclaim=false
+ if [ "${owner_run_id}" = "${GITHUB_RUN_ID}" ] && [ "${owner_attempt}" != "${GITHUB_RUN_ATTEMPT}" ]; then
+ reclaim=true
+ elif [[ "${owner_run_id}" =~ ^[0-9]+$ ]]; then
+ owner_status="$(gh api "repos/${GITHUB_REPOSITORY}/actions/runs/${owner_run_id}" --jq '.status' 2>/dev/null || true)"
+ if [ "${owner_status}" = "completed" ]; then
+ reclaim=true
+ fi
+ fi
+
+ if [ "${reclaim}" = "true" ]; then
+ echo "Reclaiming stale customer-promotion lease ${observed_sha}."
+ git push \
+ --force-with-lease="${LOCK_REF}:${observed_sha}" \
+ origin ":${LOCK_REF}" >/dev/null 2>&1 || true
+ continue
+ fi
+ echo "Global customer-promotion lease is held by run ${owner_run_id:-unknown}; waiting."
+ sleep 30
+ done
+
+ echo "::error::Timed out acquiring the global customer-promotion lease."
+ return 1
+}
+
+release() {
+ local lock_sha="${2:-}"
+ if [[ ! "${lock_sha}" =~ ^[0-9a-f]{40}$ ]]; then
+ echo "::error::A valid owned lease SHA is required."
+ return 1
+ fi
+ local observed_sha
+ observed_sha="$(git ls-remote origin "${LOCK_REF}" | awk '{print $1}')"
+ if [ -z "${observed_sha}" ]; then
+ echo "Customer-promotion lease is already absent."
+ return 0
+ fi
+ if [ "${observed_sha}" != "${lock_sha}" ]; then
+ echo "::error::Refusing to release customer-promotion lease ${observed_sha}; this run owns ${lock_sha}."
+ return 1
+ fi
+ git push \
+ --force-with-lease="${LOCK_REF}:${lock_sha}" \
+ origin ":${LOCK_REF}"
+ echo "[OK] Released global customer-promotion lease ${lock_sha}."
+}
+
+require_runtime
+case "${COMMAND}" in
+ acquire)
+ acquire "$@"
+ ;;
+ release)
+ release "$@"
+ ;;
+ *)
+ echo "Usage: $0 {acquire <owner-label>|release <lock-sha>}" >&2
+ exit 2
+ ;;
+esac
diff --git a/scripts/release_control/dev_runtime_governance_test.py b/scripts/release_control/dev_runtime_governance_test.py
index 6897a01dbb..ab8dce5cc3 100644
--- a/scripts/release_control/dev_runtime_governance_test.py
+++ b/scripts/release_control/dev_runtime_governance_test.py
@@ -102,6 +102,11 @@ class DevRuntimeGovernanceTest(unittest.TestCase):
[
".github/workflows/publish-docker.yml",
".github/workflows/promote-floating-tags.yml",
+ ".github/workflows/promote-private-pro-runtime.yml",
+ ".github/workflows/release-convergence.yml",
+ ".github/workflows/retry-release-convergence.yml",
+ "pulse-pro:.github/workflows/promote-paid-runtime-release.yml",
+ "pulse-pro:scripts/validate_paid_runtime_distribution.py",
]
)
self.assertEqual(result["unowned_runtime_files"], [])
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index 93022da707..3730e84875 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -9,6 +9,9 @@ import subprocess
import unittest
import json
+import yaml
+from yaml.constructor import ConstructorError
+
import record_rc_to_ga_blocked as blocked_record
from live_runtime_proof import evaluate_live_runtime
from release_promotion_policy_support import (
@@ -48,6 +51,31 @@ def workflow_job_block(workflow: str, job: str) -> str:
return match.group(0)
+class UniqueKeyLoader(yaml.SafeLoader):
+ """YAML loader that fails instead of silently overwriting duplicate keys."""
+
+
+def _construct_unique_mapping(loader: UniqueKeyLoader, node: yaml.MappingNode, deep: bool = False) -> dict:
+ seen: set[object] = set()
+ for key_node, _ in node.value:
+ key = loader.construct_object(key_node, deep=deep)
+ if key in seen:
+ raise ConstructorError(
+ "while constructing a mapping",
+ node.start_mark,
+ f"found duplicate key {key!r}",
+ key_node.start_mark,
+ )
+ seen.add(key)
+ return yaml.SafeLoader.construct_mapping(loader, node, deep=deep)
+
+
+UniqueKeyLoader.add_constructor(
+ yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG,
+ _construct_unique_mapping,
+)
+
+
_RC_DRAFT_PACKET_NAME_RE = re.compile(r"^RELEASE_NOTES_v6_RC(\d+)_DRAFT\.md$")
@@ -151,10 +179,42 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
+ "\n- ".join(STAGED_GOVERNANCE_INPUT_ERRORS)
)
- def test_release_activation_precedes_every_mutable_customer_target(self) -> None:
+ def test_release_workflows_reject_duplicate_yaml_keys(self) -> None:
+ for workflow_path in (
+ ".github/workflows/create-release.yml",
+ ".github/workflows/release-convergence.yml",
+ ".github/workflows/retry-release-convergence.yml",
+ ".github/workflows/promote-private-pro-runtime.yml",
+ ".github/workflows/promote-floating-tags.yml",
+ ".github/workflows/helm-pages.yml",
+ ".github/workflows/update-demo-server.yml",
+ ".github/workflows/deploy-demo-server.yml",
+ ):
+ with self.subTest(workflow_path=workflow_path):
+ yaml.load(read(workflow_path), Loader=UniqueKeyLoader)
+
+ def test_customer_promotion_lease_helper_is_tracked_and_executable(self) -> None:
+ helper = REPO_ROOT / "scripts" / "release_control" / "customer_promotion_lease.sh"
+ tracked = subprocess.run(
+ ["git", "ls-files", "--error-unmatch", str(helper.relative_to(REPO_ROOT))],
+ cwd=REPO_ROOT,
+ capture_output=True,
+ text=True,
+ check=False,
+ )
+ self.assertEqual(tracked.returncode, 0, tracked.stderr)
+ self.assertTrue(os.access(helper, os.X_OK), f"{helper} must be executable")
+ convergence = read(".github/workflows/release-convergence.yml")
+ self.assertIn("scripts/release_control/customer_promotion_lease.sh acquire", convergence)
+ self.assertIn("scripts/release_control/customer_promotion_lease.sh release", convergence)
+
+ def test_release_commit_dispatches_durable_convergence_before_activation(self) -> None:
workflow = read(".github/workflows/create-release.yml")
+ convergence = read(".github/workflows/release-convergence.yml")
readiness = workflow_job_block(workflow, "release_readiness")
+ dispatch = workflow_job_block(workflow, "dispatch_release_convergence")
activation = workflow_job_block(workflow, "activate_release")
+ commit_verdict = workflow_job_block(workflow, "release_commit_verdict")
for dependency in (
"create_release",
@@ -174,15 +234,53 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
with self.subTest(mutable_job=mutable_job):
self.assertNotIn(f"- {mutable_job}", readiness)
self.assertNotIn(f"- {mutable_job}", activation)
- mutable = workflow_job_block(workflow, mutable_job)
- self.assertIn("- activate_release", mutable)
- self.assertIn("needs.activate_release.result == 'success'", mutable)
+ self.assertNotRegex(workflow, rf"(?m)^ {mutable_job}:$")
+ mutable = workflow_job_block(convergence, mutable_job)
+ self.assertIn("needs: acquire_customer_promotion_lease", mutable)
self.assertIn("- release_readiness", activation)
+ self.assertIn("- dispatch_release_convergence", activation)
+ self.assertIn("- release_readiness", dispatch)
+ self.assertIn("return_run_details: true", dispatch)
+ self.assertIn("release-convergence.yml/dispatches", dispatch)
+ self.assertIn("Customer convergence dispatch did not return an exact workflow run", dispatch)
+ self.assertIn("continue-on-error: true", activation)
self.assertIn("returning ${TAG} to draft quarantine", activation)
- self.assertIn("Activated and publicly verified ${TAG}", activation)
+ self.assertIn('committed=false', activation)
+ self.assertIn('[ "$committed" != "true" ]', activation)
+ self.assertIn("release-activation.json", activation)
+ self.assertIn("r2_prefix: $r2_prefix", activation)
+ self.assertIn(".r2_prefix == $r2_prefix", activation)
+ self.assertIn(".r2_prefix == $r2_prefix", convergence)
+ self.assertIn("committed=true", activation)
+ self.assertIn("Irreversibly committed and publicly verified ${TAG}", activation)
+ marker_upload = activation.index('gh release upload "${TAG}"')
+ commit_flip = activation.index("committed=true", marker_upload)
+ activation_readback = activation.index("curl -fsSL --retry 12", commit_flip)
+ self.assertLess(marker_upload, commit_flip)
+ self.assertLess(commit_flip, activation_readback)
+
+ # Failure injection: after the marker upload succeeds, activation-side
+ # public read-back may fail, but the ERR trap must see committed=true
+ # and may no longer quarantine while convergence owns the marker.
+ state = {"activated": True, "marker_uploaded": False, "committed": False}
+ state["marker_uploaded"] = True
+ state["committed"] = True
+ activation_readback_succeeded = False
+ should_quarantine = state["activated"] and not state["committed"]
+ self.assertFalse(activation_readback_succeeded)
+ self.assertFalse(should_quarantine)
+ self.assertIn("Release Activation Commit Verdict", commit_verdict)
+ self.assertIn("release-activation.json", commit_verdict)
+ for forbidden in (
+ "FLOATING_RESULT",
+ "HELM_PAGES_RESULT",
+ "PRIVATE_PRO_PROMOTION_RESULT",
+ "DEMO_RESULT",
+ ):
+ self.assertNotIn(forbidden, commit_verdict)
- demo = workflow_job_block(workflow, "update_stable_demo")
+ demo = workflow_job_block(convergence, "update_stable_demo")
self.assertNotIn("release_id:", demo)
demo_workflow = read(".github/workflows/update-demo-server.yml")
self.assertNotIn("release_id:", demo_workflow)
@@ -204,22 +302,306 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("--json isDraft,publishedAt,tagName", guarded_workflow)
self.assertIn(refusal, guarded_workflow)
+ def test_each_post_commit_surface_failure_is_retriable_convergence_debt(self) -> None:
+ release_workflow = read(".github/workflows/create-release.yml")
+ convergence = read(".github/workflows/release-convergence.yml")
+ retry = read(".github/workflows/retry-release-convergence.yml")
+ commit_verdict = workflow_job_block(release_workflow, "release_commit_verdict")
+ convergence_verdict = workflow_job_block(convergence, "convergence_verdict")
+
+ surfaces = {
+ "promote_floating_tags": ("FLOATING_RESULT", "Docker aliases"),
+ "publish_helm_pages": ("HELM_PAGES_RESULT", "Helm Pages"),
+ "promote_private_pro_runtime": ("PRIVATE_PRO_RESULT", "paid-runtime broker"),
+ "update_stable_demo": ("DEMO_RESULT", "stable demo"),
+ }
+ for failed_job, (result_variable, surface_name) in surfaces.items():
+ with self.subTest(failed_job=failed_job):
+ injected_results = {job: "success" for job in surfaces}
+ injected_results[failed_job] = "failure"
+ release_state = "committed"
+ convergence_state = (
+ "debt"
+ if any(result != "success" for result in injected_results.values())
+ else "converged"
+ )
+ self.assertEqual(release_state, "committed")
+ self.assertEqual(convergence_state, "debt")
+ self.assertNotIn(result_variable, commit_verdict)
+ self.assertIn(result_variable, convergence_verdict)
+ self.assertIn(surface_name, convergence_verdict)
+ self.assertIn("the committed release remains public", convergence_verdict)
+
+ self.assertIn("github.event.workflow_run.conclusion != 'success'", retry)
+ self.assertIn("actions/runs/${RUN_ID}/rerun", retry)
+ self.assertNotIn("rerun-failed-jobs", retry)
+ self.assertIn("RUN_ATTEMPT >= MAX_ATTEMPTS", retry)
+ self.assertIn("release-activation.json", retry)
+
+ def test_mutating_reusable_workflows_have_no_direct_dispatch_lock_bypass(self) -> None:
+ convergence = read(".github/workflows/release-convergence.yml")
+ for workflow_path, convergence_job in (
+ (".github/workflows/promote-floating-tags.yml", "promote_floating_tags"),
+ (".github/workflows/helm-pages.yml", "publish_helm_pages"),
+ (".github/workflows/update-demo-server.yml", "update_stable_demo"),
+ ):
+ with self.subTest(workflow_path=workflow_path):
+ workflow = read(workflow_path)
+ self.assertIn("workflow_call:", workflow)
+ self.assertNotIn("workflow_dispatch:", workflow)
+ self.assertIn(
+ "needs: acquire_customer_promotion_lease",
+ workflow_job_block(convergence, convergence_job),
+ )
+
+ dry_run = read(".github/workflows/release-dry-run.yml")
+ demo_verification = workflow_job_block(dry_run, "demo_path_preflight")
+ self.assertIn("uses: ./.github/workflows/update-demo-server.yml", demo_verification)
+ self.assertIn("verify_only: true", demo_verification)
+
+ retired_bootstrap = read(".github/workflows/deploy-demo-server.yml")
+ self.assertIn("Verify Current Committed Stable Demo (No Mutation)", retired_bootstrap)
+ self.assertIn("tag: latest", retired_bootstrap)
+ self.assertIn("verify_only: true", retired_bootstrap)
+ for forbidden in ("go build", "scp ", "docker compose", "verify_only: false"):
+ self.assertNotIn(forbidden, retired_bootstrap)
+
+ # Only the lease owner may call a mutator. The two demo callers outside
+ # convergence are verification-only and cannot write the stable host.
+ expected_callers = {
+ "promote-floating-tags.yml": {"release-convergence.yml"},
+ "helm-pages.yml": {"release-convergence.yml"},
+ "update-demo-server.yml": {
+ "release-convergence.yml",
+ "release-dry-run.yml",
+ "deploy-demo-server.yml",
+ },
+ }
+ workflow_dir = REPO_ROOT / ".github" / "workflows"
+ for callee, expected in expected_callers.items():
+ callers = {
+ path.name
+ for path in workflow_dir.glob("*.yml")
+ if f"uses: ./.github/workflows/{callee}" in read(str(path.relative_to(REPO_ROOT)))
+ }
+ self.assertEqual(callers, expected)
+
+ def test_live_demo_and_paid_broker_require_exact_committed_lease_owner(self) -> None:
+ convergence = read(".github/workflows/release-convergence.yml")
+ demo_workflow = read(".github/workflows/update-demo-server.yml")
+ demo_mutation = workflow_job_block(demo_workflow, "update-demo")
+ demo_caller = workflow_job_block(convergence, "update_stable_demo")
+ paid_caller = workflow_job_block(convergence, "promote_private_pro_runtime")
+ paid_dispatch = read(".github/workflows/promote-private-pro-runtime.yml")
+
+ for needle in (
+ "Require exact committed activation marker for mutation",
+ "inputs.verify_only != true",
+ "release-activation.json",
+ ".convergence_run_id == $convergence_run_id",
+ "Stable demo mutation refuses inactive or prerelease tag",
+ ):
+ self.assertIn(needle, demo_mutation)
+ self.assertIn("tag: ${{ inputs.tag }}", demo_caller)
+ self.assertIn("verify_only: false", demo_caller)
+ self.assertIn("activation_convergence_run_id: ${{ github.run_id }}", demo_caller)
+ self.assertIn("convergence_owner_asset_name:", demo_caller)
+ self.assertIn("convergence_owner_asset_sha256:", demo_caller)
+
+ self.assertIn(
+ "pulse_lease_sha: ${{ needs.acquire_customer_promotion_lease.outputs.lock_sha }}",
+ paid_caller,
+ )
+ self.assertIn("pulse_convergence_run_id: ${{ github.run_id }}", paid_caller)
+ self.assertIn("pulse_owner_asset_name:", paid_caller)
+ self.assertIn("pulse_owner_asset_sha256:", paid_caller)
+ for needle in (
+ "pulse_lease_sha: $pulse_lease_sha",
+ "pulse_convergence_run_id: $pulse_convergence_run_id",
+ "pulse_owner_asset_name: $pulse_owner_asset_name",
+ "pulse_owner_asset_sha256: $pulse_owner_asset_sha256",
+ "return_run_details: true",
+ ):
+ self.assertIn(needle, paid_dispatch)
+
+ def test_global_promotion_lease_serializes_and_rejects_out_of_order_channels(self) -> None:
+ release_workflow = read(".github/workflows/create-release.yml")
+ convergence = read(".github/workflows/release-convergence.yml")
+ lease = workflow_job_block(convergence, "acquire_customer_promotion_lease")
+ release_lease = workflow_job_block(convergence, "release_customer_promotion_lease")
+ lease_script = read("scripts/release_control/customer_promotion_lease.sh")
+
+ self.assertIn(
+ "release-${{ github.event.inputs.version || github.ref || github.run_id }}",
+ release_workflow,
+ )
+ self.assertNotIn("release-customer-promotion-lock", release_workflow)
+ self.assertIn("customer_promotion_lease.sh acquire", lease)
+ self.assertIn("refs/heads/release-customer-promotion-lock", lease_script)
+ self.assertIn("git push origin \"${lock_commit}:${LOCK_REF}\"", lease_script)
+ self.assertIn("--force-with-lease=\"${LOCK_REF}:${observed_sha}\"", lease_script)
+ self.assertIn("owner_status", lease_script)
+ self.assertIn("sort -Vr", lease)
+ self.assertIn(".isPrerelease == $prerelease", lease)
+ self.assertIn("release-activation.json", lease)
+ self.assertIn("superseded=true", lease)
+ self.assertIn("no global customer pointer will move backward", lease)
+ self.assertIn("customer_promotion_lease.sh release", release_lease)
+ self.assertIn("--force-with-lease=\"${LOCK_REF}:${lock_sha}\"", lease_script)
+
+ helm_pages = workflow_job_block(convergence, "publish_helm_pages")
+ convergence_verdict = workflow_job_block(convergence, "convergence_verdict")
+ self.assertNotIn("superseded != 'true'", helm_pages)
+ self.assertLess(
+ convergence_verdict.index('require_success "Helm Pages"'),
+ convergence_verdict.index('if [ "${SUPERSEDED}" = "true" ]'),
+ )
+ for rollback_prone_job in (
+ "promote_floating_tags",
+ "promote_private_pro_runtime",
+ "update_stable_demo",
+ ):
+ self.assertIn(
+ "superseded != 'true'",
+ workflow_job_block(convergence, rollback_prone_job),
+ )
+ self.assertIn("without moving rollback-prone pointers", convergence_verdict)
+
+ def version_key(tag: str) -> tuple[int, int, int, int, int]:
+ match = re.fullmatch(r"v(\d+)\.(\d+)\.(\d+)(?:-rc\.(\d+))?", tag)
+ self.assertIsNotNone(match)
+ assert match is not None
+ major, minor, patch, rc = match.groups()
+ return (
+ int(major),
+ int(minor),
+ int(patch),
+ 1 if rc is None else 0,
+ int(rc or 0),
+ )
+
+ def admitted(target: str, committed_same_channel: tuple[str, ...]) -> bool:
+ return target == max(committed_same_channel, key=version_key)
+
+ self.assertFalse(admitted("v6.2.0", ("v6.2.0", "v6.2.1")))
+ self.assertTrue(admitted("v6.2.1", ("v6.2.0", "v6.2.1")))
+ self.assertFalse(admitted("v6.3.0-rc.1", ("v6.3.0-rc.1", "v6.3.0-rc.2")))
+ self.assertTrue(admitted("v6.3.0-rc.2", ("v6.3.0-rc.1", "v6.3.0-rc.2")))
+ self.assertTrue(admitted("v6.2.1", ("v6.2.1",)))
+ self.assertTrue(admitted("v6.3.0-rc.2", ("v6.3.0-rc.2",)))
+
+ helm_index = {"v6.2.1"}
+ pointer_target = "v6.2.1"
+ older = "v6.2.0"
+ helm_index.add(older)
+ if admitted(older, (older, pointer_target)):
+ pointer_target = older
+ self.assertEqual(helm_index, {"v6.2.0", "v6.2.1"})
+ self.assertEqual(pointer_target, "v6.2.1")
+
+ rc_helm_index = {"v6.3.0-rc.2"}
+ rc_pointer_target = "v6.3.0-rc.2"
+ older_rc = "v6.3.0-rc.1"
+ rc_helm_index.add(older_rc)
+ if admitted(older_rc, (older_rc, rc_pointer_target)):
+ rc_pointer_target = older_rc
+ self.assertEqual(rc_helm_index, {"v6.3.0-rc.1", "v6.3.0-rc.2"})
+ self.assertEqual(rc_pointer_target, "v6.3.0-rc.2")
+
+ def test_prepare_to_commit_handoff_survives_delayed_activation(self) -> None:
+ release_workflow = read(".github/workflows/create-release.yml")
+ convergence = read(".github/workflows/release-convergence.yml")
+ retry = read(".github/workflows/retry-release-convergence.yml")
+ activation = workflow_job_block(release_workflow, "activate_release")
+
+ self.assertIn(
+ "Release convergence ${{ inputs.tag }} source ${{ inputs.source_release_run_id }}",
+ convergence,
+ )
+ await_commit = workflow_job_block(convergence, "await_activation_commit")
+ self.assertIn("timeout-minutes: 360", await_commit)
+ self.assertIn("seq 1 2100", await_commit)
+ self.assertIn("source_release_run_id", await_commit)
+ self.assertIn("EXPECTED_CONVERGENCE_RUN_ID: ${{ github.run_id }}", await_commit)
+ self.assertIn('original_status}" != "completed"', await_commit)
+ self.assertIn("successor adoption is not yet allowed", await_commit)
+ self.assertIn("activation_marker_sha256", await_commit)
+
+ self.assertIn("source_release_run_id=\"${BASH_REMATCH[2]}\"", retry)
+ self.assertIn("actions/runs/${source_release_run_id}", retry)
+ self.assertIn('source_status}" != "completed"', retry)
+ self.assertIn("RUN_ATTEMPT < 50", retry)
+ self.assertIn("renewing the pre-commit convergence owner", retry)
+
+ self.assertIn("require_viable_convergence_owner()", activation)
+ self.assertEqual(activation.count("require_viable_convergence_owner"), 3)
+ self.assertIn('gh run view "${CONVERGENCE_RUN_ID}"', activation)
+ self.assertIn("--json event,status,conclusion,workflowName,displayTitle,url", activation)
+ self.assertIn('expected_title="Release convergence ${TAG} source ${GITHUB_RUN_ID}"', activation)
+ self.assertIn('[ "${owner_status}" = "completed" ]', activation)
+ self.assertIn("immediately before the marker", activation)
+ self.assertLess(
+ activation.index("require_viable_convergence_owner\n gh api"),
+ activation.index("-X PATCH --input \"$publish_payload\""),
+ )
+ self.assertLess(
+ activation.rindex("require_viable_convergence_owner"),
+ activation.index('gh release upload "${TAG}"'),
+ )
+
+ def test_fresh_fixed_code_convergence_can_adopt_completed_original_owner(self) -> None:
+ convergence = read(".github/workflows/release-convergence.yml")
+ await_commit = workflow_job_block(convergence, "await_activation_commit")
+ lease = workflow_job_block(convergence, "acquire_customer_promotion_lease")
+
+ original_owner = "100"
+ successor_owner = "200"
+ original_status = "completed"
+ marker_lineage = {
+ "tag": "v6.2.0",
+ "source_release_run_id": "50",
+ "convergence_run_id": original_owner,
+ "r2_prefix": "v6.2.0-pro-20260808-50",
+ }
+ successor_may_adopt = (
+ marker_lineage["convergence_run_id"] != successor_owner
+ and original_status == "completed"
+ )
+ self.assertTrue(successor_may_adopt)
+ self.assertIn("Adopting committed ${TAG} from completed convergence owner", await_commit)
+ self.assertIn("Bind this lease as the active convergence successor", lease)
+ self.assertIn("activation_owner_run_id", lease)
+ self.assertIn("activation_marker_sha256", lease)
+ self.assertIn("release-convergence-owner-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${LEASE_SHA}.json", lease)
+ self.assertNotIn("#release-convergence-owner.json", lease)
+ self.assertIn("owner_asset_sha256", lease)
+ self.assertIn("sha256sum --check --", lease)
+
+ stale_name = f"release-convergence-owner-{original_owner}-5-{'a' * 40}.json"
+ successor_name = f"release-convergence-owner-{successor_owner}-1-{'b' * 40}.json"
+ self.assertNotEqual(stale_name, successor_name)
+
def test_private_dispatches_wait_for_the_exact_created_run(self) -> None:
- workflow = read(".github/workflows/create-release.yml")
+ release_workflow = read(".github/workflows/create-release.yml")
+ private_promotion_workflow = read(
+ ".github/workflows/promote-private-pro-runtime.yml"
+ )
cases = (
(
+ release_workflow,
"stage_private_pro_runtime",
"repos/rcourtman/pulse-enterprise/actions/workflows/build-pro-release.yml/dispatches",
"build_run_id",
),
(
- "promote_private_pro_runtime",
+ private_promotion_workflow,
+ "promote",
"repos/rcourtman/pulse-pro/actions/workflows/promote-paid-runtime-release.yml/dispatches",
"promote_run_id",
),
)
- for job_name, endpoint, run_id_variable in cases:
+ for workflow, job_name, endpoint, run_id_variable in cases:
with self.subTest(job_name=job_name):
job = workflow_job_block(workflow, job_name)
self.assertIn("return_run_details: true", job)
@@ -658,7 +1040,7 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
def test_update_demo_server_workflow_uses_stable_tag_example(self) -> None:
workflow = read(".github/workflows/update-demo-server.yml")
- self.assertIn("Stable release tag to deploy (e.g., v6.0.0)", workflow)
+ self.assertIn("Stable release tag to deploy", workflow)
self.assertIn("Prerelease demo updates are retired after v6 GA", workflow)
self.assertNotIn("v6.0.0-rc.1", workflow)
@@ -794,8 +1176,8 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("render_release_body.py", content)
self.assertIn("build_promotion_metadata_section", renderer)
self.assertIn("uses: ./.github/workflows/publish-docker.yml", content)
- self.assertIn("uses: ./.github/workflows/update-demo-server.yml", content)
- self.assertIn("Definitive Release Verdict", content)
+ self.assertIn("release-convergence.yml/dispatches", content)
+ self.assertIn("Release Activation Commit Verdict", content)
self.assertNotIn('gh workflow run publish-docker.yml --ref "${REQUIRED_BRANCH}"', content)
self.assertNotIn('gh workflow run update-demo-server.yml --ref "${REQUIRED_BRANCH}"', content)
self.assertIn("sanitize_release_notes", renderer)
@@ -905,11 +1287,12 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("does not trust the configured release signing key", candidate_workflow)
self.assertIn("TRUSTED_SSH_PUBLIC_KEY", update_demo_workflow)
self.assertIn('sed -i "s|^PINNED_RELEASE_SSH_PUBLIC_KEY=.*|PINNED_RELEASE_SSH_PUBLIC_KEY=\\"${TRUSTED_SSH_PUBLIC_KEY}\\"|" /tmp/pulse-install.sh', update_demo_workflow)
- for demo_workflow in (update_demo_workflow, deploy_demo_workflow):
- self.assertIn("bash .github/scripts/setup-demo-ssh.sh", demo_workflow)
- self.assertIn("bash .github/scripts/check-demo-reachability.sh", demo_workflow)
- self.assertIn("ping: ${{ secrets.DEMO_SERVER_HOST }}", demo_workflow)
- self.assertIn("tailscale/github-action@306e68a486fd2350f2bfc3b19fcd143891a4a2d8 # v4", demo_workflow)
+ self.assertIn("bash .github/scripts/setup-demo-ssh.sh", update_demo_workflow)
+ self.assertIn("bash .github/scripts/check-demo-reachability.sh", update_demo_workflow)
+ self.assertIn("ping: ${{ secrets.DEMO_SERVER_HOST }}", update_demo_workflow)
+ self.assertIn("tailscale/github-action@306e68a486fd2350f2bfc3b19fcd143891a4a2d8 # v4", update_demo_workflow)
+ self.assertIn("uses: ./.github/workflows/update-demo-server.yml", deploy_demo_workflow)
+ self.assertIn("verify_only: true", deploy_demo_workflow)
self.assertIn('MAX_SSH_SETUP_ATTEMPTS="${DEMO_SSH_SETUP_ATTEMPTS:-3}"', demo_ssh_helper)
self.assertIn("ipaddress.ip_address(sys.argv[1])", demo_ssh_helper)
self.assertIn("host_needs_dns=false", demo_ssh_helper)
@@ -1157,26 +1540,19 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn(r'<script\b[^>]*\bsrc=\"(/assets/index-[^\"]*\.js)\"', demo)
self.assertIn("Public demo is serving $PUBLIC_ASSET but the target service is serving $REMOTE_ASSET.", demo)
self.assertIn("uses: ./.github/workflows/publish-docker.yml", release_workflow)
- self.assertIn("uses: ./.github/workflows/update-demo-server.yml", release_workflow)
+ self.assertIn("release-convergence.yml/dispatches", release_workflow)
self.assertIn("uses: ./.github/workflows/build-release-candidate.yml", release_workflow)
self.assertIn("Build Immutable Release Candidate", release_workflow)
- self.assertIn("Definitive Release Verdict", release_workflow)
+ self.assertIn("Release Activation Commit Verdict", release_workflow)
self.assertNotIn("Require recent exact-SHA stable patch preflight", release_workflow)
self.assertNotIn("gh workflow run update-demo-server.yml", release_workflow)
self.assertNotIn("gh workflow run publish-docker.yml", release_workflow)
- self.assertNotIn("preview-v6", preview_deploy)
- self.assertNotIn("demo-preview-v6", preview_deploy)
- self.assertNotIn('SERVICE_NAME="pulse-v6-preview"', preview_deploy)
- self.assertNotIn("Preview demo deployments must not target the stable pulse service.", preview_deploy)
- self.assertIn("DEMO_EXPECTED_HOSTNAME", preview_deploy)
- self.assertIn("Verify target host identity", preview_deploy)
- self.assertIn("Demo environment points at host $REMOTE_HOSTNAME but expected $DEMO_EXPECTED_HOSTNAME.", preview_deploy)
- self.assertIn("Verify frontend parity", preview_deploy)
- self.assertIn("Verify public browser smoke", preview_deploy)
- self.assertIn("./scripts/run_demo_public_browser_smoke.sh", preview_deploy)
- self.assertIn("extract_entry_asset()", preview_deploy)
- self.assertIn(r'<script\b[^>]*\bsrc=\"(/assets/index-[^\"]*\.js)\"', preview_deploy)
- self.assertIn("Public demo is serving $PUBLIC_ASSET but the build expected $EXPECTED_ASSET.", preview_deploy)
+ self.assertIn("Verify Current Committed Stable Demo (No Mutation)", preview_deploy)
+ self.assertIn("uses: ./.github/workflows/update-demo-server.yml", preview_deploy)
+ self.assertIn("tag: latest", preview_deploy)
+ self.assertIn("verify_only: true", preview_deploy)
+ self.assertNotIn("go build", preview_deploy)
+ self.assertNotIn("scp ", preview_deploy)
self.assertIn("validate_artifact_release_line.py", helm)
self.assertIn("validate_artifact_release_line.py", helm_pages)
self.assertIn("release_branch_for_version", artifact_validator)
@@ -1214,8 +1590,8 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("helm status pulse || true", helm_pages)
self.assertIn("kubectl describe pods -A || true", helm_pages)
self.assertIn("kubectl get events -A --sort-by=.lastTimestamp || kubectl get events -A || true", helm_pages)
- self.assertIn("uses: ./.github/workflows/update-demo-server.yml", release_workflow)
- self.assertIn("Definitive Release Verdict", release_workflow)
+ self.assertIn("release-convergence.yml/dispatches", release_workflow)
+ self.assertIn("Release Activation Commit Verdict", release_workflow)
self.assertNotIn('gh workflow run update-demo-server.yml --ref "${REQUIRED_BRANCH}"', release_workflow)
self.assertNotIn('TARGET="preview-v6"', release_workflow)
self.assertIn("sync_chart_release_metadata.py", helm)
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index 9649d38f87..3f02a9edfd 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -3640,6 +3640,7 @@ class SubsystemLookupTest(unittest.TestCase):
match["verification_requirement"]["exact_files"],
[
"frontend-modern/src/components/__tests__/whatsNewModel.test.ts",
+ "pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py",
"scripts/installtests/build_release_assets_test.go",
"scripts/release_control/internal/record_rc_to_ga_rehearsal_test.py",
"scripts/release_control/mobile_release_gate_test.py",
@@ -3678,6 +3679,7 @@ class SubsystemLookupTest(unittest.TestCase):
match["verification_requirement"]["exact_files"],
[
"frontend-modern/src/components/__tests__/whatsNewModel.test.ts",
+ "pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py",
"scripts/installtests/build_release_assets_test.go",
"scripts/release_control/internal/record_rc_to_ga_rehearsal_test.py",
"scripts/release_control/mobile_release_gate_test.py",
@@ -3723,6 +3725,7 @@ class SubsystemLookupTest(unittest.TestCase):
match["verification_requirement"]["exact_files"],
[
"frontend-modern/src/components/__tests__/whatsNewModel.test.ts",
+ "pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py",
"scripts/installtests/build_release_assets_test.go",
"scripts/release_control/internal/record_rc_to_ga_rehearsal_test.py",
"scripts/release_control/mobile_release_gate_test.py",
@@ -3761,6 +3764,7 @@ class SubsystemLookupTest(unittest.TestCase):
match["verification_requirement"]["exact_files"],
[
"frontend-modern/src/components/__tests__/whatsNewModel.test.ts",
+ "pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py",
"scripts/installtests/build_release_assets_test.go",
"scripts/release_control/internal/record_rc_to_ga_rehearsal_test.py",
"scripts/release_control/mobile_release_gate_test.py",
@@ -3799,6 +3803,7 @@ class SubsystemLookupTest(unittest.TestCase):
match["verification_requirement"]["exact_files"],
[
"frontend-modern/src/components/__tests__/whatsNewModel.test.ts",
+ "pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py",
"scripts/installtests/build_release_assets_test.go",
"scripts/release_control/internal/record_rc_to_ga_rehearsal_test.py",
"scripts/release_control/mobile_release_gate_test.py",
@@ -3837,6 +3842,7 @@ class SubsystemLookupTest(unittest.TestCase):
match["verification_requirement"]["exact_files"],
[
"frontend-modern/src/components/__tests__/whatsNewModel.test.ts",
+ "pulse-pro:scripts/tests/test_validate_paid_runtime_distribution.py",
"scripts/installtests/build_release_assets_test.go",
"scripts/release_control/internal/record_rc_to_ga_rehearsal_test.py",
"scripts/release_control/mobile_release_gate_test.py",