Skip to content

experimental theme how: a corner ask the part already answers says so - #12519

Closed
josephfarina wants to merge 7 commits into
theme-r15-p23from
theme-r15-p24
Closed

josephfarina wants to merge 7 commits into
theme-r15-p23from
theme-r15-p24

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary: experimental theme how: a corner ask the part already answers says so. Editor-only (experimental theme editor in packages/cli); no Core, spec record or official-theme change.

Part 23 of 25 of round 15, landing as a stack: based on theme-r15-p23; merge in order (the next part retargets onto main after this one merges).

What changes

  • experimental theme how: a corner ask the part already answers says so and writes nothing

Phrase rules

  • _how-question.mjs line delta: +168/-44.
  • Adds no mood/feel phrase matches.

Test plan

  • Every commit here was gated in the round-15 integration branch: full Node suite with CI=1, the five cli typechecks, check-cli-structure, check:changesets, and the held-out how answer key (252 right, 0 wrong writes).
  • CI has not run on this head yet: a stacked part gets CI only once it targets main. Each head is also checked locally before that (typechecks, structure, its own test files, the held-out key), and any failure found only at this head is fixed in this PR.
  • Look gate (a Bootstrap-style site built from the top of this stack, live render): no new blocking finding vs main. The tab, pager and phone blocks are gone; only the theme's own white-on-pale label text remains, as that theme sets it.

@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 20, 2026 1:02pm 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
🟡 Reviewed (for maintainers only) Nov 20, 2026, 1:18 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs an owner decision, plus two fixes to the corner reader.

The new how corner answers (already-so answers with no command, a square corner taking the part's own rounded corner, and the already-so hint) have no current spec record behind them, so approval waits on an engineering owner recording that direction by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner, on the head that carries the fixes below.

  • fourOf in _how-question.mjs splits a radius at every space, so after how "cards 4px rounder" writes max(0px, calc(var(--radius-container) + 4px)), the ask "cards rounded on top" builds the invalid max(0px, calc(var(--radius-container) 0 0 and gets no command where the previous code wrote two valid bottom-corner longhands; split only outside parentheses and leave a radius it cannot read as it is.
  • The already-so check reads only the part's plain border-radius setting, so tabs at 4px 4px 0 0 with a later border-end-end-radius 8px answer "tabs square at the bottom" with "already so, nothing to change" while the bottom-right corner is 8px; include the part's own corner longhands in the comparison and add a test for that state.
Claims and files checked

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

Claims:

  • Changeset: a corner ask the part already answers writes nothing and leads with "already so … nothing to change", never "No command does all of …": verified for the three asks in the new test, which fails on the base and passes on the head.
  • Changeset: a corner the ask rounds that is square now takes the part's own rounded corner (4px 4px 0 0 and "rounded on the left only" give 4px 0 0 4px): verified by the new test.
  • Description: editor-only, with no Core, spec record or official-theme change: verified; the four changed files are the CLI theme editor's how modules, its test and a changeset.
  • Description: part 23 of the round, based on the previous part's branch: verified against the base branch and the base pull request's part number.
  • Description: _how-question.mjs changes by +98/-72 lines: verified.
  • Description: adds no mood or feel phrase matches: verified; the diff adds no phrase pattern.
  • Description: every commit was gated on the round's integration branch: not verifiable at this head; here the changed test file passes, lint on the changed modules and the CLI structure check pass, and the strict CLI typecheck reports only two unrelated template errors from an unbuilt theme package.
  • Description: this part's own CI runs on this exact head: not yet; no CI workflow has run, because CI runs only for pull requests into main or release branches.
  • Description: look gate on a site built from the top of the stack: not verifiable at this head.

Files:

  • .changeset/experimental-theme-how-corners-already-so.md: clear.
  • packages/cli/api/theme-edit/_how-question.mjs: the two blocking findings above, and one non-blocking note (the answer says "rounded as now" when a square corner newly takes the radius).
  • packages/cli/api/theme-edit/_how.mjs: clear; the already-so tag and hint match the reader's already-so drafts.
  • packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; it covers neither finding's theme state.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request): the experimental theme editor's corner answers in this pull request (an already-so answer with no command, a square corner taking the part's own rounded corner, and the already-so hint) are experimental editor rules, approved as written. Each rule has a test, and the editor's answer names what it applied, so the user can see how their words were read.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 198b5b3

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 0d02d94

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6337644

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 4ab48db

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the engineering owner's decision settles the direction of the new how corner answers, but two corner-reader regressions remain.

  • fourOf in _how-question.mjs splits a radius at every space, so after how "cards 4px rounder" writes max(0px, calc(var(--radius-container) + 4px)), the ask "cards rounded on top" builds the invalid max(0px, calc(var(--radius-container) 0 0 and gets no command where the previous code wrote two valid bottom-corner longhands; split only outside parentheses and leave a radius it cannot read as it is.
  • The already-so check reads only the part's plain border-radius setting, so tabs at 4px 4px 0 0 with a later border-end-end-radius 8px answer "tabs square at the bottom" with "already so, nothing to change" while the bottom-right corner is 8px; include the part's own corner longhands in the comparison and add a test for that state.

Once both are fixed, the new head needs its own /approve-spec, because an approval covers one head.

Claims and files checked

Review mode: carry-forward; reason: none

Claims:

  • Changeset: a corner ask the part already answers writes nothing and leads with "already so … nothing to change", never "No command does all of …": verified for the three asks in the new test, which fails on the base and passes with this patch.
  • Changeset: a corner the ask rounds that is square now takes the part's own rounded corner (4px 4px 0 0 and "rounded on the left only" give 4px 0 0 4px): verified by the new test.
  • Description: editor-only, with no Core, spec record or official-theme change: verified; the four changed files are the CLI theme editor's how modules, its test and a changeset.
  • Description: part 23 of the round, based on the previous part's branch, merged in order: verified against the base branch.
  • Description: _how-question.mjs changes by +98/-72 lines: verified.
  • Description: adds no mood or feel phrase matches: verified; the diff adds no phrase pattern.
  • Description: every commit was gated on the round's integration branch, and each head is checked locally: not verifiable here; the changed test file passes with this patch, and lint and the CLI structure check pass on the changed modules.
  • Description: CI has not run on this head yet: verified; no test or lint workflow ran, only license, preview and review-gate checks.
  • Description: look gate on a site built from the top of the stack: not verifiable here.

Files:

  • .changeset/experimental-theme-how-corners-already-so.md: clear.
  • packages/cli/api/theme-edit/_how-question.mjs: the two blocking findings above, and one non-blocking note (the answer says "rounded as now" when a square corner newly takes the radius).
  • packages/cli/api/theme-edit/_how.mjs: clear; the already-so tag and hint match the reader's already-so drafts.
  • packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; it covers neither finding's theme state.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 622daaa

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the already-so corner answers are an owner-decided direction and work in the tested tab, heading, status-dot and longhand cases, but two points from the last review remain on this head.

  • With a corner longhand on each side of a part's radius (tabs at border-end-start-radius 8px, then border-radius 4px 4px 0 0, then border-end-end-radius 8px), "tab corners 8px except the top" writes only the top corners, so the bottom-left corner stays square and asking again answers "is already so"; drop !longhandLast && from the behind-radius condition in writeAll (_how-question.mjs:22058) and add a test for that state.
  • The description says the _how-question.mjs line delta is +88/-29, but the file is +145/-30 against the base; update the description.

Two non-blocking points: the comment above behindRadius says a re-written longhand keeps its place before the radius, but set keeps only an identical setting in place, so a changed corner there is written as a physical radius ('4px 4px 12px 0') where a logical longhand would keep right-to-left pages right; and the old comment at _how-question.mjs:22186-22187 still sits above its replacement.

Claims and files checked

Review mode: carry-forward; reason: none

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with "already so … nothing to change", never with "No command does all of …" — verified: the new test fails on the base code and passes here.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square — verified by the new longhand test.
  • Claim (changeset): an experimental patch for the CLI — verified.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): one numbered part of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states; the first finding is a state where an under-written corner is reported as already so.
  • Claim (description): the question module's line delta is +88/-29 — false: +145/-30 at this head (second finding).
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): integration-branch gating, the held-out answer key, local checks and the look gate — not checkable from the repository; the corner test file and 18 neighbouring how and corner test files pass on this head.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: the first finding; two non-blocking comments.
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; the five new tests cover the earlier findings, not a longhand on each side of the radius.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the already-so corner answers are an owner-decided direction and work in the tested tab, heading, status-dot and longhand cases, but two points from the last review remain on this head.

  • With a corner longhand on each side of a part's radius (tabs at border-end-start-radius 8px, then border-radius 4px 4px 0 0, then border-end-end-radius 8px), "tab corners 8px except the top" writes only the top corners, so the bottom-left corner stays square and asking again answers "is already so"; drop !longhandLast && from the behind-radius condition in writeAll (_how-question.mjs:22058) and add a test for that state.
  • The description says the _how-question.mjs line delta is +88/-29, but the file is +145/-30 against the base; update the description.

Two non-blocking points: the comment above behindRadius says a re-written longhand keeps its place before the radius, but set keeps only an identical setting in place, so a changed corner there is written as a physical radius ('4px 4px 12px 0') where a logical longhand would keep right-to-left pages right; and the old comment at _how-question.mjs:22186-22187 still sits above its replacement.

Claims and files checked

Review mode: carry-forward; reason: none

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with "already so … nothing to change", never with "No command does all of …" — verified: the new test fails on the base code and passes here.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square — verified by the new longhand test.
  • Claim (changeset): an experimental patch for the CLI — verified.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): one numbered part of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states; the first finding is a state where an under-written corner is reported as already so.
  • Claim (description): the question module's line delta is +88/-29 — false: +145/-30 at this head (second finding).
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): integration-branch gating, the held-out answer key, local checks and the look gate — not checkable from the repository; the corner test file and 18 neighbouring how and corner test files pass on this head.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: the first finding; two non-blocking comments.
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; the five new tests cover the earlier findings, not a longhand on each side of the radius.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the already-so corner answers follow the engineering owner's decision and work in the tested tab, heading, status-dot and longhand cases, but two points from the last review remain on this head.

  • With a corner longhand on each side of a part's radius (tabs at border-end-start-radius 8px, then border-radius 4px 4px 0 0, then border-end-end-radius 8px), "tab corners 8px except the top" writes only the top corners, so the bottom-left corner stays square and asking again answers "is already so"; drop !longhandLast && from the behind-radius condition in writeAll (_how-question.mjs:22059) and add a test for that state.
  • The description says the _how-question.mjs line delta is +88/-29, but the file is +145/-30 against the base; update the description.

Two non-blocking points: when a corner's longhand sits before the radius and its value changes, the ask writes a physical radius ('4px 4px 12px 0') where a logical longhand would keep right-to-left pages right, so take the radius path only for an unchanged value and correct the comment above behindRadius; and the old comment at _how-question.mjs:22187-22188 still sits above its replacement.

Claims and files checked

Review mode: full; reason: rebase

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with "already so … nothing to change", never with "No command does all of …" — verified: the new test fails on the base code and passes here, and a probe shows the hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square — verified by the new longhand test.
  • Claim (changeset): an experimental patch for the CLI — verified.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): one numbered part of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states; the first finding is a state where an under-written corner is reported as already so.
  • Claim (description): the question module's line delta is +88/-29 — false: +145/-30 at this head (second finding).
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): integration-branch gating, the held-out answer key, local checks and the look gate — not checkable from the repository; the corner test file and 21 neighbouring how and corner test files pass on this head.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: the first finding; two non-blocking comments.
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; the five new tests cover the earlier findings, not a longhand on each side of the radius.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the already-so corner answers follow the engineering owner's decision and work in the tested tab, heading, status-dot and longhand cases, but two points from the last review remain on this head.

  • With a corner longhand on each side of a part's radius (tabs at border-end-start-radius 8px, then border-radius 4px 4px 0 0, then border-end-end-radius 8px), "tab corners 8px except the top" writes only the top corners, so the bottom-left corner stays square and asking again answers "is already so"; drop !longhandLast && from the behind-radius condition in writeAll (_how-question.mjs:22117) and add a test for that state.
  • The description says the _how-question.mjs line delta is +88/-29, but the file is +145/-30 against the base; update the description.

Two non-blocking points: when a corner's longhand sits before the radius and its value changes, the ask writes a physical radius ('4px 4px 12px 0') where a logical longhand would keep right-to-left pages right, so take the radius path only for an unchanged value and correct the comment above behindRadius; and the old comment at _how-question.mjs:22245-22246 still sits above its replacement.

Claims and files checked

Review mode: full; reason: rebase

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with "already so … nothing to change", never with "No command does all of …" — verified: the new test fails on the base code and passes here, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square — verified by the new longhand test, which fails on the base code and passes here.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): one numbered part of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states; the first finding is a state where an under-written corner is reported as already so.
  • Claim (description): the question module's line delta is +88/-29 — false: +145/-30 at this head (second finding).
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): the CLI typechecks, the structure check and the changeset check pass — at this head the structure and changeset checks pass and the typechecks report no error in the theme editor.
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository; the corner test file passes on this head.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: the first finding; two non-blocking comments.
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; the five new tests cover the earlier findings, not a longhand on each side of the radius.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the already-so corner answers follow the engineering owner's decision and work in the tested tab, heading, status-dot and longhand cases, but two points from the last review remain on this head.

  • With a corner longhand on each side of a part's radius (tabs at border-end-start-radius 8px, then border-radius 4px 4px 0 0, then border-end-end-radius 8px), "tab corners 8px except the top" writes only the top corners, so the bottom-left corner stays square and asking again answers "is already so"; drop !longhandLast && from the behind-radius condition in writeAll (_how-question.mjs:22117) and add a test for that state.
  • The description says the _how-question.mjs line delta is +88/-29, but the file is +145/-30 against the base; update the description.

Two non-blocking points: when a corner's longhand sits before the radius and its value changes, the ask writes a physical radius ('4px 4px 12px 0') where a logical longhand would keep right-to-left pages right, so take the radius path only for an unchanged value and correct the comment above behindRadius; and the old comment at _how-question.mjs:22245-22246 still sits above its replacement.

Claims and files checked

Review mode: carry-forward; reason: none

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with "already so … nothing to change", never with "No command does all of …" — verified: the new test fails on the base code and passes on this patch, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square — verified by the new longhand test, which fails on the base code and passes on this patch.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset is a patch marked experimental and the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): one numbered part of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states; the first finding is a state where an under-written corner is reported as already so.
  • Claim (description): the question module's line delta is +88/-29 — false: +145/-30 at this head (second finding).
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): the CLI typechecks, the structure check and the changeset check pass — on this patch the structure and changeset checks pass and the typechecks report no error in the theme editor.
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository; the corner test file passes on this patch.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: the first finding; two non-blocking comments.
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; the five new tests cover the earlier findings, not a longhand on each side of the radius.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the corner longhand case from the last review (a longhand on each side of the radius) is fixed, and the already-so answers follow the engineering owner's decision, but one point remains.

  • The description says the _how-question.mjs line delta is +88/-29, but the file is +168/-44 against the base; update the description.

Non-blocking: a changed corner whose longhand sits before the radius is now written as a physical radius even beside a later longhand ("tab bottom-left corner 8px" on tabs with border-end-start-radius 2px, then border-radius 4px 4px 0 0, then border-end-end-radius 3px writes '4px 4px 3px 8px' where a logical longhand would take effect), so the bottom corners trade sides on right-to-left pages; take the radius path only when that corner's value is unchanged. The each-side test starts from 2px, where the previous code also worked, so start it from 8px to guard the reported state, and drop the old comment at _how-question.mjs:22439-22440.

Claims and files checked

Review mode: full; reason: rebase

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with "already so … nothing to change", never with "No command does all of …" — verified: the new test fails on the base code and passes on this head, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square at the bottom — verified by the new longhand test, which fails on the base code and passes on this head.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset is a patch marked experimental and the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): one numbered part of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states.
  • Claim (description): the question module's line delta is +88/-29 — false: +168/-44 at this head (the blocking finding).
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): the CLI typechecks, the structure check and the changeset check pass — on this head the structure and changeset checks pass and the typechecks report no error in the theme editor (the strict one reports only two built-theme imports in page templates that need a theme build).
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository; the corner test file passes on this head.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: the each-side fix is verified; two non-blocking points (the radius path for a changed value, a stale comment).
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: 19 of 19 pass; the each-side test's start state is a non-blocking point.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, and it runs once this pull request targets main. The description's line delta now matches the change, and the already-so corner answers follow the engineering owner's decision.

Non-blocking, worth a follow-up:

  • A changed corner whose longhand sits before the radius is written as a physical radius ("tab bottom-right corner 12px" on tabs with border-end-end-radius 8px, then border-radius 4px 4px 0 0, writes '4px 4px 12px 0' where the logical longhand would take effect), so on right-to-left pages it lands on the other bottom corner; take the radius path only when that corner's value is unchanged.
  • The each-side test starts from 2px; start it from 8px so it builds the state it guards, and drop the old comment above the changes helper in _how-question.mjs.
Claims and files checked

Review mode: full; reason: rebase

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with the already-so answer, never with "No command does all of …" — verified: the new test fails on the base code and passes on this head, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square at the bottom — verified by the new longhand test, which fails on the base code and passes on this head.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset is a patch marked experimental and the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): one numbered part of an ordered series built on the previous part — consistent with its base branch and its neighbours in the series; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states.
  • Claim (description): the question module's line delta is +168/-44 — verified against the base.
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): the CLI typechecks, the structure check and the changeset check pass — on this head the structure and changeset checks pass and three typechecks pass; the strict one reports only two built-theme imports in page templates that need a theme build, the same on the base, and none in the theme editor.
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository; the corner test file passes on this head.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: two non-blocking points (the radius path for a changed value, a stale comment).
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: 19 of 19 pass; the each-side test's start state is a non-blocking point.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main. The already-so corner answers follow the engineering owner's decision, and the new corner tests pass on this head.

Non-blocking, worth a follow-up:

  • A changed corner whose longhand sits before the radius is written as a physical radius ("tab bottom-right corner 12px" on tabs with border-end-end-radius 8px, then border-radius 4px 4px 0 0, writes '4px 4px 12px 0' where the logical longhand would take effect), so on right-to-left pages it lands on the other bottom corner; take the radius path only when that corner's value is unchanged.
  • The each-side test starts its bottom-left longhand at 2px; start it at 8px so it builds the state it guards, and drop the old comment above the changes helper in _how-question.mjs.
Claims and files checked

Review mode: full; reason: rebase

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with the already-so answer, never with "No command does all of …" — verified: the new test fails on the base code and passes on this head, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square at the bottom — verified by the new longhand test, which fails on the base code and passes on this head.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset is a patch marked experimental and the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): part 23 of 25 of an ordered series built on the previous part — consistent with its base branch and the neighbouring parts' descriptions; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states.
  • Claim (description): the question module's line delta is +168/-44 — verified against the base.
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): the CLI typechecks, the structure check and the changeset check pass — on this head the structure and changeset checks pass and three typechecks pass; the strict one reports only two built-theme imports in page templates that need a theme build, the same on the base code, and none in the theme editor.
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository; the corner test file passes on this head.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: two non-blocking points (the radius path for a changed value, a stale comment).
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: 20 of 20 pass; the each-side test's start state is a non-blocking point.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main. The already-so corner answers follow the engineering owner's decision, and the new corner tests pass on this head.

Non-blocking, worth a follow-up:

  • A changed corner whose longhand sits before the radius is written as a physical radius ("tab bottom-right corner 12px" on tabs with border-end-end-radius 8px, then border-radius 4px 4px 0 0, writes '4px 4px 12px 0' where the logical longhand would take effect), so on right-to-left pages it lands on the other bottom corner; take the radius path only when that corner's value is unchanged.
  • The each-side test starts its bottom-left longhand at 2px; start it at 8px so it builds the state it guards, and drop the old comment above the changes helper in _how-question.mjs.
Claims and files checked

Review mode: carry-forward; reason: none

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with the already-so answer, never with "No command does all of …" — verified: the new test fails on the base code and passes on this head, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square at the bottom — verified by the new longhand test, which fails on the base code and passes on this head.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset is a patch marked experimental and the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): part 23 of 25 of an ordered series built on the previous part — consistent with its base branch and the neighbouring parts' descriptions; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states.
  • Claim (description): the question module's line delta is +168/-44 — verified against the base.
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): the CLI typechecks, the structure check and the changeset check pass — on this head the structure and changeset checks pass and three typechecks pass; the strict one reports only two built-theme imports in page templates that need a theme build, the same on the base code, and none in the theme editor.
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository; the corner test file passes on this head.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: two non-blocking points (the radius path for a changed value, a stale comment).
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: 20 of 20 pass; the each-side test's start state is a non-blocking point.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the already-so corner answers still follow the engineering owner's decision and the new corner tests pass, but on the rebuilt base one test in the corner test file fails at this head.

  • Regression: the base's new test "squares on a negation of the rounding only, never on a negation of another look" (theme-how-corner-positions.test.mjs:707) expects two square bottom longhands for "no rounding on the bottom corners of tabs" on the shared theme, whose tab bottom corners an earlier test in the file already squared, and this change answers that ask "already square … nothing to change", so the file fails; expect the already-square answer there (the test at line 193 covers the write on a fresh theme), or ask it on a theme whose tab bottom corners are rounded.

Non-blocking, worth a follow-up:

  • A changed corner whose longhand sits before the radius is written as a physical radius ("tab bottom-right corner 12px" on tabs with border-end-end-radius 8px, then border-radius 4px 4px 0 0, writes '4px 4px 12px 0' where the logical longhand would take effect), so on right-to-left pages it lands on the other bottom corner; take the radius path only when that corner's value is unchanged.
  • The each-side test starts its bottom-left longhand at 2px; start it at 8px so it builds the state it guards, and drop the old comment above the changes helper in _how-question.mjs.
Claims and files checked

Review mode: full; reason: rebase

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with the already-so answer, never with "No command does all of …" — verified: the new test fails on the base code and passes on this head, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square at the bottom — verified by the new longhand test, which fails on the base code and passes on this head.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset is a patch marked experimental and the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): part 23 of 25 of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states.
  • Claim (description): the question module's line delta is +168/-44 — verified against the base.
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): each head is checked locally (typechecks, structure, its own test files) and a failure found only at this head is fixed in this pull request — false at this head: the corner test file fails one test; the structure and changeset checks and two CLI typechecks pass, and the strict one reports only two built-theme imports in page templates, the same on the base code.
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: its already-so answer makes the rebuilt base's negation test fail (blocking, fixed in the test); two non-blocking points (the radius path for a changed value, a stale comment).
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: 20 of 21 pass; the base's negation test fails at line 707 (blocking); the each-side test's start state is a non-blocking point.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the already-so corner answers follow the engineering owner's decision and the corner test file now passes on the rebuilt base, but one corner state still gets a false "already rounded" answer.

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1006-1014) counts only the variants that carry a border-radius rule, so for an aspect ratio, which Core rounds only with shape="ellipse", "aspect-ratios rounded on top" on the square default answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of an axis that every rule names has no rule (shape: rectangle), so the part starts from square corners, and add an aspect-ratio test.

Non-blocking, worth a follow-up:

  • A changed corner whose longhand sits before the radius is written as a physical radius ("tab bottom-right corner 12px" on tabs with border-end-end-radius 8px, then border-radius 4px 4px 0 0, writes '4px 4px 12px 0'), so on right-to-left pages it lands on the other bottom corner; take the radius path only when that corner's value is unchanged.
  • The each-side test starts its bottom-left longhand at 2px; start it at 8px so it builds the state it guards, and drop the old comment above the changes helper.
Claims and files checked

Review mode: full; reason: rebase

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with the already-so answer, never with "No command does all of …" — verified: the new test fails on the base code and passes on this head, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square at the bottom — verified by the new longhand test, which fails on the base code and passes on this head.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset is a patch marked experimental and the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): part 23 of 25 of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states; the false already-so for a default aspect ratio is the blocking point above.
  • Claim (description): the question module's line delta is +168/-44 — verified against the base.
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): each head is checked locally (typechecks, structure, its own test files) and a failure found only at this head is fixed here — consistent at this head: the corner test file passes 21 of 21, the structure and changeset checks and two CLI typechecks pass, and the strict one reports only two built-theme imports in page templates, the same on the base code.
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: the drawn-radius start reads an ellipse-only radius as every variant's (blocking, missed earlier); two non-blocking points (the radius path for a changed value, a stale comment).
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: 21 of 21 pass; the each-side test's start state is a non-blocking point, and no test covers a part rounded in only some variants.

Automated review (maintainer link)

.map(([, v]) => String(v).trim()),
);
const [v] = values;
return values.size === 1 && !/^0(?:px)?$/.test(v) ? v : null;

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.

Miss: this counts only the variants that carry a border-radius rule, so a variant with none is never seen as square. Core rounds AspectRatio only for shape="ellipse" (AspectRatio.tsx:131, :246), and the part data holds just {"shape=ellipse": "50%"}, so this returns 50% for every aspect ratio. On a fresh theme, "aspect-ratios rounded on top" then answers "already rounded (now 50%)", writes nothing on the square default, and offers border-radius '50% 50% 0 0' --on aspect-ratio; the base wrote two 16px top longhands. Return null when a value of an axis that every plain rule conditions on has no rule (here shape: rectangle), so the part starts from square corners, and add an aspect-ratio test. Status dot, switch thumb and the radio parts keep 50%: their rules cover every listed variant.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the already-so corner answers follow the engineering owner's decision and the corner tests pass on the rebuilt base, but a default aspect ratio still gets a false "already rounded" answer.

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1005-1014) counts only the variants that carry a border-radius rule, so for an aspect ratio, which Core rounds only with shape="ellipse", "aspect-ratios rounded on top" on the square default answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of an axis that every rule names has no rule (shape: rectangle), so the part starts from square corners, and add an aspect-ratio test.

Non-blocking, worth a follow-up:

  • When a corner longhand sits before the radius, the write becomes one physical radius even for a left or right ask ("tabs rounded on the left only" on tabs with border-end-end-radius 8px, then border-radius 4px 4px 0 0, writes '4px 0 0 4px'), so on right-to-left pages the rounding lands on the other side; take the radius path only when that corner's value is unchanged.
  • The each-side test starts its bottom-left longhand at 2px; start it at 8px so it builds the state it guards, and drop the old comment above the changes helper.
Claims and files checked

Review mode: full; reason: rebase

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with the already-so answer, never with "No command does all of …" — verified: the new test fails on the base code and passes on this head, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square at the bottom — verified by the new longhand test, which fails on the base code and passes on this head.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset is a patch marked experimental and the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): part 23 of 25 of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states; the false already-so for a default aspect ratio is the blocking point above.
  • Claim (description): the question module's line delta is +168/-44 — verified against the base.
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): each head is checked locally (typechecks, structure, its own test files) and a failure found only at this head is fixed here — consistent at this head: the corner test file passes 21 of 21, the structure and changeset checks and two CLI typechecks pass, and the strict one reports only two built-theme imports in page templates, the same on the base code.
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: the drawn-radius start reads an ellipse-only radius as every variant's (blocking, missed earlier); two non-blocking points (the radius path when a corner longhand sits before the radius, a stale comment).
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: 21 of 21 pass; the each-side test's start state is a non-blocking point, and no test covers a part rounded in only some variants.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the already-so corner answers follow the engineering owner's decision and the corner tests pass on the rebuilt base, but a default aspect ratio still gets a false "already rounded" answer.

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1008-1017) counts only the variants that carry a border-radius rule, so for an aspect ratio, which Core rounds only with shape="ellipse", "aspect-ratios rounded on top" on the square default answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of an axis that every rule names has no rule (shape: rectangle), so the part starts from square corners, and add an aspect-ratio test.

Non-blocking, worth a follow-up:

  • When a corner longhand sits before the radius, the write becomes one physical radius even for a left or right ask ("tabs rounded on the left only" on tabs with border-end-end-radius 8px, then border-radius 4px 4px 0 0, writes '4px 0 0 4px'), so on right-to-left pages the rounding lands on the other side; take the radius path only when that corner's value is unchanged.
  • The each-side test starts its bottom-left longhand at 2px; start it at 8px so it builds the state it guards, and drop the old comment above the changes helper.
Claims and files checked

Review mode: full; reason: rebase

  • Claim (changeset): a corner ask the part already answers (tabs rounded on top, on tabs at 4px 4px 0 0) writes nothing and leads with the already-so answer, never with "No command does all of …" — verified: the new test fails on the base code and passes on this head, and the answer carries the already-so hint and no run list.
  • Claim (changeset): a corner ask reads the corner longhands set after the radius, so a later 8px bottom-right corner is not taken as already square at the bottom — verified by the new longhand test, which fails on the base code and passes on this head.
  • Claim (changeset): an experimental patch for the CLI — verified; the changeset is a patch marked experimental and the changeset check passes.
  • Claim (description): an editor-only change with no Core, record or official-theme change — verified: four files under the CLI and the changeset folder.
  • Claim (description): one part of an ordered series built on the previous part — consistent with its base branch; no stack is declared, so this pull request is reviewed on its own.
  • Claim (description): a corner ask the part already answers says so and writes nothing — verified in the tested tab, heading, status-dot and longhand states; the false already-so for a default aspect ratio is the blocking point above.
  • Claim (description): the question module's line delta is +168/-44 — verified against the base.
  • Claim (description): no new mood or feel phrase matches — verified: no phrase pattern is added.
  • Claim (description): CI has not run on this head — verified: no build or test workflow ran.
  • Claim (description): each head is checked locally (typechecks, structure, its own test files) and a failure found only at this head is fixed here — consistent at this head: the corner test file passes 21 of 21, 75 related theme-editor test files pass, the structure and changeset checks and two CLI typechecks pass, and the strict one reports only two built-theme imports in page templates, the same on the base code.
  • Claim (description): integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: the drawn-radius start reads an ellipse-only radius as every variant's (blocking, missed earlier); two non-blocking points (the radius path when a corner longhand sits before the radius, a stale comment).
  • File packages/cli/api/theme-edit/_how.mjs: clear; the hint follows the results the corner draft and set's no-op check mark as already so, and an unread clause keeps its own result.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: 21 of 21 pass; the each-side test's start state is a non-blocking point, and no test covers a part rounded in only some variants.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one corner-reader defect remains at this head; the already-so answers and hint themselves are covered by the engineering owner's decision.

Blocking

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1009-1017) counts only the variants that carry a border-radius rule, so for a default (rectangle) aspect ratio, which Core draws square, "aspect-ratios rounded on top" answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of the axis every plain rule conditions on has no rule (here shape: rectangle), and add an aspect-ratio test.

Non-blocking

  • With a corner longhand set before the part's radius, a left, right or single-corner ask is written as one physical border-radius (_how-question.mjs:22357-22361), so on a right-to-left page it rounds the other side; consider the radius path only when that corner's value is unchanged.
  • The each-side test (theme-how-corner-positions.test.mjs:521) starts the bottom-left longhand at 2px, so it does not build the state it guards; start it at 8px.
  • The old comment at _how-question.mjs:22481-22482 still sits above its replacement.
Claims and files checked

Review mode: full; reason: rebase

  • Claim: a corner ask the part already answers writes nothing and leads with the already-so line, never the failure hint — verified (new test fails on the base code, passes on the head).
  • Claim: a corner ask reads the corner longhands set after the part's radius — verified (new test fails on the base code, passes on the head).
  • Claim: an experimental patch changeset for the CLI — verified (changeset check passes).
  • Claim: editor-only, four files under the CLI, no Core, record or theme change — verified (file list).
  • Claim: the answer module's line delta is +168/-44 — verified.
  • Claim: no new mood or feel phrase matches — verified (diff read).
  • Claim: CI has not run on this head — verified (no workflow runs).
  • Claim: local checks (typechecks, structure, its own test file) — verified: structure, changesets and two CLI typechecks pass, the corner test file passes, and the strict typecheck's two unbuilt-theme import errors are the same on the base code.
  • Claim: integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: one blocking finding (aspect-ratio drawn radius), two non-blocking.
  • File packages/cli/api/theme-edit/_how.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: passes; each-side start state non-blocking.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one corner-reader defect remains at this head; the already-so answers and hint themselves are covered by the engineering owner's decision.

Blocking

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1009-1017) counts only the variants that carry a border-radius rule, so for a default (rectangle) aspect ratio, which Core draws square, "aspect-ratios rounded on top" answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of the axis every plain rule conditions on has no rule (here shape: rectangle), and add an aspect-ratio test.

Non-blocking

  • With a corner longhand set before the part's radius, a left, right or single-corner ask is written as one physical border-radius (_how-question.mjs:22368-22372), so on a right-to-left page it rounds the other side; consider the radius path only when that corner's value is unchanged.
  • The each-side test (theme-how-corner-positions.test.mjs:521) starts the bottom-left longhand at 2px, so it does not build the state it guards; start it at 8px.
  • The old comment at _how-question.mjs:22492-22493 still sits above its replacement.
Claims and files checked

Review mode: full; reason: rebase

  • Claim: a corner ask the part already answers writes nothing and leads with the already-so line, never the failure hint — verified (new test fails on the base code, passes on the head).
  • Claim: a corner ask reads the corner longhands set after the part's radius — verified (new test fails on the base code, passes on the head).
  • Claim: an experimental patch changeset for the CLI — verified (changeset check passes).
  • Claim: editor-only, four files under the CLI, no Core, record or theme change — verified (file list).
  • Claim: stacked on the previous part's branch — verified (base branch); the part number is the author's series count, not checkable.
  • Claim: the answer module's line delta is +168/-44 — verified.
  • Claim: no new mood or feel phrase matches — verified (diff read).
  • Claim: CI has not run on this head — verified (no workflow runs).
  • Claim: local checks (typechecks, structure, its own test file) — verified: structure, changesets and two CLI typechecks pass, the corner test file passes, and the strict typecheck's two unbuilt-theme import errors are the same on the base code.
  • Claim: integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: one blocking finding (aspect-ratio drawn radius), two non-blocking.
  • File packages/cli/api/theme-edit/_how.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: passes; each-side start state non-blocking.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one corner-reader defect remains at this head; the already-so answers and hint themselves are covered by the engineering owner's decision.

Blocking

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1009-1017) counts only the variants that carry a border-radius rule, so for a default (rectangle) aspect ratio, which Core draws square, "aspect-ratios rounded on top" answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of the axis every plain rule conditions on has no rule (here shape: rectangle), and add an aspect-ratio test.

Non-blocking

  • With a corner longhand set before the part's radius, a left, right or single-corner ask is written as one physical border-radius (_how-question.mjs:22386-22390), so on a right-to-left page it rounds the other side; consider the radius path only when that corner's value is unchanged.
  • The each-side test (theme-how-corner-positions.test.mjs:521) starts the bottom-left longhand at 2px, so it does not build the state it guards; start it at 8px.
  • The old comment at _how-question.mjs:22510-22511 still sits above its replacement.
Claims and files checked

Review mode: full; reason: rebase

  • Claim: a corner ask the part already answers writes nothing and leads with the already-so line, never the failure hint — verified (new test fails on the base code, passes on the head).
  • Claim: a corner ask reads the corner longhands set after the part's radius — verified (new test fails on the base code, passes on the head).
  • Claim: an experimental patch changeset for the CLI — verified (changeset check passes).
  • Claim: editor-only, four files under the CLI, no Core, record or theme change — verified (file list).
  • Claim: part 23 of 25, stacked on the previous part's branch — verified (base branch; the neighbouring parts number 22 and 24).
  • Claim: the answer module's line delta is +168/-44 — verified.
  • Claim: no new mood or feel phrase matches — verified (diff read).
  • Claim: CI has not run on this head — verified (no workflow runs).
  • Claim: local checks (typechecks, structure, its own test files) — verified: structure, changesets and three CLI typechecks pass and the corner test file passes; the strict typecheck's two errors are unbuilt-theme imports in template pages this change does not touch.
  • Claim: integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: one blocking finding (aspect-ratio drawn radius), two non-blocking.
  • File packages/cli/api/theme-edit/_how.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: passes; each-side start state non-blocking.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one corner-reader defect remains; the already-so answers and hint themselves are covered by the engineering owner's decision.

Blocking

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1009-1017) counts only the variants that carry a border-radius rule, so for a default (rectangle) aspect ratio, which Core draws square, "aspect-ratios rounded on top" answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of the axis every plain rule conditions on has no rule (here shape: rectangle), and add an aspect-ratio test.

Non-blocking

  • With a corner longhand set before the part's radius, a left, right or single-corner ask is written as one physical border-radius (_how-question.mjs:22401-22405), so on a right-to-left page it rounds the other side; consider the radius path only when that corner's value is unchanged.
  • The each-side test (theme-how-corner-positions.test.mjs:521) starts the bottom-left longhand at 2px, so it does not build the state it guards; start it at 8px.
  • The old comment at _how-question.mjs:22525-22526 still sits above its replacement.
Claims and files checked

Review mode: full; reason: rebase

  • Claim: a corner ask the part already answers writes nothing and leads with the already-so line, never the failure hint — verified (new test fails on the base code, passes on the head).
  • Claim: a corner ask reads the corner longhands set after the part's radius — verified (new test fails on the base code, passes on the head).
  • Claim: an experimental patch changeset for the CLI — verified (changeset check passes).
  • Claim: editor-only, four files under the CLI, no Core, record or theme change — verified (file list).
  • Claim: part 23 of 25, stacked on the previous part's branch — verified (base branch; the neighbouring parts number 22 and 24).
  • Claim: the answer module's line delta is +168/-44 — verified.
  • Claim: no new mood or feel phrase matches — verified (diff read).
  • Claim: CI has not run on this head — verified (no workflow runs).
  • Claim: local checks (typechecks, structure, its own test files) — verified: structure, changesets and three CLI typechecks pass and the corner test file passes; the strict typecheck's two errors are unbuilt-theme imports in template pages this change does not touch.
  • Claim: integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: one blocking finding (aspect-ratio drawn radius), two non-blocking.
  • File packages/cli/api/theme-edit/_how.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: passes; each-side start state non-blocking.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one corner-reader defect remains; the already-so answers and hint themselves are covered by the engineering owner's decision.

Blocking

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1009-1017) counts only the variants that carry a border-radius rule, so for a default (rectangle) aspect ratio, which Core draws square, "aspect-ratios rounded on top" answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of the axis every plain rule conditions on has no rule (here shape: rectangle), and add an aspect-ratio test.

Non-blocking

  • With a corner longhand set before the part's radius, a left, right or single-corner ask is written as one physical border-radius (_how-question.mjs:22403-22407), so on a right-to-left page it rounds the other side; consider the radius path only when that corner's value is unchanged.
  • The each-side test (theme-how-corner-positions.test.mjs:521) starts the bottom-left longhand at 2px, so it does not build the state it guards; start it at 8px.
  • The old comment at _how-question.mjs:22527-22528 still sits above its replacement.
Claims and files checked

Review mode: full; reason: rebase

  • Claim: a corner ask the part already answers writes nothing and leads with the already-so line, never the failure hint — verified (new test fails on the base code, passes on the head).
  • Claim: a corner ask reads the corner longhands set after the part's radius — verified (new test fails on the base code, passes on the head).
  • Claim: an experimental patch changeset for the CLI — verified (changeset check passes).
  • Claim: editor-only, four files under the CLI, no Core, record or theme change — verified (file list).
  • Claim: part 23 of 25, stacked on the previous part's branch — verified (base branch; the neighbouring parts number 22 and 24).
  • Claim: the answer module's line delta is +168/-44 — verified.
  • Claim: no new mood or feel phrase matches — verified (diff read).
  • Claim: CI has not run on this head — verified (no workflow runs).
  • Claim: local checks (typechecks, structure, its own test files) — verified: structure, changesets and three CLI typechecks pass and the corner test file passes; the strict typecheck's two errors are unbuilt-theme imports in template pages this change does not touch.
  • Claim: integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: one blocking finding (aspect-ratio drawn radius), two non-blocking.
  • File packages/cli/api/theme-edit/_how.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: passes; each-side start state non-blocking.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one corner-reader defect remains; the already-so answers and hint themselves are covered by the engineering owner's decision.

Blocking

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1009-1017) counts only the variants that carry a border-radius rule, so for a default (rectangle) aspect ratio, which Core draws square, "aspect-ratios rounded on top" answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of the axis every plain rule conditions on has no rule (here shape: rectangle), and add an aspect-ratio test.

Non-blocking

  • With a corner longhand set before the part's radius, a left, right or single-corner ask is written as one physical border-radius (_how-question.mjs:22402-22406), so on a right-to-left page it rounds the other side; consider the radius path only when that corner's value is unchanged.
  • The each-side test (theme-how-corner-positions.test.mjs:521) starts the bottom-left longhand at 2px, so it does not build the state it guards; start it at 8px.
  • The old comment at _how-question.mjs:22526-22527 still sits above its replacement.
Claims and files checked

Review mode: full; reason: rebase

  • Claim: a corner ask the part already answers writes nothing and leads with the already-so line, never the failure hint — verified (new test fails on the base code, passes on the head).
  • Claim: a corner ask reads the corner longhands set after the part's radius — verified (new test fails on the base code, passes on the head).
  • Claim: an experimental patch changeset for the CLI — verified (changeset check passes).
  • Claim: editor-only, four files under the CLI, no Core, record or theme change — verified (file list).
  • Claim: part 23 of 25, stacked on the previous part's branch — verified (base branch; the neighbouring parts number 22 and 24).
  • Claim: the answer module's line delta is +168/-44 — verified.
  • Claim: no new mood or feel phrase matches — verified (diff read).
  • Claim: CI has not run on this head — verified (no workflow runs).
  • Claim: local checks (typechecks, structure, its own test files) — verified: structure, changesets and three CLI typechecks pass and the corner test file passes; the strict typecheck's two errors are unbuilt-theme imports in template pages this change does not touch.
  • Claim: integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: one blocking finding (aspect-ratio drawn radius), two non-blocking.
  • File packages/cli/api/theme-edit/_how.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: passes; each-side start state non-blocking.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one corner-reader defect remains; the already-so answers and hint themselves are covered by the engineering owner's decision.

Blocking

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1009-1017) counts only the variants that carry a border-radius rule, so for a default (rectangle) aspect ratio, which Core draws square, "aspect-ratios rounded on top" answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of the axis every plain rule conditions on has no rule (here shape: rectangle), and add an aspect-ratio test.

Non-blocking

  • With a corner longhand set before the part's radius, changing that corner is written as one physical border-radius (_how-question.mjs:22402-22406), so on a right-to-left page it rounds the other side; consider the radius path only when that corner's value is unchanged.
  • The each-side test (theme-how-corner-positions.test.mjs:521) starts the bottom-left longhand at 2px, so it does not build the state it guards; start it at 8px.
  • The old comment at _how-question.mjs:22526-22527 still sits above its replacement.
Claims and files checked

Review mode: full; reason: rebase

  • Claim: a corner ask the part already answers writes nothing and leads with the already-so line, never the failure hint — verified (new test fails on the base code, passes on the head).
  • Claim: a corner ask reads the corner longhands set after the part's radius — verified (new test fails on the base code, passes on the head).
  • Claim: an experimental patch changeset for the CLI — verified (changeset check passes).
  • Claim: editor-only, four files under the CLI, no Core, record or theme change — verified (file list).
  • Claim: part 23 of 25, stacked on the previous part's branch — verified (base branch; the neighbouring parts number 22 and 24).
  • Claim: the answer module's line delta is +168/-44 — verified.
  • Claim: no new mood or feel phrase matches — verified (diff read).
  • Claim: CI has not run on this head — verified (no workflow runs).
  • Claim: local checks (typechecks, structure, its own test files) — verified: structure, changesets and three CLI typechecks pass and the corner test file passes; the strict typecheck's two errors are unbuilt-theme imports in template pages this change does not touch.
  • Claim: integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: one blocking finding (aspect-ratio drawn radius), two non-blocking.
  • File packages/cli/api/theme-edit/_how.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: passes; each-side start state non-blocking.

Automated review (maintainer link)

… and writes nothing; it reads the corner longhands the part sets after its radius

- When every corner an ask names is already as asked, the answer writes nothing and leads with "… is already so in <theme>: nothing to change", never with "No command does all of".
- The corners reader layers the part's own corner longhands (logical and physical) in the order the theme set them, the plain rule first, then the state or variant asked about. So tabs at '4px 4px 0 0' with a later border-end-end-radius 8px, asked "tabs square at the bottom", get border-end-end-radius 0. They are not already so.
- Tests: theme-how-corner-positions.
…ites that longhand

- On tabs at '4px 4px 0 0' with a later border-end-end-radius 8px, "tabs rounded only on top" writes border-end-end-radius 0. It no longer answers "already so". The 8px longhand is in effect, and setting the same radius again keeps its place before that longhand, so it would change nothing. When the theme sets a corner longhand on the part, the answer writes only the longhands of the corners that change.
- Test: theme-how-corner-positions.
…orner longhands the theme sets on it

- The corners reader lays the part's own corner longhands over four square corners when the part reads no corner token (a heading with a fill). So "heading rounded on top" on a heading whose top corners are already 8px writes nothing, and the answer says "now 8px 8px 0 0". It no longer rewrites them to the round corners or prints "now )".
- The offer beside a one-side rounded ask squares only the other corners that are rounded now, so a part whose bottom-right longhand is 8px is offered border-end-end-radius 0 alone.
- Tests: theme-how-corner-positions (the heading case, and the except, "only" and offer asks on tabs with a later 8px bottom-right longhand).
…s, and writes the radius when a longhand sits before it

- A part that reads no corner token starts from the radius Core draws on it in every variant and size (a status dot or a switch thumb at 50%), else square corners. So "status dots square at the bottom" writes the bottom longhands at 0. It no longer answers "already square".
- Only a corner longhand set after the part's last radius makes the answer write longhands. A longhand set before that radius is replaced by it, and written again it keeps its place and changes nothing. Such a corner is written in the radius, with the other corners as they are now: "tabs rounded on the bottom" on a tab with border-end-end-radius 8px and then border-radius '4px 4px 0 0' writes border-radius 4px.
- Tests: theme-how-corner-positions.
…dius, the answer writes the radius and the later longhand

- On a tab with border-end-start-radius 2px, then border-radius '4px 4px 0 0', then border-end-end-radius 3px, "tab corners 8px except the top" writes border-radius '0 0 8px 8px' and border-end-end-radius 8px. It no longer writes only the top and leaves the bottom-left square. A corner whose longhand sits before the radius is written in the radius with every corner. A changing corner whose longhand comes after the radius keeps its own longhand too. Asked again, it is already so.
- Test: theme-how-corner-positions.

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: two blocking findings remain in the corner reader's drawnRadius; the already-so answers and hint themselves are covered by the engineering owner's decision.

Blocking

  • Miss: drawnRadius (packages/cli/api/theme-edit/_how-question.mjs:1024-1032) counts only the variants that carry a border-radius rule, so for a default (rectangle) aspect ratio, which Core draws square, "aspect-ratios rounded on top" answers "already rounded (now 50%)", writes nothing and offers border-radius '50% 50% 0 0'; return null when a value of an axis the plain rules condition on has no rule (here shape: rectangle), and add an aspect-ratio test.
  • Miss: drawnRadius repeats the agreement logic that drawnValue (packages/cli/api/theme-edit/_parts.mjs:2040-2046) already exports instead of calling or extending it, so the aspect-ratio blind spot the two share would be fixed in one reader only; give drawnValue an option that skips state and pseudo-element conditions and returns null when a drawn variant has no rule, call it from drawnRadius, and delete the copy.

Non-blocking

  • With a corner longhand set before the part's radius, a changed corner is written as one physical border-radius (_how-question.mjs:22417-22421), so on a right-to-left page it rounds the other side; take the radius path only when that corner's value is unchanged.
  • The each-side test (theme-how-corner-positions.test.mjs:521) starts the bottom-left longhand at 2px, so it does not build the state it guards; start it at 8px.
  • The old comment at _how-question.mjs:22541-22542 still sits above its replacement.
Claims and files checked

Review mode: full; reason: rebase

  • Claim: a corner ask the part already answers writes nothing and leads with the already-so line, never the failure hint — verified (new test fails on the base code, passes on the head).
  • Claim: a corner ask reads the corner longhands set after the part's radius — verified (new test fails on the base code, passes on the head).
  • Claim: an experimental patch changeset for the CLI — verified (changeset check passes).
  • Claim: editor-only, four files under the CLI, no Core, record or theme change — verified (file list).
  • Claim: part 23 of 25, stacked on the previous part's branch — verified (base branch; the neighbouring parts number 22 and 24).
  • Claim: the answer module's line delta is +168/-44 — verified.
  • Claim: no new mood or feel phrase matches — verified (diff read).
  • Claim: CI has not run on this head — verified (no test workflow ran; only the review-gate workflows).
  • Claim: local checks (typechecks, structure, its own test files) — verified: structure, changesets and three CLI typechecks pass and the corner test file passes; the strict typecheck's two errors are unbuilt-theme imports in template pages this change does not touch.
  • Claim: integration-branch gating, the held-out answer key and the look gate — not checkable from the repository.
  • File .changeset/experimental-theme-how-corners-already-so.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: two blocking findings (aspect-ratio drawn radius; copy of the shared drawn-value reader), two non-blocking.
  • File packages/cli/api/theme-edit/_how.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: passes; each-side start state non-blocking.

Automated review (maintainer link)

Comment on lines +1024 to +1032
function drawnRadius(C, part) {
const rules = C.MAP[part]?.at?.['border-radius'] ?? {};
const values = new Set(
Object.entries(rules)
.filter(([cond]) => !/:/.test(cond))
.map(([, v]) => String(v).trim()),
);
const [v] = values;
return values.size === 1 && !/^0(?:px)?$/.test(v) ? v : null;

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.

Miss (one shared path): this repeats the agreement drawnValue already exports from _parts.mjs:2040-2046 ("the one it always has, else the one every condition it was drawn in agrees on"), adding only a state/pseudo-element filter and a zero check. Both readers return 50% for aspect-ratio, so fixing the variant-coverage gap here alone leaves drawnValue's callers (_settings.mjs:8145, :11937, _parts.mjs:2081-2082, :2164) with it. Give drawnValue an option that skips state and pseudo-element conditions and returns null when a drawn variant has no rule, call it here keeping only the zero check, and delete this copy.

@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed via the round-15 combined PR #13054/#13049/#13048.

This branch was successfully deployed

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