An open source design system that's fully customizable and agent ready
TypeScript
docs: allow release cuts from checked main ancestors (#7121)
Cindy Zhang408ad59b0fed
diff --git a/.github/scripts/visual-gate/README.md b/.github/scripts/visual-gate/README.mdindex fb25dbc98a..33081b9891 100644--- a/.github/scripts/visual-gate/README.md+++ b/.github/scripts/visual-gate/README.md@@ -10,8 +10,9 @@ post-CI, or post-merge workflow.Dispatch **CI** from `main` with `operation=release-check`. The event SHA isimmutable for the run; the request and final `release-check` join reject a-non-main ref or a SHA that is no longer current main. After main advances, dispatch-again rather than reusing an earlier green run.+non-main ref or a SHA that is not an ancestor of current main. Later fast-forward+commits do not invalidate an earlier green run; a rewrite or divergence that+removes the checked SHA requires a new dispatch.The existing Storybook build feeds the same **Stable visual regression**(`pr-visual`), `pr-a11y`, and `pr-rtl` owners. Release scope is the closed full@@ -35,10 +36,10 @@ The full axe roster, whole-repository accessibility spec-test contracts and theipixel/evidence uploads, and Probe reach sweep run only during `release-check`.Release callers must bind the CI run/attempt and all three job outcomes to its-exact main SHA, and recheck main immediately before release mutation. The public-[Release Process](https://github.com/facebook/astryx/wiki/Release-Process) needs a-separate follow-up to replace constituent-PR-only gating with this dispatch; this-CI capability does not update release automation.+exact main SHA, and confirm that SHA remains an ancestor of current main before+release mutation. The public+[Release Process](https://github.com/facebook/astryx/wiki/Release-Process) uses+the same checked-SHA boundary; later fast-forward commits are next-release input.## Coverage and resultsdiff --git a/docs/specs/AST-030/spec.md b/docs/specs/AST-030/spec.mdindex 730cc1a578..be28bfab4f 100644--- a/docs/specs/AST-030/spec.md+++ b/docs/specs/AST-030/spec.md@@ -7,7 +7,7 @@ authority: currentarchive_reason: nullsuperseded_by: nullapproved_by: cixzhang-approved_at: 2026-09-29+approved_at: 2026-10-07phase: acceptedowners: [cixzhang]affects_architecture: []@@ -175,8 +175,13 @@ they are separately named.sweeps, whole-repository spec-test contracts, their evidence uploads, and Probereach MUST run only for `release-check` in this workflow. Missing,failed, cancelled, or skipped required work MUST block the release-check join.- The request and join MUST verify that the checked SHA is still current `main`;- release callers MUST recheck it before mutation and dispatch again after drift.+ The request and join MUST verify that the checked SHA is the dispatch event SHA+ and remains an ancestor of current remote `main` at the start and completion of+ the run. Release callers MUST fetch and recheck that same ancestry immediately+ before creating the release branch. Later fast-forward movement of `main` does+ not invalidate that receipt: the release MUST cut from the exact checked SHA, and+ later commits remain next-release input. A rewrite or divergence that removes+ the checked SHA from current `main` history invalidates the receipt.This replaces constituent-PR-only release gating, not the canonical checks'existing finding policies. Release checks MUST NOT run on every push, capturebaseline candidates, publish baselines, or use a separate daily workflow or@@ -293,17 +298,18 @@ PR visual owners; counting internal jobs or required status projections aslanes; and implicit expansion under an undefined “additional specializedsurface” exception.-### DEC-5 — Release checks reuse the canonical owners on exact main+### DEC-5 — Release checks reuse the canonical owners on an exact main commit**Reference:** `spec:AST-030/DEC-5`-**Decider:** `cixzhang`, `2026-09-23`+**Decider:** `cixzhang`, `2026-09-23`; clarified `2026-10-07`-Run release evidence against exact current `main`, not only constituent PR heads.-Use an explicit release-time dispatch in `ci.yml` so full visual, accessibility,-and RTL checks do not run on every main push. Reuse existing test/build owners,-keep their finding policies, and fail closed on incomplete scope, missing work,-or main drift. Baseline capture and the reviewed pull request that versions an-accepted candidate remain separate operations.+Run release evidence against an exact commit in current `main` history, not only+constituent PR heads. Use an explicit release-time dispatch in `ci.yml` so full+visual, accessibility, and RTL checks do not run on every main push. Reuse+existing test/build owners, keep their finding policies, and fail closed on+incomplete scope, missing work, or when the checked commit is no longer in+current `main` history. Baseline capture and the reviewed pull request that+versions an accepted candidate remain separate operations.PR accessibility remains a scoped, fast check: audit only explicitly resolvedchanged component owners and retain the fast modal-close, theme-var, and story-play@@ -317,7 +323,8 @@ uploads, and Probe reach sweep run only on `release-check` in this workflow.The release path retains the complete suite and cannot substitute a scoped result.Rejected: a separate workflow, per-push full audits, and treating a maintenance-capture, skipped check, old main SHA, or retroactive status as release evidence.+capture, skipped check, a checked SHA no longer in current `main` history, or+retroactive status as release evidence.## Open questions