Skip to content

feat(cli): doctor warns about a local theme setting that does not show as written - #12408

Merged
josephfarina merged 1 commit into
mainfrom
doctor-theme-setting-effects
Nov 18, 2026
Merged

josephfarina merged 1 commit into
mainfrom
doctor-theme-setting-effects

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #12400 (theme build names each page-rule setting the browser does not show as written); review that first.

What users see

astryx doctor gains an eleventh app-theme check, Theme settings that show (theme-setting-effects). For each added local theme it reads the setting issues of the theme's build check:

  • warn when any setting does not show as written. The warning names every such setting with its theme and line, and the fix gives each one's fix. Example message: 1 setting does not show as written: ocean: components.tab.selected.borderTopColor (#dddddd) never shows: border: 1px solid transparent (components.tab.selected, from this theme) sets border-top-color through border later at the same weight (line 1). Example fix: ocean: write borderTopColor after border in components.tab.selected, or give its value in border. Themes whose check did not run are named too.
  • pass only when every local theme's build check ran and every setting shows (or there are no local themes);
  • info naming each local theme whose build check did not run, with the cause (it sets a private variable, it imports a package the project lacks, what the build said when it refused it, or the project's Core isn't installed), or when the local outputs could not be resolved.

It is never a failure: the theme still builds exactly as before.

Spec

AST-050 FR11 now lists the check as item 11, with its pass/warn/info rules. The verification row counts eleven faults, plus the never-ran case. DEC-11 records why it warns and never fails.

Writing rubric results

  • R1 narration: none; DEC-11 states what doctor does in the present tense.
  • R2 research in the record: none.
  • R3 evidence naming a change: none; the verification row names faults, not changes.
  • R4 rejected alternatives: one, inside DEC-11, one line.
  • R5 pull request or issue references remaining: none in the record.
  • R6 ruled open questions still listing options: none; Open questions stays "None".
  • R7 project status: none.

Review fixes

  1. The check passes only when every local theme returned a check receipt. The others are reported as info and never pass.
  2. The CHECKS catalog lists the new check, so a project with no theme record still reports it. The "ten" comments now say eleven.
  3. The location text comes from one formatter in setting-effects.mjs, which theme build uses too.
  4. The warning names every setting and every fix, with no cap, as FR11 item 11 says.
  5. Each local theme that wasn't checked is named with its cause, the same cause the freshness check names.
  6. The test file header says eleven checks.
  7. A local theme whose source loads but which the build refuses is named with what the build said (the first line of its refusal), not "its source did not load"; with several, the note reads "their build checks".

How

The freshness check already runs theme build --check on each added local theme. The check receipt carries settingIssues (#12400), so this check reuses that run with no extra build.

Conditions for approval

Doctor reports these as warnings, never failures, and a local theme whose check did not run is never a pass. Both are tested.

Test plan

  • CI=1 vitest run packages/cli/api/doctor (all pass), including:
    • a local theme whose tab.selected border resets its own borderTopColor warns with the setting and the fix, while freshness still passes;
    • a local theme whose build check is refused (a private variable, or an invalid field) gives info naming it and the cause, never pass;
    • the healthy fixture returns eleven passes;
    • the check cannot pass when theme discovery throws.
  • node scripts/check-cli-structure.mjs, the README check, prettier on the spec, eslint, and tsc -p packages/cli/tsconfig.strict.json are clean for the touched files.

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 18, 2026 7:15am UTC

Request Review

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

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 18, 2026, 7:22 AM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request): doctor reports a local theme setting that the browser does not show as written as a warning, never a failure. The warning names the setting's line, the rule that wins over it and a fix that can be run as written. The official themes report no issues, and tests cover each issue type.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 149268a

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

Needs an owner decision, and three fixes. astryx doctor gains an eleventh app-theme check, theme-setting-effects, but spec:AST-050 FR11 lists the ten checks doctor runs and does not name this one. Approval waits on an engineering owner amending FR11 (the check as item 11, its pass, warn and info rules, and the verification row that counts ten faults) or naming the record that governs it; an engineering owner records that decision by commenting /approve-spec <full head SHA>, and the author may do so as one.

Blocking fixes:

  • The check passes with "Every setting of the added local themes shows as written." for a local theme whose build check never ran (refused for a private variable, a source that throws, or a package the app lacks), because settingsChecked is set before the loop in theme-checks.mjs; pass only when every local theme returned a check receipt, and report the others as info.
  • The CHECKS catalog in theme-checks.mjs still lists ten app-theme checks, so the report for a project with no theme record leaves theme-setting-effects out; add its row and update the comments that say ten.
  • The location text <message> (<file>, line <n>) copies the expression the build uses for its own warning in build.mjs; put one formatter in setting-effects.mjs and call it from both.
Claims and files checked

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

  • Changeset: doctor warns when a setting of an added local theme does not show as written: verified (new test; doctor run on a theme whose border resets its top border colour).
  • Changeset: the three causes (a later shorthand, a more specific rule of the extended theme, cascade order): verified as the build's own kinds, which doctor passes through unchanged; only the shorthand cause is tested through doctor.
  • Changeset and description: the warning names the theme, the setting with its line, and the fix: verified (doctor output matches the description's example).
  • Changeset: it comes from the same check theme build runs: verified (the freshness check's build-check receipt).
  • Changeset and description: a warning, never a failure, and the theme builds as before: verified (doctor exits 1 only on a failed check and writes nothing).
  • Description: pass when every setting shows or there are no local themes: false as stated; the check also passes when a theme's build check never ran (first blocking fix).
  • Description: info when the local themes could not be checked (unresolved outputs, no Core): verified for those two states; refused, throwing and missing-package themes pass instead (first blocking fix).
  • Description: reuses the freshness run with no extra build: verified.
  • Description: 299 doctor tests pass, the healthy fixture returns eleven passes, and the check cannot pass when theme discovery throws: verified (299 passed; both tests pass).
  • Description: structure check, eslint and strict tsc clean for the touched files: verified for the structure check, eslint and tsc; the README check was not run.
  • .changeset/doctor-theme-settings-that-show.md: clear.
  • packages/cli/api/doctor/theme-checks.mjs: the three blocking fixes above; also, the fix list stops at five without saying more remain.
  • packages/cli/api/doctor/theme-checks.test.mjs: clear, apart from its header that still says ten checks and no test for a theme whose build check never ran.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec f8e8551

@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. astryx doctor's new theme-setting-effects check is now backed by spec:AST-050 FR11 item 11 and DEC-11, approved for this head, and the earlier false pass, missing catalog row and copied location text are fixed. Three things remain before approval:

  • Newly live check: the warning names only the first five settings and its fix only the first five fixes, then "; and N more" with no way to reach the rest (in text or --json), while FR11 item 11 says each setting is named with its line and fix; name them all, or point to the theme's theme build <source> --check and give the fix the same tail, or amend item 11 and approve it again.
  • The description changes spec:AST-050 but has no ## Writing rubric results section, which architecture:knowledge-contracts requires of a pull request that changes a record; add one line for each rubric item R1-R7.
  • The description says the "ten" comments now say eleven, but the header of packages/cli/api/doctor/theme-checks.test.mjs still says "all ten app-theme doctor checks"; update it.

One smaller point: when several themes are not checked, the info message reads "its build check did not run" and names no cause, while the freshness check names each cause.

Claims and files checked

Review mode: full; reason: history

  • Changeset: doctor warns about each local theme setting that does not show as written, naming the theme, the setting with its line, and the fix, from the build's own check: verified up to five settings (new warn test; probe with one setting); false past five (first blocking point).
  • Changeset: the three causes (a later shorthand, a more specific rule of the extended theme, cascade order): verified as the build's own kinds, passed through unchanged; only the shorthand cause is tested through doctor.
  • Changeset and description: a warning, never a failure, and the theme builds as before: verified (no failing branch; doctor exits 1 only on a failed check and writes nothing).
  • Description: the warning also names themes whose check did not run: verified.
  • Description: pass only when every local theme's build check ran and every setting shows, or there are no local themes: verified.
  • Description: info for a theme refused for a private variable, a source that throws, or a missing package, or when local outputs do not resolve: verified (new test for the refused case; probes for the other two).
  • Description: FR11 lists the check as item 11 with its rules, the verification row counts eleven faults plus the never-ran case, and DEC-11 records why it warns: verified.
  • Description review fix 1 (pass only on a check receipt): verified.
  • Description review fix 2 (the catalog lists the new check; the "ten" comments say eleven): catalog verified; false for the test file header (third blocking point).
  • Description review fix 3 (one location formatter shared with theme build): verified.
  • Description: reuses the freshness check's build run with no extra build: verified.
  • Description conditions for approval (warnings never failures; a never-ran theme never passes; both tested): verified.
  • Test plan: the doctor tests all pass: verified (300 passed); eleven passes for the healthy fixture and no pass when discovery throws: verified; structure check, eslint and strict tsc clean for the touched files: verified; prettier on the spec: verified; the README check: not run.
  • .changeset/doctor-theme-settings-that-show.md: clear.
  • docs/specs/AST-050-app-themes/spec.md: approved at this head; writing rubric results missing from the description (second blocking point).
  • packages/cli/api/doctor/theme-checks.mjs: the five-setting cap (first blocking point) and the info wording note.
  • packages/cli/api/doctor/theme-checks.test.mjs: the header still says ten (third blocking point).

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the doctor-theme-setting-effects branch from f8e8551 to 5b04c5e Compare November 17, 2026 21:55
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 5b04c5e

@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. astryx doctor's new theme-setting-effects check now names every hidden setting with its line and fix, backed by spec:AST-050 FR11 item 11 and DEC-11 as approved for this head, and the earlier cap, rubric and test-header points are fixed. One thing remains before approval:

  • A local theme whose source loads but that the build refuses (for example motion: {fast: 100}, refused as invalid) is reported as "its source did not load" (packages/cli/api/doctor/theme-checks.mjs:1727-1732) while theme-local-builds says its outputs are missing or stale, so the description's "the same cause the freshness check names" does not hold; name what the build said (or point to theme-local-builds) and add a test for that branch.

One smaller point: with several themes not checked, the note reads "its build check did not run"; "their" reads correctly for more than one.

Claims and files checked

Review mode: full; reason: history

  • Changeset: doctor warns about each local theme setting that does not show as written, naming the theme, the setting with its line and the fix, from the build's own check: verified (warn test; a run with six such settings names all six with six fixes).
  • Changeset: the causes it lists (a later shorthand, a more specific rule of the extended theme, cascade order): verified as the build's own issue kinds, passed through unchanged; only the shorthand case is tested through doctor.
  • Changeset and description: a warning, never a failure, and the theme builds as before: verified (no failing branch; doctor exits 0 with the warning).
  • Description: the example message and fix: verified (doctor output and the warn test).
  • Description: themes whose check did not run are also named in the warning: verified.
  • Description: pass only when every local theme's build check ran and every setting shows, or when there are no local themes: verified.
  • Description: info naming each unchecked theme with its cause (private variable, missing package, source did not load, Core not installed), or when local outputs do not resolve: verified, except that "source did not load" is shown for a build refusal of a source that loaded (the blocking point).
  • Description: FR11 item 11, the verification row with eleven faults plus the never-ran case, and DEC-11: verified.
  • Description: writing rubric results R1-R7: verified against the added record text.
  • Review fix 1 (pass only on a check receipt): verified.
  • Review fix 2 (catalog row; the comments now say eleven): verified.
  • Review fix 3 (one location formatter shared with theme build): verified.
  • Review fix 4 (every setting and every fix, no cap): verified.
  • Review fix 5 (each unchecked theme named with the freshness check's cause): false for a build refusal (the blocking point).
  • Review fix 6 (the test file header says eleven): verified.
  • How: reuses the freshness check's build run with no extra build: verified.
  • Conditions for approval (warnings never failures; an unchecked theme never passes; both tested): verified.
  • Test plan: the doctor tests all pass: verified (300 passed); the listed cases exist and pass: verified; the CLI structure check, the README check, eslint and strict tsc for the touched files: verified; prettier on the spec: verified.
  • .changeset/doctor-theme-settings-that-show.md: clear.
  • docs/specs/AST-050-app-themes/spec.md: clear (approved for this head).
  • packages/cli/api/doctor/theme-checks.mjs: the cause label (the blocking point) and the "its" wording note.
  • packages/cli/api/doctor/theme-checks.test.mjs: clear; no test covers the build-refusal branch (part of the blocking point).

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the theme-build-setting-effects branch from fd88bd7 to 7d981a5 Compare November 17, 2026 23:11
@josephfarina
josephfarina force-pushed the doctor-theme-setting-effects branch from 5b04c5e to a2e1dd2 Compare November 17, 2026 23:11
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec a2e1dd2

@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. astryx doctor's new theme-setting-effects check names every local theme setting that does not show as written, with its line and fix, never fails the run, and names each local theme it could not check with the cause, as spec:AST-050 FR11 item 11 and DEC-11 (approved for this head) describe; the earlier build-refusal label is fixed and tested. CI has not run on this head yet because this pull request targets the branch of #12400, so it lands only after #12400 and once CI passes.

One optional point: the comment above the not-checked list in theme-checks.mjs still says each cause is the one the freshness check names, which no longer holds for a refused source.

Claims and files checked

Review mode: full; reason: history

  • Changeset: doctor warns about each local theme setting that does not show as written, naming the theme, the setting with its line and the fix, from the build's own check: verified (warn test; six hidden settings in one block are all named, with six fixes).
  • Changeset: the causes it lists (a later shorthand, a more specific rule of the extended theme, cascade order): verified as the build's own issue kinds, passed through unchanged; doctor's tests run the shorthand case.
  • Changeset and description: a warning, never a failure, and the theme builds as before: verified (no failing branch; doctor and its JSON output exit 0 with only this warning).
  • Description: an eleventh app-theme check with this id and label: verified (catalog row and entry).
  • Description: the example message and fix: verified (doctor prints them exactly).
  • Description: themes whose check did not run are also named in the warning: verified.
  • Description: pass only when every local theme's build check ran and every setting shows, or when there are no local themes: verified.
  • Description: info naming each unchecked theme with its cause (a private variable, a missing package, what the build said, Core not installed), or when local outputs do not resolve: verified (doctor runs for the first three; the Core case by reading the code).
  • Description: FR11 item 11, the verification row with eleven faults plus the never-ran case, and DEC-11: verified.
  • Description: writing rubric results R1-R7: verified against the added record text.
  • Review fixes 1-4 and 6 (pass only on a check receipt; the catalog row and the "eleven" comments; one location formatter shared with theme build; every setting and fix with no cap; the test file header): verified.
  • Review fix 5 (each unchecked theme named with its cause, the freshness check's): verified for a private variable, a missing package and no Core; for a refused source fix 7 applies instead.
  • Review fix 7 (a refused source is named with the first line of the build's refusal; "their build checks" for several): verified (new test; doctor run with two themes not checked).
  • How: reuses the freshness check's build run with no extra build: verified.
  • Conditions for approval (warnings never failures; an unchecked theme never passes; both tested): verified.
  • Test plan: the doctor tests pass (301 passed) and the listed cases exist; the CLI structure check, the README check, eslint, strict tsc for the touched files and prettier on the spec: verified.
  • .changeset/doctor-theme-settings-that-show.md: clear.
  • docs/specs/AST-050-app-themes/spec.md: clear (approved for this head).
  • packages/cli/api/doctor/theme-checks.mjs: one optional comment wording note.
  • packages/cli/api/doctor/theme-checks.test.mjs: clear.

Automated review (maintainer link)

Comment on lines +1819 to +1820
// Each local theme whose build check did not run, with why (the cause
// the freshness check names).

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: for a refused source the freshness check says "Local theme outputs are missing or stale", while this list names the build's refusal, so "the cause the freshness check names" no longer holds. Suggest: // Each local theme whose build check did not run, with why.

@josephfarina
josephfarina force-pushed the theme-build-setting-effects branch from 7d981a5 to 8855da3 Compare November 18, 2026 00:36
@josephfarina
josephfarina force-pushed the doctor-theme-setting-effects branch from a2e1dd2 to 6c75ad8 Compare November 18, 2026 00:36
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6c75ad8

@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. astryx doctor's new theme-setting-effects check names every local theme setting that does not show as written, with its line and fix, never fails the run, and names each local theme it could not check with the cause, as spec:AST-050 FR11 item 11 and DEC-11 (approved for this head) describe. The rebase onto the updated #12400 branch leaves this pull request's own changes identical, and the doctor tests still pass on it. CI has not run on this head because this pull request targets the branch of #12400, so it lands only after #12400 and once CI passes.

One optional point: the comment above the not-checked list in theme-checks.mjs still says each cause is the one the freshness check names, which no longer holds for a refused source.

Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset: doctor warns about each local theme setting that does not show as written, naming the theme, the setting with its line and the fix, from the build's own check: verified (warn test; six hidden settings in one block are all named, with six fixes).
  • Changeset: the causes it lists (a later shorthand, a more specific rule of the extended theme, cascade order): verified as the build's own issue kinds, passed through unchanged; doctor's tests run the shorthand case.
  • Changeset and description: a warning, never a failure, and the theme builds as before: verified (no failing branch; doctor and its JSON output exit 0 with only this warning).
  • Description: an eleventh app-theme check with this id and label: verified (catalog row and entry).
  • Description: the example message and fix: verified (reproduced exactly on this head).
  • Description: themes whose check did not run are also named in the warning: verified.
  • Description: pass only when every local theme's build check ran and every setting shows, or when there are no local themes: verified.
  • Description: info naming each unchecked theme with its cause (a private variable, a missing package, what the build said, Core not installed), or when local outputs do not resolve: verified (doctor runs for the first three; the Core case by reading the code).
  • Description: FR11 item 11, the verification row with eleven faults plus the never-ran case, and DEC-11: verified.
  • Description: writing rubric results R1-R7: verified against the added record text.
  • Review fixes 1-4 and 6 (pass only on a check receipt; the catalog row and the "eleven" comments; one location formatter shared with theme build; every setting and fix with no cap; the test file header): verified.
  • Review fix 5 (each unchecked theme named with its cause, the freshness check's): verified for a private variable, a missing package and no Core; for a refused source fix 7 applies instead.
  • Review fix 7 (a refused source is named with the first line of the build's refusal; "their build checks" for several): verified (test; doctor run with two themes not checked).
  • How: reuses the freshness check's build run with no extra build: verified.
  • Conditions for approval (warnings never failures; an unchecked theme never passes; both tested): verified.
  • Test plan: the doctor tests pass (301 passed on this head) and the listed cases exist; the CLI structure check, the README check, eslint, strict tsc for the touched files and prettier on the spec: verified.
  • .changeset/doctor-theme-settings-that-show.md: clear.
  • docs/specs/AST-050-app-themes/spec.md: clear (approved for this head).
  • packages/cli/api/doctor/theme-checks.mjs: one optional comment wording note.
  • packages/cli/api/doctor/theme-checks.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the theme-build-setting-effects branch from 8855da3 to 1d36344 Compare November 18, 2026 01:36
@josephfarina
josephfarina force-pushed the doctor-theme-setting-effects branch from 6c75ad8 to 1ffe115 Compare November 18, 2026 01:36
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 1ffe115

@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. astryx doctor's new theme-setting-effects check names every local theme setting that does not show as written, with its line and fix, never fails the run, and names each local theme it could not check with the cause, as spec:AST-050 FR11 item 11 and DEC-11 (approved for this head) describe. The rebase onto the updated #12400 branch leaves this pull request's own changes identical, and the doctor tests still pass on it. CI has not run on this head because this pull request targets the branch of #12400, so it lands only after #12400 and once CI passes.

One optional point: the comment above the not-checked list in theme-checks.mjs still says each cause is the one the freshness check names, which no longer holds for a refused source.

Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset: doctor warns about each local theme setting that does not show as written, naming the theme, the setting with its line and the fix, from the build's own check: verified (warn test; six hidden settings in one block are all named, with six fixes).
  • Changeset: the causes it lists (a later shorthand, a more specific rule of the extended theme, cascade order): verified as the build's own issue kinds, passed through unchanged; doctor's tests run the shorthand case.
  • Changeset and description: a warning, never a failure, and the theme builds as before: verified (no failing branch; doctor and its JSON output exit 0 with only this warning).
  • Description: an eleventh app-theme check with this id and label: verified (catalog row and entry).
  • Description: the example message and fix: verified (reproduced exactly on the identical code; the warn test passes on this head).
  • Description: themes whose check did not run are also named in the warning: verified.
  • Description: pass only when every local theme's build check ran and every setting shows, or when there are no local themes: verified.
  • Description: info naming each unchecked theme with its cause (a private variable, a missing package, what the build said, Core not installed), or when local outputs do not resolve: verified (doctor runs for the first three; the Core case by reading the code).
  • Description: FR11 item 11, the verification row with eleven faults plus the never-ran case, and DEC-11: verified.
  • Description: writing rubric results R1-R7: verified against the added record text.
  • Review fixes 1-4 and 6 (pass only on a check receipt; the catalog row and the "eleven" comments; one location formatter shared with theme build; every setting and fix with no cap; the test file header): verified.
  • Review fix 5 (each unchecked theme named with its cause, the freshness check's): verified for a private variable, a missing package and no Core; for a refused source fix 7 applies instead.
  • Review fix 7 (a refused source is named with the first line of the build's refusal; "their build checks" for several): verified (test; doctor run with two themes not checked).
  • How: reuses the freshness check's build run with no extra build: verified.
  • Conditions for approval (warnings never failures; an unchecked theme never passes; both tested): verified.
  • Test plan: the doctor tests pass (301 passed on this head) and the listed cases exist; the CLI structure check, the README check, eslint, strict tsc for the touched files and prettier on the spec: verified on the identical files.
  • .changeset/doctor-theme-settings-that-show.md: clear.
  • docs/specs/AST-050-app-themes/spec.md: clear (approved for this head).
  • packages/cli/api/doctor/theme-checks.mjs: one optional comment wording note.
  • packages/cli/api/doctor/theme-checks.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the theme-build-setting-effects branch from 1d36344 to 76f87dd Compare November 18, 2026 05:29
@josephfarina
josephfarina changed the base branch from theme-build-setting-effects to main November 18, 2026 06:59
…w as written

A new theme-setting-effects check reads the settingIssues of each added
local theme's build check: a warning naming the theme, the setting with
its line, and the fix; a pass when every setting shows; info when the
local themes could not be checked.
@josephfarina
josephfarina force-pushed the doctor-theme-setting-effects branch from 1ffe115 to 0c3e707 Compare November 18, 2026 07:02
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 0c3e707

@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. astryx doctor's new theme-setting-effects check names every setting of an added local theme that does not show as written, with its line and fix, never fails the run, and names each local theme it could not check with the cause, as spec:AST-050 FR11 item 11 and DEC-11 (approved for this head) describe. CI is still running on this head, so the pull request can merge once the required checks pass.

One optional point: the comment above the not-checked list in packages/cli/api/doctor/theme-checks.mjs (lines 1820-1821) still says each cause is the one the freshness check names, which does not hold for a source the build refuses.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset: doctor warns about each local theme setting that does not show as written (a later shorthand, a more specific rule of the extended theme, or cascade order), naming the theme, the setting with its line and the fix, from the build's own check: verified (the build's own issue kinds, tested there; doctor's warn test and a doctor run cover the shorthand case).
  • Changeset and description: a warning, never a failure, and the theme builds as before: verified (no failing branch; doctor exits 0 in text and JSON with only this warning).
  • Description: builds on the theme build change that names hidden settings: verified (that change is already in the base branch, so nothing is left to review first).
  • Description: an eleventh app-theme check with this id and label: verified (catalog row and entry).
  • Description: the warning names every such setting with its theme and line, and each fix, with the example message and fix: verified (reproduced exactly).
  • Description: themes whose check did not run are also named in the warning: verified.
  • Description: pass only when every local theme's build check ran and every setting shows, or when there are no local themes: verified.
  • Description: info naming each unchecked theme with its cause (a private variable, a missing package, what the build said, Core not installed), or when local outputs do not resolve: verified (doctor runs for the first and third; the others by reading the code).
  • Description: FR11 item 11, the verification row with eleven faults plus the never-ran case, and DEC-11: verified.
  • Description: writing rubric results R1-R7: verified against the added record text.
  • Review fixes 1-4 and 6 (pass only on a check receipt; the catalog row and the "eleven" comments; one location formatter shared with theme build; every setting and fix with no cap; the test file header): verified.
  • Review fix 5 (each unchecked theme named with the freshness check's cause): verified for a private variable, a missing package and no Core; for a refused source fix 7 applies instead.
  • Review fix 7 (a refused source is named with the first line of the build's refusal; "their build checks" for several): verified (test and doctor run).
  • How: reuses the freshness check's build run with no extra build: verified.
  • Conditions for approval (warnings never failures; an unchecked theme never passes; both tested): verified.
  • Test plan: the doctor tests pass (304 on this head) and the listed cases exist; the new and changed tests fail on the base; the CLI structure check, the README check, prettier on the spec, eslint and strict tsc for the touched files are clean: verified.
  • .changeset/doctor-theme-settings-that-show.md: clear.
  • docs/specs/AST-050-app-themes/spec.md: clear (approved for this head).
  • packages/cli/api/doctor/theme-checks.mjs: one optional comment wording note.
  • packages/cli/api/doctor/theme-checks.test.mjs: clear.

Automated review (maintainer link)

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 0c3e707

Storybook · Sandbox · built from this PR's head

Package size: measured; main has no measurement of the merge base to compare yet.

API changes: unknown (base surface unavailable): richtext, theme-butter, theme-chocolate, theme-gothic, theme-matcha, theme-neutral, theme-stone, theme-y2k

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@josephfarina
josephfarina merged commit 238a0e5 into main Nov 18, 2026
81 checks passed
@github-actions
github-actions Bot deleted the doctor-theme-setting-effects branch November 19, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 0c3e7070 Deployed Nov 18, 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