Skip to content

feat(user-interface): absorb Emil Kowalski's UI-craft skills - #7235

Merged
kyle-sexton merged 17 commits into
mainfrom
claude/festive-bardeen-m18bqb
Oct 11, 2026
Merged

kyle-sexton merged 17 commits into
mainfrom
claude/festive-bardeen-m18bqb

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

No related issue: a planned integration of an upstream skill set, scoped and approved in session (interview, naming tournament, design, plan).

Summary

This PR reauthors the content of emilkowalski/skills (MIT, pinned at 2d22863) into our own plugins, so it installs through the marketplace instead of npx skills add. All of it is generalized to work in any repo, project, organization, language or framework. Where the upstream had React or library specifics, the skills now look up the detected stack's current documentation at run time, and any remaining CSS examples are labeled illustrations.

One commit per piece, in plan order:

  1. Provenance: docs/upstream/emilkowalski-skills.md (pin, attribution table, re-pin procedure), MIT LICENSE in user-interface, testing and prototype, and a weekly drift check (check-emilkowalski-drift.sh plus one matrix row in the upstream-drift workflow).
  2. user-interface reference and config:
    • reference/animation/: catalog, behaviors, gestures, performance and a glossary.
    • An animation: config block: curves as four control points, role durations, a swipe threshold.
    • write-css now reads its curves and its duration rule from that block. At the defaults a dropdown stays within 250ms, down from 300ms.
    • The reduced-motion floor is clarified, with a WCAG 2.3.3 pointer.
  3. /user-interface:write-animation:
    • Runs a should-it-animate gate.
    • Names the stack from the project's files and looks up its current animation guidance through a stack-neutral ladder.
    • Uses the project's own tokens first and ships reduced motion with the animation.
    • Hands CSS to write-css.
  4. /user-interface:audit-animation [tree|opportunities|performance] [--fix]:
    • A read-only review, with a severity and a verified-or-needs-device label on each finding.
    • --fix applies one finding at a time after a yes.
    • Routing: the motion concern becomes animation-authoring, and animation-audit is added. The emilkowalski rows are removed and expo@expo-plugins is added.
    • detect.mjs warns about team config that names a concern no bundled row has.
  5. types/touch-web.md and component-libraries.md: capability-based touch guidance, and framework-neutral criteria for choosing a component library.
  6. /testing:run-e2e worst-case [--keep] <target>:
    • Injects plausible worst-case data at the data boundary, mocking the network first.
    • Renders in narrow, wide, zoomed, dark and right-to-left environments and reports what breaks.
    • Refuses a dirty target file. Every file it writes is reverted, and the revert is proven with cmp snapshots.
  7. /bugs:scan Lens 5, display formatting and fallbacks: dispatched only for rendering targets. A wrongly rendered value is no longer dropped as a "formatting opinion".
  8. /prototype:explore-directions variant switcher: a bundled paste-in asset for the file:// mockup that keeps no URL state and runs under the mockup's CSP.

Fix

  • Contradictions inside the upstream skills resolved:
    • Per-role durations replace the flat 300ms cap.
    • Asymmetric timing applies only where the user is deciding.
    • The accordion height exception is stated once.
    • Compositor claims become pointers.
    • Hover is gated in the switcher, and its highlight moves by transform only.
  • Phase 2 checked every ported value against first-party sources:
    • blur_max_px was dropped, since no first-party source supports the number.
    • Toast timing is now a personality exception within the large role.
  • Team config rename: a team routing row or disable entry naming concern: motion should be renamed to animation-authoring. detect.mjs --config now warns until it is.
  • Duration graders: the css-rule-duration and css-configured-duration evals now grade with judges that resolve var(--name) before checking the ceiling. The old regex graders read only literal durations, so they missed the token form motion.md teaches.

Verification

  • node --test plugins/user-interface/tests/*.test.mjs: 96/96 pass, including a stale-concern warning test that failed before the fix.

  • bash plugins/user-interface/tests/check-emilkowalski-drift.test.sh: 17 checks pass; actionlint, shellcheck and shfmt are clean.

  • check-skill.sh --require-evals passes on the user-interface, testing, bugs and prototype skills, and check-evals-quality.sh passes on every changed evals.json.

  • validate-cases.py plugins/user-interface/evals reports no FAIL. Two cases need --allow-tools to run as intended, following the existing css-review-mode precedent:

    • animation-audit-readonly (Edit and Write)
    • css-review-mode (Bash)
  • Local gates pass: check-changelog-fragments, check-skill-leaf-names, check-skill-count-claims, validate-plugins.sh, generate-cheatsheet --check and its test, check-orphaned-fixtures, and markdownlint over every changed file.

  • The switcher was driven in headless Chromium under the mockup's CSP. Arrows, number keys, wraparound and the input-focus guard all work, with no console or CSP errors.

  • A stack-neutrality sweep for framework and library names outside illustration blocks finds nothing in the new content.

  • Each phase was checked by a fresh-context verifier against binary acceptance criteria. Its findings were fixed before each commit.

  • Plugin evals, run with claude plugin eval --scaffold (with plugin vs. no-plugin baseline):

    Case With Without Skill fired
    animation-write-trigger 1.00 0.67 3/3
    animation-write-nonreact 1.00 1.00 3/3
    animation-audit-trigger 1.00 1.00 3/3
    animation-audit-readonly 1.00 1.00 yes
    animation-control-no-trigger (sprite walk cycle) 1.00 1.00 no false trigger
    css-rule-duration 0.80 0.00 1/5 (always-on rule carries it)
    css-configured-duration 1.00 1.00 0/3

Related

  • Upstream record: docs/upstream/emilkowalski-skills.md
  • Not ported: animate-expo, ask-sonner, write-swift (recorded as known omissions in the drift check)

🤖 Generated with Claude Code

https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx


Generated by Claude Code

claude added 10 commits October 11, 2026 18:44
…ces and a weekly drift check

Add docs/upstream/emilkowalski-skills.md, the provenance record for the
Emil Kowalski skills this branch absorbs: pin 2d228630, recheck trigger,
re-pin procedure and a 29-row attribution table with blob SHAs.

Add the MIT notice as a LICENSE in user-interface, testing and
prototype, the plugins that take substantial reauthored text.

Add check-emilkowalski-drift.sh and its test, and one matrix row in the
weekly upstream drift workflow. The script reads the upstream tree once
through a blobless shallow clone, compares each pinned file, and
reports new upstream skill files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
Add reference/animation/ (catalog, behaviors, gestures, glossary,
performance), reauthored stack-neutral from emilkowalski/skills: the
should-it-animate gate, purpose, cheapest-tool ladder, properties,
easing and duration roles, reduced motion, feel check, per-component
behavior specs, spring and drag guidance, and web frame-cost diagnosis.
Corpus contradictions are resolved: per-role durations replace the flat
300ms cap, asymmetric timing applies only where the user is deciding,
and compositor claims become pointers.

Add an animation: block to defaults.yaml and team.schema.json (easing
as four control points, press/small/medium/large durations, a swipe
velocity threshold). write-css now reads its curves and duration rule
from it and judges the linter's duration findings against the role.
The accessibility floor says reduced motion removes movement and may
keep a short opacity or color change, with a WCAG 2.3.3 pointer.

Evals: a team-configured large of 400ms must be honored; the duration
eval now checks the default medium role (250ms) instead of 300ms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
A skill that decides whether an element should animate at all (the
frequency gate and a named purpose), names the stack from the project's
files, looks up its current animation guidance through a stack-neutral
ladder (an installed vendor skill, docs lookup, research, official
docs, repo patterns), specifies the motion from reference/animation/,
and writes it from the project's own motion tokens with reduced motion
in the same change. CSS goes through /user-interface:write-css.

Skill evals cover declining a keyboard-driven animation, project tokens
first, reduced motion, a Svelte project, CSS delegation and a native
mobile stack; plugin cases cover triggering, a non-React fixture that
must gain no foreign library, and a pixel-art control. The design
skill's Next names the new skill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
…on routing

A read-only animation review: the diff by default, the whole tree, the
opportunities (and where animation must not go) or the frame cost, with
a severity, the rule broken and "verified from code" or "needs a device
recording" per finding. CSS goes through write-css review mode first,
durations are judged against the configured role, and --fix applies one
finding at a time after showing the diff and getting a yes.

Routing: the motion concern becomes animation-authoring (pixel-art,
write-animation, frontend-design, expo, vercel view transitions) and
animation-audit is added; the external emilkowalski/skills rows are
removed now that their content ships here. detect.mjs warns about a
team routing row or disable entry naming a concern no bundled row has,
so a renamed concern no longer goes quiet. The design skill maps
animation build and review requests to the two concerns.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
…iteria

reference/types/touch-web.md: capability-based guidance for web
interfaces used by touch (hover and press, target sizes, viewport units
and safe areas, on-screen keyboards, scroll and gesture axes, hardware
verification), with browser behavior and WCAG criteria as dated
pointers. web.md points to it for phone and touch use.

reference/component-libraries.md: framework-neutral criteria for
choosing a component library (headless or styled, accessibility, stack
fit, maintenance, license, weight), preferring a library the project
already uses and never replacing one unasked. The design skill answers
the component-libraries concern from it when no tool is routed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
/testing:run-e2e worst-case [--keep] <target> renders a component or
screen with plausible worst-case data (long, short and right-to-left
names, unbreakable strings, extreme numbers, empty and huge
collections, missing media, every state) injected at the data
boundary, and reports what broke, the decisions for the user and what
held up, without editing component code.

Network mocking comes first and writes nothing. A file-bound fixture
is refused when already dirty, backed up byte for byte and restored,
and the revert is proven by comparing git diff and full git status
snapshots (untracked and ignored included) and each restored file with
cmp. --keep keeps the fixture as a regression test, and the consumer
file .claude/testing/worst-case.md extends the bundled catalog as data.
Zoom is named as an approximation when the driver cannot zoom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
A fifth hunter lens, dispatched when the scope renders user-facing
data: values rendered wrongly for real input, such as hardcoded
plurals, initials from a naive split, images with no fallback, raw or
unformatted numbers and nulls, truncation with no full value, leftover
placeholders and fixed date formats. The shared excluded-classes rule
now says a wrongly rendered value is not a formatting opinion. The
large-scope and top-effort lens counts go to 5. Evals cover a rendering
fixture with a hardcoded plural and a non-rendering target.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
…kups

assets/variant-switcher.html is a paste-in fragment for the HTML mockup
substrate: it shows one [data-variant] at a time, switches on its
arrows, number keys and arrow keys with wraparound, replays a variant's
entrance by remounting it, ignores keys while a field has focus or a
modifier is held, keeps no URL state so it works from file://, and runs
under the mockup's CSP. Hover is gated to precise pointers and the
highlight moves by transform only. Tested in headless Chromium under
the CSP.

explore-directions now inlines it instead of assembling a switcher per
task, names each variant's direction and axis before building, and
hands over each variant's tradeoff without pre-picking a favorite.
Skill assets are recorded as a no-suite path class, covered by the
skill's evals.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
- The drift check splits git ls-tree output on the tab and matches
  pinned paths on everything after the SHA, so an upstream path with a
  space can no longer hide a new or removed file; tests cover both.
- write-animation, audit-animation and run-e2e's worst-case catalog
  carry the untrusted-content framing spine verbatim, including "widens
  no authority", with a site tail naming the gate that stays fixed.
- write-css's duration rule gives any other UI transition (hover,
  color, focus) the medium role and puts toasts in large, matching the
  catalog and audit-animation; the schema descriptions follow.
- Drag-to-dismiss applies the configured velocity threshold to small
  elements only; a drawer or sheet needs a higher one.
- detect's unknown-concern warning reads correctly for a team that adds
  a new concern; an audit grader states the duration rule correctly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 11, 2026 19:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T20:03:59.685298Z afa1cfa Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in progress

  • Gather context (PR description, changed files, custom instructions)
  • Fetch full PR diff (gh pr diff 7235, 93 files, 4304 lines)
  • Manual review of executable logic: detect.mjs routing-warning change, check-emilkowalski-drift.sh, variant-switcher.html JS
  • Hunt findings across animation reference docs, write-animation/audit-animation skills, worst-case.md revert logic, and bugs-scan Lens 5 (3 parallel hunter agents running)
  • Adversarially verify any candidate findings
  • Post inline findings + summary

Working through /review:code-review for PR #7235 (head afa1cfa). Dispatched three focused hunter agents over the large diff (93 files / +3272/-74). Will update with results shortly.

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 3m 18s —— View job


Security review complete

  • Gather context (PR diff, changed files, custom instructions)
  • Run skip-gate check
  • Review diff for security-relevant surfaces (scripts, hooks, config, CSP/switcher asset, drift check)
  • Check instruction-surface deletions against protected classes
  • Adversarially validate candidate findings
  • Post findings / summary

No security issues found.

This PR ports upstream skill content (prompts, reference docs, config schema, eval fixtures) rather than application code, so the review focused on the few executable/active surfaces:

  • plugins/user-interface/scripts/check-emilkowalski-drift.sh — clones a hardcoded public repo (emilkowalski/skills) read-only into a mktemp -d directory it always removes; no user-controlled input reaches the git clone/ls-tree calls.
  • plugins/prototype/skills/explore-directions/assets/variant-switcher.html — builds DOM nodes with createElement/textContent only (no innerHTML), runs under a restrictive CSP (default-src 'none'), and is a static paste-in asset with no remote fetch.
  • plugins/user-interface/scripts/detect.mjs — the new stale-concern warning is additive validation logic, no new unsafe sinks.
  • The /testing:run-e2e worst-case and /user-interface:audit-animation --fix skill bodies both frame config, convention, and fetched content as data, not instructions (per docs/conventions/untrusted-content/README.md), and both gate mutation behind explicit checks (dirty-file refusal + cmp-verified revert for worst-case; a per-finding yes for --fix).
  • The .github/workflows/maintenance-check-upstream-drift.yml change is an additive matrix row using an already-pinned actions/checkout SHA — no trigger or permission change. (Actions hardening is zizmor's lane per this skill's scope, not re-reported here.)

Instruction-surface check: the diff removes several routing.json rows (the superseded motion concern, now-ported emilkowalski/skills entries) and one eval file (at-most-300ms.md, superseded by a tighter at-most-250ms.md). None of these are standing instructions in the protected-class sense (irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance, agent-authority per docs/conventions/instruction-exception-register/README.md, which was read) — they're skill-discovery routing data and a stricter duration limit, not a weakened guardrail.

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review has reviewed this pull request through e603ec9; a later push is reviewed from there.

…ene scan flags

The scan matches a work-marker word case-insensitively inside shell
comments, so "todo list" in animation-write-nonreact's scaffold.sh
failed lint-repo. The comment now says "task list"; the fixture's
markup is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 32s —— View job


Security review complete

  • Gather context (incremental scope: only plugins/user-interface/evals/animation-write-nonreact/scaffold.sh, since afa1cfa)
  • Read .claude-lane/incremental.diff
  • Run skip-gate check against /review:security-review criteria
  • Post findings / summary

No security issues found.

The only change since this lane's last reviewed commit (afa1cfa) is a one-line comment edit in plugins/user-interface/evals/animation-write-nonreact/scaffold.sh:

-# Seeds a Svelte app with an unanimated todo list and no animation library.
+# Seeds a Svelte app with an unanimated task list and no animation library.

This is a wording fix to the shell comment only (aligning the eval-scaffold description, likely to avoid an unrelated "todo" string match elsewhere in the repo's tooling). It touches no executable logic, no input handling, and no instruction surface (it's an inline comment in an eval scaffold script, not a CLAUDE.md/AGENTS.md/rules file/allowlist), so it carries no security-relevant surface and the skip gate applies. Every other file in this PR was already reviewed at afa1cfa per this lane's incremental scope.

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Code review in progress

  • Gather context (PR description, changed files, custom instructions)
  • Skip-gate check
  • Fetch full PR diff and review changed files against CLAUDE.md / REVIEW.md criteria
  • Fan out hunters, adversarially verify candidate findings
  • Post inline findings + summary

Running /review:code-review for PR #7235 (head 25d26ec).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: afa1cfa56a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @melodic-automation-lanes[bot]'s task in 26s —— View job


Security review complete

  • Gather context (incremental scope: only plugins/user-interface/reference/animation/gestures.md, since 25d26ec)
  • Read .claude-lane/incremental.diff
  • Run skip-gate check against /review:security-review criteria
  • Post findings / summary

No security issues found.

The only change since this lane's last reviewed commit (25d26ec) is a wording edit in plugins/user-interface/reference/animation/gestures.md:

-When a gesture ends, the motion continues at the pointer's exact release velocity, so there is no
-seam between dragging and animating. Pass the release velocity as the spring's initial velocity.
+When a gesture ends, the motion continues at the pointer's exact release velocity, so the motion does
+not jump when dragging gives way to animating. Pass the release velocity as the spring's initial velocity.

This replaces a "seam" metaphor with "does not jump" in prose describing velocity hand-off for drag-to-animation gestures. It touches no executable logic, no input handling, and no instruction surface (it's reference-doc prose, not CLAUDE.md/AGENTS.md/a rules file/an allowlist), so it carries no security-relevant surface and the skip gate applies. Every other file in this PR was already reviewed at 25d26ec per this lane's incremental scope.

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @melodic-automation-lanes[bot]'s task in 3m 5s —— View job


Code review in progress

  • Load /review:code-review skill instructions
  • Gather context (confirmed diff base 4b70153, matches PR stats: 93 files, +3272/-74)
  • Run skip-gate check (PR open, not draft, substantial surface, no completed code-review-lane pass yet on this head → proceeding)
  • Review changed files against CLAUDE.md / REVIEW.md criteria — 3 hunter agents dispatched in parallel over: (1) detect.mjs/team.schema.json/config-cascade.mjs/routing, (2) animation skill bodies & reference docs, (3) run-e2e worst-case, bugs:scan Lens 5, and the variant-switcher asset
  • Adversarially verify candidate findings
  • Post inline findings + summary

Working through PR #7235 (head ef0ddef).

… of layer errors

The config resolver honored type, enum, properties and items but not
minimum, minItems or maxItems, so a team value such as a one-number
easing curve or a negative duration replaced a valid default with no
error. lib/config-cascade.mjs now enforces the three keywords (a
breaking leaf keeps the lower layer's value, as for any invalid leaf),
with a test that fails without the change; the user-interface copy is
regenerated by scripts/sync-shared-copies.sh.

detect.mjs's note about a routing concern no bundled row has went to
the team layer's errors, which /user-interface:setup reports as FAIL
although the entry is kept. It now goes to the layer's warnings, which
setup reports as WARN.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

claude-review has reviewed this pull request through e603ec9; a later push is reviewed from there.

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 26s —— View job


Code review complete

  • Gather context (incremental scope: 6 files, since ef0ddef)
  • Load /review:code-review skill instructions
  • Read .claude-lane/incremental.diff
  • Review changed lines against CLAUDE.md / REVIEW.md criteria
  • Adversarially verify candidate findings
  • Post inline findings + summary

No findings.

This incremental diff (since ef0ddef) is a focused fix for the two P2 findings Codex raised on
the earlier commit (afa1cfa), and it holds up:

  1. Bounds enforcement — lib/config-cascade.mjs#L110-L112
    adds minimum/minItems/maxItems checks to the resolver's check(), exactly the three
    keywords team.schema.json actually declares (easing.{out,in_out,drawer} use
    minItems/maxItems: 4; the duration roles and velocity_threshold use minimum: 0). The new
    test in lib/config-cascade.test.mjs (minimum, minItems and maxItems are enforced...) covers
    under, over, and in-bounds cases, and asserts the lower layer's value is kept on rejection,
    matching the resolver's existing drop-and-fall-through contract.
    plugins/user-interface/scripts/lib/config-cascade.mjs is confirmed a byte-identical generated
    copy (scripts/sync-shared-copies.sh, ADR 0019) aside from its generated-file banner, so the fix
    is in sync across both locations.
  2. Warnings channel — plugins/user-interface/scripts/detect.mjs's warnConcern now pushes to
    team.warnings instead of routing a kept-but-notable entry through fail()/team.errors. This
    correctly stops /user-interface:setup check from reporting a stale/renamed routing concern as
    a FAIL per the skill's "every layer error is a FAIL" rule. detect.test.mjs was updated to assert
    the message lands in warnings and explicitly doesNotMatch on errors. setup/SKILL.md was
    updated in the same commit to document the new WARN row, so docs and behavior stay aligned. No
    other file in the plugin referenced the old error-channel message.

Checked for regressions: no other code or test references the old
team.errors-based "names no bundled concern" message, and the two config-cascade.mjs copies
remain in lockstep.

I was not able to execute node --test in this sandboxed environment (the tool call required
approval that isn't available in this lane), so I verified correctness by reading the resolver
logic and tracing it against the new/updated tests rather than by running them. The PR body's
"96/96 pass" claim is author-reported and not independently confirmed by this review.

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 1s —— View job


Security review complete

  • Gather context (incremental scope: lib/config-cascade.mjs, lib/config-cascade.test.mjs, plugins/user-interface/scripts/detect.mjs, plugins/user-interface/scripts/lib/config-cascade.mjs, plugins/user-interface/skills/setup/SKILL.md, plugins/user-interface/tests/detect.test.mjs, since ef0ddef)
  • Read .claude-lane/incremental.diff
  • Run skip-gate check against /review:security-review criteria
  • Post findings / summary

No security issues found.

This increment fixes the two P2 findings Codex raised on the earlier head (afa1cfa):

  • lib/config-cascade.mjs#L109-L111 and its mirror in plugins/user-interface/scripts/lib/config-cascade.mjs#L111-L113 — check() now enforces minimum, minItems and maxItems, so a malformed team/local-layer animation value (e.g. a 1-element easing curve or a negative duration) is dropped with a layer error instead of silently overriding the schema-valid default. Pure numeric/length comparisons against an already-type-checked value; no new injection or trust-boundary surface.
  • plugins/user-interface/scripts/detect.mjs#L279-L282 — the stale/renamed-concern notice now goes to a new team.warnings array instead of team.errors, so /user-interface:setup check (updated in plugins/user-interface/skills/setup/SKILL.md) no longer misreports a merely-unrecognized concern as a FAIL-worthy dropped value. team is the layer object from out.layers.find(...), not attacker-influenced keys, so team.warnings ??= [] carries no prototype-pollution or key-injection risk.

Both changes are validation/reporting-accuracy fixes on an internal config cascade (not a new input surface), and are covered by new/updated tests (lib/config-cascade.test.mjs, plugins/user-interface/tests/detect.test.mjs) that assert the bound enforcement and the errors/warnings split. No instruction-surface deletions, no secret handling, no new external input path in this slice.

Every other file in this PR was already reviewed at ef0ddef per this lane's incremental scope.

@kyle-sexton
kyle-sexton enabled auto-merge October 11, 2026 22:04
…luded

The literal-only regex graders missed durations held in custom
properties, which motion.md now teaches; llm graders resolve var()
before checking the role ceilings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019cXAvmoX8JooFkwz4buQJx
@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 55s —— View job


Code review complete

  • Gather context (confirmed diff base origin/main matches PR stats: 96 files, +3269/-161)
  • Run skip-gate check (incremental: only one new commit since this lane's last reviewed head de9beeb/ef0ddef pair — proceeded on that slice)
  • Review the new commit against CLAUDE.md / REVIEW.md criteria
  • Adversarially verify candidate findings
  • Post inline findings + summary

No findings.

Since this lane's last completed passes (covering through the f6dbe0e schema-bounds/warnings-channel fix), the only PR-specific change is cb6cba3 — the merge commits (4537473, 3dd4d67, 7dc4300, 0021984, e603ec9) bring in already-landed main history with no extra diff (git diff --shortstat origin/main...HEAD matches the PR's reported 96 files / +3269/-161 exactly, so nothing from those merges needs re-review here).

cb6cba3 replaces four brittle regex graders with two LLM graders:

This fixes a real gap: the old not_contains regex graders matched only literal Nms/Ns durations in the CSS text, so a duration held in a custom property (--duration-large: 500ms; transition: opacity var(--duration-large)...) would pass the "at most Nms" check regardless of the token's actual value — exactly the pattern motion.md now teaches authors to use. The new graders explicitly instruct the LLM to resolve var(--name) against the value declared in the same answer and to exclude the transition/animation delay (second time value) from the duration check, with PASS/FAIL examples covering both. Frontmatter (type: llm, arm: both) matches the convention used by the other LLM graders added earlier in this PR (e.g. reduced-motion.md).

Checked for loose ends: no remaining reference anywhere in plugins/user-interface to the deleted grader files (at-most-400ms, at-most-250ms, has-duration), and their paired sample JSON files were removed in the same commit.

The two open threads from the earlier Codex/Claude passes on this PR (schema-bounds enforcement and the warnings-channel split) are marked fixed in f6dbe0e by the PR author, and the third (no measured-evidence baseline for the new model-invoked write-animation/audit-animation skill listings) is explicitly left open, escalated to the PR owner — that's a judgment call for the owner per the invocation-mode rubric, not something this pass can resolve either way.

@claude

claude Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 20s —— View job


Security review complete

No security issues found.

Scope check. origin/main...HEAD (e603ec9169c8ea52237d84a9bbca6240c9d1591f) is 96 files,
+3269/-161 — matching the PR description exactly. The merge commit e603ec9 itself (merging
origin/main) introduces nothing into that three-dot diff: git merge-base origin/main HEAD is
4537473, i.e. origin/main's own tip, so every file the merge brought in (the unrelated
fix(firecrawl) commit and ~260 other files it touched) is already excluded from the PR's diff.

The only content genuinely new on this branch since the last completed security-review pass
(de9beeb, incrementally covering lib/config-cascade.mjs, detect.mjs, and setup/SKILL.md)
is commit cb6cba3, test(user-interface): grade resolved durations, custom properties included.
It touches only eval fixtures under plugins/user-interface/evals/css-rule-duration/ and
css-configured-duration/: it deletes two regex-based duration graders
(at-most-250ms.md/at-most-400ms.md, has-duration.md) and their JSON samples, and adds two
type: llm grading-prompt markdown files
(within-role-durations.md,
within-configured-large.md)
that teach the eval grader to resolve var(--name) custom properties before checking duration
ceilings, since the prior regex-only graders missed durations held in custom properties.

This carries no security-relevant surface: it's eval-grading criteria read by the eval harness
when scoring a sampled answer, not executable code, and not a standing instruction in the
protected-class sense (CLAUDE.md/AGENTS.md/a rules file/a skill or agent body/a hook
allowlist) — it's test-fixture content scoped to one skill's own evals directory, per
docs/conventions/instruction-exception-register/README.md. No input handling, no new trust
boundary, no injection surface.

Every other file in this PR (the config-cascade.mjs bounds-enforcement fix, the
detect.mjs warnings-channel fix, the drift-check script, the variant-switcher CSP asset, the
animation reference/skill content, etc.) was already reviewed clean at prior heads per this
lane's incremental scope — see the security-review comments on afa1cfa, 25d26ec, ef0ddef,
and de9beeb above.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 11, 2026
Merged via the queue into main with commit 2514b3f Oct 11, 2026
36 checks passed
@kyle-sexton
kyle-sexton deleted the claude/festive-bardeen-m18bqb branch October 11, 2026 22:34
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.

2 participants