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): fail closed on stale promotion rehearsals

rcourtman79898ec86ce0
diff --git a/.github/workflows/release-dry-run.yml b/.github/workflows/release-dry-run.yml
index 8151c2f260..ce4c4eafdd 100644
--- a/.github/workflows/release-dry-run.yml
+++ b/.github/workflows/release-dry-run.yml
@@ -251,49 +251,70 @@ jobs:
if: always()
env:
NOTE: ${{ inputs.note }}
+ REHEARSAL_CONCLUSION: ${{ steps.rehearsal.conclusion }}
+ JOB_CONCLUSION: ${{ job.status }}
run: |
mkdir -p release-dry-run
SUMMARY_FILE="release-dry-run/rc-to-ga-rehearsal-summary.md"
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
- {
- echo "# Prerelease-to-GA Rehearsal Summary"
- echo ""
- echo "- Workflow run: ${RUN_URL}"
- echo "- Branch: ${GITHUB_REF_NAME}"
- echo "- Version: ${{ steps.rehearsal.outputs.version }}"
- echo "- Candidate stable tag: ${{ steps.rehearsal.outputs.tag }}"
- echo "- Promotion channel: ${{ steps.rehearsal.outputs.is_prerelease == 'true' && 'rc' || 'stable' }}"
- if [ -n "${{ steps.rehearsal.outputs.promoted_from_tag }}" ]; then
- echo "- Promoted prerelease tag: ${{ steps.rehearsal.outputs.promoted_from_tag }}"
- fi
- if [ -n "${{ steps.rehearsal.outputs.rollback_tag }}" ]; then
- echo "- Rollback target: ${{ steps.rehearsal.outputs.rollback_tag }}"
- fi
- if [ -n "${{ steps.rehearsal.outputs.rollback_command }}" ]; then
- echo "- Rollback command: \`${{ steps.rehearsal.outputs.rollback_command }}\`"
- fi
- if [ -n "${{ steps.rehearsal.outputs.soak_hours }}" ]; then
- echo "- Prerelease soak hours at rehearsal time: ${{ steps.rehearsal.outputs.soak_hours }}"
- fi
- if [ -n "${{ steps.rehearsal.outputs.ga_date }}" ]; then
- echo "- Planned GA date: ${{ steps.rehearsal.outputs.ga_date }}"
- fi
- if [ -n "${{ steps.rehearsal.outputs.v5_eos_date }}" ]; then
- echo "- Planned v5 end-of-support date: ${{ steps.rehearsal.outputs.v5_eos_date }}"
- fi
- echo "- Hotfix exception: ${{ steps.rehearsal.outputs.hotfix_exception }}"
- if [ -n "${{ steps.rehearsal.outputs.hotfix_reason }}" ]; then
- echo "- Hotfix reason: ${{ steps.rehearsal.outputs.hotfix_reason }}"
- fi
- if [ -n "${NOTE}" ]; then
- echo "- Operator note: ${NOTE}"
- fi
- echo ""
- echo "## Result"
- echo ""
- echo "This run exercised the non-publish release path and validated the current promotion contract on the selected branch."
- echo "Record this run URL in the release ticket when clearing \`rc-to-ga-promotion-readiness\`."
- } > "$SUMMARY_FILE"
+ if [ "${REHEARSAL_CONCLUSION}" != "success" ]; then
+ {
+ echo "# Prerelease-to-GA Rehearsal Summary"
+ echo ""
+ echo "- Workflow run: ${RUN_URL}"
+ echo "- Branch: ${GITHUB_REF_NAME}"
+ echo "- Result: ${JOB_CONCLUSION}"
+ if [ -n "${NOTE}" ]; then
+ echo "- Operator note: ${NOTE}"
+ fi
+ echo ""
+ echo "## Result"
+ echo ""
+ echo "This run did not produce a valid promotion metadata envelope."
+ echo "Do not use this artifact to clear \`rc-to-ga-promotion-readiness\`."
+ echo "Fix the failed rehearsal metadata or branch-state preconditions and rerun the workflow."
+ } > "$SUMMARY_FILE"
+ else
+ {
+ echo "# Prerelease-to-GA Rehearsal Summary"
+ echo ""
+ echo "- Workflow run: ${RUN_URL}"
+ echo "- Branch: ${GITHUB_REF_NAME}"
+ echo "- Version: ${{ steps.rehearsal.outputs.version }}"
+ echo "- Candidate stable tag: ${{ steps.rehearsal.outputs.tag }}"
+ echo "- Promotion channel: ${{ steps.rehearsal.outputs.is_prerelease == 'true' && 'rc' || 'stable' }}"
+ if [ -n "${{ steps.rehearsal.outputs.promoted_from_tag }}" ]; then
+ echo "- Promoted prerelease tag: ${{ steps.rehearsal.outputs.promoted_from_tag }}"
+ fi
+ if [ -n "${{ steps.rehearsal.outputs.rollback_tag }}" ]; then
+ echo "- Rollback target: ${{ steps.rehearsal.outputs.rollback_tag }}"
+ fi
+ if [ -n "${{ steps.rehearsal.outputs.rollback_command }}" ]; then
+ echo "- Rollback command: \`${{ steps.rehearsal.outputs.rollback_command }}\`"
+ fi
+ if [ -n "${{ steps.rehearsal.outputs.soak_hours }}" ]; then
+ echo "- Prerelease soak hours at rehearsal time: ${{ steps.rehearsal.outputs.soak_hours }}"
+ fi
+ if [ -n "${{ steps.rehearsal.outputs.ga_date }}" ]; then
+ echo "- Planned GA date: ${{ steps.rehearsal.outputs.ga_date }}"
+ fi
+ if [ -n "${{ steps.rehearsal.outputs.v5_eos_date }}" ]; then
+ echo "- Planned v5 end-of-support date: ${{ steps.rehearsal.outputs.v5_eos_date }}"
+ fi
+ echo "- Hotfix exception: ${{ steps.rehearsal.outputs.hotfix_exception }}"
+ if [ -n "${{ steps.rehearsal.outputs.hotfix_reason }}" ]; then
+ echo "- Hotfix reason: ${{ steps.rehearsal.outputs.hotfix_reason }}"
+ fi
+ if [ -n "${NOTE}" ]; then
+ echo "- Operator note: ${NOTE}"
+ fi
+ echo ""
+ echo "## Result"
+ echo ""
+ echo "This run exercised the non-publish release path and validated the current promotion contract on the selected branch."
+ echo "Record this run URL in the release ticket when clearing \`rc-to-ga-promotion-readiness\`."
+ } > "$SUMMARY_FILE"
+ fi
cat "$SUMMARY_FILE" >> "$GITHUB_STEP_SUMMARY"
diff --git a/.gitignore b/.gitignore
index 8f8bf2a251..11da45876a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -203,6 +203,8 @@ docs/release-control/v6/*
!docs/release-control/v6/status.schema.json
!docs/release-control/v6/internal/
docs/release-control/v6/internal/*
+!docs/release-control/v6/internal/records/
+!docs/release-control/v6/internal/records/*.md
!docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md
!docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md
# Release control scripts — keep public tooling; internal/ subdir is excluded by the wildcard above
diff --git a/docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md b/docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md
index 8bae2b7d43..1a6ed9f9eb 100644
--- a/docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md
+++ b/docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md
@@ -33,7 +33,8 @@ Use this as the final gate before cutting a Pulse v6 pre-release.
- [ ] For stable promotion, confirm the prerelease soak window is at least 72 hours or document the hotfix exception explicitly.
- [ ] For stable promotion, confirm paid production tenants are not being moved onto an unvalidated build.
- [ ] For GA/stable promotion, confirm `V5_MAINTENANCE_SUPPORT_POLICY.md` is still the intended policy and replace any placeholder GA notice dates with the exact v6 GA date and exact v5 end-of-support date that will ship with the announcement.
-- [ ] For GA/stable promotion, confirm the default-branch copy of `.github/workflows/release-dry-run.yml` already accepts the governed stable rehearsal metadata envelope (`promoted_from_tag`, `rollback_version`, `ga_date`, `v5_eos_date`) through `workflow_dispatch`, because GitHub validates dispatch inputs against the default branch even when dispatching `pulse/v6-release`.
+- [ ] For GA/stable promotion, confirm the pushed governed release-branch copy of `.github/workflows/release-dry-run.yml` already accepts the governed stable rehearsal metadata envelope (`promoted_from_tag`, `rollback_version`, `ga_date`, `v5_eos_date`) through `workflow_dispatch`, because GitHub executes the selected remote ref and does not see local-only governance state.
+- [ ] For GA/stable promotion, confirm the local rehearsal branch exactly matches `origin` before dispatching `Release Dry Run`, so the run exercises the intended governed branch state instead of stale remote control-plane metadata.
- [ ] For GA/stable promotion, confirm the release rehearsal and publish workflows both derive the governed release branch from release-control metadata instead of hardcoding a branch name inline.
- [ ] For GA/stable promotion, attach a `Release Dry Run` run URL and `rc-to-ga-rehearsal-summary` artifact to the release ticket, and confirm that artifact records the canonical promotion metadata envelope for that candidate: candidate stable tag, promotion channel, promoted prerelease tag, rollback target, exact rollback command, planned GA date, and planned v5 end-of-support date.
diff --git a/docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-03-26.md b/docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-03-26.md
new file mode 100644
index 0000000000..89d72afad9
--- /dev/null
+++ b/docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-03-26.md
@@ -0,0 +1,80 @@
+# Prerelease-to-GA Promotion Readiness Blocked Record
+
+- Date: `2026-03-26`
+- Gate: `rc-to-ga-promotion-readiness`
+- Result: `blocked`
+
+## Blocking Facts
+
+1. No Pulse v6 prerelease has shipped yet.
+2. The repository contains accidental prerelease git tag history (`v6.0.0-rc.1`),
+ but those tags were never published and do not count as shipped prerelease lineage.
+3. The selected remote ref `origin/pulse/v6-release` is still behind the current
+ local governed branch state, so `Release Dry Run` would exercise stale remote
+ control-plane metadata instead of the intended candidate.
+4. The governed release profile in `docs/release-control/control_plane.json`
+ currently declares both `prerelease_branch` and `stable_branch` as
+ `pulse/v6-release`.
+5. The active control-plane target is still `v6-rc-stabilization`, not
+ `v6-ga-promotion`.
+6. The active local `pulse/v6-release` branch currently reports `VERSION=6.0.0-rc.1`, so the
+ working line is still prerelease and there is not yet a governed local stable
+ `6.0.0` candidate.
+7. There is still no governed `Prerelease-to-GA Rehearsal Record` proving a successful
+ non-publish `Release Dry Run` for the eventual stable `6.0.0` candidate.
+8. `docs/releases/RELEASE_NOTES_v6.md` and
+ `docs/release-control/v6/internal/V5_MAINTENANCE_SUPPORT_POLICY.md` still leave the
+ GA announcement dates as placeholders because no real prerelease lineage or GA-ready
+ rehearsal has locked them yet:
+ - `v6` GA date placeholder: `[v6-ga-date]`
+ - `v5` end-of-support placeholder: `[v5-eos-date]`
+9. There is still no governed `Release Dry Run` artifact or rehearsal record
+ exercising stable inputs for:
+ - `version=6.0.0`
+ - no governed `promoted_from_tag` exists yet because no prerelease has shipped
+ - the artifact-owned candidate stable tag for that rehearsal
+ - the artifact-owned promotion channel for that rehearsal
+ - the artifact-owned promoted prerelease tag for that rehearsal
+ - the artifact-owned rollback target for that stable candidate
+ - no exact `ga_date` is locked yet because the GA notice is still pending
+ - no exact `v5_eos_date` is locked yet because the GA notice is still pending
+ - an explicit `rollback_version`
+ - the exact derived rollback command that artifact will publish
+
+## Why The Gate Cannot Be Cleared Yet
+
+The blocker is no longer missing governance text. The remaining problem is that
+the control plane still treats v6 as the prerelease-stabilization line, the working
+version is still prerelease (`6.0.0-rc.1`), and there is still no exercised
+`Release Dry Run` record proving the eventual stable `6.0.0`
+candidate is ready for GA-style promotion. Until that rehearsal exists, stable
+users would still be the first real cohort for the final promotion path.
+
+## Required Unblock Steps
+
+1. Promote the active target from `v6-rc-stabilization` to
+ `v6-ga-promotion` only when that change is actually intended.
+2. Push the governed `pulse/v6-release` branch state that is intended to become the
+ stable `6.0.0` candidate, including the eventual `VERSION=6.0.0`
+ change and release-control records, to `origin/pulse/v6-release`.
+3. Ship the first real prerelease through the governed prerelease release path and record
+ its exact published prerelease tag plus rollback target and exact derived
+ rollback command.
+4. Run `Release Dry Run` from `pulse/v6-release` using that published prerelease as
+ `promoted_from_tag` with:
+ - `version=6.0.0`
+ - an artifact-owned candidate stable tag matching that rehearsal
+ - an artifact-owned promotion channel matching that rehearsal
+ - an artifact-owned promoted prerelease tag matching that rehearsal
+ - an artifact-owned rollback target for the stable candidate
+ - the exact planned GA and v5 end-of-support dates for the publish notice
+ - an explicit `ga_date` chosen for that rehearsal
+ - an explicit stable `rollback_version`
+ - the exact derived rollback command that artifact will publish
+ - an explicit `v5_eos_date` chosen for that rehearsal
+5. Capture the `rc-to-ga-rehearsal-summary` artifact and run URL.
+6. Materialize the final rehearsal record from that artifact without
+ hand-repairing any missing candidate tag, promoted prerelease tag, rollback
+ target, rollback command, or GA/EOS metadata.
+7. Change the gate from `blocked` only if the rehearsal passes and the rollout
+ inputs remain explicit.
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index 2bfd86c7c0..60b7b07aa5 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -611,6 +611,11 @@
"path": "docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-03-13.md",
"kind": "file"
},
+ {
+ "repo": "pulse",
+ "path": "docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-03-26.md",
+ "kind": "file"
+ },
{
"repo": "pulse",
"path": "docs/release-control/v6/internal/RELEASE_PROMOTION_POLICY.md",
@@ -2928,6 +2933,12 @@
"path": "docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-03-13.md",
"kind": "file",
"evidence_tier": "local-rehearsal"
+ },
+ {
+ "repo": "pulse",
+ "path": "docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-03-26.md",
+ "kind": "file",
+ "evidence_tier": "local-rehearsal"
}
]
},
diff --git a/scripts/check-workflow-dispatch-inputs.py b/scripts/check-workflow-dispatch-inputs.py
old mode 100755
new mode 100644
index 61eb4b1800..a1f60a4680
--- a/scripts/check-workflow-dispatch-inputs.py
+++ b/scripts/check-workflow-dispatch-inputs.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Validate that the default-branch copy of a workflow accepts required inputs."""
+"""Validate that a selected remote branch copy of a workflow accepts required inputs."""
from __future__ import annotations
@@ -31,7 +31,7 @@ def main() -> int:
if missing:
missing_display = ", ".join(missing)
raise SystemExit(
- f"default-branch workflow contract drift: origin/{branch}:{args.workflow_path} "
+ f"workflow contract drift: origin/{branch}:{args.workflow_path} "
f"is missing workflow_dispatch inputs: {missing_display}"
)
print(
diff --git a/scripts/release_control/record_rc_to_ga_blocked.py b/scripts/release_control/record_rc_to_ga_blocked.py
index 54fa206129..fedb4fbc02 100644
--- a/scripts/release_control/record_rc_to_ga_blocked.py
+++ b/scripts/release_control/record_rc_to_ga_blocked.py
@@ -121,20 +121,18 @@ def stable_candidate_version(version: str) -> str:
return version
-def origin_default_branch() -> str:
- symbolic_ref = _run_git_optional("symbolic-ref", "refs/remotes/origin/HEAD")
- if not symbolic_ref:
- return "main"
- prefix = "refs/remotes/origin/"
- if symbolic_ref.startswith(prefix):
- return symbolic_ref[len(prefix):]
- return "main"
-
-
def branch_release_dry_run_workflow(branch: str) -> str | None:
return _run_git_optional("show", f"origin/{branch}:{RELEASE_DRY_RUN_WORKFLOW}")
+def local_branch_head(branch: str) -> str | None:
+ return _run_git_optional("rev-parse", branch)
+
+
+def remote_branch_head(branch: str) -> str | None:
+ return _run_git_optional("rev-parse", f"origin/{branch}")
+
+
def workflow_supports_stable_rehearsal_inputs(content: str | None) -> bool:
if not content:
return False
@@ -178,10 +176,16 @@ def build_blocked_record(*, record_date: str) -> str:
rc_commit = _run_git("rev-parse", rc_tag) if rc_tag else ""
ga_date, v5_eos_date = parse_release_dates()
target_is_ga_promotion = active_target_id == "v6-ga-promotion"
- default_branch = origin_default_branch()
- default_branch_release_dry_run = branch_release_dry_run_workflow(default_branch)
- default_branch_supports_stable_inputs = workflow_supports_stable_rehearsal_inputs(
- default_branch_release_dry_run
+ remote_stable_branch_release_dry_run = branch_release_dry_run_workflow(stable_branch)
+ remote_stable_branch_supports_stable_inputs = workflow_supports_stable_rehearsal_inputs(
+ remote_stable_branch_release_dry_run
+ )
+ local_stable_head = local_branch_head(stable_branch)
+ remote_stable_head = remote_branch_head(stable_branch)
+ remote_stable_matches_local = (
+ local_stable_head is not None
+ and remote_stable_head is not None
+ and local_stable_head == remote_stable_head
)
if version_is_prerelease:
@@ -304,13 +308,29 @@ def build_blocked_record(*, record_date: str) -> str:
]
)
- if not default_branch_supports_stable_inputs:
+ if remote_stable_head is None:
+ blocking_fact_lines.append(
+ [
+ f"The governed stable rehearsal branch `origin/{stable_branch}` does not exist yet,",
+ "so GitHub cannot exercise the intended remote promotion path for the stable candidate.",
+ ]
+ )
+ elif not remote_stable_matches_local:
+ blocking_fact_lines.append(
+ [
+ f"The selected remote ref `origin/{stable_branch}` is still behind the current",
+ "local governed branch state, so `Release Dry Run` would exercise stale remote",
+ "control-plane metadata instead of the intended candidate.",
+ ]
+ )
+
+ if not remote_stable_branch_supports_stable_inputs:
blocking_fact_lines.append(
[
- f"GitHub still validates `Release Dry Run` workflow dispatch inputs against the",
- f"default branch `{default_branch}`, whose current workflow contract does not",
- "accept the governed stable rehearsal metadata envelope (`promoted_from_tag`,",
- "`rollback_version`, `ga_date`, and `v5_eos_date`).",
+ f"The pushed governed release-branch copy of `{RELEASE_DRY_RUN_WORKFLOW}` on",
+ f"`origin/{stable_branch}` does not yet accept the governed stable rehearsal",
+ "metadata envelope (`promoted_from_tag`, `rollback_version`, `ga_date`, and",
+ "`v5_eos_date`) through `workflow_dispatch`.",
]
)
@@ -363,12 +383,12 @@ def build_blocked_record(*, record_date: str) -> str:
)
required_blocks: list[list[str] | tuple[str, ...] | str] = list(required_step_lines)
- if not default_branch_supports_stable_inputs:
+ if not remote_stable_branch_supports_stable_inputs:
required_blocks.append(
[
f"Land the canonical `{RELEASE_DRY_RUN_WORKFLOW}` workflow-dispatch input",
- f"contract on the default branch `{default_branch}` so GitHub accepts the",
- f"governed stable rehearsal metadata envelope when dispatching from `{stable_branch}`.",
+ f"contract on the pushed governed release branch `origin/{stable_branch}` so",
+ "the selected remote ref accepts the stable rehearsal metadata envelope.",
]
)
if not rc_tag:
diff --git a/scripts/release_control/release_promotion_policy_support.py b/scripts/release_control/release_promotion_policy_support.py
index f9db153b88..e48e0a2e47 100644
--- a/scripts/release_control/release_promotion_policy_support.py
+++ b/scripts/release_control/release_promotion_policy_support.py
@@ -80,7 +80,7 @@ def branch_workflow_text(branch: str, workflow_path: str) -> str:
workflow = _run_git_optional("show", f"origin/{branch}:{workflow_path}")
if not workflow:
raise ValueError(
- f"default branch '{branch}' does not contain workflow '{workflow_path}'"
+ f"remote branch '{branch}' does not contain workflow '{workflow_path}'"
)
return workflow
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index 937c45b713..fec97ae78a 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -147,8 +147,14 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("Stable v6.0.0 requires ga_date in YYYY-MM-DD form", resolver)
self.assertIn("release_notes must include the exact ga_date", resolver)
self.assertIn("check-workflow-dispatch-inputs.py", dry_run_trigger)
+ self.assertIn('--branch "$CURRENT_BRANCH"', dry_run_trigger)
self.assertIn("release-dry-run.yml", dry_run_trigger)
self.assertIn("gh workflow run release-dry-run.yml", dry_run_trigger)
+ self.assertIn("Release Dry Run executes the selected remote ref", dry_run_trigger)
+ self.assertNotIn("Continue anyway?", dry_run_trigger)
+ self.assertIn('if [ "${REHEARSAL_CONCLUSION}" != "success" ]; then', workflow)
+ self.assertIn("did not produce a valid promotion metadata envelope", workflow)
+ self.assertIn("Do not use this artifact to clear", workflow)
def test_release_workflow_enforces_rc_lineage_soak_and_v5_notice(self) -> None:
content = read(".github/workflows/create-release.yml")
@@ -180,18 +186,17 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("Stable v6.0.0 requires v5_eos_date in YYYY-MM-DD form", resolver)
self.assertIn("release_notes must include the Pulse v5 maintenance-only support notice", resolver)
self.assertIn("check-workflow-dispatch-inputs.py", helper)
- self.assertIn(
- "default branch copy of `.github/workflows/release-dry-run.yml`",
- policy,
- )
- self.assertIn(
- "GitHub validates dispatch inputs against the default branch",
- normalize_ws(policy),
- )
+ self.assertIn('--branch "$CURRENT_BRANCH"', helper)
+ self.assertIn('--ref "$CURRENT_BRANCH"', helper)
+ self.assertIn("Release automation executes the selected remote ref", helper)
+ self.assertNotIn("Continue anyway?", helper)
+ self.assertIn("pushed governed release-branch copy of `.github/workflows/release-dry-run.yml`", policy)
+ self.assertIn("GitHub executes the selected remote ref", normalize_ws(policy))
checklist = read("docs/release-control/v6/internal/PRE_RELEASE_CHECKLIST.md")
- self.assertIn("default-branch copy of `.github/workflows/release-dry-run.yml`", checklist)
+ self.assertIn("pushed governed release-branch copy of `.github/workflows/release-dry-run.yml`", checklist)
self.assertIn("workflow_dispatch", checklist)
- self.assertIn("dispatching `pulse/v6-release`", checklist)
+ self.assertIn("selected remote ref", normalize_ws(checklist))
+ self.assertIn("local rehearsal branch exactly matches `origin`", checklist)
self.assertIn("derive the governed release branch from release-control metadata", checklist)
template = read("docs/release-control/v6/internal/RC_TO_GA_REHEARSAL_TEMPLATE.md")
self.assertIn("governed release line from `control_plane.json`", template)
@@ -217,9 +222,9 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn(promotion_metadata_envelope(), normalize_ws(runbook))
def test_blocked_record_tracks_current_target_and_candidate_version(self) -> None:
- blocked = read("docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-03-13.md")
- self.assertIn("exact derived rollback command", blocked)
- self.assertIn("rollback target and exact derived", blocked)
+ blocked = read("docs/release-control/v6/internal/records/rc-to-ga-promotion-readiness-blocked-2026-03-26.md")
+ self.assertIn("origin/pulse/v6-release", blocked)
+ self.assertIn("selected remote ref", blocked)
self.assertIn("artifact-owned candidate stable tag", blocked)
self.assertIn("artifact-owned promotion channel", blocked)
self.assertIn("artifact-owned promoted prerelease tag", blocked)
@@ -228,7 +233,7 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("hand-repairing any missing candidate tag, promoted prerelease tag, rollback", blocked)
matrix = read("docs/release-control/v6/internal/HIGH_RISK_RELEASE_VERIFICATION_MATRIX.md")
self.assertIn(promotion_metadata_envelope(), normalize_ws(matrix))
- expected = blocked_record.build_blocked_record(record_date="2026-03-13")
+ expected = blocked_record.build_blocked_record(record_date="2026-03-26")
self.assertEqual(blocked, expected)
diff --git a/scripts/trigger-release-dry-run.sh b/scripts/trigger-release-dry-run.sh
old mode 100755
new mode 100644
index 47e4a93f27..f58d978b79
--- a/scripts/trigger-release-dry-run.sh
+++ b/scripts/trigger-release-dry-run.sh
@@ -59,21 +59,22 @@ git fetch origin --quiet
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse @{u})
if [ "$LOCAL" != "$REMOTE" ]; then
- echo "⚠️ Warning: Local and remote branches have diverged"
- git status -sb
+ echo "❌ Local branch is not fully pushed to origin"
echo ""
- read -p "Continue anyway? [y/N] " -n 1 -r
+ echo " Local ref: ${LOCAL}"
+ echo " Remote ref: ${REMOTE}"
echo ""
- if [[ ! $REPLY =~ ^[Yy]$ ]]; then
- echo "Aborted"
- exit 1
- fi
+ echo "Release Dry Run executes the selected remote ref, not local-only governance state."
+ echo "Push ${CURRENT_BRANCH} to origin before dispatching the rehearsal."
+ git status -sb
+ exit 1
else
echo "✓ Up to date with remote"
fi
python3 scripts/check-workflow-dispatch-inputs.py \
--workflow-path .github/workflows/release-dry-run.yml \
+ --branch "$CURRENT_BRANCH" \
--require version \
--require promoted_from_tag \
--require rollback_version \
@@ -82,7 +83,7 @@ python3 scripts/check-workflow-dispatch-inputs.py \
--require hotfix_exception \
--require hotfix_reason \
--require note
-echo "✓ Default-branch dry-run workflow contract matches governed inputs"
+echo "✓ Remote release-branch dry-run workflow contract matches governed inputs"
ROLLBACK_VERSION=""
PROMOTED_FROM_TAG=""
diff --git a/scripts/trigger-release.sh b/scripts/trigger-release.sh
old mode 100755
new mode 100644
index bced317404..05c1a14ab1
--- a/scripts/trigger-release.sh
+++ b/scripts/trigger-release.sh
@@ -70,21 +70,22 @@ LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse @{u})
if [ "$LOCAL" != "$REMOTE" ]; then
- echo "⚠️ Warning: Local and remote branches have diverged"
- git status -sb
+ echo "❌ Local branch is not fully pushed to origin"
echo ""
- read -p "Continue anyway? [y/N] " -n 1 -r
+ echo " Local ref: ${LOCAL}"
+ echo " Remote ref: ${REMOTE}"
echo ""
- if [[ ! $REPLY =~ ^[Yy]$ ]]; then
- echo "Aborted"
- exit 1
- fi
+ echo "Release automation executes the selected remote ref, not local-only governance state."
+ echo "Push ${CURRENT_BRANCH} to origin before triggering the publish workflow."
+ git status -sb
+ exit 1
else
echo "✓ Up to date with remote"
fi
python3 scripts/check-workflow-dispatch-inputs.py \
--workflow-path .github/workflows/create-release.yml \
+ --branch "$CURRENT_BRANCH" \
--require version \
--require release_notes \
--require promoted_from_tag \
@@ -94,7 +95,7 @@ python3 scripts/check-workflow-dispatch-inputs.py \
--require hotfix_exception \
--require hotfix_reason \
--require draft_only
-echo "✓ Default-branch release workflow contract matches governed inputs"
+echo "✓ Remote release-branch publish workflow contract matches governed inputs"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@@ -229,6 +230,7 @@ echo ""
echo "Triggering release workflow..."
if [ -n "$NOTES_FILE" ]; then
gh workflow run create-release.yml \
+ --ref "$CURRENT_BRANCH" \
-f version="${VERSION}" \
-f release_notes="$(cat "$NOTES_FILE")" \
-f rollback_version="${ROLLBACK_VERSION}" \