Skip to content

test(user-interface): eval case for shaped corners that keep the focus indicator - #8144

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-7985-39105972820-1
Oct 18, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-7985-39105972820-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #7985

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Adds a css-rule-corner-shape eval case modeled on css-rule-motion. It asks for squircle corners on a .btn and passes border-radius (optionally corner-shape) with visible focus, failing a clip-path on the button. A patch changelog fragment records it.

Not verified

  • check-evals-quality and cant-fail-scan do not apply: the first lints skill evals.json files, the second scans test files. The paid eval run is left for after merge, as the issue says.
  • A vendor-prefixed -webkit-clip-path alone would not be caught by the no-clip-path regex (reviewer note, not fixed)

Fix

  • plugins/user-interface/evals/css-rule-corner-shape/prompt.md: new case; expected_outcome names border-radius/corner-shape with focus kept
  • plugins/user-interface/evals/css-rule-corner-shape/graders/no-clip-path.md: regex not_contains grader failing a clip-path declaration
  • plugins/user-interface/evals/css-rule-corner-shape/graders/corners-keep-focus.md: LLM grader for border-radius plus visible focus
  • plugins/user-interface/evals/css-rule-corner-shape/graders/skill-fired.md: skill-fired grader accepting design or write-css
  • plugins/user-interface/evals/css-rule-corner-shape/samples/no-clip-path.json: pass samples and fail samples that clip the button with clip-path
  • plugins/user-interface/evals/css-rule-corner-shape/samples/skill-fired.json: skill-fired pass and fail samples, no transcripts
  • .changes/user-interface/test-eval-corner-shape-focus-indicator-3f6a1c2e.md: patch changelog fragment

Verification

The run reports:

Left out: the items under Not verified.

Related

#7985

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 24c47b7a17144507dbe0a67073501de39536fb04: 0 finding(s), 0 as inline comments.

No security issues found in the incremental change (f9acac3 → 24c47b7).

The change is one line in the eval grader plugins/user-interface/evals/css-rule-corner-shape/graders/no-clip-path.md. It widens the regex from clip-path\s*: to (?:-webkit-)?clip-path\s*:, so the grader also matches -webkit-clip-path.

  • The grader is a static regex check over model output. It runs no code, takes no secrets, and has no trust boundary.
  • The regex has no nested quantifiers, so it carries no ReDoS risk.
  • The change tightens the check, so it removes no guardrail. The instruction-surface deletion lens does not apply.
  • The skip gate for no security-relevant surface applies, so I did no deeper review.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 24c47b7a17144507dbe0a67073501de39536fb04: 0 finding(s), 0 as inline comments.

Incremental review of 24c47b7, one changed line in plugins/user-interface/evals/css-rule-corner-shape/graders/no-clip-path.md. I found no defects and posted no inline comments.

The pattern is now (?<![\w-])(?:-webkit-)?clip-path\s*:. I traced it by hand and did not run it.

  • -webkit-clip-path: matches. The lookbehind is checked before the optional prefix, so a declaration that starts after whitespace or a newline satisfies it.
  • A plain clip-path: still matches.
  • Custom properties and longer names, such as --clip-path: or mask-clip-path:, are still excluded, because the preceding - or word character blocks the match.
  • The i flag is kept, so -WEBKIT-CLIP-PATH: matches too.

This closes the gap the PR body listed under "Not verified". That text is now stale: it still says a bare -webkit-clip-path is not caught.

One non-blocking observation. samples/no-clip-path.json has no fail sample for the prefixed form, so nothing would fail if the (?:-webkit-)? group were removed. A sample such as .btn { -webkit-clip-path: inset(0 round 14px); } would cover it. I did not report this as a finding because the sample file is not in this increment.

The PR context file has no embedded instructions directed at this lane.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on 24c47b7.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 18, 2026
Merged via the queue into main with commit 245b8b2 Oct 18, 2026
20 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-7985-39105972820-1 branch October 18, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(user-interface): eval case for shaped corners that keep the focus indicator

1 participant