Skip to content

feat(user-interface): add a configurable long-form reading size - #14322

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

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #14210

Summary

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

Adds typography.long_form_body_px (default 18, integer, minimum 16) to the user-interface defaults, team schema and README, and a web typography rule beside the 16px body floor that writes the size in rem (1.125rem over a 16px root), with project type tokens beating the key. Emil Kowalski's upstream record gains a ## Post sources section with a row for the key and his 2026-10-19 post. On the PR-body question: no measured fact or accessibility floor changed his value. The 16px body floor (USWDS) holds over it as the schema minimum, and the default of 18, the low end of his 18 to 20px range, stands by the owner's decision (Q65) that the reading research does not contradict it. Design choice: the long-form rule went into section 6 'Floors' of reference/types/web/typography.md, right after the floor's audit line, which the issue asks for ('beside the 16px floor'). The floor text and its audit line are unchanged.

Not verified

  • node --test plugins/user-interface/tests/defaults.test.mjs plugins/user-interface/tests/detect.test.mjs was not run here, because this lane allows no interpreter. The review subagent traced both by reading the code. Left to the PR's CI.
  • Tidy skipped: the change spans 2 areas (plugins/user-interface with .changes/user-interface, and docs/upstream), over the 1-area cutoff
  • AC7 (the issue body links the post and quotes no post text) checks the issue itself, not this change, and gh is not available here to run it
  • The issue's claims about the reading studies (Rello 2016, the 2026 ADHD study) were not read this run, so the record states the owner's decision and no study findings
  • Changes were left uncommitted in the working tree, as the runner instructs, rather than committed

Fix

  • plugins/user-interface/reference/defaults.yaml: new top-level typography block, long_form_body_px: 18, with a comment giving its meaning, its px unit and the rem output
  • plugins/user-interface/reference/team.schema.json: new top-level typography property; long_form_body_px is an integer with minimum 16, so the config cascade (detect.mjs --config, /user-interface:setup check) refuses a value under 16
  • plugins/user-interface/README.md: Configuration table row for typography.long_form_body_px, plus a sentence on which skills read it and the floor refusal
  • plugins/user-interface/reference/types/web/typography.md: section 6 gains 'Set long-form reading larger' (the key, default 18, written as 1.125rem over a 16px root, above the floor and not a change to body text) and a Suggestion audit line that avoids a duplicate finding with scale-and-rhythm.md
  • plugins/user-interface/tests/defaults.test.mjs: the CONTRACT includes the key; a new test asserts the schema minimum of 16, accepts 20 and 16, and rejects 15 and 18.5 back to 18
  • plugins/user-interface/tests/detect.test.mjs: the --config values and provenance include typography.long_form_body_px from defaults
  • docs/upstream/emilkowalski-skills.md: new ## Post sources section (with As of and Recheck trigger lines) and a row naming the key, the post link, what we took, and that the 16px floor held without changing his value
  • .changes/user-interface/work-resolve-issue-issue-14210-42565250791-1-1b8a9379.md: bump: minor fragment for the new key

Verification

The runner ran each check from the base copy against deef249:

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

The run reports:

  • read https: //api.fxtwitter.com/emilkowalski/status/2112245483464802700 (a mirror of https: //x.com/emilkowalski/status/2112245483464802700, which returned HTTP 402 directly): Emil Kowalski, 2026-10-19, says long-form text reads better at 18px or 20px than at 16px
  • read https: //designsystem.digital.gov/components/typography/: use at least an effective 16px for most text, including body copy
  • read https: //design-system.service.gov.uk/styles/type-scale/: GOV.UK Frontend outputs relative units (em, rem) so type resizes better when zoomed or magnified
  • check-changelog-fragments: all 3 fragments valid (run before and after the review fixes)
  • check-changed-skills: no changed skills, nothing to gate (run twice)
  • check-affected: 12 passed, 7 skipped over 8 changed files (run twice)
  • Read and grep: grep -c long_form_body_px README.md matches 1 line; in typography.md the key appears on one line, and that line contains 1.125rem
  • Fresh-context review subagent: traced config-cascade.mjs and yaml-subset.mjs. The new block parses, the userConfig name typography_long_form_body_px maps to the leaf, "15" fails minimum, "18.5" fails integer, and no fixture sets typography, so the detect expectations hold. It raised four minor…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42565250791

Left out: the items under Not verified.

Related

#14210

Merge-Risk: max=HIGH demote=true head=deef249b0b4e81f16188e20825cb89de8b78eb58 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 deef249b0b4e81f16188e20825cb89de8b78eb58. 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 deef249b0b4e81f16188e20825cb89de8b78eb58: read 8 of 8 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #14322 (head deef249b)

I found no security issues. I read every hunk of all 8 changed files in the diff.

What changed. The PR adds one config key, typography.long_form_body_px. It is an integer with default 18 and a schema minimum of 16. The key appears in these places:

  • the user-interface plugin's reference/defaults.yaml
  • reference/team.schema.json
  • a README configuration row
  • a prose rule in reference/types/web/typography.md
  • tests (defaults.test.mjs, detect.test.mjs)
  • a changelog fragment
  • a new "Post sources" section in docs/upstream/emilkowalski-skills.md

Why there is nothing to report:

  • Trusted paths: no changed file matches a TRUSTED PATHS: glob.
  • Trust controls and merge holds: none are touched. That covers the trusted-trigger check, lane token scope, the kill switch, the token broker, merge holds and pr-pipeline.yaml.
  • Plugin manifests: no .claude-plugin/plugin.json or marketplace.json is changed, so there are no manifest lines to report.
  • Schema: the new schema property sets "additionalProperties": false on its object and "type": "integer" with "minimum": 16 on the leaf (team.schema.json, added lines 78–85). It is a typed value that guards nothing, and no command, path, URL or hook reads it.
  • Instruction surface: the typography.md change only adds a rule and an audit line. The body-floor text and its audit line are unchanged, so no standing instruction is deleted, narrowed or softened.
  • Workflows and external code: no GitHub Actions workflow, script or dependency is changed. The only external content is links to x.com, designsystem.digital.gov and the upstream GitHub repository, in docs and the changelog.
  • PR context: the context file holds no embedded instructions aimed at this lane.

Spend: none. The change adds no billable resource and no lane, turn or schedule setting.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #14322, configurable long-form reading size

I read every hunk of all 8 changed files. I also read the PR context, the prior-findings file (no earlier heads, so this is not a blocking-only review), the unchanged section 6 of typography.md around the new rule, the plugin manifest, the audit and design skill steps that read config.values, concerns.json, and scripts/check-upstream-drift.sh.

The change looks correct. I found no blocking problems.

  • New setting. typography.long_form_body_px is added consistently in four places:
    • defaults.yaml sets 18.
    • team.schema.json makes it an integer with minimum: 16 and additionalProperties: false.
    • The README gets one table row.
    • The --config test expectations include it in both values and provenance.
  • Arithmetic. The rem example is right: 18 ÷ 16 = 1.125rem.
  • Existing floor untouched. The new rule comes right after the 16px floor and its audit line in §6 "Floors", and neither of those changed. It avoids a duplicate finding with "Units for text" in typography/scale-and-rhythm.md, a heading I confirmed exists.
  • Concern wiring. concerns.json routes the typography concern to reference/types/web/typography.md. /user-interface:audit reads config.values and falls back to defaults.yaml, so the README's claim about which skills read the key holds.
  • Drift check unaffected. The new ## Post sources table links only to x.com and USWDS. check-upstream-drift.sh parses only links into the upstream repository and the ## Map section, so the drift check does not see this table.
  • Credit kept where the issue allows. Emil Kowalski is credited only in the upstream record and the changelog fragment, as the issue requires.
  • Changelog fragment. bump: minor fits a new configuration key.
  • Plugin manifest. No plugin.json or marketplace.json changed, so there are no manifest lines. The key needs no userConfig entry, the same as components_primitives_default and css_concentric_radius_max_gap_px, which the cascade already accepts.

Closing issue #14210 criteria

Criterion Status
AC21: defaults, schema minimum: 16, a value under 16 refused Met. Guarded by the new defaults.test.mjs test: values 15 and 18.5 are refused and fall back to 18.
AC21: one README line; rule beside the floor with a rem value; floor unchanged Met, but no test guards it (see the finding below).
AC24: the two test files exit 0 The author says this was not run. I have no interpreter here, so it is also not verified by me; CI will decide.
AC24: ## Post sources row naming the key and post; PR body says whether a measured fact or floor changed his value Met, but no test guards the row. The PR body answers the question.
AC7 Checks the issue body, not this change. Not judged.
Changelog fragment Present with bump: minor. Validation is author-claimed and unverified.

Findings

  1. Advisory: the documentation-only criteria have no test. Two acceptance criteria are met only by prose:

    No test in plugins/user-interface/tests/ or scripts/ reads either file, or counts the README row. A later edit that drops the rem wording, moves the rule away from the floor, or deletes the row would pass CI. Fix: add a small node:test that reads these files and asserts the issue's own checks (the key's line in typography.md has a rem value and sits in §6, the README has exactly one row, the upstream record has a row naming the key).

Other notes

  • Spend: none. Nothing here changes lane runs, models or billing.
  • Embedded text: none in the PR context.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for deef249

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-14322-deef249b0b4e81f16188e20825cb89de8b78eb58, 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
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 9, 2026
@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 1ca5558 Nov 9, 2026
64 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14210-42565250791-1 branch November 9, 2026 05:55
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 1ca5558e676ec876e3de9844a97c180ebca6408e; 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 configurable long-form reading size

0 participants