Skip to content

feat(release): single human approval at promote; unattended smoke leg - #1510

Merged
c-vigo merged 7 commits into
devfrom
feature/1504-single-approval-at-promote
Aug 14, 2026
Merged

c-vigo merged 7 commits into
devfrom
feature/1504-single-approval-at-promote

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

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

#1506 — smoke approval gone

  • The listener's Gate final release on human approval of release PR poll 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.
  • The consumer promote-release.yml gates (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.
  • Sequencing invariant (ruleset ⟷ listener must move together, on smoke main) recorded in docs/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

  • New tests/test_release_validate_gate.py (both copies): no review-state assertion, draft + CI gates retained
  • tests/test_promote_release.py: scaffold gates carry the rules query + skip log; devkit gates pinned unconditional
  • tests/bats/just.bats: abandon recipe/workflow shape pins; smoke-gate test inverted (gate + poll + self-approval all absent)
  • Full pytest 965 passed (2 failures are local-env: stale local image checksum, container gh auth); full bats green; prek run --all-files green
  • Live proof is the 1.10.0 train: exactly one approval, zero smoke interaction

Post-merge (before the next train)

  1. Hotfix devkit-smoke-test main 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.
  2. File the consumer abandon-release follow-up issue.

Refs: #1504, #1506

c-vigo added 7 commits August 14, 2026 10:49
…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
c-vigo merged commit 1021312 into dev Aug 14, 2026
12 checks passed
@c-vigo
c-vigo deleted the feature/1504-single-approval-at-promote branch August 14, 2026 11:33
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)
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