Repository navigation
experimental theme: a theme whose palette recipe a newer CLI made opens unchanged - #12735
josephfarina wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
6d28463 to
56b2245
Compare
9b76340 to
55b7d01
Compare
f31108c to
e082ee6
Compare
There was a problem hiding this comment.
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-050DEC-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-008FR10, 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.jsonby hand recolours the dark mode: on a theme whose accent is--color-accentfor light only with no base, addingcorners roundby hand and runningshowmoves nine dark halves (--color-on-infoand--color-on-successfrom#FFFFFFto#000000,--color-accentfrom#0171E3to#e11d48), while the same change throughsetmoves 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.jsonby hand leaves the theme with no value for it (--color-text-accentshowedlight-dark(#123456, #99b9f6)before the set and is absent aftershow), and on a newer module that maps a token at all,set --color-text-accentfollowed byundo --color-text-accentaddslight-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
#2563ebto#e11d48,set accent '#2563eb',undoandundo accentall return "Put that setting back to open the theme", while a whole-theme--color-accentadded by hand beside the accent dial is built byshowyet refused bysetandundo(packages/cli/api/theme-edit/_palette.mjs:1190). - The description says that on the base "
showfailed on the unknown recipe, and the undo it offered failed the same way"; the base refusal offers the CLI install andastryx upgradesteps, 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
showbuilds whattheme buildbuilds, 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
setandundo, 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-accentadded by hand is built byshow(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--onlyand 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 knowsastryx-oklch-v1andastryx-oklch-v2). - Description: the base's refusal offered an undo — false (fourth finding above).
- Description: the test plan's five typechecks and
sync:api-typesare 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.mdclear;docs/specs/AST-050-app-themes/spec.mdheld for the spec decision;packages/cli/api/theme-edit/_palette.mjsthird finding;packages/cli/api/theme-edit/_settings.mjsfirst and second findings;packages/cli/api/theme-edit/_edit.mjsclear;packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjsclear, with the three cases the findings ask for missing;packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjsclear.
| paletteStopsOnly( | ||
| builtFrom && stamp === settingsStamp(builtFrom).split(' ')[0] | ||
| ? read | ||
| : literalsMapped(read), |
There was a problem hiding this comment.
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}}; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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-050DEC-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-008FR10, 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.jsonby hand recolours the dark mode: on a theme whose accent is--color-accentfor light only with no base, addingcorners roundby hand and runningshowmoves nine dark halves (--color-on-infoand--color-on-successfrom#FFFFFFto#000000,--color-accentfrom#0171E3to#e11d48), while the same change throughsetmoves 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.jsonby hand leaves the theme with no value for it (--color-text-accentshowedlight-dark(#123456, #99b9f6)before the set and is absent aftershow), and on a newer module that does not map a token,set --color-text-accentfollowed byundo --color-text-accentaddslight-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
#2563ebto#e11d48,set accent '#2563eb',undoandundo accentall return "Put that setting back to open the theme", while a whole-theme--color-accentadded by hand beside the accent dial is built byshowyet refused bysetandundo(packages/cli/api/theme-edit/_palette.mjs:1207). - The description says that on the base "
showfailed on the unknown recipe, and the undo it offered failed the same way"; the base refusal offers the CLI install andastryx upgradesteps, 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
showbuilds whattheme buildbuilds, 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
setandundo, 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-accentadded by hand is built byshow(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--onlyand 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 knowsastryx-oklch-v1andastryx-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-typesare clean — partly checked: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, andsync:api-typeswas 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.mdheld for the spec decision, with the claims above;docs/specs/AST-050-app-themes/spec.mdheld for the spec decision;packages/cli/api/theme-edit/_palette.mjsthird finding;packages/cli/api/theme-edit/_settings.mjsfirst and second findings;packages/cli/api/theme-edit/_edit.mjsclear;packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjsclear, with the cases the findings ask for missing;packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjsclear.
|
/approve-spec c644c16 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the changeset's every-theme shade rule, and on four fixes.
- Spec decision: the
/approve-specfor this head covers thespec:AST-050DEC-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-008FR10, 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-accentfor light only with no base, addingcorners roundto<slug>.settings.jsonby hand and runningshowmoves nine dark halves (--color-on-infoand--color-on-successfrom#FFFFFFto#000000,--color-accentfrom#0171E3to#e11d48) while the same change throughsetmoves 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.jsonby hand leaves the theme with no value for it, and on a newer module that maps no--color-text-accent,set --color-text-accentfollowed byundo --color-text-accentaddslight-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',undoandundo accentall answer "Put that setting back to open the theme"), and a whole-theme--color-accentadded by hand beside the accent dial is built byshowyet refused bysetandundo(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 upgradesteps 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
showbuilds whattheme buildbuilds, 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
setandundo, 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-accentadded by hand is built byshow(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--onlyand 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 knowsastryx-oklch-v1andastryx-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-typesare clean — partly checked: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, andsync:api-typeswas 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.mdheld for the every-theme rule, with the claims above;docs/specs/AST-050-app-themes/spec.mdclear (approved for this head);packages/cli/api/theme-edit/_palette.mjsthird finding;packages/cli/api/theme-edit/_settings.mjsfirst and second findings;packages/cli/api/theme-edit/_edit.mjsclear;packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjsclear, with the cases the findings ask for missing;packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjsclear.
|
/approve-spec 4268a3b |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the changeset's every-theme shade rule, and on three fixes.
- Spec decision: the
/approve-specfor this head covers thespec:AST-050DEC-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-008FR10, 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-accentfor light only with no base, addingcorners roundto<slug>.settings.jsonby hand and runningshowmoves nine dark halves (--color-on-infoand--color-on-successfrom#FFFFFFto#000000,--color-accentfrom#0171E3to#e11d48) while the same change throughsetmoves 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.jsonby hand leaves the theme with no value for it, and on a newer module that maps no--color-text-accent,set --color-text-accentfollowed byundo --color-text-accentaddslight-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',undoandundo accentall answer "Put that setting back to open the theme"), and a whole-theme--color-accentadded by hand beside the accent dial is built byshowyet refused bysetandundo(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
showbuilds whattheme buildbuilds, 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
setandundo, 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-accentadded by hand is built byshow(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--onlyand 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 knowsastryx-oklch-v1andastryx-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,
showfailed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install andastryx upgrade). - Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged
--onlyflags 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-typesare clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, andsync:api-typeswas 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.mdheld for the every-theme rule, with the claims above;docs/specs/AST-050-app-themes/spec.mdclear (approved for this head);packages/cli/api/theme-edit/_palette.mjsthird finding;packages/cli/api/theme-edit/_settings.mjsfirst and second findings;packages/cli/api/theme-edit/_edit.mjsclear;packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjsclear, with the cases the findings ask for missing;packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjsclear.
|
/approve-spec 49d8c13 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the changeset's every-theme shade rule, and on three fixes.
- Spec decision: the
/approve-specfor this head covers thespec:AST-050DEC-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-008FR10, 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-accentfor light only with no base, addingcorners roundto<slug>.settings.jsonby hand and runningshowmoves nine dark halves (--color-on-infoand--color-on-successfrom#FFFFFFto#000000,--color-accentfrom#0171E3to#e11d48) while the same change throughsetmoves 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.jsonby hand leaves the theme with no value for it, and on a newer module that maps no--color-text-accent,set --color-text-accentfollowed byundo --color-text-accentaddslight-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',undoandundo accentall answer "Put that setting back to open the theme"), and a whole-theme--color-accentadded by hand beside the accent dial is built byshowyet refused bysetandundo(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
showbuilds whattheme buildbuilds, 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
setandundo, 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-accentadded by hand is built byshow(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--onlyand 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 knowsastryx-oklch-v1andastryx-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,
showfailed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install andastryx upgrade). - Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged
--onlyflags 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-typesare clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, andsync:api-typeswas 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.mdheld for the every-theme rule, with the claims above;docs/specs/AST-050-app-themes/spec.mdclear (approved for this head);packages/cli/api/theme-edit/_palette.mjsthird finding;packages/cli/api/theme-edit/_settings.mjsfirst and second findings;packages/cli/api/theme-edit/_edit.mjsclear;packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjsclear, with the cases the findings ask for missing;packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjsclear.
|
/approve-spec dd7f6d2 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the changeset's every-theme shade rule, and on three fixes.
- Spec decision: the
/approve-specfor this head covers thespec:AST-050DEC-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-008FR10, 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-accentfor light only with no base, addingcorners roundto<slug>.settings.jsonby hand and runningshowmoves nine dark halves (--color-on-infoand--color-on-successfrom#FFFFFFto#000000,--color-accentfrom#0171E3to#e11d48) while the same change throughsetmoves 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.jsonby hand leaves the theme with no value for it, and on a newer module that maps no--color-text-accent,set --color-text-accentfollowed byundo --color-text-accentaddslight-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',undoandundo accentall answer "Put that setting back to open the theme"), and a whole-theme--color-accentadded by hand beside the accent dial is built byshowyet refused bysetandundo(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
showbuilds whattheme buildbuilds, 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
setandundo, 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-accentadded by hand is built byshow(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--onlyand 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 knowsastryx-oklch-v1andastryx-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,
showfailed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install andastryx upgrade). - Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged
--onlyflags 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-typesare clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, andsync:api-typeswas 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.mdheld for the every-theme rule, with the claims above;docs/specs/AST-050-app-themes/spec.mdclear (approved for this head);packages/cli/api/theme-edit/_palette.mjsthird finding;packages/cli/api/theme-edit/_settings.mjsfirst and second findings;packages/cli/api/theme-edit/_edit.mjsclear;packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjsclear, with the cases the findings ask for missing;packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjsclear.
|
/approve-spec 38b89a1 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the changeset's every-theme shade rule, and on three fixes.
- Spec decision: the
/approve-specfor this head covers thespec:AST-050DEC-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-008FR10, 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-accentfor light only with no base, addingcorners roundto<slug>.settings.jsonby hand and runningshowmoves nine dark halves (--color-on-infoand--color-on-successfrom#FFFFFFto#000000,--color-accentfrom#0171E3to#e11d48) while the same change throughsetmoves 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.jsonby hand leaves the theme with no value for it, and on a newer module that maps no--color-text-accent,set --color-text-accentfollowed byundo --color-text-accentaddslight-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',undoandundo accentall answer "Put that setting back to open the theme"), and a whole-theme--color-accentadded by hand beside the accent dial is built byshowyet refused bysetandundo(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
showbuilds whattheme buildbuilds, 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
setandundo, 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-accentadded by hand is built byshow(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--onlyand 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 knowsastryx-oklch-v1andastryx-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,
showfailed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install andastryx upgrade). - Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged
--onlyflags 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-typesare clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, andsync:api-typeswas 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.mdheld for the every-theme rule, with the claims above;docs/specs/AST-050-app-themes/spec.mdclear (approved for this head);packages/cli/api/theme-edit/_palette.mjsthird finding;packages/cli/api/theme-edit/_settings.mjsfirst and second findings;packages/cli/api/theme-edit/_edit.mjsclear;packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjsclear, with the cases the findings ask for missing;packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjsclear.
|
/approve-spec cbbeb39 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the changeset's every-theme shade rule, and on three fixes.
- Spec decision: the
/approve-specfor this head covers thespec:AST-050DEC-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-008FR10, 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-accentfor light only with no base, addingcorners roundto<slug>.settings.jsonby hand and runningshowmoves nine dark halves (--color-on-infoand--color-on-successfrom#FFFFFFto#000000,--color-accentfrom#0171E3to#e11d48) while the same change throughsetmoves 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.jsonby hand leaves the theme with no value for it, and on a newer module that maps no--color-text-accent,set --color-text-accentfollowed byundo --color-text-accentaddslight-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',undoandundo accentall answer "Put that setting back to open the theme"), and a whole-theme--color-accentadded by hand beside the accent dial is built byshowyet refused bysetandundo(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
showbuilds whattheme buildbuilds, 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
setandundo, 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-accentadded by hand is built byshow(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--onlyand 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 knowsastryx-oklch-v1andastryx-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,
showfailed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install andastryx upgrade). - Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged
--onlyflags 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-694states 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-typesare clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, andsync:api-typeswas 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.mdheld for the every-theme rule, with the claims above;docs/specs/AST-050-app-themes/spec.mdclear (approved for this head);packages/cli/api/theme-edit/_palette.mjsthird finding;packages/cli/api/theme-edit/_settings.mjsfirst and second findings;packages/cli/api/theme-edit/_edit.mjsclear;packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjsclear, with the cases the findings ask for missing;packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjsclear.
|
Covers the |
|
/approve-spec 3c44fb1 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the changeset's every-theme shade rule, and on three fixes.
- Spec decision: the
/approve-specfor this head covers thespec:AST-050DEC-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-008FR10, 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-accentfor light only with no base, addingcorners roundto<slug>.settings.jsonby hand and runningshowmoves nine dark halves (--color-on-infoand--color-on-successfrom#FFFFFFto#000000,--color-accentfrom#0171E3to#e11d48) while the same change throughsetmoves 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.jsonby hand leaves the theme with no value for it, and on a newer module that maps no--color-text-accent,set --color-text-accentfollowed byundo --color-text-accentaddslight-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',undoandundo accentall answer "Put that setting back to open the theme"), and a whole-theme--color-accentadded by hand beside the accent dial is built byshowyet refused bysetandundo(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
showbuilds whattheme buildbuilds, 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
setandundo, 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-accentadded by hand is built byshow(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--onlyand 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 knowsastryx-oklch-v1andastryx-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,
showfailed on the unknown recipe and offered only to update the CLI — verified (the base refusal's suggestions are the CLI install andastryx upgrade). - Description: the acceptance check's undo returns the settings as this CLI first saved them, with unchanged
--onlyflags 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-694states 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-typesare clean — partly checked on the same code: three typechecks are clean, the strict one stops on two missing-module errors in unchanged template pages, andsync:api-typeswas 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.mdheld for the every-theme rule, with the claims above;docs/specs/AST-050-app-themes/spec.mdclear (approved for this head);packages/cli/api/theme-edit/_palette.mjsthird finding;packages/cli/api/theme-edit/_settings.mjsfirst and second findings;packages/cli/api/theme-edit/_edit.mjsclear;packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjsclear, with the cases the findings ask for missing;packages/cli/api/theme-edit/theme-palette-unknown-recipe.test.mjsclear.
|
Covers the |
|
/approve-spec 5709ad0 |
There was a problem hiding this comment.
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-infofrom#FFFFFFto#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 totheme-palette-newer-recipe-opens.test.mjs. - On a newer module that maps no
--color-text-accent,set --color-text-accent '#7a1fa2'followed byundo --color-text-accentleaveslight-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,
showbuilds the same CSS astheme 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.
…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]
|
Covers the |
|
/approve-spec d389042 |
There was a problem hiding this comment.
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-accentfrom#0171E3to#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,
showbuilds the same CSS astheme 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,
showfailed 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.
|
Landed in #13083. |
What users see
A theme whose palette recipe a newer Astryx CLI made now opens, and opening it doesn't change how it looks.
showbuilds the same CSS thatastryx theme buildmakes of them. A note names the recipe.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.Older-recipe themes keep their colours, as before; editing
recipein palette.config.json moves them to the newest (the editor's note says how).--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:
showfailed 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:set <theme> padding 8px --on card): okshow): oktheme build): ok--onlyflags 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.set <theme> accent '#0d6efd'): refused as planned, naming the recipe and what still works, with no install line; palette and settings unchanged.set <theme> --color-background-body '#ff00ff' --mode light, thenundo <theme> --color-background-body --mode light): exit 0, no#ff00ffleft 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 plainundosteps back to it.Test plan
theme-palette-newer-recipe-opens.test.mjscovers: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.mjsandtheme-saved-older-editor-opens.test.mjsstill pass.sync:api-typesare 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:#numbers,/pull/or/issues/).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.