Skip to content

experimental theme: twelfth round of fixes (FINAL-43/44 hunts, review follow-ups) - #11965

Merged
josephfarina merged 32 commits into
mainfrom
theme-followup-24
Nov 16, 2026
Merged

josephfarina merged 32 commits into
mainfrom
theme-followup-24

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The twelfth round of fixes for astryx experimental theme: the FINAL-43 and FINAL-44 hunt rounds with their seeded chaos rounds, plus the review follow-ups from the previous round. Each fix is at its cause, with tests.

how

  • Elements of a place: "the highlighted option in the selector" reaches the option row's highlighted state; "the knob of switches", "the tabs' indicator", "the header cells in the table", "the close button in the dialog", "the dropdown menu's items" each reach that element. "Menu separators" change only the menu's own divider.
  • An element its place has no part for ("the close button of toasts", "the today date in the date picker"), or one that cannot be kept to its place ("buttons inside cards red"), writes nothing and says why. Headings and titles in a container are set on the container.
  • Unknown words: a word held by a place ("the zorp in cards") is named, and nothing is written.
  • Amounts: shares in words or figures ("two thirds fainter", "fainter by a third"), decimal heights ("2.5rem high"), and one size's height ("small buttons 4px taller"). "The controls 40px tall" moves every control height.
  • References: a reference gives the color it shows (a text part's text, any other part's fill), may be named with its look ("the error banner color"), and reads a base's own look first.
  • Keeps: two excepts joined by "and" are both kept, and one variant's focus ring can be kept. A value question reads a token set on the part itself first.

Reading what was typed

  • new reads like/base as keys, quoted and swapped pairs, a value before its dial, settings pasted in its name, and --theme t2 as the name. A whole command pasted as one word is read.
  • Settings saved in other letters, written two ways, or with base for the base, are read once, with a note. A set of a property typed in other letters fixes it listed twice. A typo of a saved field is named.
  • A var() glued to other text is refused for its grammar. Saved states in any spelling, and combined states with spaces, load.

Own theme file, build and compile

  • The build warns a misspelled field wherever the theme writes its input (a const, an import, a re-export, a spread), a typography value wherever it is written, a weight no browser reads, and a heading level Core does not read. A weight given as a number is named as a type mismatch.
  • A doc module (*.doc.*) given as the theme is refused before it runs, naming the theme source beside it.
  • A plain-object theme goes through defineTheme; spreading a package theme is refused with the extends line; an imported stylesheet the outputs do not carry is warned; the process's built-ins and umask are restored after a load.
  • A starter refuses an import written as a template literal or with a query the new app cannot type-check.

Contrast and pictures

  • A part inside Core's media surface (an overlay, a lightbox) is measured in that surface's scheme, listed once, and offered a line scoped to it; where no single color works on both grounds, no line is offered.

Scope

Components: experimental theme (editor, how, preview, compile), theme build (doc-module refusal, new warnings), foundation module loader

Tests

New editor and build test files for each item, plus the updated expectations each fix names. The full CLI suite passes on a main-based tree (only this box's known environment failures). Structure, changesets, tsc, eslint and prettier are clean. The held-out how key scores the same as the previous round on the same tree (236 right, 14 wrong writes, 14 held back, 36 other writes, measured with main's committed Core). Recorded Node test times for the new editor files come in one more push if the plan needs them.

…ed, reads a possessive owner's own element as that element, and a later "the shadows softer" as the theme's
…weight no browser reads and a number key that is no level; a heading level is read as Core reads it; a weight word after a known family start is a weight
…r a letter or a digit; text glued after it is its own token), so such a value is refused for its grammar, never written or blamed on the token; states joined by + with spaces are read piece by piece; a saved state is built as the part's own and left as saved, so compile's stamp matches the file after show
…pelled fields, and a BigInt typography value held in a const is named
…se and settings in key, swapped, quoted and after-value forms, settings in the name, two bases, like as base, --theme as an option, a theme with a setting pasted on, value lists, a pasted command, undo by value in the typed scope
…ing put in it is read as its string, and a query on any module a starter's theme imports is refused (FINAL-43 F43-01/02)
…the way, is that share less of a line or fill; a reference named with its status or variant is that look of it, never the part changed; a base theme's own look for a variant is what it shows, and a see-through fill gives the next paint it draws
… a twin in other letters is the setting listed twice; N6: a field written several ways is read once with a note; R02 N1: an unread field is named; N9: a pasted entry without a value is read by its thing)
… the surface's scheme, listed once, and fixed in that scheme; no line where the part lets the surface's ground through and the page needs the other color
…lor when thicker; possessives name the owner's own element (its state kept, by the owner's first word too), the parts themselves before a thing they have, and say an element the owner lacks; a height in a decimal unit is that height, a negative one refused
…, so pairs are light-dark() and Core's media-surface rules are written, and one with extends and no tokens builds over its base; a spread of a package theme is refused naming extends; a stylesheet the source imports is named as one the outputs do not carry; a theme module's changes to console, a built-in global or the file mode mask are put back)
… that place draws it as; two states said of one part are both at once; a menu's separator is a divider too; a variant's token refusal keeps the state and mode

- One reader (elementOfPlace) for "<element> in|of <place>" and "<place>'s <element>", each place tried first first: the place itself by the last words of its name (the indicator in checkboxes), a part named after it by its rest or one word of it (the indicator in selects), a lexicon phrase said owner first (the knob of switches: the switch knob), a part the part data draws inside it by the last words of its name (the item in the context menu: dropdown-menu-item), a token group the place holds parts of (the buttons' icons), or the one inside whose own state the words name (today's date in the calendar). A plain part drawn everywhere (a toast's button) is noted; "of" names an element only by name or in a state; "on" stays a look of the part. A state read from the part, never said, is let go when the element has none. Replaces the earlier element-of-a-place block.
- "The checked and disabled checkbox": the clause split and the list grammar keep two states said of one singular part together; how writes them in the part's own order. "highlighted" is a state word.
- set: a doc state Core marks with an ARIA attribute (isPressed, aria-pressed) goes with an interaction (isPressed+hover); a typed ARIA prefix names a doc state (aria-pressed on a toggle button is isPressed).
- Part data: what an untargeted element draws is each part its parent element carries, the line too (a dropdown menu's separator is a divider). PART_DATA_VERSION 24.
- checkTokenOn: the variant refusal's lines keep the setting's state and mode.
- Tests: parts71 writes the tab's states in its own order; new theme-F-elements.
…its fill, and a possessive paint is that paint; a word for a look with no fill names the variant drawn with none; a role the part lacks names which parts so set refuses it by name; see-through by a share on a part and fainter text theme-wide; a focus ring of one variant stays on it; two excepts joined by and keep each
…e it cannot be kept to (the dialog's buttons, the menu separators) and says why, answering on the place's own element when Core draws one; the controls N tall moves every control height together
… paint in "the color of the links"; a part's fainter or muted text, said with an owner's possessive or a place, is its secondary text, and a fainter word before the text beside another way says which text; a part in one state joined by and to a second state carrying the ask is in both at once
…ken the container holds for it, else nothing, saying why; a card's title is the heading in it

- One mechanism, C's placeStrict, now set by every place reader: the element reader (a plain part drawn in the place, "the close button of toasts"), the possessive and divider blocks, the generic place reader ("buttons inside cards", when the place draws the part), and a title Core draws as a heading inside a part ("the card title"). The answer keeps only options whose every step is a token the part reads, unscoped or on a part the container draws, never one the container's own element reads and never under a part's variant; those are set on the container. A part's own setting would reach every one: nothing is written, and the answer says why (for a title, that Core has no title part). The container's own element (the top nav's heading) is kept to it already.
- "headings in cards bigger", "the card title bigger", "sheet titles bigger": the heading size tokens on the card or sheet. "buttons inside cards red/smaller", "the button groups' dividers", "the tabs' divider", "the header in cards gray", "the toggle group's buttons": nothing written.
- A text role ("the muted text in cards") is never a whole-theme token family; a part named after the place's own word (the menu item of the dropdown) is the place's.
- Tests: theme-F-elements (toast close button text), theme-parts64 (sheet titles answered), c-final43b (toggle group's buttons write nothing, agreed with C); new theme-F-scoped.
…fault export shaped as a doc) is refused as a doc, naming the theme source beside it, and nothing is written
…ine and names the every-calendar line; a CSS property with no --on and a part label in its value offers it on that part

- how: an element whose state only another component's part takes, drawn in the layer the place opens ("the today date in the date picker"), is refused as "DateInput's calendar is the plain Calendar, drawn in the layer DateInput opens: calendar-day there is every Calendar's, so a change there reaches every calendar; nothing is written", naming --on calendar-day --state today as what changes every calendar's today day (said, never offered as a step).
- set: background-color 'card: #eeeeee' with no --on offers set <theme> background-color '#eeeeee' --on card first, for a label naming a part or group.
- Tests in theme-F-elements.
…t itself before the theme's own

- tokenSetOn(part, token, mode): the last setting of that token on the part or a group it is in, with no variant or state, for that mode (or both). partPropNow and the value-question readers (census values, any read, focus ring, surfaces) resolve tokens through it before the theme's value, so "how thick are dividers" after --border-width 3px --on divider is 3px, and "how round are the cards now?" after --radius-container 20px --on card is 20px; another part keeps the theme's own.
- New theme-F-values.
…ted twice; a top-level base is the base (FINAL-44 R01 N1, N5)
…d the base word as the base; the name typed as an option is that name
@vercel

vercel Bot commented Nov 16, 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 16, 2026 6:10am UTC

Request Review

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

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 16, 2026, 6:21 AM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 9859606

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 58b49d7

@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. An engineering owner's /approve-spec for this head settles the direction of the editor round and the theme build changes; four fixes remain.

Blocking:

  • build-stable-L-final43.test.mjs F43-08 and F43-09 import @astryxdesign/theme-neutral, whose dist/ CI's test-node never builds (it builds only Core), so both fail there with "Cannot find module …/theme-neutral/dist/source.cjs"; give the fixture its own small base-theme package, or skip when the theme is unbuilt.
  • The shared writtenString reader also makes stable theme build --watch, the built module's carried imports, doctor's shipped-import check and template copy follow template-literal imports, but its only release note is [experimental] and names the starter app, which the release record (FR22) does not allow for stable commands; add a [fix] changeset that names them, or keep that reading to the starter app.
  • .changeset/experimental-theme-how-c-places.md says "the menu separators thicker" now writes nothing, but this head writes --border-width 2px --on dropdown-menu-divider; drop that example or say where it writes.
  • The description lists as this round's fixes readings that main already has ("3 times as soft", "half as small", "exactly 36px", the two keep and except examples, an unknown word between a part and the change, and the light-dark pair warning); narrow those lines to what this round adds.

Also worth taking: _edit.mjs:5480-5483 leaves meant's comment and type above scopeAsRead, which repeats meant's parsing, and three menu-separator tests now accept either answer.

Claims and files checked

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

  • Claim: theme build warns typography values wherever written, weights no browser reads and number keys that are no level, and both tools read a level as Core does. Verified: the typography build and editor tests pass.
  • Claim: a number weight is named a type mismatch. Verified: the typography build test and the updated editor test pass.
  • Claim: the date picker's today refusal names the every-calendar line, and a labelled value offers that part. Verified: the elements test passes.
  • Claim: an element named in, of or after a part is the part that place draws; menu separators take the menu's own divider. Verified: the elements test passes, and a probe writes on the menu's divider.
  • Claim: a part kept to its container writes a container token or nothing. Verified: the scoped test passes.
  • Claim: a value question reads a token set on the part first. Verified: the values test passes.
  • Claim: the starter refuses template-literal and query imports. Verified by the starter test; the same reader also reaches stable commands (second blocking point).
  • Claim: media-surface contrast is measured in the surface's scheme, listed once, with no cycling line. Verified: the media-scheme test passes.
  • Claims: new reads keys, swapped and quoted pairs, settings in the name and the name as an option; a pasted command is read; an undo by value leads with the typed scope. Verified: both input-reading tests pass.
  • Claims: possessives, size-named heights, decimal and negative heights, later shadows and corners, radio and checkbox borders. Verified: both FINAL-43 how tests pass.
  • Claim: "the menu separators thicker" now writes nothing. False: it writes --border-width 2px on the menu's divider (third blocking point).
  • Claims: unknown word held by a place; leftovers; shares, references, base looks; text parts like filled parts, transparent variants, missing roles, see-through shares, focus rings, two excepts. Verified: their tests pass.
  • Claims: saved twins in other letters, fields written twice, unread fields, value-less saved entries, typed property case, top-level base, + states, saved state spellings after show, glued var(). Verified: their tests pass.
  • Claims: plain-object themes resolve, extends with no tokens builds, a package spread is refused naming extends, an imported stylesheet is warned, globals and umask are restored. Verified once the neutral theme is built; two of these tests fail in CI's setup (first blocking point).
  • Claim: a doc module is refused with ERR_THEME_LOAD, naming the source beside it. Verified: the doc-module test passes.
  • Claim: a theme imported and then exported is read for misspelled fields, and a BigInt in a const is named. Verified: the updated values test passes.
  • Description: "3 times as soft", "half as small", "exactly 36px", the two keep and except examples, an unknown word between a part and the change, and the light-dark pair warning. False as this round's fixes: they already ship on main (fourth blocking point).
  • Description: the full CLI suite passes. Not reproduced: two new build tests fail without the neutral theme built, as in CI.
  • Description: structure, changesets and lint are clean. The lint check passes at this head; the typecheck was not run here.
  • Description: the held-out how score. Not verifiable from the repository.
  • Description: test times come in a later push. Already in: every new test file has a recorded time.
  • .changeset/: experimental-theme-I-starter-query-literal.md: labelled [experimental] for a change that reaches stable commands (blocking); experimental-theme-how-c-places.md: false example (blocking); b-typography-values-reach.md, b-typography-weight-type.md, experimental-theme-F-datepicker-reason.md, experimental-theme-F-elements.md, experimental-theme-F-scoped.md, experimental-theme-F-values.md, experimental-theme-a-media-scheme.md, experimental-theme-g2-final43.md, experimental-theme-g2-final44.md, experimental-theme-how-c-final43.md, experimental-theme-how-c-final43b.md, experimental-theme-how-c-unknown-place.md, experimental-theme-how-h-leftovers44.md, experimental-theme-how-round43-readers.md, experimental-theme-how-round43b-readers.md, experimental-theme-n-f43.md, experimental-theme-n-f44.md, experimental-theme-state-pieces.md, experimental-theme-var-glued.md, theme-build-L-final43.md, theme-build-doc-not-theme.md, theme-build-k43-values.md: clear
  • packages/cli/api/theme-edit/: _edit.mjs: stray comment and repeated scope parsing; _settings.mjs: savedStateRead doc sentence; theme-how-c-chaos43.test.mjs: accepts either answer; theme-how-c-final42.test.mjs: accepts either answer; theme-how-c-places.test.mjs: accepts either answer; _check.mjs, _compiler.mjs, _css.mjs, _how-question.mjs, _normal.mjs, _parts.mjs, _preview-app.mjs, theme-F-elements.test.mjs, theme-F-scoped.test.mjs, theme-F-values.test.mjs, theme-I-starter-types.test.mjs, theme-a-media-scheme.test.mjs, theme-g2-final43.test.mjs, theme-g2-final44.test.mjs, theme-how-c-final43.test.mjs, theme-how-c-final43b.test.mjs, theme-how-c-unknown-place.test.mjs, theme-hunt-h-leftovers44.test.mjs, theme-hunt-h-round42.test.mjs, theme-hunt-h-round43.test.mjs, theme-hunt-h-round43b.test.mjs, theme-hunt111.test.mjs, theme-hunt241.test.mjs, theme-k43-values.test.mjs, theme-n-f43.test.mjs, theme-n-f44.test.mjs, theme-parts64.test.mjs, theme-parts71.test.mjs, theme-saved-name-spellings.test.mjs, theme-state-pieces.test.mjs, theme-typography-family.test.mjs, theme-var-glued.test.mjs: clear
  • packages/cli/api/theme/build/: build-stable-L-doc-not-theme.test.mjs: unused exists, THEME, NEUTRAL; build-stable-L-final43.test.mjs: F43-08 and F43-09 fail in CI setup (blocking); unused exists; build-stable-typography-values.test.mjs, build.mjs, icon-imports.mjs, input-fields.mjs, null-values.mjs, typography-values.mjs: clear
  • packages/cli/clients/cli/commands/experimental/: theme.mjs: clear
  • packages/cli/clients/cli/lib/: json-shim.mjs: clear
  • packages/cli/foundation/discovery/: template-needs.mjs: reaches stable commands without a release note (blocking); template-needs.test.mjs: clear
  • packages/cli/foundation/fs/: module-loader.mjs: clear
  • packages/cli/foundation/render/: embedded-imports.mjs: reaches stable commands without a release note (blocking); embedded-imports.test.mjs: clear
  • packages/cli/foundation/text/: written-string.mjs: reaches stable commands without a release note (blocking)
  • scripts/: vitest-node-durations.json: clear

Automated review (maintainer link)

Comment thread packages/cli/api/theme-edit/_edit.mjs Resolved
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · ee73928

Storybook · Sandbox · built from this PR's head

Current run: The current CI run concluded cancelled. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6f58d1b

@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 latest push merges main and leaves this pull request's own changes as they were, so the four fixes from the last review remain; an engineering owner's /approve-spec for this head settles the direction of the editor round and the theme build changes.

Blocking:

  • build-stable-L-final43.test.mjs F43-08 and F43-09 import @astryxdesign/theme-neutral, whose dist/ CI's test-node never builds (it builds only Core), so both fail there with "Cannot find module …/theme-neutral/dist/source.cjs"; give the fixture its own small base-theme package, or skip when the theme is unbuilt.
  • The shared writtenString reader also makes stable theme build --watch, the built module's carried imports, doctor's shipped-import check and template copy follow template-literal imports, but its only release note is [experimental] and names the starter app, which the release record (FR22) does not allow for stable commands; add a [fix] changeset that names them, or keep that reading to the starter app.
  • .changeset/experimental-theme-how-c-places.md says "the menu separators thicker" now writes nothing, but this head writes --border-width 2px --on dropdown-menu-divider; drop that example or say where it writes.
  • The description lists as this round's fixes readings that main already has ("3 times as soft", "half as small", "exactly 36px", the two keep and except examples, an unknown word between a part and the change, and the light-dark pair warning); narrow those lines to what this round adds.

Also worth taking: _edit.mjs:5480-5483 leaves meant's comment and type above scopeAsRead, which repeats meant's parsing, and three menu-separator tests accept either answer.

Claims and files checked

Review mode: incremental; reason: none

  • Since the last review: one merge of main with no conflict resolution; this pull request's own diff is unchanged, and the tests main added beside its files pass on the merged head.
  • Claim: theme build warns typography values wherever written, weights no browser reads and number keys that are no level, and both tools read a level as Core does. Verified: the typography build and editor tests pass.
  • Claim: a number weight is named a type mismatch. Verified: the typography build test and the updated editor test pass.
  • Claim: the date picker's today refusal names the every-calendar line, and a labelled value offers that part. Verified: the elements test passes.
  • Claim: an element named in, of or after a part is the part that place draws; menu separators take the menu's own divider. Verified: the elements test passes, and a probe writes on the menu's divider.
  • Claim: a part kept to its container writes a container token or nothing. Verified: the scoped test passes.
  • Claim: a value question reads a token set on the part first. Verified: the values test passes.
  • Claim: the starter refuses template-literal and query imports. Verified by the starter test; the same reader also reaches stable commands (second blocking point).
  • Claim: media-surface contrast is measured in the surface's scheme, listed once, with no cycling line. Verified: the media-scheme test passes.
  • Claims: new reads keys, swapped and quoted pairs, settings in the name and the name as an option; a pasted command is read; an undo by value leads with the typed scope. Verified: both input-reading tests pass.
  • Claims: possessives, size-named heights, decimal and negative heights, later shadows and corners, radio and checkbox borders. Verified: both FINAL-43 how tests pass.
  • Claim: "the menu separators thicker" now writes nothing. False: it writes --border-width 2px on the menu's divider (third blocking point).
  • Claims: unknown word held by a place; leftovers; shares, references, base looks; text parts like filled parts, transparent variants, missing roles, see-through shares, focus rings, two excepts. Verified: their tests pass.
  • Claims: saved twins in other letters, fields written twice, unread fields, value-less saved entries, typed property case, top-level base, + states, saved state spellings after show, glued var(). Verified: their tests pass.
  • Claims: plain-object themes resolve, extends with no tokens builds, a package spread is refused naming extends, an imported stylesheet is warned, globals and umask are restored. Verified once the neutral theme is built; two of these tests fail in CI's setup (first blocking point).
  • Claim: a doc module is refused with ERR_THEME_LOAD, naming the source beside it. Verified: the doc-module test passes.
  • Claim: a theme imported and then exported is read for misspelled fields, and a BigInt in a const is named. Verified: the updated values test passes.
  • Description: "3 times as soft", "half as small", "exactly 36px", the two keep and except examples, an unknown word between a part and the change, and the light-dark pair warning. False as this round's fixes: they already ship on main (fourth blocking point).
  • Description: the full CLI suite passes. Not reproduced: two new build tests fail without the neutral theme built, as in CI.
  • Description: structure, changesets and lint are clean. The lint check passes at this head; the typecheck was not run here.
  • Description: the held-out how score. Not verifiable from the repository.
  • Description: test times come in a later push. Already in: every new test file has a recorded time.
  • .changeset/: experimental-theme-I-starter-query-literal.md: labelled [experimental] for a change that reaches stable commands (blocking); experimental-theme-how-c-places.md: false example (blocking); b-typography-values-reach.md, b-typography-weight-type.md, experimental-theme-F-datepicker-reason.md, experimental-theme-F-elements.md, experimental-theme-F-scoped.md, experimental-theme-F-values.md, experimental-theme-a-media-scheme.md, experimental-theme-g2-final43.md, experimental-theme-g2-final44.md, experimental-theme-how-c-final43.md, experimental-theme-how-c-final43b.md, experimental-theme-how-c-unknown-place.md, experimental-theme-how-h-leftovers44.md, experimental-theme-how-round43-readers.md, experimental-theme-how-round43b-readers.md, experimental-theme-n-f43.md, experimental-theme-n-f44.md, experimental-theme-state-pieces.md, experimental-theme-var-glued.md, theme-build-L-final43.md, theme-build-doc-not-theme.md, theme-build-k43-values.md: clear
  • packages/cli/api/theme-edit/: _edit.mjs: stray comment and repeated scope parsing; _settings.mjs: savedStateRead doc sentence; theme-how-c-chaos43.test.mjs: accepts either answer; theme-how-c-final42.test.mjs: accepts either answer; theme-how-c-places.test.mjs: accepts either answer; _preview-app.mjs: clear, and its merge with main's page-ranking change is clean; _check.mjs, _compiler.mjs, _css.mjs, _how-question.mjs, _normal.mjs, _parts.mjs, theme-F-elements.test.mjs, theme-F-scoped.test.mjs, theme-F-values.test.mjs, theme-I-starter-types.test.mjs, theme-a-media-scheme.test.mjs, theme-g2-final43.test.mjs, theme-g2-final44.test.mjs, theme-how-c-final43.test.mjs, theme-how-c-final43b.test.mjs, theme-how-c-unknown-place.test.mjs, theme-hunt-h-leftovers44.test.mjs, theme-hunt-h-round42.test.mjs, theme-hunt-h-round43.test.mjs, theme-hunt-h-round43b.test.mjs, theme-hunt111.test.mjs, theme-hunt241.test.mjs, theme-k43-values.test.mjs, theme-n-f43.test.mjs, theme-n-f44.test.mjs, theme-parts64.test.mjs, theme-parts71.test.mjs, theme-saved-name-spellings.test.mjs, theme-state-pieces.test.mjs, theme-typography-family.test.mjs, theme-var-glued.test.mjs: clear
  • packages/cli/api/theme/build/: build-stable-L-doc-not-theme.test.mjs: unused exists, THEME, NEUTRAL; build-stable-L-final43.test.mjs: F43-08 and F43-09 fail in CI setup (blocking); unused exists; build-stable-typography-values.test.mjs, build.mjs, icon-imports.mjs, input-fields.mjs, null-values.mjs, typography-values.mjs: clear
  • packages/cli/clients/cli/commands/experimental/: theme.mjs: clear
  • packages/cli/clients/cli/lib/: json-shim.mjs: clear
  • packages/cli/foundation/discovery/: template-needs.mjs: reaches stable commands without a release note (blocking); template-needs.test.mjs: clear
  • packages/cli/foundation/fs/: module-loader.mjs: clear
  • packages/cli/foundation/render/: embedded-imports.mjs: reaches stable commands without a release note (blocking); embedded-imports.test.mjs: clear
  • packages/cli/foundation/text/: written-string.mjs: reaches stable commands without a release note (blocking)
  • scripts/: vitest-node-durations.json: clear, and its merge with main's entries is clean

Automated review (maintainer link)

…nds that read them; the places note drops the menu-separator example
…ckage of its own

F43-08/F43-09 imported @astryxdesign/theme-neutral, whose dist CI's node
tests never build. The fixture now installs its own small base-theme package
(a defineTheme() result with tokens and an icon registry, needing only Core)
in the temp project, so both keep their coverage and run anywhere.
…der, with its comment and type back on meant
… own divider (--on dropdown-menu-divider), and nothing for a plain part a place cannot hold
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d44b2b5

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec f4b8251

@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. This push fixes every point from the last review, and an engineering owner's /approve-spec for this head settles the direction; two text fixes remain.

Blocking:

  • .changeset/theme-build-template-literal-imports.md says a template-literal import is read "wherever the CLI reads a module's imports", but integration add-theme's package list, doctor's theme and built-module checks and swizzle's module graph still read quoted strings only, so replace that phrase with "by these commands:" and keep the four commands it lists.
  • The description lists "selector border red" turning every variant while keeping the error, warning and focus colors as this round's fix, but main already answers it with the same lines (its theme-how-c-final42b.test.mjs asserts it, and theme-how-c-final43.test.mjs's selector case passes against main), so drop that sentence or name this round's keep fixes instead (two excepts joined by "and", one variant's focus ring).

Also worth taking: Miss: the "shadows softer" case in theme-how-c-final43.test.mjs passes on main, which drops the shadows, because every over an empty slice is true; and the theme-how-c-places.test.mjs header still says the menu separators write nothing.

Claims and files checked

Review mode: incremental; reason: none

  • Since the last review: five commits that add the [fix] note, fix the places note, give the two build tests their own base-theme package, merge the undo refusal's two scope readers, and pin the menu-separator tests; they pass with only Core built.
  • Changeset: template-literal imports are a fix for stable commands. False in its scope ("wherever"; first blocking point); the four commands it names (theme build --watch, the built module's carried imports, doctor's shipped-import check, template's install line) are verified at their call sites.
  • Changeset: the starter refuses template-literal and query imports. Verified: the starter test fails on main and passes here.
  • Changeset: an element in a place it cannot be kept to writes nothing, a place's own element is answered, and "the controls N tall" moves every height. Verified by its tests and by asking how on main and here.
  • Changeset: one size named moves only that height, a possessive owner's element, a later "shadows softer" or "corners rounder" is theme-wide. Verified by asking how on main and here; the shadows test itself also passes on main (non-blocking).
  • Changesets: radio and checkbox borders, possessives, decimal and negative heights; elements of a part, parts kept to a container, value questions, the date picker's today; an unknown word before a place; shares, references and base looks; text parts like filled parts, transparent variants, missing roles, focus rings, two excepts; leftovers. Verified: their tests fail on main and pass here.
  • Changesets: new, set, show and undo read typed input; saved twins, fields written twice, unread fields, value-less entries, a property in other letters, a top-level base; + states with spaces; glued var(). Verified: their tests fail on main and pass here.
  • Changeset: media-surface contrast in the surface's scheme. Verified: its test fails on main and passes here.
  • Changesets: plain-object themes through defineTheme, extends with no tokens, a refused package spread, an imported stylesheet warned, globals and umask restored; a doc module refused; misspelled fields through an imported-then-exported theme and a BigInt in a const; typography values wherever written, unreadable weights, number keys, a number weight as a type mismatch. Verified: their build tests fail on main and pass here with only Core built.
  • Description: elements of a place (the highlighted option, the knob, the tabs' indicator, the header cells, the dialog's close button, the menu's items, the menu's separators). Verified: main answers each on the wrong part or every part.
  • Description: an element with no part of its own, or one a place cannot keep, writes nothing and says why; headings and titles in a container go on the container. Verified; a title's color writes nothing and says why.
  • Description: an unknown word held by a place; shares in words or figures, decimal heights, one size's height, the controls N tall. Verified: main read the two shares the other way round and "2.5rem" as 5rem.
  • Description: references by the color they show, by look, a base's own look first; a value question reads the part's token first. Verified.
  • Description: "selector border red" keeps the status and focus colors as this round's fix. False: main already does it (second blocking point).
  • Description: reading what was typed, settings saved in other letters or twice, base as the base, glued var(), saved state spellings. Verified.
  • Description: build warnings for misspelled fields, typography values, weights and heading levels; doc modules; plain-object themes, spreads, stylesheets, globals; starter refusals; media-surface contrast. Verified; misspelled fields in a const or a spread were already warned on main, the import and re-export forms are new.
  • Description: the full CLI suite passes. Not reproduced here: the 33 changed test files pass with only Core built.
  • Description: structure, changesets and lint are clean. Verified for lint and typecheck, which pass at this head.
  • Description: the held-out how score. Not verifiable from the repository.
  • Description: test times come in a later push. Already in: every new test file has a recorded time.
  • .changeset/: theme-build-template-literal-imports.md: overclaims its scope (blocking); b-typography-values-reach.md, b-typography-weight-type.md, experimental-theme-F-datepicker-reason.md, experimental-theme-F-elements.md, experimental-theme-F-scoped.md, experimental-theme-F-values.md, experimental-theme-I-starter-query-literal.md, experimental-theme-a-media-scheme.md, experimental-theme-g2-final43.md, experimental-theme-g2-final44.md, experimental-theme-how-c-final43.md, experimental-theme-how-c-final43b.md, experimental-theme-how-c-places.md, experimental-theme-how-c-unknown-place.md, experimental-theme-how-h-leftovers44.md, experimental-theme-how-round43-readers.md, experimental-theme-how-round43b-readers.md, experimental-theme-n-f43.md, experimental-theme-n-f44.md, experimental-theme-state-pieces.md, experimental-theme-var-glued.md, theme-build-L-final43.md, theme-build-doc-not-theme.md, theme-build-k43-values.md: clear
  • packages/cli/api/theme-edit/: _settings.mjs: savedStateRead doc sentence; theme-how-c-final43.test.mjs: shadows case passes on main; theme-how-c-places.test.mjs: stale header; _edit.mjs: clear (the refactor keeps behavior); _check.mjs, _compiler.mjs, _css.mjs, _how-question.mjs, _normal.mjs, _parts.mjs, _preview-app.mjs, theme-F-elements.test.mjs, theme-F-scoped.test.mjs, theme-F-values.test.mjs, theme-I-starter-types.test.mjs, theme-a-media-scheme.test.mjs, theme-g2-final43.test.mjs, theme-g2-final44.test.mjs, theme-how-c-chaos43.test.mjs, theme-how-c-final42.test.mjs, theme-how-c-final43b.test.mjs, theme-how-c-unknown-place.test.mjs, theme-hunt-h-leftovers44.test.mjs, theme-hunt-h-round42.test.mjs, theme-hunt-h-round43.test.mjs, theme-hunt-h-round43b.test.mjs, theme-hunt111.test.mjs, theme-hunt241.test.mjs, theme-k43-values.test.mjs, theme-n-f43.test.mjs, theme-n-f44.test.mjs, theme-parts64.test.mjs, theme-parts71.test.mjs, theme-saved-name-spellings.test.mjs, theme-state-pieces.test.mjs, theme-typography-family.test.mjs, theme-var-glued.test.mjs: clear
  • packages/cli/api/theme/build/: build-stable-L-doc-not-theme.test.mjs: unused exists, THEME; build-stable-L-final43.test.mjs: unused exists; build-stable-typography-values.test.mjs, build.mjs, icon-imports.mjs, input-fields.mjs, null-values.mjs, typography-values.mjs: clear
  • packages/cli/clients/cli/: commands/experimental/theme.mjs, lib/json-shim.mjs: clear
  • packages/cli/foundation/: discovery/template-needs.mjs, discovery/template-needs.test.mjs, fs/module-loader.mjs, render/embedded-imports.mjs, render/embedded-imports.test.mjs, text/written-string.mjs: clear
  • scripts/: vitest-node-durations.json: clear

Automated review (maintainer link)

…laces header names the separators' divider; the template-literal note names its commands
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6125886

@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. This push fixes both points from the last review: the [fix] note for template-literal imports now names only the commands that read them, and the description no longer lists the selector-border keep that main already had; the softer-shadows test now fails without the fix, and the places test header matches its assertions. CI's test jobs have not run on this head yet, so the approval waits on them, and two optional tidy-ups are in the inline comments.

Claims and files checked

Review mode: incremental; reason: none

  • Since the last review: one commit rewords the [fix] note to "by these commands:", makes the softer-shadows test require at least one shadow line, and corrects the places test header. Verified: the shadows test now fails against main's code and passes here; prettier and eslint pass on the three files.
  • Changeset: template-literal imports are read by theme build --watch, the built theme module, doctor's shipped-import check and template's install line. Verified: each of those readers calls the shared string rule, and the import-reader tests fail on main and pass here.
  • Changeset: the starter app refuses template-literal and query imports it cannot type-check. Verified: the starter test fails on main and passes here.
  • Changesets: theme build builds a plain-object theme through defineTheme, builds extends with no tokens, refuses a package spread, warns an imported stylesheet, puts back console, built-in globals and the umask, and refuses a doc module. Verified: the build tests fail on main and pass here; building a plain-object pair writes light-dark() here where main writes a value the browser drops, and a doc module is refused here where main builds it.
  • Changesets: typography values warned wherever written, unreadable weights, number keys that are no level, heading levels read as Core reads them, a number weight named as a type mismatch; misspelled fields through an imported-then-exported theme, a BigInt in a const, boxed primitives. Verified: their tests fail on main and pass here.
  • Changesets: how reads elements of a place, parts kept to a container, value questions on the part first, the date picker's today, an unknown word before a place, one size's height, possessives, decimal heights, shares, references by look, base looks, text parts like filled parts, transparent variants, missing roles, one variant's focus ring, two excepts, and the leftovers. Verified: their tests fail on main and pass here, and asking how on main and here gives the answers they describe.
  • Changesets: new, set, show and undo read typed input; saved twins, fields written twice, unread fields, value-less entries, a property in other letters, a top-level base; + states with spaces; glued var(). Verified: their tests fail on main and pass here.
  • Changeset: contrast of a part on Core's media surface is measured in that surface's scheme. Verified: its test fails on main and passes here.
  • Description: elements of a place, elements with no part or no way to keep them, headings in a container, unknown words, amounts, references, keeps and value questions. Verified by the tests above and by asking how on main and here.
  • Description: reading what was typed, settings saved in other letters or twice, base as the base, glued var(), saved state spellings. Verified by the tests above.
  • Description: build warnings, doc modules, plain-object themes, spreads, stylesheets, built-ins and umask, starter refusals, media-surface contrast. Verified; misspelled fields in a const or a spread were already warned on main, and the import and re-export forms are new.
  • Description: the full CLI suite passes. Not reproduced here: the 33 changed test files pass.
  • Description: structure, changesets, tsc, eslint and prettier are clean. Lint passes in CI at this head; typecheck has not run there yet.
  • Description: the held-out how score. Not verifiable from the repository.
  • Description: recorded test times come in a later push. Already in: every new test file has a recorded time.
  • .changeset/: theme-build-template-literal-imports.md: clear (now names its four commands); b-typography-values-reach.md, b-typography-weight-type.md, experimental-theme-F-datepicker-reason.md, experimental-theme-F-elements.md, experimental-theme-F-scoped.md, experimental-theme-F-values.md, experimental-theme-I-starter-query-literal.md, experimental-theme-a-media-scheme.md, experimental-theme-g2-final43.md, experimental-theme-g2-final44.md, experimental-theme-how-c-final43.md, experimental-theme-how-c-final43b.md, experimental-theme-how-c-places.md, experimental-theme-how-c-unknown-place.md, experimental-theme-how-h-leftovers44.md, experimental-theme-how-round43-readers.md, experimental-theme-how-round43b-readers.md, experimental-theme-n-f43.md, experimental-theme-n-f44.md, experimental-theme-state-pieces.md, experimental-theme-var-glued.md, theme-build-L-final43.md, theme-build-doc-not-theme.md, theme-build-k43-values.md: clear
  • packages/cli/api/theme-edit/: _settings.mjs: savedStateRead JSDoc says null for a state that reads "as itself" (non-blocking); theme-how-c-final43.test.mjs: clear (the shadows case now needs shadow lines); theme-how-c-places.test.mjs: clear (header fixed); _check.mjs, _compiler.mjs, _css.mjs, _edit.mjs, _how-question.mjs, _normal.mjs, _parts.mjs, _preview-app.mjs, theme-F-elements.test.mjs, theme-F-scoped.test.mjs, theme-F-values.test.mjs, theme-I-starter-types.test.mjs, theme-a-media-scheme.test.mjs, theme-g2-final43.test.mjs, theme-g2-final44.test.mjs, theme-how-c-chaos43.test.mjs, theme-how-c-final42.test.mjs, theme-how-c-final43b.test.mjs, theme-how-c-unknown-place.test.mjs, theme-hunt-h-leftovers44.test.mjs, theme-hunt-h-round42.test.mjs, theme-hunt-h-round43.test.mjs, theme-hunt-h-round43b.test.mjs, theme-hunt111.test.mjs, theme-hunt241.test.mjs, theme-k43-values.test.mjs, theme-n-f43.test.mjs, theme-n-f44.test.mjs, theme-parts64.test.mjs, theme-parts71.test.mjs, theme-saved-name-spellings.test.mjs, theme-state-pieces.test.mjs, theme-typography-family.test.mjs, theme-var-glued.test.mjs: clear
  • packages/cli/api/theme/build/: build-stable-L-doc-not-theme.test.mjs: unused exists, THEME (non-blocking); build-stable-L-final43.test.mjs: unused exists (non-blocking); build-stable-typography-values.test.mjs, build.mjs, icon-imports.mjs, input-fields.mjs, null-values.mjs, typography-values.mjs: clear
  • packages/cli/clients/cli/: commands/experimental/theme.mjs, lib/json-shim.mjs: clear
  • packages/cli/foundation/: discovery/template-needs.mjs, discovery/template-needs.test.mjs, fs/module-loader.mjs, render/embedded-imports.mjs, render/embedded-imports.test.mjs, text/written-string.mjs: clear
  • scripts/: vitest-node-durations.json: clear

Automated review (maintainer link)

Comment on lines +10697 to +10698
* `ispressed` is its isPressed), or null when it reads as no state of the
* part or as itself. The census half of the one state reader (the loader

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.

Non-blocking: savedStateRead returns read whenever every piece is one of the part's states, including when it equals the saved state, so "or as itself" is not what it does (readSavedStates skips that case itself). Drop "or as itself".

Comment on lines +60 to +62
const exists = rel => fs.existsSync(path.join(dir, rel));

const THEME = `export default {name: 'p', tokens: {'--color-accent': '#123456'}};\n`;

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.

Non-blocking: exists and THEME are declared here and never used; build-stable-L-final43.test.mjs:64 declares the same unused exists.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec ee73928

@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. This push adds only an empty commit that re-runs CI, so the code is the code of the last review, and every blocking point raised in earlier reviews is fixed; the changed tests also pass when this branch is merged with today's main. CI's first run on this head stopped with "CI is full" before any test job ran, so the approval waits on the re-run and the required checks it gives. Two optional tidy-ups remain in the earlier inline comments.

Claims and files checked

Review mode: incremental; reason: none

  • Since the last review: one empty commit that re-runs CI after main fixed its own search golden. Verified: its tree is identical to the last reviewed head.
  • Changeset: template-literal imports are read by theme build --watch, the built theme module, doctor's shipped-import check and template's install line. Verified: each of those readers calls the shared string rule, and the import-reader tests pass on a merge with main and fail on the base's code.
  • Changeset: the starter app refuses template-literal and query imports it cannot type-check. Verified: the starter test passes on the merge and fails on the base's code.
  • Changesets: theme build builds a plain-object theme through defineTheme, builds extends with no tokens, refuses a package spread, warns an imported stylesheet, puts back console, built-in globals and the umask, and refuses a doc module. Verified: the build tests pass on the merge, where main's defineTheme now refuses a plain-object base, and fail on the base's code.
  • Changesets: typography values warned wherever written, unreadable weights, number keys that are no level, heading levels read as Core reads them, a number weight named as a type mismatch; misspelled fields through an imported-then-exported theme, a BigInt in a const, boxed primitives. Verified: their tests pass on the merge and fail on the base's code.
  • Changesets: how reads elements of a place, parts kept to a container, value questions on the part first, the date picker's today, an unknown word before a place, one size's height, possessives, decimal heights, shares, references by look, base looks, text parts like filled parts, transparent variants, missing roles, one variant's focus ring, two excepts, and the leftovers. Verified: their tests pass on the merge and fail on the base's code, and asking how on the base and on this code gives the answers they describe.
  • Changesets: new, set, show and undo read typed input; saved twins, fields written twice, unread fields, value-less entries, a property in other letters, a top-level base; + states with spaces; glued var(). Verified: their tests pass on the merge and fail on the base's code.
  • Changeset: contrast of a part on Core's media surface is measured in that surface's scheme. Verified: its test passes on the merge and fails on the base's code.
  • Description: elements of a place, elements with no part or no way to keep them, headings in a container, unknown words, amounts, references, keeps and value questions. Verified by the tests above and by asking how on the base and on this code.
  • Description: reading what was typed, settings saved in other letters or twice, base as the base, glued var(), saved state spellings. Verified by the tests above.
  • Description: build warnings, doc modules, plain-object themes, spreads, stylesheets, built-ins and umask, starter refusals, media-surface contrast. Verified; misspelled fields in a const or a spread were already warned on the base, and the import and re-export forms are new.
  • Description: the full CLI suite passes on a main-based tree. Not reproduced: the changed suites and main's changed theme-build suites pass on a merge with main.
  • Description: structure, changesets, tsc, eslint and prettier are clean. Typecheck and lint passed in CI on the identical tree of the previous push; CI's typecheck has not run on this head.
  • Description: the held-out how score. Not verifiable from the repository.
  • Description: recorded test times come in a later push. Already in: every new test file has a recorded time.
  • .changeset/: b-typography-values-reach.md, b-typography-weight-type.md, experimental-theme-F-datepicker-reason.md, experimental-theme-F-elements.md, experimental-theme-F-scoped.md, experimental-theme-F-values.md, experimental-theme-I-starter-query-literal.md, experimental-theme-a-media-scheme.md, experimental-theme-g2-final43.md, experimental-theme-g2-final44.md, experimental-theme-how-c-final43.md, experimental-theme-how-c-final43b.md, experimental-theme-how-c-places.md, experimental-theme-how-c-unknown-place.md, experimental-theme-how-h-leftovers44.md, experimental-theme-how-round43-readers.md, experimental-theme-how-round43b-readers.md, experimental-theme-n-f43.md, experimental-theme-n-f44.md, experimental-theme-state-pieces.md, experimental-theme-var-glued.md, theme-build-L-final43.md, theme-build-doc-not-theme.md, theme-build-k43-values.md, theme-build-template-literal-imports.md: clear
  • packages/cli/api/theme-edit/: _settings.mjs: savedStateRead JSDoc says null for a state that reads "as itself" (non-blocking); _check.mjs, _compiler.mjs, _css.mjs, _edit.mjs, _how-question.mjs, _normal.mjs, _parts.mjs, _preview-app.mjs, theme-F-elements.test.mjs, theme-F-scoped.test.mjs, theme-F-values.test.mjs, theme-I-starter-types.test.mjs, theme-a-media-scheme.test.mjs, theme-g2-final43.test.mjs, theme-g2-final44.test.mjs, theme-how-c-chaos43.test.mjs, theme-how-c-final42.test.mjs, theme-how-c-final43.test.mjs, theme-how-c-final43b.test.mjs, theme-how-c-places.test.mjs, theme-how-c-unknown-place.test.mjs, theme-hunt-h-leftovers44.test.mjs, theme-hunt-h-round42.test.mjs, theme-hunt-h-round43.test.mjs, theme-hunt-h-round43b.test.mjs, theme-hunt111.test.mjs, theme-hunt241.test.mjs, theme-k43-values.test.mjs, theme-n-f43.test.mjs, theme-n-f44.test.mjs, theme-parts64.test.mjs, theme-parts71.test.mjs, theme-saved-name-spellings.test.mjs, theme-state-pieces.test.mjs, theme-typography-family.test.mjs, theme-var-glued.test.mjs: clear
  • packages/cli/api/theme/build/: build-stable-L-doc-not-theme.test.mjs: unused exists, THEME (non-blocking); build-stable-L-final43.test.mjs: unused exists (non-blocking); build-stable-typography-values.test.mjs, build.mjs, icon-imports.mjs, input-fields.mjs, null-values.mjs, typography-values.mjs: clear
  • packages/cli/clients/cli/: commands/experimental/theme.mjs, lib/json-shim.mjs: clear
  • packages/cli/foundation/: discovery/template-needs.mjs, discovery/template-needs.test.mjs, fs/module-loader.mjs, render/embedded-imports.mjs, render/embedded-imports.test.mjs, text/written-string.mjs: clear
  • scripts/: vitest-node-durations.json: clear

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 2005ab3 into main Nov 16, 2026
132 of 138 checks passed
@github-actions
github-actions Bot deleted the theme-followup-24 branch November 17, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — ee739282 Deployed Nov 16, 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