Skip to content

docs(release): document finalize-restart point of no return and tag tombstones - #1320

Merged
c-vigo merged 1 commit into
devfrom
feature/1318-unfreeze-runbook
Jul 30, 2026
Merged

c-vigo merged 1 commit into
devfrom
feature/1318-unfreeze-runbook

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

Lesson from the 1.5.0 ghost: org-enforced release immutability tombstones the tag name of any published-then-deleted release. devkit-smoke-test's 1.5.0 became permanently unusable after a finalize restart deleted its published release, forcing the fully validated train to re-release as 1.5.1. This PR captures that lesson in docs/RELEASE_CYCLE.md.

Type of Change

  • docs -- Documentation only

Changes Made

  • New policy bullet in Immutable releases, tag rulesets, and forward-fix policy: deleting a published release permanently tombstones its tag name (GH013); drafts never tombstone.
  • New recovery-procedures subsection Restarting a Finalized Release — the Point of No Return: finalize restarts are cheap only while every release object in the pipeline (devkit and devkit-smoke-test) is still a draft; once smoke-test publishes its final, the version is committed — restarting means burning it (re-cut as next patch). Includes a pre-restart gh release view --json isDraft check for both repos.
  • Changelog entry under ## Unreleased → Changed (mirrored to assets/workspace/.devcontainer/CHANGELOG.md by sync-manifest).

Changelog Entry

Changed

  • Release runbook: restart point of no return (#1318)
    • docs/RELEASE_CYCLE.md now documents that deleting a published GitHub Release under org-enforced immutability permanently tombstones its tag name (GH013), and adds a recovery-procedures subsection: finalize restarts are free only while every release object in the pipeline (devkit and devkit-smoke-test) is still a draft; once smoke-test publishes its final, the version is committed and a restart means burning it (re-cut as the next patch). Lesson from the 1.5.0 ghost.

Testing

  • just precommit green on all files (pymarkdown, typos, sync-manifest included)
  • Docs-only change; no runtime surface. Anchor links verified against GitHub slug rules.

Checklist

  • I have performed a self-review of my code
  • I have updated the documentation accordingly (docs/RELEASE_CYCLE.md is hand-maintained, not template-generated)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors

Additional Notes

Companion to #1319 (promote-gate tombstone detection), which will land separately and link to the runbook section added here.

Closes #1318

Refs: #1318

https://claude.ai/code/session_01MiPJmV8hXX6RPiggZAMZwg

@c-vigo
c-vigo merged commit 72ba52b into dev Jul 30, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1318-unfreeze-runbook branch July 30, 2026 22:37
c-vigo added a commit that referenced this pull request Jul 30, 2026
… the real cause (#1321)

## Description

Lesson from the 1.5.0 ghost (#1301): under org-enforced release
immutability, deleting a *published* release permanently tombstones its
tag name. The workflows reported this state misleadingly — the
downstream publish died with a generic "Failed to push tag" / raw `gh`
error, and devkit's promote gate advised "wait for the smoke-test
workflow to publish its final release, then retry", which is futile when
the tag can never be re-published. This PR makes both surfaces name the
real cause: **version burned — re-cut required**.

> **Stacked on #1320** (branched from `feature/1318-unfreeze-runbook` to
avoid a CHANGELOG conflict; merge #1320 first, after which this PR shows
only its own diff). The error messages point at the runbook section
#1320 adds.

## Type of Change

- [x] `feat` -- New feature

## Changes Made

- `assets/workspace/.github/workflows/release-publish.yml` (template,
ships to consumers incl. `devkit-smoke-test`):
- **Create and push tag**: the push output is captured; a `GH013` /
"creations restricted" rejection is diagnosed as a tombstoned tag name
with a burned-version message and runbook URL, instead of falling
through to the generic push error.
- **Create GitHub Release**: the two `gh release create` branches
(identical except `--prerelease`) are folded into one args-array
invocation whose failure output gets the same `GH013` diagnosis.
- `.github/workflows/promote-release.yml` (devkit): the cross-repo
gate's no-downstream-release error now names the tombstone as a possible
cause (with the `GH013` signature to look for in the smoke-test release
run) and points at the runbook. The gate itself cannot distinguish a
tombstone from a not-yet-published draft — both are a 404 on
`/releases/tags/:tag` — which is why the authoritative detection lives
at the creation sites.
- New workflow-shape test `tests/test_release_tombstone_detection.py`
(RED committed first per TDD) pinning the `GH013` detection in both
template steps and the gate message.

## Changelog Entry

### Added

- **Tombstoned tag names fail with the real cause**
([#1319](#1319))
- The downstream `release-publish.yml` template now recognizes the
`GH013` "creations restricted" signature on tag push and release
creation — the mark of a tag name permanently retired because its
published release was deleted under org-enforced immutability — and
fails with a "version burned — re-cut required" diagnosis instead of a
generic push/create error.
- Devkit's `promote-release.yml` cross-repo gate no longer only advises
"wait and retry" when no downstream release exists: it names the
tombstone as a possible cause and points at the point-of-no-return
runbook.

## Testing

- [x] `tests/test_release_tombstone_detection.py`: 4 failing tests
committed first (RED), all green after implementation
- [x] Workflow-shape + scaffold suites green: `test_release_tag_prefix`,
`test_promote_mergeability`, `test_scaffold_lint` (caught an
unshipped-path reference — doc pointer rewritten to absolute URL),
`test_scaffold_drift`, `test_workflow_model`, `test_floating_tags`,
`test_release_core_*`, `test_transforms` — 135 passed
- [x] Rendered-workflow actionlint bats (#995): all 5 modes green
(devcontainer/direnv/bare/both/smoke-test), incl. bundled shellcheck
over the new run-block bash
- [x] `just precommit` green on all files

### Manual Testing Details

The live `GH013` path is only provable on a real tombstone; the tests
pin the script shape. The template change reaches `devkit-smoke-test` at
the next devkit release + re-scaffold, so it ships dormant until then.

## Checklist

- [x] I have performed a self-review of my code
- [x] I have updated the documentation accordingly (runbook lands in
#1320)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes

## Additional Notes

Devkit's own `release.yml` tag push (`release.yml:982`) has the same
theoretical exposure, but devkit's 1.5.0 draft was never published so it
was not tombstoned in the incident; left out per issue scope — can file
a follow-up if wanted.

Closes #1319

Refs: #1319

https://claude.ai/code/session_01MiPJmV8hXX6RPiggZAMZwg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant