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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 30 additions & 7 deletions .github/workflows/release-bugfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ name: Bugfix Release (carve-out)
#
# NOTE 2026-10-25: the workflow_dispatch trigger was REMOVED after a concurrent
# agent session abused manual dispatch to publish v0.1.208 outside the intended
# flow (see #4718). The ONLY ignition shape left is a HUMAN merging the
# carve-out PR below.
# flow (see #4718); the human PR merge became the only ignition shape.
# NOTE 2026-10-28 (owner decision; revives the 5de4103c/#3613 emergency valve
# whose step gates this file kept all along): workflow_dispatch returns AS THE
# EMERGENCY VALVE ONLY — and hardened against a repeat of #4718: fast mode
# engages solely when `fast` is checked AND `confirm_fast` is typed exactly
# "FAST PUBLISH CONFIRMED" (see FAST_ON below). Any default or programmatic
# dispatch silently keeps the slow safe path.
#
# Guarded so it can never:
# - move `latest` backwards (target must be strictly newer than npm latest);
Expand All @@ -41,13 +46,31 @@ on:
pull_request:
types: [closed]
branches: [master]
workflow_dispatch:
# Emergency valve only — see the 2026-10-28 header note. Slow-safe unless
# BOTH signals arrive together.
inputs:
fast:
description: "EMERGENCY fast publish: skip the full-CI dispatch/gate and the full npm test. Keeps every version guard + npm ci + typecheck + build. Owner-owned risk."
type: boolean
required: false
default: false
confirm_fast:
description: "TYPE EXACTLY: FAST PUBLISH CONFIRMED — anything else (blank included) keeps the normal slow path."
type: string
required: false
default: ""
concurrency:
group: bugfix-release
cancel-in-progress: false

jobs:
release:
runs-on: ubuntu-latest
env:
# Fast mode = BOTH explicit signals (typed-phrase guard vs accidental/
# automated dispatches, #4718). Non-dispatch events see FAST_ON=false.
FAST_ON: ${{ inputs.fast == true && inputs.confirm_fast == 'FAST PUBLISH CONFIRMED' }}
permissions:
contents: write
id-token: write
Expand Down Expand Up @@ -200,7 +223,7 @@ jobs:
# human-picked ref; with fast=true the human explicitly owns skipping
# this lane matrix — version guards and the build sanity below still
# run.
if: steps.resolve.outputs.proceed == 'true' && inputs.fast != true
if: steps.resolve.outputs.proceed == 'true' && env.FAST_ON != 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -212,7 +235,7 @@ jobs:

- name: Pre-flight gate (full suite)
# keep the claude-native live e2e subtests in this pre-publish gate (#1248)
if: steps.resolve.outputs.proceed == 'true' && inputs.fast != true
if: steps.resolve.outputs.proceed == 'true' && env.FAST_ON != 'true'
env:
ACP_TEST_CLAUDE_NATIVE: "1"
run: |
Expand All @@ -225,9 +248,9 @@ jobs:
# EMERGENCY fast mode: keep the cheap sanity (install/typecheck/build)
# so a broken tree still fails loudly, but skip the full npm test —
# the lane matrix above was skipped by explicit human choice.
if: steps.resolve.outputs.proceed == 'true' && inputs.fast == true
if: steps.resolve.outputs.proceed == 'true' && env.FAST_ON == 'true'
run: |
echo "::warning::FAST MODE — full CI lanes and the full npm test were SKIPPED by an explicit human choice (workflow_dispatch fast=true). Publish sanity = version guards + npm ci + typecheck + build only."
echo "::warning::FAST MODE by '${{ github.actor }}' (workflow_dispatch fast=true + typed confirmation) — full CI lanes and the full npm test SKIPPED. Publish sanity = version guards + npm ci + typecheck + build only."
npm ci
npm run typecheck
npm run build
Expand All @@ -237,7 +260,7 @@ jobs:
# own lane runs at the head sha) ran in parallel with the pre-flight;
# wait them out now. Any red lane or timeout ⇒ release fails, nothing
# is published.
if: steps.resolve.outputs.proceed == 'true' && inputs.fast != true
if: steps.resolve.outputs.proceed == 'true' && env.FAST_ON != 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI_GATE_TIMEOUT_MIN: "60"
Expand Down
7 changes: 6 additions & 1 deletion reference/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,12 @@ protected lane described above):**

**Emergency fallback:** a manual `workflow_dispatch` run against an explicitly chosen
ref (picked in the Actions UI) still works and runs every guard above — for when the
PR dance is slower than the fire.
PR dance is slower than the fire. It also carries the emergency FAST valve (#3613,
restored 2026-10-28 after the #4718 removal): ticking `fast` AND typing exactly
`FAST PUBLISH CONFIRMED` into `confirm_fast` skips the full-CI dispatch/gate and the
local full test while keeping every version guard + npm ci + typecheck + build;
any partial or default input silently keeps the normal slow path (the typed phrase
is the anti-misfire guard from #4718).

**Label publish: DECOMMISSIONED (2026-10-25).** The former `backport-ship`
label path (a single label made CI publish WITHOUT any merge decision) is
Expand Down
Loading