Skip to content

refactor(user-interface): check durations against resolved keys and document four config layers - #14904

Merged
kyle-sexton merged 5 commits into
mainfrom
refactor/literal-measurements-durations-setup
Nov 10, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
refactor/literal-measurements-durations-setup

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Closes #14318

Summary

These are the last three phases (9 to 11) of #14214:

  • Durations are now checked against the resolved config keys, not the bundled linter's fixed limits.
  • The README and /user-interface:setup describe the four config layers the resolver actually reads.
  • A review rule now covers new inline taste values.
  • The list of other plugins that repeat user-interface craft values is filed as #14902.

Fix

  • Phase 9 (AC11). skills/write-css/scripts/review.mjs drops the vendored linter's duration findings. It checks transition and transition-duration against animation.duration_ms.large, taken from the caller's --config or, failing that, from reference/defaults.yaml. It reads CSS files and the <style> blocks of HTML files, and it ignores durations inside comments and strings. Reported line numbers still match the file. css.rules.disable still turns the rule off. The vendored check-css.mjs is unchanged. write-css SKILL.md and reference/review.md now pass animation.duration_ms with the rule ids, and the "fixed limits" wording is gone. Hover has its own role. The audit motion lane's pre-pass text matches.
  • Phase 10 (AC17, AC15).
    • README layer table, setup/SKILL.md, the team.schema.json description and the defaults.yaml header now list four layers. The user-global layer and --user are removed, matching scripts/lib/config-cascade.mjs, which reads no user-global file.
    • setup apply nests dotted keys per reference/values.md "Setting a key". Without node, it shows the shipped defaults before stopping.
    • New line in docs/review/skills-and-agents.md: a new taste number in a user-interface reference names a key.
    • New eval case setup-apply-nests-dotted-key, owner Q8 (a).
  • Phase 11 (AC16, AC18). No existing ticket matched, so Point other plugins' copies of user-interface craft values at their keys #14902 was filed, with each hit judged. The named-key check exits 0 on this tree.
  • Same-plugin cleanup: the audit-configured-toast-duration case description no longer says the linter has a fixed limit, and an unused parameter is dropped.

Behavior change: a modal, dialog or drawer duration is now capped at the configured large (300ms by default), where the vendored linter allowed 500ms. The audit motion lane already judged those components against large.

Verification

  • node --test plugins/user-interface/tests/*.test.mjs: 173 pass, 0 fail. The two new review.test.mjs cases: a caller's 200ms ceiling reports a 250ms transition, which the shipped 300ms allows, in CSS and in an HTML <style> block.
  • git hash-object plugins/user-interface/skills/write-css/vendor/check-css.mjs printed 6fa72714ba18cf02f698fa8015f63df043b3af85. grep -c duration_ms .../write-css/reference/review.md printed 3, and grep -c "fixed limits" .../write-css/SKILL.md printed 0.
  • claude plugin eval plugins/user-interface --case setup-apply-nests-dotted-key --runs 1 passed 1/1. check-skill.sh plugins/user-interface/skills passed for audit, setup and write-css. The --user, user-global and five greps on setup and the README printed 0.

Related

session: Emil Kowalski X Posts

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7KASirHW2j2WiD68Ur

kyle-sexton and others added 4 commits November 9, 2026 18:27
review.mjs drops the vendored linter's duration findings and checks
transition and transition-duration against animation.duration_ms.large
from --config, else the shipped default. write-css review mode passes
animation.duration_ms, and the duration rule gains the hover role.

Refs: #14318

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T23:57:05.402432Z
We couldn’t complete this review. Comment @codex review to try again.
9779108 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 6dc98ffc0eb773b2cc40bcdf022f7d6d0a930f56: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #14904 (incremental, head 6dc98ff)

No security issues found.

This review covers only what changed since 9779108: one hunk in plugins/user-interface/skills/write-css/SKILL.md, which I read in full. The file matches no TRUSTED PATHS glob.

What changed: the commit repairs a merged line. The sentence starting "Exit 0 is clean" had lost its start, and the commit restores it as its own line: "Exit 0 is clean, 1 has findings, 2 is a usage error or crash: report a 2, never read it as clean."

Why it is safe:

  • The change removes no instruction and makes none weaker. It brings back the full rule that exit code 2 must never be read as a clean result, so the instruction is now complete again.
  • The text that says the --config value is safe on a command line is unchanged. The last review checked that claim against the schema and the resolver code.
  • No command, file path, manifest, workflow, token or trust control changed.

This lane already reviewed an earlier head, so this review reports blocking (CRITICAL and IMPORTANT) findings only. There were none.

critical-findings: 0

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

claude-review: 1 inline finding(s) on 9779108380948ee03542aaf7a982bf6e3b14b0bc; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 6dc98ffc0eb773b2cc40bcdf022f7d6d0a930f56: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #14904 (incremental, blocking only)

Scope. I reviewed only what changed between 9779108 and 6dc98ff, which is one hunk in plugins/user-interface/skills/write-css/SKILL.md. I read all of it and checked it against the file at head (L142-L146). Every other file in the PR is unchanged since the last review. This lane has already reviewed an earlier head, so this pass reports blocking findings only.

The change. The only finding from the earlier inline review is fixed: the dropped words "Exit 0" are back. SKILL.md#L144 now reads "Exit 0 is clean, 1 has findings, 2 is a usage error or crash: report a 2, never read it as clean." That matches the base text and review.mjs's exit contract. The owner already resolved that thread, and nothing new turns up on these lines.

Earlier advisory. Last round's advisory finding was the "five config layers" wording at reference/configuration.md#L3. This push doesn't touch that file, and blocking-only mode leaves advisories out, so it isn't restated here.

Findings

None.

No plugin manifest changed, so this review has no manifest lines. I found no embedded instructions in the PR context, settled threads or prior findings. I ran no tests.

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 9779108380948ee03542aaf7a982bf6e3b14b0bc. What it wrote, as data:

What it wrote (37 lines)
Summary: Issue #14318 (phases 9 to 11 of #14214): most of it is delivered. review.mjs drops the
  vendored linter's `duration` findings. In its place it checks `transition` and
  `transition-duration` against `animation.duration_ms.large`, taken from `--config` or, failing
  that, from the shipped defaults.yaml, in CSS and in HTML `<style>` blocks, and line numbers stay
  correct. `css.rules.disable` still suppresses the rule, and a load failure still exits 2. The
  vendored check-css.mjs is not in the diff, so its pinned hash is unchanged. The write-css review
  reference now names `duration_ms`, and "fixed limits" is gone from the write-css skill. The
  README, setup skill, schema description and defaults header now list the four layers the cascade
  reads, and setup no longer offers `--user`. The review rule line is added to
  docs/review/skills-and-agents.md, a changelog fragment is added, and the PR body links follow-up
  issue #14902 (AC18). The two new review.test.mjs cases cover a caller's lower ceiling in CSS and
  in an HTML `<style>` block, and they can fail. That suite runs only through its .test.sh wrapper,
  and test-bash (0) passed on the judged head
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/42724514763/job/129526773393),
  so test-node being skipped is expected. AC16 and AC19 are checks run on the owner's machine. Why
  it fails: the edit dropped "Exit 0" from the exit-code sentence in the write-css skill, and the PR
  adds an eval case that AC15's no-new-test rule does not allow. Two further items need a fix or
  confirmation: the unrequested `hover` duration role, and the unrequested setup changes. No binary
  files, takeover-set files, secrets or steering text were found.
- plugins/user-interface/skills/write-css/SKILL.md:139: the rewritten paragraph reads "…both are
  safe on a command line. is clean, 1 has findings…" because "Exit 0" was lost. Put back "Exit 0 is
  clean, 1 has findings, 2 is a usage error or crash" so the skill states the full exit-code
  contract again.
- plugins/user-interface/evals/setup-apply-nests-dotted-key/case.yaml: AC15 says no new test or CI
  check may be added beyond the two approved review-test cases, and issue decision Q8 approves only
  those two. This new eval case, with its scaffold.sh and three sample files, goes beyond that.
  Remove it, or get the owner's approval recorded in issue #14318. The approval the PR body cites
  ("owner Q8 (a)") is not in the spec.
- plugins/user-interface/skills/write-css/SKILL.md:125: the issue does not ask for the new `hover`
  duration role (also added in reference/configuration.md and the changelog fragment). The diff adds
  no `animation.duration_ms.hover` key to reference/defaults.yaml or reference/team.schema.json. If
  that key does not already exist at the base, remove the `hover` role and leave hover under
  `medium`.
- plugins/user-interface/skills/setup/SKILL.md:44: showing the shipped defaults.yaml values when
  `node` is missing, and nesting dotted keys in step 3, are setup changes the issue does not ask
  for. AC17 asks only that the user-global write be removed. Keep them only if the owner agrees;
  otherwise move them to their own issue.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 10, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 10, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit d993ae9 Nov 10, 2026
63 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/literal-measurements-durations-setup branch November 10, 2026 02:50
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 5, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 71%; mutation score 71%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/user-interface/skills/write-css/scripts/review.mjs 5 2 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/user-interface/skills/write-css/scripts/review.mjs:64 ROR productive input-gap
plugins/user-interface/skills/write-css/scripts/review.mjs:100 ROR productive input-gap

The run's summary has the full report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(user-interface): check durations from keys, fix layers, file follow-up

1 participant