Skip to content

feat(workflow): detect smoke-tag immutability tombstone and fail with the real cause - #1321

Merged
c-vigo merged 2 commits into
devfrom
feature/1319-tombstone-detection
Jul 30, 2026
Merged

c-vigo merged 2 commits into
devfrom
feature/1319-tombstone-detection

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

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

  • 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)
    • 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

  • tests/test_release_tombstone_detection.py: 4 failing tests committed first (RED), all green after implementation
  • 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
  • Rendered-workflow actionlint bats (Adopt actionlint for authored and per-mode rendered workflow templates #995): all 5 modes green (devcontainer/direnv/bare/both/smoke-test), incl. bundled shellcheck over the new run-block bash
  • 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

  • I have performed a self-review of my code
  • I have updated the documentation accordingly (runbook lands in docs(release): document finalize-restart point of no return and tag tombstones #1320)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • 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

@c-vigo
c-vigo enabled auto-merge July 30, 2026 22:49
@c-vigo
c-vigo merged commit 39c4c3b into dev Jul 30, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1319-tombstone-detection branch July 30, 2026 22:50
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