Skip to content

experimental theme: a theme whose palette recipe a newer CLI made opens unchanged - #12735

Closed
josephfarina wants to merge 1 commit into
theme-r15-p20-25from
theme-open-any-recipe
Closed

josephfarina wants to merge 1 commit into
theme-r15-p20-25from
theme-open-any-recipe

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What users see

A theme whose palette recipe a newer Astryx CLI made now opens, and opening it doesn't change how it looks.

  • A palette recipe this CLI doesn't know: the theme's saved palette files and the settings module the newer CLI wrote are kept exactly as they are, and show builds the same CSS that astryx theme build makes of them. A note names the recipe.
    • Changes that leave the colors alone work, and so does undoing them. They keep the shades the theme already shows.
    • A change to what its palette is made from (a color dial, the vibrancy or the whole-theme accent token through set; a seed color or a new color changed by hand in the settings file) is refused; the mode, the base and a part's colors only map the palette, so they save as usual: the refusal names the recipe and this CLI's version and says what still works. It carries no update step, as a CLI that makes that recipe may not be released (no released CLI makes astryx-oklch-v3 today). The saved files stay as they are.
  • A recipe name no Astryx CLI makes is still refused, as before.
  • A build a newer CLI version made of the same settings, for such a theme, counts as current: it isn't built again with older code, and a change keeps its shades.

Older-recipe themes keep their colours, as before; editing recipe in palette.config.json moves them to the newest (the editor's note says how).

  • For every theme, a change that leaves the colors alone keeps the shades it shows (AST-008 FR10): one-mode halves, white or black halves and tokens this CLI no longer maps stay as an earlier editor wrote them, and a change to only --only, a note or letter case doesn't reset them.

Why

A theme saved by a newer editor couldn't be opened at all by an older one: show failed on the unknown recipe, offering only to update the CLI. A build a newer CLI version made was also treated as out of date, so every command rebuilt it with older code and moved its shades.

The rule for this palette case: an editor that doesn't make a theme's palette recipe keeps that palette as saved, says so, and refuses only the change it can't make (a change to what the palette is made from). It is recorded in AST-050 beside DEC-11.

Acceptance check: a real theme saved with a palette recipe this CLI doesn't make

A theme saved with astryx-oklch-v3 (a recipe no released CLI makes yet), opened with this branch stacked on its base and the state-words change, with Core and theme-neutral packed:

  • non-color edit (set <theme> padding 8px --on card): ok
  • open (show): ok
  • build (theme build): ok
  • undo: the settings return to the theme as this CLI first saved it, not byte-for-byte to the original file. On that first save, --only flags that change nothing are dropped and two entries hidden by a later entry of the same setting are left out, as AST-050 DEC-11 already says on main.
  • color edit (set <theme> accent '#0d6efd'): refused as planned, naming the recipe and what still works, with no install line; palette and settings unchanged.
  • named undo of a page color set for one mode (set <theme> --color-background-body '#ff00ff' --mode light, then undo <theme> --color-background-body --mode light): exit 0, no #ff00ff left in the settings, module or CSS. As on main, undo <theme> <setting> removes that setting (so the theme's earlier light page color goes too); a plain undo steps back to it.

Test plan

  • theme-palette-newer-recipe-opens.test.mjs covers:
    • an unknown recipe: show keeps every palette file and the settings module, and the CSS is byte-identical;
    • non-color set and undo work, save, and build; a color dial or accent-token change is refused with the exact text and no update step, while mode, base and a part's color token save with the palette untouched, with files unchanged;
    • a build stamped by a newer CLI version: show keeps it as current, a corners change keeps the palette shades, and a missing theme module is written back with the saved settings module kept;
    • a kept newer module stays current after an output is built again, and a module an older CLI built is built again;
    • a new color added by hand is refused, naming the setting and what the saved palette was made from, and a hand edit that leaves the colors alone (corners) is built with the shades the theme shows;
    • undo of a whole-theme color token (both modes, then one mode, and one mode with another change between) leaves the settings module and the CSS byte-identical to before;
    • a newer theme with a vibrancy and a one-mode accent token opens and takes a non-color change;
    • a newer theme whose own source sets a page-wide token opens beside its color dials;
    • a colour changed in the settings file by hand is refused like a colour change;
    • an older recipe keeps its colors on open (as on base).
  • theme-palette-unknown-recipe.test.mjs: a newer recipe opens and is named; a color change is refused for any recipe name, with the file's bytes unchanged.
  • theme-palette-recipe.test.mjs and theme-saved-older-editor-opens.test.mjs still pass.
  • Five cli typechecks and sync:api-types are clean. The theme-edit, theme, parity and experimental suites have no new failures against main.

Writing rubric results

Record rubric (docs/contributing/spec-writing.md) over the paragraph added to AST-050 DEC-11:

  • R1 narration: present-tense statements about how the editor reads such a theme; no project narration.
  • R2 research: none in the record.
  • R3 evidence: none added.
  • R4 rejected alternatives: none added; DEC-11's existing one line is unchanged.
  • R5 change references: none (no # numbers, /pull/ or /issues/).
  • R6 open questions: none added.
  • R7 project status: none; no build-status or work-order words.

AST-050 DEC-11 is limited here to a theme not edited by hand; #13091, which fixes the hand-edited cases and the named undo, puts the wider sentence back.

@vercel

vercel Bot commented Nov 18, 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 12:11am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 21, 2026, 12:20 AM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 18, 2026
@josephfarina
josephfarina force-pushed the theme-r15-p22 branch 23 times, most recently from f31108c to e082ee6 Compare November 19, 2026 06:47

@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 cross-version rule, and on four fixes.

  • Spec decision: this pull request adds a paragraph to spec:AST-050 DEC-11 that no current record states (an older editor keeps a newer CLI's palette, settings module and build, keeps each token as that module wrote it, and refuses every change to what the palette is made from, with no update step), and the changeset states a kept-shades rule for every theme whose citation, spec:AST-008 FR10, covers generating a new candidate rather than mapping an adopted palette again. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, or names the record that decides both; the author may do so if they are an engineering owner.

Blocking findings:

  • On a theme whose palette is kept as saved, a change that leaves the colours alone but is written into <slug>.settings.json by hand recolours the dark mode: on a theme whose accent is --color-accent for light only with no base, adding corners round by hand and running show moves nine dark halves (--color-on-info and --color-on-success from #FFFFFF to #000000, --color-accent from #0171E3 to #e11d48), while the same change through set moves none, and the build still counts as current (packages/cli/api/theme-edit/_settings.mjs:9832).
  • A whole-theme colour token set for both modes and then removed from <slug>.settings.json by hand leaves the theme with no value for it (--color-text-accent showed light-dark(#123456, #99b9f6) before the set and is absent after show), and on a newer module that maps a token at all, set --color-text-accent followed by undo --color-text-accent adds light-dark(#1047c1, #99b9f6) where the theme had none (packages/cli/api/theme-edit/_settings.mjs:5084).
  • After a seed is changed by hand, the editor's way back is refused: with the accent changed from #2563eb to #e11d48, set accent '#2563eb', undo and undo accent all return "Put that setting back to open the theme", while a whole-theme --color-accent added by hand beside the accent dial is built by show yet refused by set and undo (packages/cli/api/theme-edit/_palette.mjs:1190).
  • The description says that on the base "show failed on the unknown recipe, and the undo it offered failed the same way"; the base refusal offers the CLI install and astryx upgrade steps, never an undo, so that sentence needs dropping.

Non-blocking: moduleKeptAsSaved repeats staleBuild's stamp pattern and base-version check, so the two have to move together.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset: a theme whose palette recipe this CLI does not know opens and looks unchanged — verified (theme-palette-newer-recipe-opens.test.mjs "opens"; the palette files, the settings module and the CSS are byte-identical).
  • Changeset: the saved palette and the newer CLI's settings module are kept and show builds what theme build builds, with a note naming the recipe — verified (same test; the note text is asserted).
  • Changeset: changes that leave the colours alone, and their undo, keep the shades the theme shows — partly false: true through set and undo, false for the same change written into the settings file by hand (first finding above).
  • Changeset: a change to what the palette is made from is refused while the mode, the base and a part's colours save — verified for set, with one gap: a whole-theme --color-accent added by hand is built by show (third finding above).
  • Changeset: the refusal carries no update step — verified (the error offers no commands).
  • Changeset: a newer CLI's build of the same settings counts as current and undo puts back exactly what the step showed — verified for the editor's own steps; false in the two hand-edit cases above (second finding).
  • Changeset: for every theme, one-mode, white, black and written-out halves and unmapped tokens survive a change that leaves the colours alone, and --only, a note or letter case no longer resets them — verified in the code (the colour key now ignores --only and notes and compares values case-insensitively); the rule itself is the spec decision above.
  • Description: no released CLI makes astryx-oklch-v3 — verified (the CLI knows astryx-oklch-v1 and astryx-oklch-v2).
  • Description: the base's refusal offered an undo — false (fourth finding above).
  • Description: the test plan's five typechecks and sync:api-types are clean — not verified here; this review's typecheck run stops on two unrelated missing-module errors in unchanged template pages.
  • Files: .changeset/experimental-theme-palette-newer-recipe-opens.md clear; docs/specs/AST-050-app-themes/spec.md held for the spec decision; packages/cli/api/theme-edit/_palette.mjs third finding; packages/cli/api/theme-edit/_settings.mjs first and second findings; packages/cli/api/theme-edit/_edit.mjs clear; packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs clear, with the three cases the findings ask for missing; packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs clear.

Automated review (maintainer link)

paletteStopsOnly(
builtFrom && stamp === settingsStamp(builtFrom).split(' ')[0]
? read
: literalsMapped(read),

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.

This maps every half the module writes as a colour, not only a half a colour-token setting wrote, so a change that leaves the colours alone recolours a theme whose module writes colours rather than baseIn(...). In a check at this head, a newer-recipe theme with no base whose accent is --color-accent for light only had corners round added to n.settings.json by hand: show moved nine dark halves (--color-on-info and --color-on-success #FFFFFF to #000000, --color-on-error and --color-on-warning #0A1317 to #000000, --color-accent #0171E3 to #e11d48, and the four status fills), and the build counted as current; set corners round moved none. Map a written-out half only where a whole-theme colour-token setting could have written it (the tokens the latest history step's settings name, say), and add a one-mode-accent, no-base hand-edit case to theme-palette-newer-recipe-opens.test.mjs — the current hand-edit test uses a theme with a base, whose other halves are baseIn(...) and survive.

// reader does not read: its token is the mapping's own all the same.)
const next = out[x.thing]
? {...out[x.thing]}
: {light: {family: 'mapped', stop: 0}, dark: {family: 'mapped', stop: 0}};

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.

A both-modes colour-token setting is written as one value, which stopsIn cannot read, so this invents the mapping's halves for it: on a newer module that maps no --color-text-accent (the theme showed none), set --color-text-accent '#7a1fa2' then undo --color-text-accent leaves --color-text-accent: light-dark(#1047c1, #99b9f6). The other direction still loses the colour: the same token removed from <slug>.settings.json by hand leaves no --color-text-accent at all, where the theme showed light-dark(#123456, #99b9f6) before the set, and each build counts as current. Take such a token's halves from what the theme showed before that setting (the latest history step's built.stops holds them) and leave it unset when they hold none, or refuse the hand edit by name; add both cases to theme-palette-newer-recipe-opens.test.mjs.

@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 cross-version rule, and on four fixes.

  • Spec decision: this pull request adds a paragraph to spec:AST-050 DEC-11 that no current record states (an older editor keeps a newer CLI's palette, settings module and build, keeps each token as that module wrote it, and refuses every change to what the palette is made from, with no update step), and the changeset states a kept-shades rule for every theme whose citation, spec:AST-008 FR10, covers generating a new candidate rather than mapping an adopted palette again. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, or names the record that decides both; the author may do so if they are an engineering owner.

Blocking findings:

  • On a theme whose palette is kept as saved, a change that leaves the colours alone but is written into <slug>.settings.json by hand recolours the dark mode: on a theme whose accent is --color-accent for light only with no base, adding corners round by hand and running show moves nine dark halves (--color-on-info and --color-on-success from #FFFFFF to #000000, --color-accent from #0171E3 to #e11d48), while the same change through set moves none, and the build still counts as current (packages/cli/api/theme-edit/_settings.mjs:9894).
  • A whole-theme colour token set for both modes and then removed from <slug>.settings.json by hand leaves the theme with no value for it (--color-text-accent showed light-dark(#123456, #99b9f6) before the set and is absent after show), and on a newer module that does not map a token, set --color-text-accent followed by undo --color-text-accent adds light-dark(#1047c1, #99b9f6) where the theme had none (packages/cli/api/theme-edit/_settings.mjs:5146).
  • After a seed is changed by hand, the editor's way back is refused: with the accent changed from #2563eb to #e11d48, set accent '#2563eb', undo and undo accent all return "Put that setting back to open the theme", while a whole-theme --color-accent added by hand beside the accent dial is built by show yet refused by set and undo (packages/cli/api/theme-edit/_palette.mjs:1207).
  • The description says that on the base "show failed on the unknown recipe, and the undo it offered failed the same way"; the base refusal offers the CLI install and astryx upgrade steps, never an undo, so that sentence needs dropping.

Non-blocking: moduleKeptAsSaved repeats staleBuild's stamp pattern and base-version check, so the two have to move together.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset: a theme whose palette recipe this CLI does not know opens and looks unchanged — verified for a theme opened as saved (theme-palette-newer-recipe-opens.test.mjs "opens": the palette files, the settings module and the CSS are byte-identical); false after a hand edit (first finding).
  • Changeset: the saved palette and the newer CLI's settings module are kept and show builds what theme build builds, with a note naming the recipe — verified (same test; the note text is asserted).
  • Changeset: changes that leave the colours alone, and their undo, keep the shades the theme shows — partly false: true through set and undo, plain and named, false for the same change written into the settings file by hand (first finding).
  • Changeset: a change to what the palette is made from is refused while the mode, the base and a part's colours save — verified for set, with one gap: a whole-theme --color-accent added by hand is built by show (third finding).
  • Changeset: the refusal names the recipe and this CLI's version, says what still works and carries no update step — verified (the error text is asserted and offers no commands).
  • Changeset: a newer CLI's build of the same settings counts as current, and undo puts back exactly the colours the step showed, a whole-theme colour token included — verified for the editor's own steps; false in the two cases of the second finding.
  • Changeset: for every theme, one-mode, white, black and written-out halves and unmapped tokens survive a change that leaves the colours alone, and --only, a note or letter case no longer resets them — verified in the code (the colour key ignores --only and notes and compares values case-insensitively); the rule itself is the spec decision above.
  • Description: a recipe name no Astryx CLI makes is still refused — verified (theme-palette-unknown-recipe.test.mjs).
  • Description: no released CLI makes astryx-oklch-v3 — verified (the CLI knows astryx-oklch-v1 and astryx-oklch-v2).
  • Description: older-recipe themes keep their colours, and the editor's note says how to move them — verified (test "an older recipe this CLI knows keeps its colors"; the note is unchanged from the base).
  • Description: on the base, a newer CLI's build was treated as out of date and rebuilt — verified (the base build check calls any other CLI version stale).
  • Description: the base's refusal offered an undo — false (fourth finding).
  • Description: the acceptance check on a real theme saved with astryx-oklch-v3 — not reproduced here, as no CLI makes that recipe; the same steps pass on fixtures.
  • Description: five CLI typechecks and sync:api-types are clean — partly checked: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, and sync:api-types was not run.
  • Description: the theme-edit, theme, parity and experimental suites have no new failures — partly checked: a 20-file theme-edit subset passes.
  • Files: .changeset/experimental-theme-palette-newer-recipe-opens.md held for the spec decision, with the claims above; docs/specs/AST-050-app-themes/spec.md held for the spec decision; packages/cli/api/theme-edit/_palette.mjs third finding; packages/cli/api/theme-edit/_settings.mjs first and second findings; packages/cli/api/theme-edit/_edit.mjs clear; packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs clear, with the cases the findings ask for missing; packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec c644c16
Covers the spec:AST-050 paragraph beside DEC-11 (owner's yes): for a theme saved with a palette recipe this CLI doesn't make, the editor keeps the palette and module as saved, counts that CLI's build as current, and keeps the shown shades; it refuses only the inputs a palette is made from (color dials, vibrancy, a whole-theme accent, seeds or new families by hand). Mode, base and part tokens save; the message names the recipe, says color changes come once it ships, and gives no install line.

@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 changeset's every-theme shade rule, and on four fixes.

  • Spec decision: the /approve-spec for this head covers the spec:AST-050 DEC-11 paragraph about themes whose palette recipe this CLI does not make, but the changeset's last bullet states a kept-shades rule for every theme (one-mode, white, black and written-out halves and tokens this CLI no longer maps stay as written, and --only, a note or letter case no longer reset them) whose citation, spec:AST-008 FR10, covers generating a new candidate rather than mapping an adopted palette again. An engineering owner settles it by ruling that FR10 covers it, by adding the rule to the record and commenting /approve-spec <full head SHA> on the new head, or by asking for it to be dropped; the author may do so as an engineering owner.
  • Spec gate: the repository's spec gate has not recorded the current approval, because it reads only a comment that holds /approve-spec <full head SHA> on its own.

Blocking findings:

  • On a theme whose palette is kept as saved and whose accent is --color-accent for light only with no base, adding corners round to <slug>.settings.json by hand and running show moves nine dark halves (--color-on-info and --color-on-success from #FFFFFF to #000000, --color-accent from #0171E3 to #e11d48) while the same change through set moves none and the build still counts as current (packages/cli/api/theme-edit/_settings.mjs:9894).
  • A whole-theme colour token set for both modes and then removed from <slug>.settings.json by hand leaves the theme with no value for it, and on a newer module that maps no --color-text-accent, set --color-text-accent followed by undo --color-text-accent adds light-dark(#1047c1, #99b9f6) where the theme had none (packages/cli/api/theme-edit/_settings.mjs:5146).
  • After a seed is changed by hand, the editor's way back is refused (set accent '#2563eb', undo and undo accent all answer "Put that setting back to open the theme"), and a whole-theme --color-accent added by hand beside the accent dial is built by show yet refused by set and undo (packages/cli/api/theme-edit/_palette.mjs:1207).
  • The description says that on the base "the undo it offered failed the same way", but the base refusal offers the CLI install and astryx upgrade steps and never an undo, so that sentence needs dropping.

Non-blocking: moduleKeptAsSaved repeats staleBuild's stamp pattern and base-version check, so the two have to move together.

Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset: a theme whose palette recipe this CLI does not know opens and looks unchanged — verified for a theme opened as saved (theme-palette-newer-recipe-opens.test.mjs "opens": the palette files, the settings module and the CSS are byte-identical); false after a hand edit (first finding).
  • Changeset: the saved palette and the newer CLI's settings module are kept and show builds what theme build builds, with a note naming the recipe — verified (same test; the note text is asserted).
  • Changeset: changes that leave the colours alone, and their undo, keep the shades the theme shows — partly false: true through set and undo, plain and named, false for the same change written into the settings file by hand (first finding).
  • Changeset: a change to what the palette is made from is refused while the mode, the base and a part's colours save — verified for set, with one gap: a whole-theme --color-accent added by hand is built by show (third finding).
  • Changeset: the refusal names the recipe and this CLI's version, says what still works and carries no update step — verified (the error text is asserted and offers no commands).
  • Changeset: a newer CLI's build of the same settings counts as current, and undo puts back exactly the colours the step showed, a whole-theme colour token included — verified for the editor's own steps; false in the two cases of the second finding.
  • Changeset: for every theme, one-mode, white, black and written-out halves and unmapped tokens survive a change that leaves the colours alone, and --only, a note or letter case no longer resets them — verified in the code (the colour key ignores --only and notes and compares values case-insensitively); the rule itself is the spec decision above.
  • Description: a recipe name no Astryx CLI makes is still refused — verified (theme-palette-unknown-recipe.test.mjs).
  • Description: no released CLI makes astryx-oklch-v3 — verified (the CLI knows astryx-oklch-v1 and astryx-oklch-v2).
  • Description: older-recipe themes keep their colours, and the editor's note says how to move them — verified (test "an older recipe this CLI knows keeps its colors"; the note is unchanged from the base).
  • Description: on the base, a newer CLI's build was treated as out of date and rebuilt — verified (the base build check calls any other CLI version stale).
  • Description: the base's refusal offered an undo — false (fourth finding).
  • Description: the palette rule is recorded in AST-050 beside DEC-11 — verified (the paragraph at docs/specs/AST-050-app-themes/spec.md:688-694, approved for this head).
  • Description: the acceptance check on a real theme saved with astryx-oklch-v3 — not reproduced, as no CLI makes that recipe; the same steps pass on fixtures.
  • Description: five CLI typechecks and sync:api-types are clean — partly checked: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, and sync:api-types was not run.
  • Description: the theme-edit, theme, parity and experimental suites have no new failures — partly checked: a 20-file theme-edit subset passes.
  • Files: .changeset/experimental-theme-palette-newer-recipe-opens.md held for the every-theme rule, with the claims above; docs/specs/AST-050-app-themes/spec.md clear (approved for this head); packages/cli/api/theme-edit/_palette.mjs third finding; packages/cli/api/theme-edit/_settings.mjs first and second findings; packages/cli/api/theme-edit/_edit.mjs clear; packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs clear, with the cases the findings ask for missing; packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 4268a3b
Covers the spec:AST-050 paragraph beside DEC-11 (owner's yes): for a theme saved with a palette recipe this CLI doesn't make, the editor keeps the palette and module as saved, counts that CLI's build as current, and keeps the shown shades; it refuses only the inputs a palette is made from (color dials, vibrancy, a whole-theme accent, seeds or new families by hand). Mode, base and part tokens save; the message names the recipe, says color changes come once it ships, and gives no install line.

@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 changeset's every-theme shade rule, and on three fixes.

  • Spec decision: the /approve-spec for this head covers the spec:AST-050 DEC-11 paragraph about themes whose palette recipe this CLI does not make, but the changeset's last bullet states a kept-shades rule for every theme (one-mode, white, black and written-out halves and tokens this CLI no longer maps stay as written, and --only, a note or letter case no longer reset them) whose citation, spec:AST-008 FR10, covers generating a new candidate rather than mapping an adopted palette again. An engineering owner settles it by ruling that FR10 covers it, by adding the rule to the record and commenting /approve-spec <full head SHA> on the new head, or by asking for it to be dropped; the author may do so as an engineering owner.
  • Spec gate: the repository's spec gate has not recorded the approval for this head, because it reads only a comment that holds /approve-spec <full head SHA> on its own.

Blocking findings:

  • On a theme whose palette is kept as saved and whose accent is --color-accent for light only with no base, adding corners round to <slug>.settings.json by hand and running show moves nine dark halves (--color-on-info and --color-on-success from #FFFFFF to #000000, --color-accent from #0171E3 to #e11d48) while the same change through set moves none and the build still counts as current (packages/cli/api/theme-edit/_settings.mjs:9894).
  • A whole-theme colour token set for both modes and then removed from <slug>.settings.json by hand leaves the theme with no value for it, and on a newer module that maps no --color-text-accent, set --color-text-accent followed by undo --color-text-accent adds light-dark(#1047c1, #99b9f6) where the theme had none (packages/cli/api/theme-edit/_settings.mjs:5146).
  • After a seed is changed by hand, the editor's way back is refused (set accent '#2563eb', undo and undo accent all answer "Put that setting back to open the theme"), and a whole-theme --color-accent added by hand beside the accent dial is built by show yet refused by set and undo (packages/cli/api/theme-edit/_palette.mjs:1207).

Non-blocking: moduleKeptAsSaved repeats staleBuild's stamp pattern and base-version check, so the two have to move together.

Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset: a theme whose palette recipe this CLI does not know opens and looks unchanged — verified for a theme opened as saved (theme-palette-newer-recipe-opens.test.mjs "opens": the palette files, the settings module and the CSS are byte-identical); false after a hand edit (first finding).
  • Changeset: the saved palette and the newer CLI's settings module are kept and show builds what theme build builds, with a note naming the recipe — verified (same test; the note text is asserted).
  • Changeset: changes that leave the colours alone, and their undo, keep the shades the theme shows — partly false: true through set and undo, plain and named, false for the same change written into the settings file by hand (first finding).
  • Changeset: a change to what the palette is made from is refused while the mode, the base and a part's colours save — verified for set, with one gap: a whole-theme --color-accent added by hand is built by show (third finding).
  • Changeset: the refusal names the recipe and this CLI's version, says what still works and carries no update step — verified (the error text is asserted and offers no commands).
  • Changeset: a newer CLI's build of the same settings counts as current, and undo puts back exactly the colours the step showed, a whole-theme colour token included — verified for the editor's own steps; false in the two cases of the second finding.
  • Changeset: for every theme, one-mode, white, black and written-out halves and unmapped tokens survive a change that leaves the colours alone, and --only, a note or letter case no longer resets them — verified in the code (the colour key ignores --only and notes and compares values case-insensitively); the rule itself is the spec decision above.
  • Description: a recipe name no Astryx CLI makes is still refused — verified (theme-palette-unknown-recipe.test.mjs).
  • Description: no released CLI makes astryx-oklch-v3 — verified (the CLI knows astryx-oklch-v1 and astryx-oklch-v2).
  • Description: older-recipe themes keep their colours, and the editor's note says how to move them — verified (test "an older recipe this CLI knows keeps its colors"; the note is unchanged from the base).
  • Description: on the base, a newer CLI's build was treated as out of date and rebuilt — verified (the base build check calls any other CLI version stale).
  • Description: on the base, show failed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install and astryx upgrade).
  • Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged --only flags dropped and hidden entries left out, as the app-themes record already says — consistent with that record's DEC-11 text; the run itself was not reproduced.
  • Description: the palette rule is recorded in AST-050 beside DEC-11 — verified (the paragraph at docs/specs/AST-050-app-themes/spec.md:688-694, approved for this head).
  • Description: the acceptance check on a real theme saved with astryx-oklch-v3 — not reproduced, as no CLI makes that recipe; the same steps pass on fixtures.
  • Description: five CLI typechecks and sync:api-types are clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, and sync:api-types was not run.
  • Description: the theme-edit, theme, parity and experimental suites have no new failures — partly checked: a 20-file theme-edit subset passes on the same code.
  • Files: .changeset/experimental-theme-palette-newer-recipe-opens.md held for the every-theme rule, with the claims above; docs/specs/AST-050-app-themes/spec.md clear (approved for this head); packages/cli/api/theme-edit/_palette.mjs third finding; packages/cli/api/theme-edit/_settings.mjs first and second findings; packages/cli/api/theme-edit/_edit.mjs clear; packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs clear, with the cases the findings ask for missing; packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 49d8c13
Covers the spec:AST-050 paragraph beside DEC-11 (owner's yes): for a theme saved with a palette recipe this CLI doesn't make, the editor keeps the palette and module as saved, counts that CLI's build as current, and keeps the shown shades; it refuses only the inputs a palette is made from (color dials, vibrancy, a whole-theme accent, seeds or new families by hand). Mode, base and part tokens save; the message names the recipe, says color changes come once it ships, and gives no install line.

@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 changeset's every-theme shade rule, and on three fixes.

  • Spec decision: the /approve-spec for this head covers the spec:AST-050 DEC-11 paragraph about themes whose palette recipe this CLI does not make, but the changeset's last bullet states a kept-shades rule for every theme (one-mode, white, black and written-out halves and tokens this CLI no longer maps stay as written, and --only, a note or letter case no longer reset them) whose citation, spec:AST-008 FR10, covers generating a new candidate rather than mapping an adopted palette again. An engineering owner settles it by ruling that FR10 covers it, by adding the rule to the record and commenting /approve-spec <full head SHA> on the new head, or by asking for it to be dropped; the author may do so as an engineering owner.
  • Spec gate: the repository's spec gate has not recorded the approval for this head, because it reads only a comment that holds /approve-spec <full head SHA> on its own.

Blocking findings:

  • On a theme whose palette is kept as saved and whose accent is --color-accent for light only with no base, adding corners round to <slug>.settings.json by hand and running show moves nine dark halves (--color-on-info and --color-on-success from #FFFFFF to #000000, --color-accent from #0171E3 to #e11d48) while the same change through set moves none and the build still counts as current (packages/cli/api/theme-edit/_settings.mjs:9894).
  • A whole-theme colour token set for both modes and then removed from <slug>.settings.json by hand leaves the theme with no value for it, and on a newer module that maps no --color-text-accent, set --color-text-accent followed by undo --color-text-accent adds light-dark(#1047c1, #99b9f6) where the theme had none (packages/cli/api/theme-edit/_settings.mjs:5146).
  • After a seed is changed by hand, the editor's way back is refused (set accent '#2563eb', undo and undo accent all answer "Put that setting back to open the theme"), and a whole-theme --color-accent added by hand beside the accent dial is built by show yet refused by set and undo (packages/cli/api/theme-edit/_palette.mjs:1207).

Non-blocking: moduleKeptAsSaved repeats staleBuild's stamp pattern and base-version check, so the two have to move together.

Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset: a theme whose palette recipe this CLI does not know opens and looks unchanged — verified for a theme opened as saved (theme-palette-newer-recipe-opens.test.mjs "opens": the palette files, the settings module and the CSS are byte-identical); false after a hand edit (first finding).
  • Changeset: the saved palette and the newer CLI's settings module are kept and show builds what theme build builds, with a note naming the recipe — verified (same test; the note text is asserted).
  • Changeset: changes that leave the colours alone, and their undo, keep the shades the theme shows — partly false: true through set and undo, plain and named, false for the same change written into the settings file by hand (first finding).
  • Changeset: a change to what the palette is made from is refused while the mode, the base and a part's colours save — verified for set, with one gap: a whole-theme --color-accent added by hand is built by show (third finding).
  • Changeset: the refusal names the recipe and this CLI's version, says what still works and carries no update step — verified (the error text is asserted and offers no commands).
  • Changeset: a newer CLI's build of the same settings counts as current, and undo puts back exactly the colours the step showed, a whole-theme colour token included — verified for the editor's own steps; false in the two cases of the second finding.
  • Changeset: for every theme, one-mode, white, black and written-out halves and unmapped tokens survive a change that leaves the colours alone, and --only, a note or letter case no longer resets them — verified in the code (the colour key ignores --only and notes and compares values case-insensitively); the rule itself is the spec decision above.
  • Description: a recipe name no Astryx CLI makes is still refused — verified (theme-palette-unknown-recipe.test.mjs).
  • Description: no released CLI makes astryx-oklch-v3 — verified (the CLI knows astryx-oklch-v1 and astryx-oklch-v2).
  • Description: older-recipe themes keep their colours, and the editor's note says how to move them — verified (test "an older recipe this CLI knows keeps its colors"; the note is unchanged from the base).
  • Description: on the base, a newer CLI's build was treated as out of date and rebuilt — verified (the base build check calls any other CLI version stale).
  • Description: on the base, show failed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install and astryx upgrade).
  • Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged --only flags dropped and hidden entries left out, as the app-themes record already says — consistent with that record's DEC-11 text; the run itself was not reproduced.
  • Description: the palette rule is recorded in AST-050 beside DEC-11 — verified (the paragraph at docs/specs/AST-050-app-themes/spec.md:688-694, approved for this head).
  • Description: the acceptance check on a real theme saved with astryx-oklch-v3 — not reproduced, as no CLI makes that recipe; the same steps pass on fixtures.
  • Description: five CLI typechecks and sync:api-types are clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, and sync:api-types was not run.
  • Description: the theme-edit, theme, parity and experimental suites have no new failures — partly checked: a 20-file theme-edit subset passes on the same code.
  • Files: .changeset/experimental-theme-palette-newer-recipe-opens.md held for the every-theme rule, with the claims above; docs/specs/AST-050-app-themes/spec.md clear (approved for this head); packages/cli/api/theme-edit/_palette.mjs third finding; packages/cli/api/theme-edit/_settings.mjs first and second findings; packages/cli/api/theme-edit/_edit.mjs clear; packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs clear, with the cases the findings ask for missing; packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec dd7f6d2
Covers the spec:AST-050 paragraph beside DEC-11 (owner's yes): for a theme saved with a palette recipe this CLI doesn't make, the editor keeps the palette and module as saved, counts that CLI's build as current, and keeps the shown shades; it refuses only the inputs a palette is made from (color dials, vibrancy, a whole-theme accent, seeds or new families by hand). Mode, base and part tokens save; the message names the recipe, says color changes come once it ships, and gives no install line.

@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 changeset's every-theme shade rule, and on three fixes.

  • Spec decision: the /approve-spec for this head covers the spec:AST-050 DEC-11 paragraph about themes whose palette recipe this CLI does not make, but the changeset's last bullet states a kept-shades rule for every theme (one-mode, white, black and written-out halves and tokens this CLI no longer maps stay as written, and --only, a note or letter case no longer reset them) whose citation, spec:AST-008 FR10, covers generating a new candidate rather than mapping an adopted palette again. An engineering owner settles it by ruling that FR10 covers it, by adding the rule to the record and commenting /approve-spec <full head SHA> on the new head, or by asking for it to be dropped; the author may do so as an engineering owner.
  • Spec gate: the repository's spec gate has not recorded the approval for this head, because it reads only a comment that holds /approve-spec <full head SHA> on its own.

Blocking findings:

  • On a theme whose palette is kept as saved and whose accent is --color-accent for light only with no base, adding corners round to <slug>.settings.json by hand and running show moves nine dark halves (--color-on-info and --color-on-success from #FFFFFF to #000000, --color-accent from #0171E3 to #e11d48) while the same change through set moves none and the build still counts as current (packages/cli/api/theme-edit/_settings.mjs:9894).
  • A whole-theme colour token set for both modes and then removed from <slug>.settings.json by hand leaves the theme with no value for it, and on a newer module that maps no --color-text-accent, set --color-text-accent followed by undo --color-text-accent adds light-dark(#1047c1, #99b9f6) where the theme had none (packages/cli/api/theme-edit/_settings.mjs:5146).
  • After a seed is changed by hand, the editor's way back is refused (set accent '#2563eb', undo and undo accent all answer "Put that setting back to open the theme"), and a whole-theme --color-accent added by hand beside the accent dial is built by show yet refused by set and undo (packages/cli/api/theme-edit/_palette.mjs:1207).

Non-blocking: moduleKeptAsSaved repeats staleBuild's stamp pattern and base-version check, so the two have to move together.

Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset: a theme whose palette recipe this CLI does not know opens and looks unchanged — verified for a theme opened as saved (theme-palette-newer-recipe-opens.test.mjs "opens": the palette files, the settings module and the CSS are byte-identical); false after a hand edit (first finding).
  • Changeset: the saved palette and the newer CLI's settings module are kept and show builds what theme build builds, with a note naming the recipe — verified (same test; the note text is asserted).
  • Changeset: changes that leave the colours alone, and their undo, keep the shades the theme shows — partly false: true through set and undo, plain and named, false for the same change written into the settings file by hand (first finding).
  • Changeset: a change to what the palette is made from is refused while the mode, the base and a part's colours save — verified for set, with one gap: a whole-theme --color-accent added by hand is built by show (third finding).
  • Changeset: the refusal names the recipe and this CLI's version, says what still works and carries no update step — verified (the error text is asserted and offers no commands).
  • Changeset: a newer CLI's build of the same settings counts as current, and undo puts back exactly the colours the step showed, a whole-theme colour token included — verified for the editor's own steps; false in the two cases of the second finding.
  • Changeset: for every theme, one-mode, white, black and written-out halves and unmapped tokens survive a change that leaves the colours alone, and --only, a note or letter case no longer resets them — verified in the code (the colour key ignores --only and notes and compares values case-insensitively); the rule itself is the spec decision above.
  • Description: a recipe name no Astryx CLI makes is still refused — verified (theme-palette-unknown-recipe.test.mjs).
  • Description: no released CLI makes astryx-oklch-v3 — verified (the CLI knows astryx-oklch-v1 and astryx-oklch-v2).
  • Description: older-recipe themes keep their colours, and the editor's note says how to move them — verified (test "an older recipe this CLI knows keeps its colors"; the note is unchanged from the base).
  • Description: on the base, a newer CLI's build was treated as out of date and rebuilt — verified (the base build check calls any other CLI version stale).
  • Description: on the base, show failed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install and astryx upgrade).
  • Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged --only flags dropped and hidden entries left out, as the app-themes record already says — consistent with that record's DEC-11 text; the run itself was not reproduced.
  • Description: the palette rule is recorded in AST-050 beside DEC-11 — verified (the paragraph at docs/specs/AST-050-app-themes/spec.md:688-694, approved for this head).
  • Description: the acceptance check on a real theme saved with astryx-oklch-v3 — not reproduced, as no CLI makes that recipe; the same steps pass on fixtures.
  • Description: five CLI typechecks and sync:api-types are clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, and sync:api-types was not run.
  • Description: the theme-edit, theme, parity and experimental suites have no new failures — partly checked: a 20-file theme-edit subset passes on the same code.
  • Files: .changeset/experimental-theme-palette-newer-recipe-opens.md held for the every-theme rule, with the claims above; docs/specs/AST-050-app-themes/spec.md clear (approved for this head); packages/cli/api/theme-edit/_palette.mjs third finding; packages/cli/api/theme-edit/_settings.mjs first and second findings; packages/cli/api/theme-edit/_edit.mjs clear; packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs clear, with the cases the findings ask for missing; packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 38b89a1
Covers the spec:AST-050 paragraph beside DEC-11 (owner's yes): for a theme saved with a palette recipe this CLI doesn't make, the editor keeps the palette and module as saved, counts that CLI's build as current, and keeps the shown shades; it refuses only the inputs a palette is made from (color dials, vibrancy, a whole-theme accent, seeds or new families by hand). Mode, base and part tokens save; the message names the recipe, says color changes come once it ships, and gives no install line.

@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 changeset's every-theme shade rule, and on three fixes.

  • Spec decision: the /approve-spec for this head covers the spec:AST-050 DEC-11 paragraph about themes whose palette recipe this CLI does not make, but the changeset's last bullet states a kept-shades rule for every theme (one-mode, white, black and written-out halves and tokens this CLI no longer maps stay as written, and --only, a note or letter case no longer reset them) whose citation, spec:AST-008 FR10, covers generating a new candidate rather than mapping an adopted palette again. An engineering owner settles it by ruling that FR10 covers it, by adding the rule to the record and commenting /approve-spec <full head SHA> on the new head, or by asking for it to be dropped; the author may do so as an engineering owner.
  • Spec gate: the repository's spec gate has not recorded the approval for this head, because it reads only a comment that holds /approve-spec <full head SHA> on its own.

Blocking findings:

  • On a theme whose palette is kept as saved and whose accent is --color-accent for light only with no base, adding corners round to <slug>.settings.json by hand and running show moves nine dark halves (--color-on-info and --color-on-success from #FFFFFF to #000000, --color-accent from #0171E3 to #e11d48) while the same change through set moves none and the build still counts as current (packages/cli/api/theme-edit/_settings.mjs:9894).
  • A whole-theme colour token set for both modes and then removed from <slug>.settings.json by hand leaves the theme with no value for it, and on a newer module that maps no --color-text-accent, set --color-text-accent followed by undo --color-text-accent adds light-dark(#1047c1, #99b9f6) where the theme had none (packages/cli/api/theme-edit/_settings.mjs:5146).
  • After a seed is changed by hand, the editor's way back is refused (set accent '#2563eb', undo and undo accent all answer "Put that setting back to open the theme"), and a whole-theme --color-accent added by hand beside the accent dial is built by show yet refused by set and undo (packages/cli/api/theme-edit/_palette.mjs:1207).

Non-blocking: moduleKeptAsSaved repeats staleBuild's stamp pattern and base-version check, so the two have to move together.

Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset: a theme whose palette recipe this CLI does not know opens and looks unchanged — verified for a theme opened as saved (theme-palette-newer-recipe-opens.test.mjs "opens": the palette files, the settings module and the CSS are byte-identical); false after a hand edit (first finding).
  • Changeset: the saved palette and the newer CLI's settings module are kept and show builds what theme build builds, with a note naming the recipe — verified (same test; the note text is asserted).
  • Changeset: changes that leave the colours alone, and their undo, keep the shades the theme shows — partly false: true through set and undo, plain and named, false for the same change written into the settings file by hand (first finding).
  • Changeset: a change to what the palette is made from is refused while the mode, the base and a part's colours save — verified for set, with one gap: a whole-theme --color-accent added by hand is built by show (third finding).
  • Changeset: the refusal names the recipe and this CLI's version, says what still works and carries no update step — verified (the error text is asserted and offers no commands).
  • Changeset: a newer CLI's build of the same settings counts as current, and undo puts back exactly the colours the step showed, a whole-theme colour token included — verified for the editor's own steps; false in the two cases of the second finding.
  • Changeset: for every theme, one-mode, white, black and written-out halves and unmapped tokens survive a change that leaves the colours alone, and --only, a note or letter case no longer resets them — verified in the code (the colour key ignores --only and notes and compares values case-insensitively); the rule itself is the spec decision above.
  • Description: a recipe name no Astryx CLI makes is still refused — verified (theme-palette-unknown-recipe.test.mjs).
  • Description: no released CLI makes astryx-oklch-v3 — verified (the CLI knows astryx-oklch-v1 and astryx-oklch-v2).
  • Description: older-recipe themes keep their colours, and the editor's note says how to move them — verified (test "an older recipe this CLI knows keeps its colors"; the note is unchanged from the base).
  • Description: on the base, a newer CLI's build was treated as out of date and rebuilt — verified (the base build check calls any other CLI version stale).
  • Description: on the base, show failed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install and astryx upgrade).
  • Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged --only flags dropped and hidden entries left out, as the app-themes record already says — consistent with that record's DEC-11 text; the run itself was not reproduced.
  • Description: the palette rule is recorded in AST-050 beside DEC-11 — verified (the paragraph at docs/specs/AST-050-app-themes/spec.md:688-694, approved for this head).
  • Description: the acceptance check on a real theme saved with astryx-oklch-v3 — not reproduced, as no CLI makes that recipe; the same steps pass on fixtures.
  • Description: five CLI typechecks and sync:api-types are clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, and sync:api-types was not run.
  • Description: the theme-edit, theme, parity and experimental suites have no new failures — partly checked: a 20-file theme-edit subset passes on the same code.
  • Files: .changeset/experimental-theme-palette-newer-recipe-opens.md held for the every-theme rule, with the claims above; docs/specs/AST-050-app-themes/spec.md clear (approved for this head); packages/cli/api/theme-edit/_palette.mjs third finding; packages/cli/api/theme-edit/_settings.mjs first and second findings; packages/cli/api/theme-edit/_edit.mjs clear; packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs clear, with the cases the findings ask for missing; packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec cbbeb39
Covers the spec:AST-050 paragraph beside DEC-11 (owner's yes): for a theme saved with a palette recipe this CLI doesn't make, the editor keeps the palette and module as saved, counts that CLI's build as current, and keeps the shown shades; it refuses only the inputs a palette is made from (color dials, vibrancy, a whole-theme accent, seeds or new families by hand). Mode, base and part tokens save; the message names the recipe, says color changes come once it ships, and gives no install line.

@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 changeset's every-theme shade rule, and on three fixes.

  • Spec decision: the /approve-spec for this head covers the spec:AST-050 DEC-11 paragraph about themes whose palette recipe this CLI does not make, but the changeset's last bullet states a kept-shades rule for every theme (one-mode, white, black and written-out halves and tokens this CLI no longer maps stay as written, and --only, a note or letter case no longer reset them) whose citation, spec:AST-008 FR10, covers generating a new candidate rather than mapping an adopted palette again. An engineering owner settles it by ruling that FR10 covers it, by adding the rule to the record and commenting /approve-spec <full head SHA> on the new head, or by asking for it to be dropped; the author may do so as an engineering owner.
  • Spec gate: the repository's spec gate has not recorded the approval for this head, because it reads only a comment that holds /approve-spec <full head SHA> on its own.

Blocking findings:

  • On a theme whose palette is kept as saved and whose accent is --color-accent for light only with no base, adding corners round to <slug>.settings.json by hand and running show moves nine dark halves (--color-on-info and --color-on-success from #FFFFFF to #000000, --color-accent from #0171E3 to #e11d48) while the same change through set moves none and the build still counts as current (packages/cli/api/theme-edit/_settings.mjs:9894).
  • A whole-theme colour token set for both modes and then removed from <slug>.settings.json by hand leaves the theme with no value for it, and on a newer module that maps no --color-text-accent, set --color-text-accent followed by undo --color-text-accent adds light-dark(#1047c1, #99b9f6) where the theme had none (packages/cli/api/theme-edit/_settings.mjs:5146).
  • After a seed is changed by hand, the editor's way back is refused (set accent '#2563eb', undo and undo accent all answer "Put that setting back to open the theme"), and a whole-theme --color-accent added by hand beside the accent dial is built by show yet refused by set and undo (packages/cli/api/theme-edit/_palette.mjs:1207).

Non-blocking: moduleKeptAsSaved repeats staleBuild's stamp pattern and base-version check, so the two have to move together.

Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset: a theme whose palette recipe this CLI does not know opens and looks unchanged — verified for a theme opened as saved (theme-palette-newer-recipe-opens.test.mjs "opens": the palette files, the settings module and the CSS are byte-identical); false after a hand edit (first finding).
  • Changeset: the saved palette and the newer CLI's settings module are kept and show builds what theme build builds, with a note naming the recipe — verified (same test; the note text is asserted).
  • Changeset: changes that leave the colours alone, and their undo, keep the shades the theme shows — partly false: true through set and undo, plain and named, false for the same change written into the settings file by hand (first finding).
  • Changeset: a change to what the palette is made from is refused while the mode, the base and a part's colours save — verified for set, with one gap: a whole-theme --color-accent added by hand is built by show (third finding).
  • Changeset: the refusal names the recipe and this CLI's version, says what still works and carries no update step — verified (the error text is asserted and offers no commands).
  • Changeset: a newer CLI's build of the same settings counts as current, and undo puts back exactly the colours the step showed, a whole-theme colour token included — verified for the editor's own steps; false in the two cases of the second finding.
  • Changeset: for every theme, one-mode, white, black and written-out halves and unmapped tokens survive a change that leaves the colours alone, and --only, a note or letter case no longer resets them — verified in the code (the colour key ignores --only and notes and compares values case-insensitively); the rule itself is the spec decision above.
  • Description: a recipe name no Astryx CLI makes is still refused — verified (theme-palette-unknown-recipe.test.mjs).
  • Description: no released CLI makes astryx-oklch-v3 — verified (the CLI knows astryx-oklch-v1 and astryx-oklch-v2).
  • Description: older-recipe themes keep their colours, and the editor's note says how to move them — verified (test "an older recipe this CLI knows keeps its colors"; the note is unchanged from the base).
  • Description: on the base, a newer CLI's build was treated as out of date and rebuilt — verified (the base build check calls any other CLI version stale).
  • Description: on the base, show failed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install and astryx upgrade).
  • Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged --only flags dropped and hidden entries left out, as the app-themes record already says — consistent with that record's DEC-11 text; the run itself was not reproduced.
  • Description: the palette rule is recorded in AST-050 beside DEC-11 — verified (the paragraph at docs/specs/AST-050-app-themes/spec.md:688-694, approved for this head).
  • Description: the record paragraph meets the record-writing rubric (no narration, change references, open questions or project status) — verified (the paragraph at docs/specs/AST-050-app-themes/spec.md:688-694 states present-tense rules only).
  • Description: the acceptance check on a real theme saved with astryx-oklch-v3 — not reproduced, as no CLI makes that recipe; the same steps pass on fixtures.
  • Description: five CLI typechecks and sync:api-types are clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, and sync:api-types was not run.
  • Description: the theme-edit, theme, parity and experimental suites have no new failures — partly checked: a 20-file theme-edit subset passes on the same code.
  • Files: .changeset/experimental-theme-palette-newer-recipe-opens.md held for the every-theme rule, with the claims above; docs/specs/AST-050-app-themes/spec.md clear (approved for this head); packages/cli/api/theme-edit/_palette.mjs third finding; packages/cli/api/theme-edit/_settings.mjs first and second findings; packages/cli/api/theme-edit/_edit.mjs clear; packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs clear, with the cases the findings ask for missing; packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers the spec:AST-050 paragraph beside DEC-11 (owner's yes): for a theme saved with a palette recipe this CLI doesn't make, the editor keeps the palette and module as saved, counts that CLI's build as current, and keeps the shown shades; it refuses only the inputs a palette is made from (color dials, vibrancy, a whole-theme accent, seeds or new families by hand). Mode, base and part tokens save; the message names the recipe, says color changes come once it ships, and gives no install line.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 3c44fb1

@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 changeset's every-theme shade rule, and on three fixes.

  • Spec decision: the /approve-spec for this head covers the spec:AST-050 DEC-11 paragraph about themes whose palette recipe this CLI does not make, but the changeset's last bullet states a kept-shades rule for every theme (one-mode, white, black and written-out halves and tokens this CLI no longer maps stay as written, and --only, a note or letter case no longer reset them) whose citation, spec:AST-008 FR10, covers generating a new candidate rather than mapping an adopted palette again. An engineering owner settles it by ruling that FR10 covers it, by adding the rule to the record and commenting /approve-spec <full head SHA> on the new head, or by asking for it to be dropped; the author may do so as an engineering owner.

Blocking findings:

  • On a theme whose palette is kept as saved and whose accent is --color-accent for light only with no base, adding corners round to <slug>.settings.json by hand and running show moves nine dark halves (--color-on-info and --color-on-success from #FFFFFF to #000000, --color-accent from #0171E3 to #e11d48) while the same change through set moves none and the build still counts as current (packages/cli/api/theme-edit/_settings.mjs:9894).
  • A whole-theme colour token set for both modes and then removed from <slug>.settings.json by hand leaves the theme with no value for it, and on a newer module that maps no --color-text-accent, set --color-text-accent followed by undo --color-text-accent adds light-dark(#1047c1, #99b9f6) where the theme had none (packages/cli/api/theme-edit/_settings.mjs:5146).
  • After a seed is changed by hand, the editor's way back is refused (set accent '#2563eb', undo and undo accent all answer "Put that setting back to open the theme"), and a whole-theme --color-accent added by hand beside the accent dial is built by show yet refused by set and undo (packages/cli/api/theme-edit/_palette.mjs:1207).

Non-blocking: moduleKeptAsSaved repeats staleBuild's stamp pattern and base-version check, so the two have to move together.

Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset: a theme whose palette recipe this CLI does not know opens and looks unchanged — verified for a theme opened as saved (theme-palette-newer-recipe-opens.test.mjs "opens": the palette files, the settings module and the CSS are byte-identical); false after a hand edit (first finding).
  • Changeset: the saved palette and the newer CLI's settings module are kept and show builds what theme build builds, with a note naming the recipe — verified (same test; the note text is asserted).
  • Changeset: changes that leave the colours alone, and their undo, keep the shades the theme shows — partly false: true through set and undo, plain and named, false for the same change written into the settings file by hand (first finding).
  • Changeset: a change to what the palette is made from is refused while the mode, the base and a part's colours save — verified for set, with one gap: a whole-theme --color-accent added by hand is built by show (third finding).
  • Changeset: the refusal names the recipe and this CLI's version, says what still works and carries no update step — verified (the error text is asserted and offers no commands).
  • Changeset: a newer CLI's build of the same settings counts as current, and undo puts back exactly the colours the step showed, a whole-theme colour token included — verified for the editor's own steps; false in the two cases of the second finding.
  • Changeset: for every theme, one-mode, white, black and written-out halves and unmapped tokens survive a change that leaves the colours alone, and --only, a note or letter case no longer resets them — verified in the code (the colour key ignores --only and notes and compares values case-insensitively); the rule itself is the spec decision above.
  • Description: a recipe name no Astryx CLI makes is still refused — verified (theme-palette-unknown-recipe.test.mjs).
  • Description: no released CLI makes astryx-oklch-v3 — verified (the CLI knows astryx-oklch-v1 and astryx-oklch-v2).
  • Description: older-recipe themes keep their colours, and the editor's note says how to move them — verified (test "an older recipe this CLI knows keeps its colors"; the note is unchanged from the base).
  • Description: on the base, a newer CLI's build was treated as out of date and rebuilt — verified (the base build check calls any other CLI version stale).
  • Description: on the base, show failed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install and astryx upgrade).
  • Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged --only flags dropped and hidden entries left out, as the app-themes record already says — consistent with that record's DEC-11 text; the run itself was not reproduced.
  • Description: the palette rule is recorded in AST-050 beside DEC-11 — verified (the paragraph at docs/specs/AST-050-app-themes/spec.md:688-694, approved for this head).
  • Description: the record paragraph meets the record-writing rubric (no narration, change references, open questions or project status) — verified (the paragraph at docs/specs/AST-050-app-themes/spec.md:688-694 states present-tense rules only).
  • Description: the acceptance check on a real theme saved with astryx-oklch-v3 — not reproduced, as no CLI makes that recipe; the same steps pass on fixtures.
  • Description: five CLI typechecks and sync:api-types are clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, and sync:api-types was not run.
  • Description: the theme-edit, theme, parity and experimental suites have no new failures — partly checked: a 20-file theme-edit subset passes on the same code.
  • Files: .changeset/experimental-theme-palette-newer-recipe-opens.md held for the every-theme rule, with the claims above; docs/specs/AST-050-app-themes/spec.md clear (approved for this head); packages/cli/api/theme-edit/_palette.mjs third finding; packages/cli/api/theme-edit/_settings.mjs first and second findings; packages/cli/api/theme-edit/_edit.mjs clear; packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs clear, with the cases the findings ask for missing; packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers the spec:AST-050 paragraph beside DEC-11 (owner's yes): for a theme saved with a palette recipe this CLI doesn't make, the editor keeps the palette and module as saved, counts that CLI's build as current, and keeps the shown shades; it refuses only the inputs a palette is made from (color dials, vibrancy, a whole-theme accent, seeds or new families by hand). Mode, base and part tokens save; the message names the recipe, says color changes come once it ships, and gives no install line.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 5709ad0

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

Not ready to approve yet: one owner decision and two fixes remain.

Approval needs an engineering owner to provide or identify the governing spec for the every-theme shade rule in the changeset's last bullet, which reaches themes with a known recipe and so falls outside the approved AST-050 DEC-11 paragraph: add it to a record and approve the new head with /approve-spec <full head SHA>, say that AST-008 FR10 already covers it, or drop the bullet and the code that applies it to every theme. The author may record that decision if they are an engineering owner.

Blocking:

  • A corners change written into the settings file by hand, then show, recolors a newer-recipe theme that has no base and a light-only accent (seven dark halves move, for example --color-on-info from #FFFFFF to #000000), which breaks the DEC-11 paragraph's "a change that leaves its colors alone keeps the shades it shows"; map only the halves a color-token setting could have written, or narrow the paragraph to themes not edited by hand as the changeset now does, and add this case to theme-palette-newer-recipe-opens.test.mjs.
  • On a newer module that maps no --color-text-accent, set --color-text-accent '#7a1fa2' followed by undo --color-text-accent leaves light-dark(#1047c1, #99b9f6), a color the theme never showed (_settings.mjs:5144-5146); leave such a token unset when no undo step showed it, and add the case to the test.

Smaller point: after a seed is changed by hand, set back to the saved seed gets the same "Put that setting back" refusal, so saying that the file has to be edited by hand would end that loop.

Claims and files checked

Review mode: full; reason: history

  • Claim: a theme a newer CLI saved now opens, and opening one not edited by hand leaves its look unchanged — verified by the "opens" test and a probe.
  • Claim: the saved palette and the newer settings module stay as they are, show builds the same CSS as theme build, and a note names the recipe — verified by the "opens" test.
  • Claim: for a theme not edited by hand, non-color changes and their undo keep the shades; a color dial, the vibrancy or a whole-theme accent is refused with no update step; the mode, the base and a part's colors save — verified by the tests and a probe showing no suggested command.
  • Claim: a newer CLI's build of the same settings counts as current, and undo puts back the colors the step showed — verified for a step back by the tests and a probe; a named undo of a token the newer module never mapped leaves a new color (blocking finding).
  • Claim: for every theme, a non-color change keeps one-mode, white, black and unmapped halves, and --only, a note or letter case no longer reset them — matches the code (paletteColorKey, stopsIn, keepShades); awaits the owner decision above.
  • Claim: a recipe name no Astryx CLI makes is still refused — verified (the generator path and the unknown-recipe test).
  • Claim: older-recipe themes keep their colors, and the note says how to move them — verified by the recipe tests.
  • Claim: a hand edit that leaves the colors alone (corners) keeps the shades — true for a theme with a base, false for one with no base and a one-mode accent (blocking finding).
  • Claim: the rule is recorded in AST-050 beside DEC-11 — verified.
  • Claim: five CLI typechecks and the API-types sync are clean, and the wider suites show no new failures — not re-run in this review.
  • File .changeset/experimental-theme-palette-newer-recipe-opens.md: the every-theme bullet awaits the owner decision.
  • File docs/specs/AST-050-app-themes/spec.md: clear; approved for this head.
  • File packages/cli/api/theme-edit/_edit.mjs: clear.
  • File packages/cli/api/theme-edit/_palette.mjs: the hand-edited seed refusal loop (smaller point).
  • File packages/cli/api/theme-edit/_settings.mjs: both blocking findings.
  • File packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs: clear; it lacks the two blocking cases.
  • File packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs: clear.

Automated review (maintainer link)

…e opens unchanged

A palette recipe this CLI does not make keeps the saved palette and the
settings module the newer CLI wrote exactly as they are; show builds the
same CSS theme build makes of them, and a note names the recipe. Changes
that leave the colors alone save and keep each token as the saved module
writes it; a change to what the palette is made from (a color dial, the
vibrancy, the whole-theme accent token, or a seed or color added by
hand) is refused, naming the recipe and what still works, with no update
step. That CLI's build of the same settings counts as current. Recorded
in AST-050 beside DEC-11.

[skip ci]
@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers the spec:AST-050 paragraph beside DEC-11 (owner's yes; narrowed by the owner's ruling): for a theme not edited by hand that was saved with a palette recipe this CLI doesn't make, the editor keeps the palette and module as saved, counts that CLI's build as current, and keeps the shown shades; it refuses only the inputs a palette is made from (color dials, vibrancy, a whole-theme accent, seeds or new families by hand). Mode, base and part tokens save; the message names the recipe, says color changes come once it ships, and gives no install line. The follow-up that fixes the hand-edited cases and the named undo puts the wider sentence back.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d389042

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

Not ready to approve yet: one owner decision remains, and no blocking defect is left.

Approval needs an engineering owner to provide or identify the governing spec for the changeset's last bullet, the every-theme shade rule: it reaches themes with a known palette recipe, so the approved AST-050 DEC-11 paragraph (themes whose recipe this CLI does not make) does not cover it, and AST-008 FR10 speaks to generating a new candidate. An engineering owner can say that FR10 covers it, add the rule to a record and approve the new head with /approve-spec <full head SHA>, or ask for the bullet and the code that applies it to known recipes to come out; the author may record it too, being an engineering owner.

  • Smaller point, for the follow-up the description names: corners added to the settings file by hand on a newer theme with no base and a light-only accent still move seven dark halves (for example --color-accent from #0171E3 to #e11d48), so the test plan's hand-edit line holds only for a theme with a base.
Claims and files checked

Review mode: full; reason: history

  • Claim: a theme a newer CLI saved now opens, and opening one not edited by hand leaves its look unchanged — verified by the "opens" test and a probe on base and head.
  • Claim: the saved palette and the newer settings module stay as they are, show builds the same CSS as theme build, and a note names the recipe — verified by the "opens" test.
  • Claim: for a theme not edited by hand, non-color changes and their undo keep the shades; a color dial, the vibrancy or a whole-theme accent is refused with no update step; the mode, the base and a part's colors save — verified by the tests and a probe of the vibrancy and the whole-theme accent.
  • Claim: a newer CLI's build of the same settings counts as current, and undo puts back the colors the step showed, except a named undo of a token the newer module does not map, which writes this CLI's shade — verified by the tests; a probe measured the exception as stated.
  • Claim: for every theme, a non-color change keeps one-mode, white, black and unmapped halves, and --only, a note or letter case no longer reset them — matches the code (paletteColorKey, stopsIn, keepShades); awaits the owner decision above.
  • Claim: a recipe name no Astryx CLI makes is still refused — verified by the unknown-recipe test.
  • Claim: older-recipe themes keep their colors, and the editor's note says how to move them — verified by the recipe tests and the note in the palette module.
  • Claim: before this change, show failed with only a CLI update offered, and a newer CLI's build was rebuilt with older code — verified by a probe on the base and the removed stamp check.
  • Claim: a hand edit that leaves the colors alone (corners) is built with the shades the theme shows — true for the tested theme with a base; false for a theme with no base and a light-only accent (smaller point).
  • Claim: the rule is recorded in AST-050 beside DEC-11, limited to a theme not edited by hand — verified.
  • Claim: the acceptance steps on a real theme (non-color edit, open, build, undo, refused color edit, named undo of a one-mode page color) work — the same paths verified by the tests and probes on fixtures.
  • Claim: the CLI typechecks are clean — the template-docs, strict, JSON API and authoring configs report no error in the changed files (strict fails only on two templates that import a theme build output not built here); the API-types sync and the wider suites were not re-run.
  • Claim: the writing rubric over the new paragraph — matches: present tense, no project status.
  • File .changeset/experimental-theme-palette-newer-recipe-opens.md: the every-theme bullet awaits the owner decision.
  • File docs/specs/AST-050-app-themes/spec.md: clear; approved for this head.
  • File packages/cli/api/theme-edit/_edit.mjs: clear.
  • File packages/cli/api/theme-edit/_palette.mjs: clear; the hand-changed seed refusal still refuses the command that sets the seed back (non-blocking).
  • File packages/cli/api/theme-edit/_settings.mjs: clear for the narrowed claims; the hand-added corners case and the named-undo shade stay for the follow-up.
  • File packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs: clear; its hand-edit test covers a theme with a base.
  • File packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjs: clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #13083.

This branch was successfully deployed

1 active deployment
Preview — d3890427 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