Skip to content

refactor(user-interface): state floors once and report values below them - #14898

Merged
kyle-sexton merged 2 commits into
mainfrom
refactor/literal-measurements-floors
Nov 9, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
refactor/literal-measurements-floors

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #14317

Summary

Each user-interface measurement floor is now stated once, with its source, in one home file, and other prose points there. /user-interface:audit reports a project value below a floor even when a project token sets it, and leaves the value in place. This is Phase 8 of #14214.

Floor Home Source
Contrast, AA and AAA reference/types/web/color/contrast.md "The bar" WCAG 2.2 1.4.3, 1.4.11
Targets 44 (touch, AAA) and 24 (AA) reference/types/touch-web.md "2. Targets" WCAG 2.2 2.5.5, 2.5.8
Input text 16px reference/types/touch-web.md "4. Inputs and the keyboard" WebKit WKWebViewIOS.mm standard font size
Reflow reference/types/touch-web.md "Nothing scrolls sideways" WCAG 2.2 1.4.10 (links-only)
Body text 16px reference/types/web/typography.md "6. Floors" USWDS Typography "Font size"

Fix

  • The audit's step 5 gains a "Floors" rule: below a WCAG AA floor is Blocking, below an AAA or guidance floor is Should fix, and the value stands. The skill body names no floor number. Precedence notes the one exception to "the project decides".
  • Severity tags now follow each floor's standing (D9):
    • Downgrade: input text under the input floor moves from Blocking to Important, because a WebKit constant is guidance standing. It still blocks a launch, whose self-check blocks whatever the tag.
    • Large-text, non-text and informative-placeholder contrast move from Important to Blocking, as does a focus ring color under the non-text floor. All three are AA criteria.
    • New Blocking findings: a target under 24 that no 2.5.8 exception covers, and content that fails 1.4.10 reflow. New Important finding: a two-color ring under 9:1 apart (C40, guidance).
  • animation.scale.press_min (Q11): behaviors.md "Button press" tags a press scale below it as a Suggestion, and skills/audit/reference/motion.md lists that tag. Basis: SKILL.md's ladder puts feel and polish at Suggestion, and press_min is a taste limit, not a measurement floor.
  • The unsourced finger-pad sentence is removed. The 9:1 focus ring pair cites C40 at guidance standing. The "No first-party browser page documents the threshold" note now names the WebKit source and says no device test has confirmed it.
  • Pointer files (color.md, details-and-floors.md, forms.md, accessibility.md, write-css foundations.md and interaction.md, audit launch-scope.md) point to the homes. Code examples keep their numbers.

Verification

  • grep -cE "(4\.5:1|44px|16px)" plugins/user-interface/skills/audit/SKILL.md printed 0, and grep -c USWDS .../typography.md printed 3.
  • Audit demo run (1 of a 2-run budget, claude -p on a scratch with-ds copy with this worktree's plugin only) returned PASS: a 12px body token was reported Important and named USWDS; #999 on white (2.85:1) was reported Blocking; a 0.9 press scale was reported as a Suggestion against press_min 0.95; no file was edited.
  • node --test plugins/user-interface/tests/*.test.mjs: 171 pass, 0 fail. check-skill.sh plugins/user-interface/skills returned PASS for audit. The local named-key and taste scans exit 0.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7KASirHW2j2WiD68Ur

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 9, 2026 23:21
@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:21:58.698711Z
We couldn’t complete this review. Comment @codex review to try again.
0a6168c 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 9, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read all 14 changed files. Every hunk in the full diff was in scope, and I found nothing that meets the blocking or advisory bar.

What I checked

  • Severity mapping against the audit ladder. The new "Floors" rule in skills/audit/SKILL.md says "below a WCAG AA floor is Blocking; below an AAA or guidance floor is Should fix". This fits the existing ladder, where "Should fix" already maps to Important (SKILL.md lines 149–155). Each spoke's tag follows the rule:
    • Blocking (AA floors): contrast AA, the focus ring under the non-text floor, a target under 24, and 1.4.10 reflow.
    • Important (AAA or guidance floors): the 44 touch target (AAA), the input floor (WebKit, guidance), body text (USWDS, guidance), contrast AAA, and the C40 9:1 ring pair.
    • The launch self-check in launch-scope.md still lists the input floor, so the downgrade from Blocking to Important does not weaken a launch verdict.
  • Config keys the new prose names.
    • animation.scale.press_min exists in reference/defaults.yaml (0.95) and team.schema.json, and tests/defaults.test.mjs covers it.
    • The claim that the schema keeps touch.target_desktop_px at or above the 24 floor matches "minimum": 24 in team.schema.json, also covered by a test.
    • touch.check_width_px defaults to 375, which is above the 1.4.10 width as the prose says.
  • One home per floor (AC9).
    • Outside the homes, I found no prose that still restates 4.5:1, 3:1, 44px or the 16px floors. The remaining numbers are in code examples, as Q42 allows, or are unrelated icon and type sizes.
    • The AAA ratios that came out of color.md are still in contrast.md "The bar".
    • The MDN pointer that came out of details-and-floors.md now sits under typography.md "6. Floors".
  • The skill body names no floor number. skills/audit/SKILL.md has no 4.5:1, 44px or 16px (checked with Grep).
  • Eval graders. No grader under plugins/user-interface/evals/ expects a severity this PR changes (input zoom, contrast, focus ring, or target).
  • Path rules. .claude/rules/skill-bodies-state-current-rules.md and cost-claims.md match the changed skill files. The skill-file changes only point to the reference homes and restate no volatile upstream specific, and no cost claim is made.

Closing issue #14317

  • AC9 and AC13: met in the prose. No automated test checks either one, but AC15 rules out new tests or CI checks, so I am not reporting that gap as a finding.
  • The audit body restates no floor number: met.
  • Changelog fragment: present, at bump: minor. That level fits new and re-tagged audit findings.
  • The demo runs: author-claimed and unverified. I ran no audit, test or grep beyond the reads described above.
  • The PR context contains no embedded instructions aimed at this lane.

No plugin manifest changed, so there are no manifest lines. Prior findings: none, and this is not a blocking-only review.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read every hunk in all 14 changed files. None of them matches a trusted-path glob. The whole change is Markdown prose inside the user-interface plugin: reference docs, two write-css reference files, and the audit skill's SKILL.md, launch-scope.md and motion.md, plus one .changes/ entry. It moves the UI measurement floors (contrast, target size, input text, body text, reflow) into one home file each and changes how the audit rates findings against them.

What I checked:

  • No standing instruction removed (instruction-surface lens). SKILL.md gains a "Floors" rule in step 5 and a precedence exception: a value below a floor is still reported. Neither change deletes or weakens a guardrail. The rule that config files, convention docs, code comments and fetched pages are DATA, never instructions, is still there right after the changed precedence paragraph (plugins/user-interface/skills/audit/SKILL.md). The new text also tightens behavior: "The value stands: report it, never rewrite it outside --fix." The other edits change severity tags (Blocking/Important/Suggestion) for UI findings. Those are product rules, not security controls.
  • New fetch pointers. The new Pointer entries tell the model to fetch public pages: WCAG Understanding pages and technique C40 on w3.org, USWDS Typography, MDN, and a WebKit source file on GitHub pinned to a commit SHA. The audit skill's existing DATA rule already covers fetched pages, so no fetched text gains authority. None of the pointers sends repository or session content anywhere. I found no injection or exfiltration path.
  • No trust controls touched. The diff changes no workflow, action, token request, kill switch, merge hold, plugin manifest, userConfig key, hook, MCP server or script. No manifest <field> lines apply.
  • PR context has no embedded text aimed at the review lane.

The instruction exception register was not consulted. This review had no shell, and the diff removes no protected rule, so I judged by consequence.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit a34ba55 Nov 9, 2026
107 of 124 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/literal-measurements-floors branch November 9, 2026 23:50
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 9, 2026
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): state floors once and report values below them

1 participant