Skip to content

spec(AST-057): the swipe codemod's paths match it in any lifecycle folder - #12447

Closed
josephfarina wants to merge 1 commit into
mainfrom
specs/ast057-codemod-paths
Closed

josephfarina wants to merge 1 commit into
mainfrom
specs/ast057-codemod-paths

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

Exact decision needed

Whether spec:AST-057's path list may name the swipe-action codemod in any transforms/ folder instead of only transforms/next/.

Existing authority searched

spec:AST-057 (its path-applicability:v1 list), spec:AST-017 FR52 and DEC-19 (a promotion must not keep a duplicate transform to preserve the staged path), and the path-applicability rules in architecture:knowledge-contracts (* matches within one segment).

Decision

The two codemod paths in AST-057's path list become packages/cli/assets/codemods/transforms/*/migrate-item-swipe-actions-to-swipe.mjs and packages/cli/assets/codemods/transforms/*/__tests__/migrate-item-swipe-actions-to-swipe.test.mjs. They match the codemod in next/ today and in its version folder once a release promotes it, so a release no longer has to keep duplicate next/ copies for the record to stay valid. The record's contract is unchanged.

Evidence

  • pnpm check:knowledge: aligned at this head.
  • Simulated promotion (both files moved from next/ to v0.7.17/, next/ copies gone): pnpm check:knowledge stays aligned, and pnpm specs:for on the moved file still routes to spec:AST-057.

Scope

Components: none (path metadata of spec:AST-057 only).

  • This PR contains specification records only.
  • Public text and artifacts contain no internal Meta context.

Writing rubric results

  • R1 narration: none; the path list is data.
  • R2–R7: not applicable (no prose changed).

…lder

The record named the codemod's staged paths under transforms/next/, so a
release that promotes it to its version folder had to keep duplicate
copies in next/ for the record's path list to stay valid, which AST-017
FR52 rules out. The two patterns now match the codemod in any transforms
folder: next/ today, the version folder after promotion.
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 17, 2026 9:49pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 17, 2026
@astracat-bot

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 17, 2026, 9:54 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not finished on this head yet.

The two transforms/*/ patterns match the swipe codemod and its test in next/ today and in the version folder after promotion, as the knowledge-contracts path-applicability rules and spec:AST-017 FR52 and DEC-19 allow, and no requirement in the record changes. A simulated promotion keeps pnpm check:knowledge aligned with the new patterns, while the old ones fail with two "matches no repository file" errors. Merge still needs the repository's spec approval: an engineering owner comments /approve-spec <full head SHA>, and the author may do so as an engineering owner.

Claims and files checked

Review mode: full; reason: no-earlier-review

Claims:

  • The record's two codemod paths become single-segment transforms/*/ patterns: verified (record lines 61-62).
  • They match the codemod in next/ now and in its version folder after promotion: verified (the repository's matcher on the head file list and on a simulated promotion).
  • A release no longer needs duplicate next/ copies for the record to stay valid: verified (the old patterns fail after a simulated promotion; the new ones pass).
  • The record's contract is unchanged: verified (only path-list lines change; no requirement, decision or table row).
  • The release-compatibility record forbids keeping a duplicate transform to preserve the staged path, and the knowledge-contracts record says * matches within one segment: verified (FR52 and DEC-19; the path-applicability section).
  • pnpm check:knowledge is aligned at this head: verified.
  • After a simulated promotion, pnpm check:knowledge stays aligned and pnpm specs:for on the moved file still routes to the swipe-actions record: verified.
  • The change is the spec record only, with no components in scope: verified (one changed file).
  • Writing rubric: no narration, and the other items do not apply because no prose changed: verified.

Files:

  • docs/specs/AST-057-row-actions/spec.md: clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 715e6c9

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 2026
josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12694 fix(cli): the Order Detail template's discount uses a minus sign held to its amount
  Author: @josephfarina
- #12114 fix(templates): reset, reply, send and go-into icons mirror in right-to-left pages
  Author: @josephfarina
- #12143 refactor(templates): example blocks lay out with HStack and VStack instead of flex wrappers
  Author: @josephfarina
- #12158 fix(core): ChatComposer keeps its send action inside the composer on a narrow screen
  Author: @josephfarina
- #12242 fix(cli): the npm commands the CLI runs for itself use npm's own noproxy setting
  Author: @josephfarina
- #12283 fix(core): dark secondary text meets 4.5:1 on the neutral fill over the page and cards
  Author: @josephfarina
- #12290 fix(Markdown): keep bulleted and numbered lists inside their column
  Author: @josephfarina
- #12372 [fix] Heading: a missing level renders an h2 and warns, instead of crashing
  Author: @josephfarina
- #12447 spec(AST-057): the swipe codemod's paths match it in any lifecycle folder
  Author: @josephfarina
- #12475 fix(templates): on a phone the settings search moves under the title
  Author: @josephfarina
- #12530 fix(cli): the contact-form template fits a phone; its section fills the width up to 800px
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #12812.

@github-actions
github-actions Bot deleted the specs/ast057-codemod-paths branch November 19, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — 715e6c9e Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant