Skip to content

spec(AST-094): DEC-31 states the owner's test-only and records-only carry - #11602

Merged
cixzhang merged 5 commits into
mainfrom
specs/dec31-records-only-carry
Nov 14, 2026
Merged

cixzhang merged 5 commits into
mainfrom
specs/dec31-records-only-carry

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Records the owner's decision of 2026-11-12 in AST-094 DEC-31, where it was missing: device and emulator evidence carries over a commit, or a main merge's change to the pull request's own files, that touches only test-only files (under __tests__/ or named *.test.* or *.spec.*, imported by no rendered or shipped code, a story included) or knowledge records (Markdown under docs/specs/, docs/architecture/, docs/families/ or docs/design/) ("Test and spec-only"). Any other file, apart from the generated files DEC-31 already carries, still requires a new take.

It also corrects the sentence added on 2026-11-13, which said any hand-edited own file forces a new take and so contradicted that decision: it now names hand-edited source files. The heading and the all (DEC-31) verification row say the same.

Records only: no code, no public API, no changeset.

Writing rubric results

  • R1 narration: none; present tense about the system.
  • R2 research: none in the record.
  • R3 evidence: the owner's chosen wording is quoted; no card or pull request is cited in the record.
  • R4 rejected alternatives: none added.
  • R5 change references: none.
  • R6 open questions: none.
  • R7 project status: none.

Scope (stated for review): the carry covers only the pull request's own files, because the owner's card asked about a test-only or spec-only commit. A main merge that changes a test-only file the pull request's tests import directly (for example a shared test stub) still takes evidence again; extending the carry to that case would need the owner's own decision.

@vercel

vercel Bot commented Nov 13, 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 14, 2026 4:49am UTC

Request Review

@cixzhang
cixzhang marked this pull request as draft November 13, 2026 20:47
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 13, 2026
@astracat-bot

astracat-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 14, 2026, 5:09 AM UTC

@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.

Approval waits on an engineering owner's decision on the new DEC-31 carry, and two record fixes are needed first.

This pull request adds a requirement to spec:AST-094 DEC-31, so that test-only and record-only changes keep earlier device and emulator evidence. It also rewords the 2026-11-13 sentence, the heading and the verification row. An engineering owner records the decision by commenting /approve-spec <full head SHA> on the head that carries the fixes, and the author may do so as an engineering owner. The owner also needs to settle whether a __tests__/ file that a Storybook story renders counts as a test file.

  • The owner's words "Yes, when CI proves they regenerate identically." now end the 2026-11-12 test-and-spec amendment (spec.md:1556-1557) instead of the 2026-11-13 generated-files amendment they answer, so move them back after spec.md:1548.
  • The test-file definition requires both "no rendered or shipped code imports" and "classified by path" (spec.md:1552-1555), while the verification row says only "classified by path" (spec.md:1136), and the two readings disagree on packages/core/src/__tests__/PresentedHitTestingLab.tsx, the iPhone device-check harness that a story renders, so pick one rule and state it in both places.
Claims and files checked
  • The owner's 2026-11-12 decision is recorded in DEC-31: present at spec.md:1550-1557. The decision is not traceable in the repository beyond the quoted option.
  • Evidence carries over test-only or record-only commits and merge changes, classified by path, and any other path needs a new take: stated at spec.md:1550-1556, with the test-file contradiction above.
  • The 2026-11-13 sentence sent any hand-edited own file to a new take and now names hand-edited source files: verified against the base and spec.md:1546-1548.
  • The heading and the verification row say the same: verified at spec.md:1519 and spec.md:1136. The row does not state the authored-commit case.
  • Records only, with no code, public API or changeset: verified. One Markdown file changes.
  • Writing rubric results R1 to R7: verified against the added lines.
  • docs/specs/AST-094-touch-presentations/spec.md: the two findings above.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 14, 2026 03:36
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec da366da

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 14, 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.

Changes requested: DEC-31 needs two record fixes before this can be approved.

The direction is approved by an engineering owner at this head. The fixes need a new commit, so an engineering owner records the approval again by commenting /approve-spec <full head SHA> on that head.

  • The owner's words "Yes, when CI proves they regenerate identically." now end the 2026-11-12 test-and-spec amendment (spec.md:1556-1557) instead of the 2026-11-13 generated-files amendment they belong to, so move them back to the end of spec.md:1548.
  • DEC-31 counts only test files "that no rendered or shipped code imports" and then says "classified by path" (spec.md:1552-1555), while the verification row says only "classified by path" (spec.md:1136), so the two disagree on a story-rendered harness such as packages/core/src/__tests__/PresentedHitTestingLab.tsx; state one rule in the same words in both places.
Claims and files checked
  • Claim: the record adds the owner's decision that test-only and record-only changes keep earlier device and emulator evidence, classified by path. Verified at spec.md:1550-1556, which also adds an import condition the description does not mention.
  • Claim: any other path still requires a new take. Verified at spec.md:1555.
  • Claim: the 2026-11-13 sentence now names hand-edited source files. Verified at spec.md:1546-1548.
  • Claim: the heading and the verification row say the same. The heading is verified at spec.md:1519; the row is false, as it carries no import condition (spec.md:1136).
  • Claim: records only, with no code, public API or changeset. Verified: one Markdown record changes.
  • Claim: the writing rubric results R1 to R7. Verified against the added lines.
  • File docs/specs/AST-094-touch-presentations/spec.md: two blocking findings above.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f1f0dbf

@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.

Changes requested: one wording fix in DEC-31's verification row.

The direction is approved by an engineering owner at this head, and the owner quote is back under the generated-files amendment. The fix needs a new commit, so an engineering owner records the approval again by commenting /approve-spec <full head SHA> on that head.

  • DEC-31 defines a test-only file as one under a __tests__/ folder or named *.test.* or *.spec.* "that no rendered or shipped code imports, a story included" (spec.md:1572-1574), while the all (DEC-31) verification row still says "a test-only file or knowledge record, classified by path" (spec.md:1155), so the two disagree on a __tests__/ harness a story renders, such as the iPhone device-check harness packages/core/src/__tests__/PresentedHitTestingLab.tsx; state the row with DEC-31's definition, for example "and a test-only file as DEC-31 defines it, or a knowledge record".

Two smaller points, not blocking: the row's exception hangs off "any overlap", so it does not say that an authored commit confined to test-only files or records passes; and "Any other file requires a new take." closes the 2026-11-12 paragraph, which is printed after the later 2026-11-13 generated-files amendment, so read in order it reads as withdrawing that carry.

Claims and files checked
  • The record states the owner's 2026-11-12 carry for test-only files and knowledge records: verified at spec.md:1570-1576, except that it classifies test-only files by path plus importers, not by path alone as the description says.
  • Any other file still requires a new take: verified at spec.md:1575-1576.
  • The 2026-11-13 sentence now names hand-edited source files: verified at spec.md:1565-1566.
  • The heading says the same: verified at spec.md:1538.
  • The all (DEC-31) verification row says the same: false, as the row classifies by path (spec.md:1155).
  • Records only, with no code, public API or changeset: verified, one Markdown record.
  • The writing rubric results R1 to R7: verified against the added lines.
  • docs/specs/AST-094-touch-presentations/spec.md: the findings above.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 01b454a

@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.

Changes requested: two fixes, both missed by the earlier review.

The direction is approved by an engineering owner at this head, and every point from the earlier review is fixed. The record fix needs a new commit, so an engineering owner then records the approval again by commenting /approve-spec <full head SHA> on that head; the description fix needs no commit.

  • Miss: DEC-31's verification row passes "an overlap confined to test-only files", which takes in a test-only file the pull request's tests import directly, while DEC-31's own text carries only "a merge's change to the pull request's own files" and still sends a merge that changes "a file its changes import directly" to a new take (spec.md:1155 against spec.md:1565-1572), so a main merge that edits packages/core/src/__tests__/stubMatchMedia.ts, which packages/core/src/Layer/holdEntranceInput.test.ts imports, gets two answers; either extend the decision to test-only direct imports or narrow the row to the pull request's own files.
  • Miss: the description says the carry covers test files "classified by path", but the record counts a test-only file only when no rendered or shipped code imports it, a story included (spec.md:1572-1574), so the story-rendered __tests__/PresentedHitTestingLab.tsx harness still needs a new take; restate the description with the record's definition.
Claims and files checked
  • The record states the owner's 2026-11-12 carry for test-only files and knowledge records: verified at spec.md:1570-1576.
  • Test files are classified by path: false, as the record adds an importer test (spec.md:1572-1574).
  • Any other path still requires a new take: verified at spec.md:1575, with the generated-file carry kept.
  • The 2026-11-13 sentence now names hand-edited source files: verified at spec.md:1565-1566.
  • The heading says the same: verified at spec.md:1538.
  • The verification row says the same: verified for the test-only definition at spec.md:1155, but its scope is wider than the decision's, as above.
  • Records only, with no code, public API or changeset: verified, one Markdown record.
  • The writing rubric results R1 to R7: verified against the added lines.
  • docs/specs/AST-094-touch-presentations/spec.md: the findings above.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 4489e47

@cixzhang

Copy link
Copy Markdown
Contributor Author

Decision: D-20261114-069

Records the owner's decision of 2026-11-12 in AST-094 DEC-31: device and emulator evidence carries over a commit, or a main merge's change to the pull request's own files, that touches only test-only files or knowledge records, defined the same way in the decision and its verification row. Records only.

@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.

Changes requested: one description fix, with no new commit needed.

The record is approved by an engineering owner at this head, and every point from the earlier review is fixed. Editing the description keeps the head, so the current approval stands.

  • The description says the carry covers only test-only files and that any other path still requires a new take, but DEC-31 also carries knowledge records, Markdown under docs/specs/, docs/architecture/, docs/families/ or docs/design/ (spec.md:1570-1575, and the verification row at spec.md:1155); add them to the first paragraph and keep the generated files DEC-31 already carries out of "any other path".
Claims and files checked
  • The record states the owner's 2026-11-12 decision in DEC-31: verified at spec.md:1570-1576.
  • Evidence carries over a commit, or a main merge's change to the pull request's own files, that touches only test-only files, defined by path and by having no rendered or shipped importer: verified at spec.md:1570-1574.
  • Any other path still requires a new take: false, as knowledge records also carry and generated files keep their carry (spec.md:1562-1575).
  • The 2026-11-13 sentence now names hand-edited source files: verified at spec.md:1565-1567.
  • The heading and the verification row say the same: verified at spec.md:1538 and spec.md:1155.
  • Records only, with no code, public API or changeset: verified, one Markdown record.
  • The writing rubric results R1 to R7: verified against the added lines.
  • A main merge that changes a test-only file the pull request's tests import still needs a new take: verified, as the row's exception covers only the pull request's own files (spec.md:1155) and DEC-31 keeps direct imports as a new take (spec.md:1565-1567).
  • docs/specs/AST-094-touch-presentations/spec.md: the finding above, plus one non-blocking note that *.spec.* also matches theme records under packages/themes/.

Automated review (maintainer link)

@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: an engineering owner approved the DEC-31 record change at this head, and the description now matches it.

DEC-31 now carries device and emulator evidence over test-only and record-only changes, and its verification row gives the same answer in each case, including a test harness a story renders and a test helper the pull request does not change. CI has run on this head and passed.

Claims and files checked
  • The record states the owner's 2026-11-12 decision in DEC-31, which it lacked: verified (spec.md:1570-1576).
  • Evidence carries over a commit, or a main merge's change to the pull request's own files, that touches only test-only files or knowledge records, with both terms defined: verified (spec.md:1570-1575).
  • Any other file, apart from the generated files DEC-31 already carries, still requires a new take: verified (spec.md:1575).
  • The 2026-11-13 sentence now names hand-edited source files: verified (spec.md:1565-1567).
  • The heading and the verification row say the same: verified (spec.md:1538, spec.md:1155).
  • Records only, with no code, public API or changeset: verified.
  • The writing rubric results R1 to R7: verified against the added lines.
  • A main merge that changes a test-only file the pull request's tests import directly still needs a new take: verified (spec.md:1155, spec.md:1565-1567).
  • docs/specs/AST-094-touch-presentations/spec.md: clear.

Automated review (maintainer link)

@cixzhang
cixzhang merged commit 24d8249 into main Nov 14, 2026
73 checks passed
@github-actions
github-actions Bot deleted the specs/dec31-records-only-carry branch November 14, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 4489e477 Deployed Nov 14, 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