Skip to content

how: in asks like "Header: navy. Cards: …, gray header." another sentence's part stays an item - #13263

Merged
josephfarina merged 5 commits into
feature/theme-editorfrom
josephfarina/r15-fu-colon-subjects-sentence
Nov 21, 2026
Merged

josephfarina merged 5 commits into
feature/theme-editorfrom
josephfarina/r15-fu-colon-subjects-sentence

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Follows #13196 (the colon-list subject reading), fixing the case its landing review flagged.

User impact

"Header: navy. Cards: white background, gray header." read the cards' "gray header" as the app header (because the first sentence names "header" before its colon), reported that navy and gray contradict each other, and left the cards' white background unwritten.

Problem and solution fit

The colon-list subject reading picked the clause's sentence by words the clause shares with the ask, so a word that another sentence names before its colon freed an item of this list. Where the sentence breaks the clause splitter counts match the ask's sentences, as in the quoted ask, the fix picks the clause's own sentence by position: the sentence breaks the clause splitter found before the clause (a period or a semicolon) select that sentence of the ask as typed, so a word another sentence repeats never changes it; where a rewrite moved the clause (a leading "don't change …" read after the ask), the sentence by position counts only when it holds the words the rewrite keeps. In other asks position is not used and the sentence is the one holding the words a rewrite keeps, as #13196 read it; some asks therefore keep the earlier reading, such as one with "e.g." inside a sentence, a greeting sentence, or a line break between sentences.

Expected behavior and authority

The colon-list subject rule: a part named as a whole item before its sentence's first colon is a subject; a part named after that colon stays an item.

Smallest restoration

One change to how the subjectOfColon guard of the colon-list holder rule picks the clause's sentence.

Evidence

  • Reproduction before the change: the ask above reports that navy and gray contradict each other, and the cards' white background goes unwritten.
  • Result after the change: it writes background-color '#1e3a8a' --on app-shell-header and the cards' white fill.
  • Representative unchanged path: "popover, tooltip and hover card: dark", "the popover and hover card: dark", "sidebar, header and footer: navy", "The popover and hover card: dark. Sidebar: dark." answer as this pull request found them (it does not change them); in "Sidebar, header and footer: navy. Cards: white background, footer: navy." the first sentence's subjects are unchanged and the cards' "footer: navy" now stays an item of the cards' list; "cards: white background, header: navy" writes no app header.
  • Regression test or other mutation-sensitive proof: rows in theme-how-clause-subjects.test.mjs check the header's and the cards' lines, a subject on its own line ("Sidebar: navy⏎Popover and hover card: dark"), a subject after a prohibition ("Don't change the sidebar. Make the popover and hover card: dark."), and that a subject stays one when a later sentence repeats its look ("The popover and hover card: dark. Make the text darker."); the earlier row that asserted never: /contradict/ (which read only written lines) now checks the header line alone.

Scope

Components: cli/api/theme-edit (how)

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

vitest run packages/cli/api/theme-edit (the whole theme-edit directory) passes.

preflight: pass 41e914f
replay: worse 0 at 41e914f

@vercel

vercel Bot commented Nov 21, 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 21, 2026 4:11pm UTC

Request Review

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

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 4:43 PM 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 about the new colon-list reading, and the release note needs one fix.

  • The changeset says how finds a list's sentence by its position, so a part another sentence names before its colon stays an item, but an ask that ends its sentences with "!" or "?" keeps the old reading ("Header: navy! Cards: white background, gray header." still paints the app header gray and drops the navy, on this head as on the base): narrow the changeset and the title to sentences ended by a period, a semicolon or a line break, or extend the fix and add a row for one.

No current spec says how experimental theme editor how reads a colon list, so this behavior needs an engineering owner's decision; an engineering owner records it by commenting /approve-spec with the full head commit SHA, and the author may do so as an engineering owner. The fix itself holds for period-, semicolon- and line-separated asks: the new row fails before the change and passes after it, and the ask it fixes answered correctly before the colon-subject change this branch already carries.

Claims and files checked

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

  • Changeset: how reads a colon list's subjects in the clause's own sentence, found by position, so a part another sentence names before its colon stays an item and the cards get their white background — false as written: an ask ending its sentences with "!" or "?" falls back to the old reading; true for the ask it quotes (new test row, and a direct run of the command).
  • Before the change the quoted ask reports a navy and gray contradiction and leaves the cards' background unwritten — verified on the merge base.
  • After the change it writes the navy header and the cards' white fill — verified at the head.
  • The representative unchanged asks (three- and two-part subject lists, a leading "the", "sidebar, header and footer: navy", two sentences of subjects) still take the look on every subject — verified: identical answers before and after.
  • In "Sidebar, header and footer: navy. Cards: white background, footer: navy." the first sentence's subjects are unchanged and the cards' "footer: navy" stays an item — verified.
  • "cards: white background, header: navy" writes no app header — verified.
  • The new rows cover the header and cards lines, a subject on its own line, a subject after a prohibition and a later sentence repeating the look — verified present; only the first fails before the change, the other three guard the fallback path.
  • The dropped never: /contradict/ assertion read only written command lines, so it could never match that text — verified in the test's own comparison loop.
  • Where the ask's line breaks, "!" or "?" end sentences the clause splitter does not count, the earlier reading stays — verified.
  • vitest run packages/cli/api/theme-edit passes — verified in part: the 187 files of that directory that exercise how pass at the head (3276 tests, 2 skipped); the directory also holds slow preview and lock suites that this review did not have time to run.
  • One defect restored, no new public API, default or interaction model, no internal context in the public text — verified.
  • packages/cli/api/theme-edit/_how-question.mjs — clear.
  • packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs — clear.
  • .changeset/experimental-theme-how-colon-subjects-sentence.md — the over-broad claim above.

Automated review (maintainer link)

@josephfarina josephfarina changed the title how: a list subject is read in the clause's own sentence, found by position how: a list subject is read in the clause's own sentence (ended by a period, semicolon or line break) Nov 21, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers the theme-editor reading this pull request restores and fixes (the owner's ruling, under the restore rule): every part named before a colon is a subject of the list, each found in its own sentence by position.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 4e4d754

@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: the colon-list fix works and an engineering owner approved its reading at this head, but the branch no longer merges into feature/theme-editor, and the release note claims more than the fix does.

  • Regression: after feature/theme-editor was rebuilt, this branch carries ten commits whose changes the base already holds and conflicts with it in six hunks across _how-question.mjs, theme-how-clause-subjects.test.mjs and theme-how.test.mjs, so rebase only this pull request's two commits onto the base and keep the base's side outside the subject guard (its clears in the stripe answer and its "zebra rows taller" tests).
  • The changeset and the title say a line break ends a counted sentence, but "Header: navy", a line break, then "Cards: white background, gray header." still reports navy and gray as contradicting and writes no card fill, so drop "or a line break" or count a bare line break as a sentence break and add a row for that ask (the earlier automated review suggested this wording, and it was wrong about line breaks).
  • Miss: the description says the unchanged asks still take the look on every subject, but "popover, tooltip and hover card: dark" writes no popover fill, so reword that claim.

The two commits replay cleanly onto the base, and the affected theme-edit tests pass there. The rebase makes a new head, so an engineering owner needs to post /approve-spec with the new head's full SHA again.

Claims and files checked

Review mode: full; reason: history

  • Title: a list subject is read in the clause's own sentence, ended by a period, a semicolon or a line break — true for a period or a semicolon; false for a bare line break (the ask above still contradicts at this head).
  • This pull request's changeset: the sentence is found by position among sentences a period, a semicolon or a line break ends, and the quoted ask keeps the cards' item and white fill — the quoted ask is verified (new test row and a direct run); the line-break part is false.
  • The six other changesets in the compare (colon subjects, stripe name forms, stripes on striped tables, the page label, rounding anywhere, first-ask speedup) — byte-identical to the base's copies; they come from pull requests already on the base and leave this one on rebase.
  • Before the change, the quoted ask reports a navy and gray contradiction and leaves the cards' fill unwritten — verified on the base.
  • After the change, it writes the navy header and the cards' white fill — verified at this head and with the two commits replayed onto the base.
  • The listed unchanged asks still take the look on every subject — unchanged is verified (identical answers on base and head); "every subject" is false for the popover in the three-part list.
  • In the sidebar, header and footer ask followed by the cards' footer, the first sentence's subjects are unchanged and the cards' footer stays an item — verified.
  • "cards: white background, header: navy" writes no app header — verified.
  • The new rows cover the header and cards lines, a subject on its own line, one after a prohibition and a later sentence that repeats the look, and the old contradiction assertion now checks the header line alone — verified; only the cards row fails on the base.
  • Position counts only when its sentence holds the words a rewrite keeps, and line breaks, "!" or "?" fall back — verified in code and by a debug run.
  • One change to the subject guard, with tagalongs removed or split — false at this head: the compare carries six other pull requests' changes.
  • No new public API, default or interaction model, and no internal context in the public text — verified.
  • The theme-edit tests pass — verified in part: the six changed test files pass at this head (771 tests, 1 skipped); the whole directory was not run.
  • .changeset/experimental-theme-how-colon-subjects-sentence.md — the line-break claim above.
  • .changeset/experimental-theme-how-colon-subjects.md, .changeset/experimental-theme-how-stripe-name-forms.md, .changeset/experimental-theme-how-stripes-on-striped-tables.md, .changeset/experimental-theme-how-the-page-label.md, .changeset/experimental-theme-rounding-anywhere-pills.md, .changeset/how-first-ask-compiles-less.md — carried, identical to the base.
  • packages/cli/api/theme-edit/_how-question.mjs — the guard change is clear; four hunks conflict with the base.
  • packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs — the rows are clear; one hunk conflicts with the base.
  • packages/cli/api/theme-edit/theme-how.test.mjs — carried; one hunk conflicts with the base.
  • packages/cli/api/theme-edit/theme-how-lexicon-need.test.mjs, packages/cli/api/theme-edit/theme-how-page-reaches-frame.test.mjs, packages/cli/api/theme-edit/theme-thick-borders-chain-reaches.test.mjs, packages/cli/api/theme-edit/theme-together-rounding-anywhere-reaches.test.mjs, scripts/vitest-node-durations.json — carried, identical to the base.

Automated review (maintainer link)

@josephfarina josephfarina changed the title how: a list subject is read in the clause's own sentence (ended by a period, semicolon or line break) how: a list subject is read in the clause's own sentence (ended by a period or semicolon) Nov 21, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec ffe23c2

@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: the colon-list fix works for asks like "Header: navy. Cards: white background, gray header.", and an engineering owner approved its reading at this head, but two claims still overstate it.

  • The changeset, the title and the description say the clause's sentence is found by position among the sentences a period or a semicolon ends, so that a word another sentence repeats never changes it, but a leading "Hi." or any "!", "?" or bare line break in the ask turns position off for every clause, so "Hi. Header: navy. Cards: white background, gray header." still reports navy and gray as contradicting and leaves the cards' white background unused; describe only what the rows prove, or make the positional pick count only sentences that hold a clause and add rows for the "Hi." and "Hi!" asks (the "every sentence ends with a period or a semicolon" wording the earlier automated review suggested is also too broad).
  • The description says the four unchanged-path asks answer with "each subject after the first takes the look; the first answers with a lookup", but the first subject takes the look in "the popover and hover card: dark", "sidebar, header and footer: navy" and "The popover and hover card: dark. Sidebar: dark.", and only the popover in "popover, tooltip and hover card: dark" answers with a lookup, so reword that parenthetical.

A changeset edit makes a new head, so an engineering owner then posts /approve-spec with its full SHA again.

Claims and files checked

Review mode: same-head; reason: none

  • Title: a list subject is read in the clause's own sentence, ended by a period or semicolon — false: a period-only ask that opens with "Hi." still takes the old reading.
  • This pull request's changeset: the sentence is found by position among period- or semicolon-ended sentences, so the quoted ask keeps the cards' item and white fill — the quoted ask is verified at this head and merged into the base branch; the general rule is false for asks with a greeting sentence or any other sentence end.
  • Before the change, the quoted ask reports a navy and gray contradiction and leaves the cards' fill unwritten — verified on the base.
  • After the change, it writes the navy header and the cards' white fill — verified at this head and merged into the base branch.
  • Position means a word another sentence repeats never changes the clause's sentence — false for the "Hi." ask above.
  • A clause a rewrite moves uses position only when that sentence holds the words the rewrite keeps, and line breaks, "!" or "?" fall back to the earlier reading — verified in code and by probes.
  • The four unchanged-path asks answer as before — verified (identical on the base); the parenthetical about the first subject answering with a lookup is false for three of them.
  • In the sidebar, header and footer ask followed by the cards' footer, the first sentence's subjects are unchanged and the cards' footer stays an item — verified.
  • "cards: white background, header: navy" writes no app header — verified.
  • The new rows cover the header and cards lines, a subject on its own line, one after a prohibition and a later sentence that repeats the look, and the old contradiction row now checks the header line alone — verified.
  • One change to the subject guard, with no tagalongs — verified: the compare holds only the guard, the rows and the note.
  • No new public API, default or interaction model, and no internal context in the public text — verified.
  • The whole theme-edit test directory passes — verified in part: all 60 how test files pass at this head (1347 tests), and the subject file passes merged into the base branch.
  • The two tool status lines at the end of the description — not checked; they report the author's own tooling.
  • .changeset/experimental-theme-how-colon-subjects-sentence.md — the over-broad claim above.
  • packages/cli/api/theme-edit/_how-question.mjs — clear.
  • packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs — clear.

Automated review (maintainer link)

@josephfarina josephfarina changed the title how: a list subject is read in the clause's own sentence (ended by a period or semicolon) how: a part another sentence names before its colon stays an item of this list Nov 21, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 7b96746

@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: the colon-list fix works for asks like "Header: navy. Cards: white background, gray header.", and an engineering owner approved its reading at this head, but the release note, the title and the description still misstate which asks it covers.

  • The release note, the title and the description say every ask whose sentences are each a styling ask ended by a period or a semicolon gets the new reading and that other asks keep the earlier one, but "Header: navy, e.g. like Slack. Cards: white background, gray header." still reports navy and gray as contradicting, while "Header: navy. Cards: white background, gray header. Thanks." now changes, so name the asks the rows prove (for example the quoted ask) and say that some asks, such as one with "e.g." inside a sentence, a greeting sentence or a line break between sentences, keep the earlier reading.

The unchanged-path wording in the description is fixed. A changeset edit makes a new head, so an engineering owner then posts /approve-spec with its full SHA again.

Claims and files checked

Review mode: incremental; reason: none

  • Changed review rules since the last review (0): none.
  • Title: a part another sentence names before its colon stays an item of this list — false: asks with a greeting sentence, an "e.g." inside a sentence or a line break between the sentences still free the item.
  • Release note: in an ask whose sentences are each a period- or semicolon-ended styling ask, a colon list's subjects are read in the clause's own sentence — verified for the quoted ask and its semicolon, reordered and three-sentence forms; false for an ask with "e.g." or "i.e." inside a sentence.
  • Release note: in the quoted ask the gray header stays an item and the cards get their white background — verified at this head and merged into the base branch.
  • Release note: other asks keep the earlier reading — false: the quoted ask followed by "Thanks." or "Thanks!" changes.
  • Description: before the change the quoted ask reports a navy and gray contradiction and leaves the cards' fill unwritten — verified on the base.
  • Description: after the change it writes the navy header and the cards' white fill — verified.
  • Description: in such asks a word another sentence repeats never changes the clause's sentence — false for the "e.g." ask.
  • Description: a clause a rewrite moves uses position only when that sentence holds the words the rewrite keeps — verified in code and by the prohibition row.
  • Description: in any other ask (a greeting sentence, "!", "?" or a bare line break) position is not used — false for the quoted ask followed by "Thanks!"; verified for the greeting and line-break asks.
  • Description: the four representative unchanged asks answer as before — verified (identical on the base).
  • Description: in the sidebar, header and footer ask followed by the cards' footer, the first sentence's subjects are unchanged and the cards' footer stays an item — verified.
  • Description: "cards: white background, header: navy" writes no app header — verified.
  • Description: the new rows cover the header and cards lines, a subject on its own line, one after a prohibition and a later sentence that repeats the look, and the old contradiction row checks the header line alone — verified.
  • Description: one change to the subject guard, no tagalongs, no new public API, default or interaction model, and no internal context — verified.
  • Description: the whole theme-edit test directory passes — verified in part: the subject file passes at this head and merged into the base branch, and all how test files passed at the previous head, with only the release note changed since.
  • .changeset/experimental-theme-how-colon-subjects-sentence.md — the scope claims above.
  • packages/cli/api/theme-edit/_how-question.mjs — clear.
  • packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs — clear.

Automated review (maintainer link)

@josephfarina josephfarina changed the title how: a part another sentence names before its colon stays an item of this list how: in asks like "Header: navy. Cards: …, gray header." another sentence's part stays an item Nov 21, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 41e914f

@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: the colon-list fix works for asks like "Header: navy. Cards: white background, gray header.", an engineering owner approved its reading at this head, and the release note, title and description now describe the asks it covers.

The earlier wording finding is fixed, and the branch still merges cleanly into its base branch. No further changes are needed.

Claims and files checked

Review mode: incremental; reason: none

  • Changed review rules since the last review (0): none.
  • Title: in asks like the quoted one, another sentence's part stays an item of this list. Verified.
  • Release note: in asks such as the quoted one, a part another sentence names before its colon stays an item of this list. Verified at this head and merged into the base branch.
  • Release note: in that ask the header turns navy and the cards get their white background. Verified by the new test row and a probe.
  • Release note: some asks keep the earlier reading, such as one with "e.g." inside a sentence, a greeting sentence, or a line break between sentences. Verified: each still answers exactly as before.
  • Release note: an experimental patch entry for the CLI. Verified.
  • Description: the change follows the colon-list subject reading and fixes the case its landing review flagged. Verified.
  • Description: before the change, the quoted ask reports navy and gray as contradicting and leaves the cards' white background unwritten. Verified on the base.
  • Description: the earlier reading picked the clause's sentence by shared words. Verified in the base code.
  • Description: where the splitter's sentence breaks (periods and semicolons) match the ask's sentences, the clause's own sentence is picked by position, so a word another sentence repeats never changes it. Verified in code.
  • Description: a clause that a rewrite moved uses position only when that sentence holds the words the rewrite keeps. Verified in code and by the prohibition row.
  • Description: in other asks position is not used and the earlier search applies, so some asks keep the earlier reading. Verified.
  • Description: the colon-list subject rule (a part before its sentence's first colon is a subject; a part after it stays an item). Verified in code.
  • Description: one change to the subject guard. Verified.
  • Description: after the change, the quoted ask writes the navy header and the cards' white fill. Verified.
  • Description: the four representative asks answer as before; in the sidebar, header and footer ask, the first sentence's subjects are unchanged and the cards' footer stays an item; and "cards: white background, header: navy" writes no app header. Verified.
  • Description: the new rows and the narrowed contradiction row. Verified.
  • Description: one defect is restored, with no tagalongs, no new public API, default or interaction model, and no internal context. Verified.
  • Description: the whole theme-edit test directory passes. Verified.
  • .changeset/experimental-theme-how-colon-subjects-sentence.md: clear.
  • packages/cli/api/theme-edit/_how-question.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 1535920 into feature/theme-editor Nov 21, 2026
9 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…ence's part stays an item (#13263)

Reviewed pull request #13263, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…ence's part stays an item (#13263)

Reviewed pull request #13263, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…ence's part stays an item (#13263)

Reviewed pull request #13263, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…ence's part stays an item (#13263)

Reviewed pull request #13263, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…ence's part stays an item (#13263)

Reviewed pull request #13263, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
- #13196 how: every part named before a colon is a subject of the list
- #13283 experimental theme how: a file named in url() is a value, written as typed
- #13297 experimental theme how: a file in a follow-up ask is written as typed
- #13298 experimental theme how: a second url() layer left unwritten is named as not used
- #13317 experimental theme how: a file's path changes no other ask inside the question reader
- #13251 set: a text size said of a title piece goes on its holder's main text
- #13374 experimental theme how: a label after an earlier part's sentence still sets its setting
- #13396 experimental theme how: a heading's label run reads two-word and hyphenated labels; a short sentence is no heading
- #13263 how: in asks like "Header: navy. Cards: …, gray header." another sentence's part stays an item
- #13378 fix(cli): a radius named for one corner writes that corner only
- #13389 experimental theme how: the url() note no longer lists the follow-up ask as uncovered
- #13435 experimental theme how: the url() layer note names only the phrasing still left out
- #13449 how: a colon-list item is read in the sentence that holds it as typed
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13412.

@github-actions
github-actions Bot deleted the josephfarina/r15-fu-colon-subjects-sentence branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 41e914f9 Deployed Nov 21, 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