Repository navigation
docs(release): document finalize-restart point of no return and tag tombstones - #1320
Merged
Merged
Conversation
11 tasks done
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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's1.5.0became 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 indocs/RELEASE_CYCLE.md.Type of Change
docs-- Documentation onlyChanges Made
GH013); drafts never tombstone.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-restartgh release view --json isDraftcheck for both repos.## Unreleased→ Changed (mirrored toassets/workspace/.devcontainer/CHANGELOG.mdby sync-manifest).Changelog Entry
Changed
docs/RELEASE_CYCLE.mdnow 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 anddevkit-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 precommitgreen on all files (pymarkdown, typos, sync-manifest included)Checklist
docs/RELEASE_CYCLE.mdis hand-maintained, not template-generated)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)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