Repository navigation
spec(release): make codemod evidence tolerate promotion - #7444
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
## Exact decision needed Whether a change that makes a released component meet its accessibility target, and in doing so replaces documented interaction or accessibility behavior, is a breaking change. ## Existing authority searched - `spec:AST-017`: - FR3 puts documented interaction and accessibility behavior inside the compatibility promise. - FR5 says a proposal that intentionally replaces the documented contract is not a fix. - FR32–FR34 classify a correction with a released victim as `[breaking]`, held for a planned minor or shipped behind an opt-in in a patch. - Together these send every accessibility conformance fix that changes documented behavior to the next minor. - `spec:AST-020`: owns the accessibility targets (WCAG 2.2 A/AA in FR1; APG pattern adoption in FR15). It says nothing about release classification. - `spec:AST-009`: owns real-AT evidence. Not about classification. - Overlapping open work: #7444 and #7445 also edit AST-017, in unrelated sections (codemod evidence, successor plan). - Prompting change: #7515 replaces DropdownMenu's 0.7.0 Tab behavior to meet the APG Dialog pattern. ## Decision `spec:AST-017/DEC-20`, decided by @cixzhang on 2026-10-14: accessibility behavior fixes are not breaking. Her words that day: - 08:18 PT: "Accessibility behavior fixes are not breaking" - 08:20 PT: "Yeah go ahead and amend ast017" - 08:33 PT: "Yeah accessibility fixes are patches" - 08:34 PT: "Accessibility fixes should always be internal" and "I don't think it should ever change app layer code" - 08:34:58 PT: "Adding a new prop is not breaking either though" The rule: - **FR53 (new):** a change whose purpose is to make a released component meet its accessibility target is `[fix]` and patch-eligible, with no deprecation or coexistence path, even when it replaces documented roles, accessible names, states and properties, focus movement or keyboard behavior. The target is: - a WCAG 2.2 Level A or AA success criterion, - the required parts of an APG pattern the component adopts under AST-020 FR15, or - a current accessibility requirement in its record. - **No app-layer code change:** existing props, types, exports, tokens and documented usage keep working unchanged. - It may add optional public surface, such as a new optional prop. That is not breaking, and the addition is admitted under AST-017's existing rules for public additions. - It never removes, renames, or narrows existing surface. - A change that would make apps edit code is redesigned so the component absorbs it, or it is classified under FR1. - **Release note:** the Changeset names the old and new behavior and the accessibility target, so a documented behavior change gets a release-note line. - **How additive surface is admitted:** spec and API review, and its patch-or-minor handling, are left to the existing AST-017 rules. - **FR3, FR5, FR25, FR32, FR33** point to FR53. FR33 names the accessibility target as the authority for such a fix. - **Review routing:** the record's `review-applicability` block lists FR53 and DEC-20 under compatibility. - **Verification:** an FR53 row with all four cells. **IDs:** main ends at FR51 and DEC-18. Open AST-017 changes claim FR52 (#7444) and DEC-19 (#7444 and #7445 both). This change takes **FR53** and **DEC-20**; no open change claims either. The gap at FR52 is fine (AST-029 already has one). ## Rejected alternatives - Classifying accessibility corrections as breaking whenever a released caller observes the old behavior. That delays every conformance fix to a minor and keeps the harm in place meanwhile. ## Claim scope and non-goals - Governs release classification of accessibility conformance changes only. - Does not decide what any component's accessible behavior is. That stays with AST-020 and the component records. - Does not change visual-only classification (DEC-17), emergency correction (FR35), or the patch/minor gate for other breaking changes. ## Evidence and implementation relationship No implementation. #7515 is the first change classified under this rule. ## Writing rubric results - R1 narration: none. FR53 and DEC-20 state the rule in the present tense. The "replaces" wording describes the class of change the rule covers, not this PR's history. - R2 research in the record: none. - R3 evidence naming a change: none. The FR53 verification row names review and the component record's evidence. - R4 rejected alternatives over one line or outside a decision: one, one line, inside DEC-20. - R5 pull request or issue references remaining: none in the record. - R6 ruled open questions still listing options: none. Open questions stay "None." ## Scope - [x] This PR contains specification records only. - [x] It records observable behavior and preserves equivalent internal implementations. - [x] Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract. - [x] Verification states the evidence layer and failure signal without prescribing CI job/workflow topology. - [x] It records one intentional durable decision, not a rescue for a separable tagalong. - [x] The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision. - [x] Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them. - [x] Public text and artifacts contain no internal Meta context. ## Validation - `pnpm check:knowledge`: aligned - Prettier: applied - `git diff --check`: clean
…erance # Conflicts: # docs/specs/AST-017/spec.md
Main took DEC-20 (accessibility fixes, FR53) and #7444 keeps DEC-19, so the cut-time successor-plan decision becomes DEC-21 in its heading, reference, and review-applicability entry.
|
/approve-spec 91a2d70 |
PR Analysis ReportView Storybook for this PR · View Sandbox for this PR
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
This proposal adds a new normative requirement to AST-017 — FR52, with DEC-19 and an FR52 verification row — that the current spec on main does not state yet, so approval waits on a maintainer decision to accept or reject FR52 and DEC-19 as written. Separately, please restore the Authority relationships sentence to “FR47–FR51 admission, versioning, merge-back, and next-plan validation”: nothing under scripts/release/ implements FR52 yet, so the new wording describes an implementation that does not exist. Knowledge validation passes, and the change is otherwise confined to this one record.
[Automated review]
| implements FR47–FR52 admission, versioning, merge-back, next-plan validation, and | ||
| codemod-promotion evidence; none of these files may narrow or widen the rule it | ||
| implements. |
There was a problem hiding this comment.
Nothing under scripts/release/ implements FR52 at this head: its only codemod handling is FR50's release-output path list and merge-back rename check in active-release.mjs, promotion itself runs from scripts/promote-codemod-next.mjs, and the evidence FR52 governs (for example packages/cli/foundation/discovery/theming-targets.test.mjs) lives elsewhere. Until an implementation lands, this sentence should keep its current scope:
implements FR47–FR51 admission, versioning, merge-back, and next-plan validation;
none of these files may narrow or widen the rule it implements.
|
/approve-spec 3a39d9a |
There was a problem hiding this comment.
This proposal adds new normative requirements to AST-017 — FR52, DEC-19, and the FR52 verification row — that the current spec on main does not state yet, so approval still waits on a maintainer decision, separate from the author's own approval, to accept or reject them as written. The earlier Authority relationships finding is resolved now that the sentence is back to FR47–FR51, and knowledge validation passes. Once a maintainer approves FR52 and DEC-19, nothing else in this review blocks the change.
[Automated review]
There was a problem hiding this comment.
This spec-only change looks ready to merge: the record's owner has approved FR52 and DEC-19 as written on this head, and the new rule fits the current release-compatibility spec without contradicting it. Knowledge validation passes. As a follow-up, the theme-surface guard in theming-targets.test.mjs still hardcodes the v0.7.0 folder and silently prefers it, so it will need the identity-based lookup FR52 describes.
[Automated review]
## Exact decision needed The release cut already knows the deterministic patch successor and every version-coupled file, but AST-017 currently waits until after merge-back to prepare the next-plan pull request. The decision is whether the cut prepares that separate change immediately while withholding merge authority until the cut version is non-reusable. ## Existing authority searched - `spec:AST-017` FR46–FR51 and DEC-15 own main's declared plan, release-branch identity, merge-back preservation, and the separate successor plan. - `scripts/release/active-release.mjs` already validates the patch successor, an explicitly named minor successor, and the complete fixed-package/pin/lockfile/compatibility-asset set. - The merge-back validator already preserves a newer main declaration. - Canary publication independently skips equality and fails below-stable or split declarations; this proposal is not its safety boundary. AST-017 is the canonical owner. This PR changes no release code and grants no release or minor-cut authority. ## Decision A successful cut prepares one separate successor-plan pull request from current main. It changes every fixed-group package version, every generated exact internal pin, the lockfile, and version-stamped compatibility assets together. The default is the cut version's patch successor. A minor successor appears only when the release owner explicitly names that minor; pending `[breaking]` Changesets never choose it. The prepared change cannot merge until an immutable tag or stable package publication makes the cut version non-reusable. It may then land through normal gates before or after exact release merge-back, which preserves an already-landed newer declaration. A terminal cut with no immutable public identity closes the prepared change unmerged. A pre-existing newer owner plan closes or refreshes the prepared change rather than being lowered or duplicated. ## Rejected alternatives - **Merge at cut time:** an unpublished terminal cut could leave main declaring a skipped successor. - **Prepare only after merge-back:** delays deterministic work whose version and complete file set are already known at the cut. - **Fold the plan into merge-back:** mixes future owner intent with exact shipped-byte reconciliation. - **Infer a minor from pending Changesets:** lets the work being admitted authorize its own release tier. ## Claim scope and non-goals This is a specification-only proposal. It does not implement automation, merge a successor plan, change canary publication, alter merge-back bytes, authorize a minor, change the daily release schedule, or modify a failed/active release lifecycle. ## Implementation relationship A later implementation would prepare the PR at the cut, hold merge until public identity is non-reusable, close it on a clean unpublished abort, and reuse the existing next-plan and merge-back validators. The implementation remains separate and requires its own normal review. ## Writing rubric results R1 narration: none in the record; the amendment states lifecycle behavior in present tense. R2 research: none in the record; current implementation facts stay in this pull-request description. R3 evidence: FR51 verification names cut, abort, immutable-identity, and merge-order states rather than a pull request or workflow. R4 rejected alternatives: DEC-21 keeps one bounded `Rejected:` paragraph inside the decision. R5 change references: none added to the record. R6 open questions: none; the proposal states one exact decision for owner approval. ## Scope - [x] The canonical owner and affected current claims are named. - [x] One release-lifecycle decision changes. - [x] Implementation and release authorization remain outside scope. - [x] Public text contains no private or internal operational context. ## Validation - `pnpm check:knowledge` - `pnpm check:repo` - Prettier - `git diff --check` - Renumbered after merging main: `main` took DEC-20 (accessibility fixes, FR53) and #7444 keeps DEC-19, so this decision is DEC-21 in its heading, reference line, and review-applicability entry. Its text is unchanged. - Owner decision: the spec owner approved this record change on 2026-10-14 ("Merge the specs", 19:31 PT; "Can you resolve the not merging specs", 19:33 PT), so its decision records `cixzhang`, 2026-10-14, as decider.
Exact decision needed
Release generation intentionally moves staged codemods from
transforms/next/into an immutable version folder. Repository tests and validators that read transform source can become path-coupled to either side of that move. The decision is whether evidence must follow one transform identity through both lifecycle locations instead of treating promotion as deletion.Existing authority searched
spec:AST-017FR47 and FR50 own release-branch version generation, promoted codemods as exact release output, and merge-back of those bytes.spec:AST-040owns what codemods may modify in consumer files; it does not own repository source location or release promotion.scripts/promote-codemod-next.mjsmoves staged modules, tests, and the manifest intov<declared-version>/, reseedsnext/, and updates the registry.next/andv0.7.0/locations. No current rule generalizes that requirement.AST-017 is the canonical owner because this is release-output identity, not a consumer-file modification rule.
Decision
A staged codemod and its promoted release copy are one transform at two lifecycle locations. Any checked-in test, validator, documentation generator, or other repository evidence that reads transform source identifies the transform independently of its folder and resolves the lifecycle-appropriate staged or promoted location.
Evidence fails when the transform is missing, when multiple candidates make its identity ambiguous, or when promotion no longer exposes the same transform identity and declared entry set. Promotion does not retain a duplicate under
next/merely to keep a source path stable.This rule changes no consumer migration contract and does not prescribe one resolver implementation. It requires the same source-owned proof to remain active before and after expected promotion.
Rejected alternatives
next/: creates two writable owners and lets the copies drift.Claim scope and non-goals
This is a specification-only proposal. It does not change codemod promotion, edit #7408, add a source resolver, alter consumer migration semantics, or modify release artifacts.
Implementation relationship
A later implementation can use explicit lifecycle candidates, manifests, a shared resolver, or another equivalent mechanism. It must fail missing/ambiguous identity, prove the evidence runs on both sides of promotion, and preserve one source transform. That implementation remains a separate atomic change.
Writing rubric results
R1 narration: none in the record; the new requirement and decision describe the present lifecycle contract.
R2 research: none in the record; the
0.7.0incident and implementation inspection stay in this pull-request description.R3 evidence: FR52 verification names staged/promoted/missing/ambiguous states rather than a pull request or workflow.
R4 rejected alternatives: DEC-19 keeps one bounded
Rejected:paragraph inside the decision.R5 change references: none added to the record.
R6 open questions: none; the proposal states one exact decision for owner approval.
Scope
Validation
pnpm check:knowledgepnpm check:repoPrettier
git diff --checkMerged main:
maintook FR53 and DEC-20; this record keeps FR52 and DEC-19 (spec(release): prepare successor plan at cut time #7445 renumbered its decision to DEC-21). The requirement and decision text are unchanged.Owner decision: the spec owner approved this record change on 2026-10-14 ("Merge the specs", 19:31 PT; "Can you resolve the not merging specs", 19:33 PT), so its decision records
cixzhang, 2026-10-14, as decider.