Repository navigation
feat(release): single human approval at promote; unattended smoke leg - #1510
Merged
Merged
Conversation
…re finalize The finalize-side validate gate required an APPROVED release PR that the finalize job's own pushes then dismissed, forcing a second approval before promote (#1474). The org's revisit condition for that decision is met, so the reviewDecision assertion (and its #438 fallback) is dropped from the final kind in both devkit's release.yml and the consumer release-core.yml. The draft and CI gates stay; the promote-side validate/merge gates (#1487) are unchanged and become the cycle's single human approval, landing on the release content exactly as it ships. Refs: #1504
With the single approval collected at promote, rejection happens after finalize has burned artifacts. The new workflow_dispatch workflow reverses a finalized-but-unpublished release as the Release App (tag-ruleset bypass, same machinery as the RC prune): draft Release deleted by id, tag deleted only when no Release remains attached, release PR closed with an audit comment, release branch dropped, idempotent and re-runnable, with a fail-closed verification pass. A published release is hard-refused — its tag name would tombstone permanently. The recipe only dispatches; a manifest RemoveBlock keeps it devkit-only until the consumer variant ships the workflow it dispatches. Refs: #1504
…otection-aware The listener's approval poll was a #1391 workaround, not a control: the smoke release PR is entirely bot-authored, and with the Main protection at zero required reviews (org-config#167) GitHub never computes the polled review decision, so the gate could only time out. The step is removed outright; green smoke CI and devkit's published-smoke-release validation at promote remain the operative controls. The consumer promote-release.yml approval gates (validate + merge) now consult the base branch's rules first and skip the approval assertion — explicitly, logged — when zero approving reviews are required, instead of falling into the #438 fallback and failing a PR the platform itself would merge. Review-requiring repos are unchanged; devkit's own promote gates are untouched. The rules endpoint sees rulesets only, so classic-protection repos degrade to the platform's merge-time refusal — fail-late, never fail-open. Refs: #1506
The runbooks now describe one human approval per cycle — collected after finalize and immediately before promote, where it covers the release content exactly as it ships — with abandon-release as the draft-only rejection path, and a fully unattended smoke leg. The cross-repo gate contract records the ruleset/listener sequencing invariant that replaced the smoke approval dependency (either half alone breaks the final leg). Generated docs (README, CONTRIBUTING, scaffold mirrors) regenerated. Refs: #1504
c-vigo
added a commit
to vig-os/devkit-smoke-test
that referenced
this pull request
Aug 14, 2026
The Main protection now requires zero approving reviews (vig-os/org-config#167), and GitHub computes the polled review decision only when the base branch requires reviews — so the gate could no longer resolve and every final dispatch would time out un-unblockably. The step is removed to match the devkit template (vig-os/devkit#1510); green smoke CI and devkit's published-smoke-release validation at promote remain the operative controls. Direct-to-main hotfix because the listener runs from the default branch (precedents #345, #353); the next scaffold deploy converges byte-identically. Refs: [#1506](vig-os/devkit#1506)
c-vigo
added a commit
to vig-os/devkit-smoke-test
that referenced
this pull request
Aug 14, 2026
…#375) ## Summary Removes the `Gate final release on human approval of release PR` step from the dispatch listener, matching the devkit template merged in [vig-os/devkit#1510](vig-os/devkit#1510) — the copied file is **byte-identical** to `assets/smoke-test/.github/workflows/repository-dispatch.yml` at devkit `dev`, so the next scaffold deploy converges rather than reverts. **Why this must land on `main` now:** the Main protection already requires zero approving reviews ([org-config#167](vig-os/org-config#167)), and GitHub computes the polled review decision only when the base branch requires reviews — so the live gate can no longer resolve and **every final dispatch would time out un-unblockably** (a manual approval does not surface either). The listener runs from the default branch, hence the direct-to-main hotfix (precedents #345, #353). The operative controls are unchanged: green smoke CI, and devkit's published-smoke-release validation at promote. Refs: [vig-os/devkit#1506](vig-os/devkit#1506)
This was referenced Aug 14, 2026
Closed
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.
Summary
Collapses the release train's three human interactions into one: the approval of the devkit release PR, collected after finalize and immediately before promote — where it lands on the release content exactly as it ships, finalize commits included.
#1504 — approval moves to promote
release.ymlvalidate (and the consumerrelease-core.yml) no longer asserts review state for finals; the draft and CI gates stay, candidates unchanged (feat(ci): gate RC dispatch on CI only — move approval + ready-for-review to the final release #902). The promote-side gates ([BUG] Upstream promote-release checks the PR approval only in merge — after :latest moved and the release was published #1487) are untouched and become the cycle's single approval. Revisits [DOCS] finalize dismisses the release-PR approval — document the re-approval step before promote #1474 under its own stated condition.just abandon-release X.Y.Z+abandon-release.yml: the first-class rejection path at promote time. As the Release App (same tag-ruleset-bypass machinery as the RC prune) it deletes the draft Release by id, the tag, the release PR, andrelease/X.Y.Z— idempotent, fail-closed, and hard-refusing a published release (tombstone protection). Devkit-only for now via a manifestRemoveBlock; consumer variant is a follow-up.#1506 — smoke approval gone
Gate final release on human approval of release PRpoll is removed: the smoke PR is bot-authored scaffold output, its Main protection now requires 0 reviews (org-config#167, already applied), and under count-0 the poll could only time out — un-unblockably, since GitHub never computes the polled field.promote-release.ymlgates (validate + merge) are protection-aware: zero required approving reviews on the base branch ⇒ explicit logged skip of the approval assertion (never the Smoke-test dispatch failed for 0.3.1-rc20 #438 fallback). This amends [FEATURE] Smoke-test gate: drop the human approval of the smoke release PR #1506's "compiled out" AC — rationale recorded on the issue: the smoke repo's promote workflow IS the shared scaffold and the drift gate re-renders it from the manifest, so a smoke-only render divergence would trip every smoke PR; the runtime skip is drift-safe and also fixes the whole solo-adoption (count-0) class. Devkit's own promote gates stay unconditional.main) recorded indocs/CROSS_REPO_RELEASE_GATE.md.Docs: RELEASE_CYCLE (mermaid, phases, runbook, troubleshooting, new abandon runbook), CROSS_REPO_RELEASE_GATE, DOWNSTREAM_RELEASE (+ scaffold mirror), MIGRATION, CLAUDE.md, justfile process header, CONTRIBUTING/README regenerated.
Test plan
tests/test_release_validate_gate.py(both copies): no review-state assertion, draft + CI gates retainedtests/test_promote_release.py: scaffold gates carry the rules query + skip log; devkit gates pinned unconditionaltests/bats/just.bats: abandon recipe/workflow shape pins; smoke-gate test inverted (gate + poll + self-approval all absent)prek run --all-filesgreenPost-merge (before the next train)
devkit-smoke-testmain directly with the listener gate removal (listener runs from default branch; precedent smoke-test#345/fix(ci): normalize smoke-test workspace ownership after installer #353). The next final leg is broken until this lands — org-config#167 is already live.abandon-releasefollow-up issue.Refs: #1504, #1506