Skip to content

feat(user-interface): add a motion cleanup sub-mode with a configurable pass order - #14383

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14212-42570117358-1
Nov 9, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14212-42570117358-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14212

Summary

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

Adds the cleanup sub-mode to the motion lane of /user-interface:audit. It runs the lane's passes in the order the new animation.cleanup_order key sets, one pass per value. The default order is removal, review, performance, and the key accepts removal, review, opportunities and performance. The key is set in the defaults file, checked by the team schema, listed in the README, and its source is recorded under ## Post sources in Emil Kowalski's upstream record. Two choices of means, both based on the code: (1) the schema allows 1 to 4 items, because the plugin's config validator supports minItems and maxItems but not uniqueItems, so the sub-mode runs a repeated value once, at its first position; (2) a pass with nothing to judge in its default scope (performance with no animation named) says so and asks which animation to diagnose. Measured facts and accessibility floors: neither changed his value. The order is his suggested sequence, he gives no reason for it, and no floor applies to it. The issue body links the post (x.com/emilkowalski/status/2116583281332503038) and has no line starting with >.

Not verified

  • node --test --test-concurrency=4 plugins/user-interface/tests/defaults.test.mjs plugins/user-interface/tests/detect.test.mjs was not run: this lane's shell runs only the named wrappers. Left to the PR's CI. The review subagent traced both tests by hand and expects them to pass.
  • Tidy skipped: the change spans 2 areas (plugins/user-interface with .changes/user-interface, and docs/upstream), over the tidy cutoff of 1 area.
  • AC7's gh issue view grep was not run (no gh in this lane). The body in issue.json was read instead: it contains x.com/emilkowalski/status/ and no line starting with >.
  • The audit skill's frontmatter description does not mention cleanup, so 'clean up our animations' has no trigger phrase. Left unchanged to avoid editing trigger keywords; the argument-hint names the sub-mode.
  • Build and lint beyond the three repository checks (markdownlint, typos) were not run here: check-affected skipped typos (not installed), and markdownlint is left to CI.

Fix

  • plugins/user-interface/reference/defaults.yaml: adds animation.cleanup_order, a block list of removal, review, performance, with a comment naming the allowed values.
  • plugins/user-interface/reference/team.schema.json: adds cleanup_order, an array of 1 to 4 items from the enum removal, review, opportunities, performance. The animation description now says this key is read only by the audit skill.
  • plugins/user-interface/README.md: adds a config table row for animation.cleanup_order, plus a sentence saying it is not a taste default and only /user-interface:audit reads it.
  • plugins/user-interface/skills/audit/SKILL.md: adds cleanup to the argument-hint, the Arguments line, the sub-mode list (with its scope behavior) and the step 5 list of motion sub-modes.
  • plugins/user-interface/skills/audit/reference/motion.md: adds a cleanup entry under ## Sub-modes. It reads the resolved animation.cleanup_order and the layer it came from, maps each value to a pass, and covers duplicates, an empty scope, the report shape and the --fix order.
  • plugins/user-interface/tests/defaults.test.mjs: adds the key to the layer-1 contract, and a test that valid lists are accepted and an empty list, an unknown value and a scalar are refused.
  • plugins/user-interface/tests/detect.test.mjs: adds the key to the expected resolved values and provenance.
  • docs/upstream/emilkowalski-skills.md: adds a ## Post sources row for animation.cleanup_order linking the 2026-10-31 post, and widens the recheck trigger to cover a changed cleanup order.
  • .changes/user-interface/work-resolve-issue-issue-14212-42570117358-1-79836249.md: new bump: minor changelog fragment for the sub-mode and key.

Verification

The runner ran each check from the base copy against 2aa1fdb:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //x.com/emilkowalski/status/2116583281332503038: HTTP 402, not readable directly.
  • read https: //api.fxtwitter.com/emilkowalski/status/2116583281332503038: the same post, dated 2026-10-31. It suggests running /remove-animations, then /improve-animations, then /animation-performance on an app, and gives no reason for the order.
  • check-changelog-fragments: all 5 fragments under .changes/ valid (run before and after the review fixes).
  • check-changed-skills: plugins/user-interface/skills/audit PASS, 0 errors and 3 warnings (description length, body length, body grew 197 to 200 lines); all 8 base-ref trigger phrases preserved.
  • check-affected: 12 passed, 7 skipped, over 9 changed files.
  • AC22 greps, by reading the files: SKILL.md now names cleanup in four places (argument-hint, Arguments line, sub-mode list, step 5), and motion.md names cleanup_order under ## Sub-modes.
  • Fresh-context review subagent over the whole diff: no correctness bugs. It traced the YAML through the subset parser, the schema node through the cascade validator, and the new test's expected error keys and the detect fixture's provenance. Its prose findings were fixed: the record row's mapping of…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42570117358

Left out: the items under Not verified.

Related

#14212

Merge-Risk: max=HIGH demote=true head=2aa1fdb7423a2e99bcec46b2d5f10a994d2006fc rubric=8.1.2 rater=claude-opus-5-5 checker=claude-opus-5-5

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 2aa1fdb7423a2e99bcec46b2d5f10a994d2006fc. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 2aa1fdb7423a2e99bcec46b2d5f10a994d2006fc: read 9 of 9 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #14383, motion cleanup sub-mode and animation.cleanup_order

I found no security issues in this change.

critical-findings: 0

I read all 9 changed files in full: the changelog fragment, the upstream record, the README, defaults.yaml, team.schema.json, the audit SKILL.md, motion.md, and the two test files. None of them match a trusted-path glob. The PR changes no plugin manifest, workflow, action, token request, merge hold or trusted-actor list.

What I checked:

  • The new config key. animation.cleanup_order is limited by the schema to an array of 1 to 4 values from a fixed set: removal, review, opportunities, performance (team.schema.json:144). The only thing that reads it is the audit skill's prose (motion.md cleanup entry), which uses it to choose the order the existing passes run in. It doesn't reach a shell, a path, a URL, a hook or any code that sends data off the machine.
  • The guard on edits. The new sub-mode is still read-only by default. With --fix it only offers findings in pass order, under the skill's existing one-yes-per-finding rule, which this diff leaves unchanged. No guard is widened.
  • Instruction text. The changes to SKILL.md and motion.md only add text (the sub-mode and its argument). No standing rule is deleted, narrowed or softened, so the instruction-surface check found nothing to flag.
  • Tests and docs. The test edits and the upstream and README text are data and description only.
  • PR description. I found no embedded instructions aimed at this lane.

This was the first review of this PR by this lane, so it was not limited to blocking findings. No cost or hold class applies.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 2aa1fdb7423a2e99bcec46b2d5f10a994d2006fc: read 9 of 9 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #14383, animation.cleanup_order and the motion cleanup sub-mode

No findings. I read every hunk of all 9 changed files. I also read the unchanged code the new key depends on: the config cascade's validator and merge, the YAML subset parser's grammar, and the audit skill's full body.

What I checked

  • Schema and validator fit. The new cleanup_order node uses type: array, items.enum, minItems and maxItems. All four are in the subset config-cascade.mjs honors (L21-L23, L143-L153). That validator has no uniqueItems, so leaving it out and handling repeated values in motion.md instead is the right call.
  • A team's order replaces the default. Only a leaf named disable is merged as a union across layers (L493). A team or local cleanup_order replaces the default list instead of being merged with it, so the issue's demo ("change the key's order and the run follows it") holds at the config layer.
  • Defaults file. The block list under a nested mapping is in the YAML subset grammar (yaml-subset.mjs L14-L17). The CONTRACT deep-equal tests in defaults.test.mjs and the expected values and provenance in detect.test.mjs would catch a parse or value drift.
  • New test's expected error keys. I traced each case by hand. An empty list fails minItems, an unknown item fails the item enum, and a scalar fails the type check. Each gives one error tagged animation.cleanup_order, which matches the assertions. I did not run the tests: this lane has no shell. The author also says the tests were not run and leaves them to CI.
  • Skill text. SKILL.md names cleanup in the argument hint, the Arguments line, the sub-mode list and step 5. The existing rule that rejects launch with any sub-mode covers it, as the issue's Key interfaces require. motion.md reads the resolved key and its provenance, maps each value to a pass, and covers repeated values, an empty scope, the report shape and the --fix order.

Closing issue #14212

  • AC22, defaults / schema / README row: met, covered by the defaults and detect tests.
  • AC22, SKILL.md / motion.md: met (4 cleanup mentions in SKILL.md; cleanup_order appears under ## Sub-modes in motion.md).
  • AC24, tests: tests were added. That they exit 0 is the author's claim and unverified, left to CI. The ## Post sources row names the key and the post, and the PR body states that no measured fact or accessibility floor changed his value.
  • AC7, the issue body: the author says it was checked by reading issue.json. That is author-claimed and unverified here.
  • Changelog fragment: bump: minor matches a new key and sub-mode.

Other notes

  • No plugin.json or marketplace.json change, so no manifest lines.
  • No paved-path row in this repository's standards index (the only match is an eval fixture), so nothing to report on paved paths.
  • Path-scoped rules matched: skill-bodies-state-current-rules.md and cost-claims.md. The changed text states current rules and makes no cost claims.
  • No embedded instructions in the PR context. Prior findings: none, and this is not a blocking-only review.
  • Spend: none. The change adds no lane runs, model or turn changes, and nothing billed.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 2aa1fdb7423a2e99bcec46b2d5f10a994d2006fc, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 2aa1fdb

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-14383-2aa1fdb7423a2e99bcec46b2d5f10a994d2006fc, expires on 2026-12-09.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 40f1546 Nov 9, 2026
64 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14212-42570117358-1 branch November 9, 2026 07:16
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 40f15463b6300994f970aa2431be7c225b2a0a09; later checks count it verified from this comment.

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.

feat(user-interface): add a motion cleanup sub-mode with a configurable pass order

0 participants