You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Renderer checks: touching and repeated-headers, and craft notes that advise rather than fail - #281
↑ Calibrated on all 89 built-in scenarios, and recalibrated after each probe fix: touching and repeated-headers find nothing, and only agentic-workflows' pill cards get craft notes (chip-density), as intended. ↑ Copilot's later points are fixed, each with a fixture in the harness spec that the old probe got wrong: text nested in sr-only, empty and short-heading cells in the denominator, text split by inline markup, and changed chips (unpainted or filled). ↑ Testing unit tests and the CLI checks_step test pass; rebased onto main, which carries #285's fix for the graph/mcp-tools harness timeout seen on earlier runs. ↓ Heuristic checks; false positives in custom renderers are possible, which is why two of them only advise.
Step 5 of the kit typography rollout. Adds automated craft checks beside the existing styling checks, and a way for heuristic checks to advise without failing a renderer.
advice status. A CheckResult can now have status advice. adviceChecks lists the checks that use it. projections check turns craft notes into a warn step with each note in its details, not a failure. The workbench shows them with their own icon and label.
touching (fails). No two boxed values in a unit (chips, pills, tags: a box about a line tall around text, edged on all four sides or a rounded fill) sit less than 1.5 px apart or overlap. A value change's two pills and word highlights in a change hue may touch.
repeated-headers (fails). More than half of a table's cells repeat both their row and column heading in their visible text (sr-only text doesn't count, so a cell drawn as a mark with its name for screen readers passes).
chip-density (advice). A unit with more than six boxed values that aren't change marks, or at least four and one per 15 characters of text; a selectable chip counts half.
mixed-treatments (advice). A line that adds a decorative color (a hue that isn't a change's or a category's) to code or bold, or uses all three. Muted text counts as plain.
Calibration
Every built-in scenario, diff mode (or progress 1), at full width (and phone width for touching):
Check
Scenarios flagged
What it flagged
touching
0 of 89
repeated-headers
0
(fails: promoted from advice after calibration)
chip-density
4
agentic-workflows: 9 to 18 pills per card, 57 in one group. Intended: the migration PR in this series moves them to text
mixed-treatments
0
False positives found while calibrating and fixed before this PR: a box inside a changed card counted as a change mark (all of a modified card's pills were skipped); muted text counted as an emphasis (every "value · muted note" line was flagged); text-diff's word highlights counted as chips; and github-actions' matrix cells counted as repeating their headings, though they show only a dot and carry the run's name for screen readers.
Mono share, distinct type styles and sizes per card don't separate renderers that read well from ones that don't (database is 96% monospace; runtime-policy has 16 styles in a card), so there are no checks on them.
Calibrated and left out
Two more checks from the proposal were built and calibrated on every built-in scenario, then dropped because they mostly flagged intended design:
Check
Scenarios flagged
What it flagged
prose-in-mono (monospace text that reads as words)
15
Code that reads like words: signatures (export class Client implements AsyncDisposable, impl Send for Limiter), SQL types (timestamp with time zone), commands (make examples, parcel help report), text-diff output. Nothing a person would set in sans.
The authoring guide's checklist covers both by eye. With roles in the kit (#282), a narrower version (bold text whose computed style matches no type role) could be tried later.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Chips inside native table cells are excluded from measurement, leaving touching, overlaps, and chip density unchecked. Separately, abutting old/new pills in the same ValueChange incorrectly fail touching checks, and distinct blocks with identical descriptions on the same baseline can trigger mixed-treatment advice even when neither line mixes treatments.
agorischek
changed the title
Renderer checks: touching, and three craft notes that advise rather than fail
Renderer checks: touching and repeated-headers, and craft notes that advise rather than fail
Dec 2, 2026
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The repeated-headers check excludes empty visible cells from its denominator, so two repeated headings among ten visible data cells incorrectly trigger a majority failure. Separately, shown() ignores visually hidden ancestors, allowing nested screen-reader-only text to cause false repeated-headers failures and affect other craft measurements.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Changed chips rendered with paint={false} can spuriously trigger chip-density advice because their data-chip-change marker is not recognized. Separately, inserting spaces between inline text nodes can hide repeated headers, and excluding cells with short headings from the table denominator can falsely report a repetition majority.
Chip retains data-chip-change when paint={false} but omits data-change (kit/src/react/chip.tsx:102–105). Such changed chips therefore count as ordinary boxes here, so seven signed added/removed chips produce chip-density advice despite the change-mark exclusion. Recognize the chip's own change attribute as well, without excluding unchanged chips inside a changed card.
Adding a space before every text node changes the painted text when inline markup splits a word. For example, a heading TransparentCompiler and a cell windows · Transparent<strong>Compiler</strong> become TransparentCompiler and windows · Transparent Compiler, so repeated-headers misses the repetition. Preserve adjacency across inline text nodes while retaining actual whitespace and block boundaries.
Count all visible data cells in repetition denominator
The heading-length filter still removes visible data cells from the majority denominator. For example, a row with columns Compiler, Mode, #, and %, where only the first two cells repeat their headings, is reported as 2 of 2 and fails even though only half of its four cells repeat. Count every shown data cell first, and apply the heading-length guards only to repetition matching; the early return for short row headings has the same denominator problem.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The touching check excludes rounded, borderless chips marked data-chip-change="added", so an added chip can touch an unrelated chip without failing the check.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The checks may miss small overlaps, heading repetition in tables with empty corner cells, or mixed styling in same-baseline text of different sizes, warranting human review.
…han fail
touching fails when two boxed values in a unit sit less than 1.5px apart or
overlap. repeated-headers, chip-density and mixed-treatments report with a new
advice status: projections check warns on them and the workbench shows them
apart from failures. Calibrated on every built-in scenario.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… its headings
Calibrated two more craft notes, prose-in-mono and small-emphasis, and left
them out: on the built-ins they flagged code that reads like words and bold
key markers and section labels drawn that way on purpose.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
3cb76c52dababf0548721a6322448e796dcd5da6touchingandrepeated-headersfind nothing, and onlyagentic-workflows' pill cards get craft notes (chip-density), as intended.↑ Copilot's later points are fixed, each with a fixture in the harness spec that the old probe got wrong: text nested in
sr-only, empty and short-heading cells in the denominator, text split by inline markup, and changed chips (unpainted or filled).↑ Testing unit tests and the CLI
checks_steptest pass; rebased onto main, which carries #285's fix for thegraph/mcp-toolsharness timeout seen on earlier runs.↓ Heuristic checks; false positives in custom renderers are possible, which is why two of them only advise.
Step 5 of the kit typography rollout. Adds automated craft checks beside the existing styling checks, and a way for heuristic checks to advise without failing a renderer.
advicestatus. ACheckResultcan now have statusadvice.adviceCheckslists the checks that use it.projections checkturns craft notes into awarnstep with each note in its details, not a failure. The workbench shows them with their own icon and label.touching(fails). No two boxed values in a unit (chips, pills, tags: a box about a line tall around text, edged on all four sides or a rounded fill) sit less than 1.5 px apart or overlap. A value change's two pills and word highlights in a change hue may touch.repeated-headers(fails). More than half of a table's cells repeat both their row and column heading in their visible text (sr-onlytext doesn't count, so a cell drawn as a mark with its name for screen readers passes).chip-density(advice). A unit with more than six boxed values that aren't change marks, or at least four and one per 15 characters of text; a selectable chip counts half.mixed-treatments(advice). A line that adds a decorative color (a hue that isn't a change's or a category's) to code or bold, or uses all three. Muted text counts as plain.Calibration
Every built-in scenario, diff mode (or progress 1), at full width (and phone width for
touching):touchingrepeated-headerschip-densityagentic-workflows: 9 to 18 pills per card, 57 in one group. Intended: the migration PR in this series moves them to textmixed-treatmentsFalse positives found while calibrating and fixed before this PR: a box inside a changed card counted as a change mark (all of a modified card's pills were skipped); muted text counted as an emphasis (every "value · muted note" line was flagged); text-diff's word highlights counted as chips; and
github-actions' matrix cells counted as repeating their headings, though they show only a dot and carry the run's name for screen readers.Mono share, distinct type styles and sizes per card don't separate renderers that read well from ones that don't (database is 96% monospace; runtime-policy has 16 styles in a card), so there are no checks on them.
Calibrated and left out
Two more checks from the proposal were built and calibrated on every built-in scenario, then dropped because they mostly flagged intended design:
prose-in-mono(monospace text that reads as words)export class Client implements AsyncDisposable,impl Send for Limiter), SQL types (timestamp with time zone), commands (make examples,parcel help report), text-diff output. Nothing a person would set in sans.small-emphasis(bold at the smallest size)PK/IX/UKkey markers, runtime-policy's column labels, agentic-workflows' section titles, compatibility labels, diff signs.The authoring guide's checklist covers both by eye. With roles in the kit (#282), a narrower version (bold text whose computed style matches no type role) could be tried later.