Skip to content

Define contextual non-text contrast review - #7766

Open
rubyycheung wants to merge 8 commits into
mainfrom
ruby/non-text-contrast-applicability
Open

rubyycheung wants to merge 8 commits into
mainfrom
ruby/non-text-contrast-applicability

Conversation

@rubyycheung

@rubyycheung rubyycheung commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

When does a visual treatment, especially a border, carry information that must meet WCAG 2.2 non-text contrast?

Existing authority searched

spec:AST-020 already owns Astryx’s global accessibility spec-test rules and WCAG evidence boundaries. spec:AST-008/FR12 owns palette accessibility evidence. Neither current claim defined how reviewers distinguish necessary visual information from an optional treatment. architecture:knowledge-contracts INV2 assigns cross-theme human contrast methodology to a design record, so the rule lives in the design record design:non-text-contrast, and AST-020 and AST-008 FR12 link to it. Y2K PR #7675 keeps its concrete audit local.

Decision

design:non-text-contrast (new, current, approved by an engineering owner) is the canonical rule. architecture:knowledge-contracts INV2 assigns cross-theme human contrast methodology to a design record, so the rule lives in docs/design/, not in AST-020.

  • DR1: WCAG 2.2 1.4.11 applies to visual information required to identify a component or state, and to parts of graphics required to understand content.
  • DR2: suppression of the treatment under review decides whether it carries that information.
  • DR3: suppressing one treatment exempts it only when another independent cue carries the same necessary information and meets its own threshold: 3:1 for UI or graphic cues, or WCAG 1.4.3 for text.
  • DR4: at least one qualifying cue must meet its threshold, and sub-threshold cues cannot exempt one another.
  • DR5: evidence names the component, state, or graphic part; the adjacent colors; the treatment; the independent cue and its measured contrast; and the visual or manual layer. Where the treatment and its adjacent colors are theme tokens, the evidence includes a scripted test that computes their contrast in each mode and state it names; a visual or manual review covers only what such a test cannot compute. Inactive controls keep WCAG's exception.

Links into the rule:

  • spec:AST-020: the 1.4.11 row of the completeness review states the outcome and links to the design record.
  • spec:AST-008/FR12: palette evidence follows it.
  • The reusable accessibility checklist mirrors the same outcome.

Rejected alternatives

  • Requiring every border or edge to meet 3:1 regardless of whether it carries information.
  • Declaring a low-contrast treatment decorative without suppression evidence and an independent identifying cue.

Claim scope and non-goals

This PR defines applicability and evidence for WCAG 2.2 1.4.11. It does not change text-contrast thresholds, component visuals, theme mappings, automated axe coverage, or the inactive-component exception.

Evidence and implementation relationship

The checklist update keeps reusable review language aligned with the canonical record. Y2K PR #7675 contains the first theme-specific component/state matrix and contrast measurement that apply this rule.

Writing rubric results

  • R1 narration: none. The new design record states the rule in the present tense, and one AST-020 non-goal no longer names "this specification pull request".
  • R2 research in the record: none.
  • R3 evidence naming a change: none in the touched text.
  • R4 rejected alternatives over one line or outside a decision: none. The record has no decision log entries yet.
  • R5 pull request or issue references remaining: none in the touched records (the AST-020 current-state paragraph that cited an issue and a closed pull request now states the pattern-contract direction without them).
  • R6 ruled open questions still listing options: none.
  • R7 project status in a record: none. The new record's empty sections say None.

Scope

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: aligned at 86f6f64.
  • Prettier.
  • Earlier head: pnpm -F @astryxdesign/a11y-spec typecheck and pnpm vitest run internal/a11y-spec/src/*.test.ts (73 passed). This head changes only the checklist outcome string.

Rebased onto main and reshaped per the ownership review (rule moved to docs/design/); the original commit and authorship are kept.

Maintainer clarification (@cixzhang)

One sentence added to the "Adjacent colors" definition, at e3012ed, with @rubyycheung's commits kept: "A boundary is measured against the surface outside the component; its own fill counts as adjacent only when that fill is the interactive area or the cue that identifies the component, and an adornment's decorative fill does not." It settles where the 3:1 applies for a field adornment with a muted fill, the case #7662 (Neutral control boundaries) measures. The other table rows only re-align. check:knowledge passes.

Maintainer edits (lane 2, 70c838b)

  • DR5 now requires a scripted contrast test where the treatment and its adjacent colors are theme tokens; a visual or manual review covers only what a script cannot compute (the DR2 suppression judgment). Source: @cixzhang's comment on this pull request, 2026-10-21 06:13 UTC: "Where we understand contrast comparisons in our tokens we should strive to enforce it through testing rather than rely solely on agentic context checks that can be influenced through prompts."
  • spec:AST-008 FR12 links DR5 instead of restating its list.
  • The AST-020 current-state paragraph no longer cites an issue and a closed pull request.
  • The new record's empty sections say None. (rubric R7).
  • @rubyycheung's commits are kept.

Owner and land path

Owner: fix lane 2 (maintainer carry; @rubyycheung's change). Main merged into the branch as a maintainer edit (549985e, clean merge, no change to this pull request's files). Land path: Specs stamp, CodeBunny review, required checks, then the merge queue.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 20, 2026
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 21, 2026 3:28pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 7:49 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 20, 2026
@rubyycheung rubyycheung mentioned this pull request Oct 20, 2026
8 tasks done
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · e965ebc

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot 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.

Approval waits on an engineering owner: FR16 and the new spec:AST-008/FR12 sentence add normative WCAG 1.4.11 text to current records, so a maintainer needs to approve them as written in spec:AST-020 or move this cross-theme contrast methodology into a design record, which the knowledge-contracts architecture (INV2) names as its owner. Whichever home is chosen, a few spec-text fixes are needed:

  • Require the independent cue that exempts a border to meet 3:1 itself (or at least one identifying cue per component and state), so two faint cues cannot exempt each other.
  • Use WCAG's wording for graphics, "parts of graphics required to understand the content", instead of "required to identify ... a meaningful graphic".
  • Copy the AST-020 1.4.11 row verbatim into internal/a11y-spec/src/checklist.ts, as every other row there is.
  • Drop "in this specification pull request" from AST-020's non-goals.

[Automated review]

Comment thread docs/specs/AST-020/spec.md Resolved
Comment thread docs/specs/AST-020/spec.md Resolved
Comment thread internal/a11y-spec/src/checklist.ts Resolved
@cixzhang

Copy link
Copy Markdown
Contributor

Where we understand contrast comparisons in our tokens we should strive to enforce it through testing rather than rely solely on agentic context checks that can be influenced through prompts.

@astracat-bot astracat-bot 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.

Approval waits on an engineering owner: FR16, its source-map and verification rows, the new accessibility trigger and the spec:AST-008/FR12 sentence add new normative WCAG 1.4.11 text to current records, and the knowledge-contracts architecture (INV2) assigns human contrast methodology to a design record. A maintainer needs to either approve the rule in spec:AST-020 and amend INV2 in this pull request so the two records agree, or move the rule into a docs/design/ record. The earlier spec-text fixes are all in place at this revision, and no other change is required. While deciding, the owner may also want FR16 to name WCAG's other two 1.4.11 exceptions and to scope its evidence list to exempted treatments.

[Automated review]

Comment thread docs/specs/AST-020/spec.md Resolved
Comment thread docs/specs/AST-020/spec.md Resolved
rubyycheung and others added 2 commits November 5, 2026 09:42
Summary:
Define AST-020 FR16 so non-text contrast review distinguishes necessary visual information from decorative treatment using contextual suppression evidence. Link palette evidence to that authority and mirror the outcome in the reusable accessibility checklist.

Test Plan:
pnpm check:knowledge
pnpm -F @astryxdesign/a11y-spec typecheck
pnpm vitest run internal/a11y-spec/src/*.test.ts

@astracat-bot astracat-bot 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.

Approval waits on an engineering owner. design:non-text-contrast is a new draft record whose DR1-DR5 define when WCAG 2.2 1.4.11's 3:1 threshold applies, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. An engineering owner records the decision by commenting /approve-spec <full head SHA> (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft.

Two record fixes are also needed:

  • docs/specs/AST-020/spec.md lines 207-213 still link issue #4112 and pull request #4113 and narrate their history, while the description's writing rubric reports R1 and R5 as none for the touched records.
  • docs/specs/AST-008/spec.md lines 180-182 restate DR5's evidence list although the new record says AST-008 FR12 does not restate it; linking DR5 alone keeps one owner.

While deciding, the owner may want the record to say whether WCAG's user-agent-appearance and essential-presentation exceptions also apply, since only the inactive-component exception is named.

[Automated review]

Comment thread docs/specs/AST-008/spec.md Resolved

@astracat-bot astracat-bot 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.

Approval waits on an engineering owner: design:non-text-contrast is a new draft record whose DR1-DR5 define when WCAG 2.2 1.4.11's 3:1 threshold applies, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. Because these are accessibility requirements, an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft.

Two record fixes are also needed:

  • docs/specs/AST-020/spec.md lines 207-209 still link issue #4112 and pull request #4113 as standing content, while the description's writing rubric reports R5 as none for the touched records.
  • docs/specs/AST-008/spec.md lines 180-182 restate DR5's evidence list although the new record says AST-008 FR12 does not restate it; linking DR5 alone keeps one owner.

For the owner deciding:

  • Miss: DR5 names only a visual or manual evidence layer, so contrast for known token pairs, which script tests already check, would not count; allowing a unit check for the measured contrast fits the earlier request to enforce such pairs through tests.
  • Only WCAG's inactive-component exception is named; the record could say whether the user-agent-appearance and essential-presentation exceptions also apply.

[Automated review]

…component

Adds one sentence to the adjacent-colors definition: a component's own
fill counts as adjacent only when it is the interactive area or the cue
that identifies the component, and an adornment's decorative fill does
not.

Co-authored-by: ruby cheung <[email protected]>

@astracat-bot astracat-bot 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.

Approval waits on an engineering owner: design:non-text-contrast is a new draft record whose DR1–DR5 and tables, now including the Adjacent colors sentence, define when WCAG 2.2 1.4.11's 3:1 threshold applies, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. Because these are accessibility requirements, an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft.

Two record fixes are also needed:

  • docs/specs/AST-020/spec.md lines 207-209 still link issue #4112 and pull request #4113 as standing content, while the description's writing rubric reports R5 as none for the touched records.
  • docs/specs/AST-008/spec.md lines 180-182 restate DR5's evidence list although the new record says AST-008 FR12 does not restate it; linking DR5 alone keeps one owner.

Non-blocking, for the owner deciding:

  • The new Adjacent colors sentence counts a field's own fill as adjacent when it is the interactive area, but does not say whether the boundary must then reach 3:1 against both that fill and the outside surface, or either; it also says "adornment" where component:InputGroup calls that cell an addon.
  • Miss: DR5 names only a visual or manual evidence layer, so contrast for known token pairs, which script tests already check, would not count.
  • Only WCAG's inactive-component exception is named; the user-agent-appearance and essential-presentation exceptions are not.
  • One pr-interaction CI shard fails on a Popover per-frame paint test whose spec changed on main after this branch's base; this change touches no Popover code, and updating the branch should clear it.

[Automated review]

| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| Treatment | The boundary, fill, indicator, or graphic part reviewed | Meets 3:1 against adjacent colors, or DR3 names its independent cue |
| Independent cue | A different visible cue that carries the same meaning | Meets its own applicable threshold against its adjacent colors |
| Adjacent colors | The colors the treatment or cue touches. A boundary is measured against the surface outside the component; its own fill counts as adjacent only when that fill is the interactive area or the cue that identifies the component, and an adornment's decorative fill does not. | Named in the evidence, per mode and state |

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.

Optional, for the owner deciding: this counts the component's own fill as adjacent when it is the interactive area, but the Treatment row's "Meets 3:1 against adjacent colors" then reads as 3:1 against both the outside surface and that fill. WCAG's Understanding note for 1.4.11 measures an input's boundary against the colour outside the component only, so "both" is stricter than WCAG for a filled field on a different surface, and "either" would accept a border that contrasts only with the field's interior. Saying which one is meant settles it. Also, no current record says "adornment": component:InputGroup and component:InputGroupText call that muted cell the text addon, so "an addon's decorative fill" ties the rule to a part reviewers can find.

…t-applicability

Maintainer merge of main into @rubyycheung's branch; no change to the pull request's own files beyond the clean merge.

@astracat-bot astracat-bot 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.

Approval waits on an engineering owner: design:non-text-contrast is a new draft record whose DR1–DR5 and tables define when WCAG 2.2 1.4.11's 3:1 threshold applies, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. Because these are accessibility requirements, an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft.

Also needed:

  • docs/specs/AST-020/spec.md lines 209-215 still cite issue #4112 and pull request #4113 as standing content, while the writing rubric results report R1 and R5 as none for the touched records.
  • docs/specs/AST-008/spec.md lines 180-182 restate DR5's evidence list although the new record says AST-008 FR12 does not restate it, so the two lists can drift; linking DR5 alone keeps one owner.
  • Miss: the description's "Existing authority searched" paragraph still says an owner must choose between AST-020 and docs/design/, which contradicts its own Decision section and this head.

Non-blocking:

  • Newly live check: the new record's empty sections say what is "not included yet" or "in this draft" (lines 81-93), which the project-status rubric item R7 now keeps out of records; writing None. there and adding an R7 line to the rubric results fixes it.
Claims and files checked

Review mode: full; reason: author-not-engowner

  • Claim: the rule lives in a new draft design record because the architecture gives contrast methodology to design records: verified (docs/design/non-text-contrast.md, authority draft).
  • Claim: an owner must still choose whether the rule stays in AST-020 or moves to docs/design/: false (the Decision section and the head put it in docs/design/; AST-020 holds no rule).
  • Claim: DR1–DR5 cover scope, suppression, an independent cue at its own threshold, one qualifying cue, evidence, and the inactive exception: verified (record lines 31-71).
  • Claim: the completeness review's 1.4.11 row states the outcome and points to the record: verified (AST-020 line 158).
  • Claim: palette evidence follows the record: verified (AST-008 lines 180-182), but the sentence also copies DR5.
  • Claim: the reusable checklist mirrors the outcome: verified (checklist.ts line 105, the row's text without code formatting).
  • Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
  • Claim: the Y2K palette work holds the first theme matrix that applies the rule and keeps its audit local: verified (merged; the Y2K theme record keeps the matrix and leaves the shared owner open).
  • Claim: rubric R1 and R5 found nothing in the touched records: false (AST-020 lines 209-215); R2, R3, R4 and R6: verified; no R7 line is reported.
  • Claim: the knowledge check passes: verified at this head.
  • Claim: the a11y-spec typecheck and tests pass: verified at this head.
  • Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (record line 55).
  • Claim: the latest merge of main is clean and leaves this pull request's own changes alone: verified (its own diff is unchanged; main's own AST-020 edits arrive through the merge).
  • Claim: public text carries no internal context: verified.
  • File docs/design/non-text-contrast.md: waits on the owner decision; non-blocking project-status lines 81-93.
  • File docs/specs/AST-020/spec.md: waits on the owner decision for line 158; blocking: lines 209-215.
  • File docs/specs/AST-008/spec.md: waits on the owner decision; blocking: lines 180-182 copy DR5.
  • File internal/a11y-spec/src/checklist.ts: clear.
  • File docs/design/README.md: clear.

Automated review (maintainer link)

Comment thread docs/design/non-text-contrast.md Resolved
… tests

Maintainer edits on @rubyycheung's record. DR5 requires a scripted test
that computes contrast where the treatment and its adjacent colors are
theme tokens; a visual or manual review covers only what a script cannot
compute. AST-008 FR12 links DR5 instead of restating it. The AST-020
current-state paragraph states the pattern-contract direction without
citing an issue and a closed pull request. The new record's empty
sections say None.

@astracat-bot astracat-bot 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.

Approval waits on an engineering owner. design:non-text-contrast is a new draft record whose DR1–DR5 and tables define when WCAG 2.2 1.4.11's 3:1 threshold applies, now with a scripted contrast test for theme-token pairs, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. Because these are accessibility requirements, an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft. The earlier record and description fixes are all in, and nothing else blocks.

Non-blocking, for the owner deciding:

  • The Adjacent colors row (line 55) leaves open whether a counted fill is measured as well as or instead of the outside surface, and says "adornment" where the InputGroup records say "addon".
  • The state table (line 64) names only WCAG's inactive-component exception, not its user-agent-appearance or essential-presentation exceptions.
Claims and files checked

Review mode: full; reason: author-not-engowner

  • Claim: the rule lives in a new draft design record because the architecture gives contrast methodology to design records: verified (record authority is draft; it sits under docs/design/).
  • Claim: the accessibility and palette records did not say how to tell necessary visual information from an optional treatment: verified (the old 1.4.11 row and FR12 text).
  • Claim: DR1–DR4 cover scope, suppression, an independent cue at its own threshold, and one qualifying cue: verified (record lines 31-47).
  • Claim: DR5 names the evidence and requires a scripted test for theme-token pairs, with visual or manual review covering only what a script cannot compute: verified (lines 68-75); the inactive exception it lists sits in the state table (line 64).
  • Claim: the completeness review's 1.4.11 row states the outcome and points to the record: verified (AST-020 line 158).
  • Claim: palette evidence follows DR5 without restating it: verified (AST-008 line 180).
  • Claim: the reusable checklist mirrors the outcome: verified (checklist.ts line 105, the row's text without code formatting).
  • Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
  • Claim: the merged Y2K palette work holds the first theme matrix that applies the rule and keeps its audit local: verified (the Y2K theme record keeps the matrix and leaves the shared-owner question open).
  • Claim: the writing rubric finds nothing in the touched records: verified (no standing pull request or issue references, no status lines; empty sections read None.).
  • Claim: the knowledge check passes: verified at this head.
  • Claim: Prettier is clean: verified on all five files.
  • Claim: the a11y-spec typecheck and tests pass, and the only code change is the checklist string: verified at this head (the top-level test files run 75 tests; the reported 73 is for an earlier head).
  • Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (line 55).
  • Claim: DR5's scripted test follows a maintainer's comment asking for token contrast to be enforced by tests, quoted correctly: verified.
  • Claim: the latest merge of main is clean and leaves this pull request's own changes alone: verified (its own diff is unchanged; main's own AST-020 edits arrive through the merge).
  • Claim: the author's original commit is kept: verified.
  • Claim: the canonical owner, affected current claims and overlapping open work are named: verified (the Y2K palette work and the open neutral control-boundary pull request are named).
  • Claim: public text carries no internal context: verified.
  • File docs/design/non-text-contrast.md: waits on the owner decision; non-blocking readings at lines 55 and 64.
  • File docs/specs/AST-020/spec.md: waits on the owner decision for line 158; the non-goal and current-state rewrite are clear.
  • File docs/specs/AST-008/spec.md: waits on the owner decision for line 180.
  • File internal/a11y-spec/src/checklist.ts: clear.
  • File docs/design/README.md: clear.

Automated review (maintainer link)

| resting boundary | The control is findable from at least one cue at its threshold | A sub-threshold boundary when DR3 names the qualifying cue |
| selected or on | The state is identifiable from at least one cue at its threshold | A sub-threshold fill when an indicator or text carries state |
| graphic part | Each part needed to understand the graphic meets 3:1, or DR3 applies | Decorative parts have no threshold |
| inactive control | WCAG's inactive-component exception applies | Any contrast |

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.

Optional, for the owner deciding: WCAG 2.2 1.4.11 has three exceptions: inactive components, components whose appearance the user agent determines and the author does not modify, and graphics whose particular presentation is essential to the information conveyed. This row names only the first, so read literally the record is stricter than the criterion it cites. If that is not intended, naming all three (or "WCAG's 1.4.11 exceptions") keeps it aligned.

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 70c838b

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026
@cixzhang cixzhang added the lane:2 Astryx fix-loop lane 2 owns this label Nov 21, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 0aca570

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026

@astracat-bot astracat-bot 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.

Changes requested: one front-matter fix. An engineering owner has approved the spec content at this head, so the rule itself is settled; what remains is that the new record still declares itself a draft.

  • docs/design/non-text-contrast.md keeps authority: draft and approved_by: null (lines 6–10) while the current spec:AST-020 1.4.11 row and spec:AST-008 FR12 now defer to it, so once merged the applicability rule they point to would guide no review: set authority: current, approved_by: cixzhang and the approval date (these three keys sit outside the approved content, so the approval stands), or, if the record should stay a draft, keep the two current records from deferring to it.

The two earlier optional readings (the Adjacent colors row at line 55 and the single WCAG exception at line 64) are settled by that approval and need no change.

Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • Claim: the accessibility and palette records did not say how to tell necessary visual information from an optional treatment: verified (the earlier 1.4.11 row and FR12 text).
  • Claim: the architecture gives cross-theme contrast methodology to a design record, so the rule lives under docs/design/ and the two records link to it: verified (AST-020 line 158, AST-008 line 194); the architecture asks for a current design record, which is the finding above.
  • Claim: the Y2K theme work keeps its concrete audit local: verified (the theme record keeps its matrix and its shared-owner question open).
  • Claim: the new record is a draft and the canonical rule: verified as stated (line 6); the draft state is the finding above.
  • Claim: DR1–DR4 cover scope, suppression, an independent cue at its own threshold, and one qualifying cue that sub-threshold cues cannot replace: verified (lines 31-47).
  • Claim: DR5 names the evidence and requires a scripted test for theme-token pairs, and inactive controls keep WCAG's exception: verified (lines 68-75; the exception sits in the state table, line 64).
  • Claim: the completeness review's 1.4.11 row states the outcome and links the record: verified (AST-020 line 158).
  • Claim: palette evidence follows DR5: verified (AST-008 line 194).
  • Claim: the reusable checklist mirrors the outcome: verified (checklist.ts line 105, the row's text without code formatting).
  • Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
  • Claim: the writing rubric finds nothing in the touched records: verified (the non-goal at AST-020 line 48 no longer names a pull request; no standing pull request or issue references; empty sections read None.).
  • Claim: the pull request is not records-only and its public text carries no internal context: verified.
  • Claim: the knowledge check is aligned: verified at this head (the description names an earlier commit).
  • Claim: Prettier is clean: verified on all five files.
  • Claim: the a11y-spec typecheck and tests passed at an earlier head with 73 tests: at this head the typecheck passes and the top-level test files run 75 tests.
  • Claim: the change was reshaped with the author's original commit and authorship kept: verified.
  • Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (line 55).
  • Claim: DR5's scripted test follows a maintainer's comment asking for token contrast to be enforced by tests, quoted correctly with its time: verified.
  • Claim: AST-008 FR12 links DR5 instead of restating it, and the AST-020 current-state text no longer cites an issue or a pull request: verified (AST-008 line 194; AST-020 lines 209-227).
  • Claim: the earlier merge of main left this pull request's own changes alone: verified; the latest merge, which the description does not mention, brings main's palette-input text into AST-008 and also leaves the pull request's own patch unchanged.
  • File docs/design/non-text-contrast.md: blocking finding at lines 6-10.
  • File docs/specs/AST-020/spec.md: clear once the record is current (line 158 defers to it); the non-goal and current-state rewrite are clear.
  • File docs/specs/AST-008/spec.md: clear once the record is current (line 194 defers to it).
  • File internal/a11y-spec/src/checklist.ts: clear.
  • File docs/design/README.md: clear.

Automated review (maintainer link)

Comment thread docs/design/non-text-contrast.md Resolved
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec e965ebc

@astracat-bot astracat-bot 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.

Changes requested: one description edit. An engineering owner has approved the spec content at this head, and the latest commit records that approval, so the record now lands as current and the rule itself is settled.

  • The description's Decision section still says design:non-text-contrast is "(new, draft)", while docs/design/non-text-contrast.md lines 6–10 now read authority: current with the approver and date recorded, so please update that line (for example to "(new, current, approved by an engineering owner)"); no new commit is needed.

The earlier front-matter request is resolved by the latest commit.

Claims and files checked

Review mode: full; reason: author-not-engowner

  • Claim: the accessibility record owns global spec-test rules and the palette record owns palette accessibility evidence: verified (the AST-020 global scope and FR6; AST-008 FR12).
  • Claim: neither record said how to tell necessary visual information from an optional treatment: verified (the earlier 1.4.11 row and FR12 text).
  • Claim: the architecture gives cross-theme contrast methodology to a design record, so the rule lives under docs/design/ and the two records point to it: verified (AST-020 line 158, AST-008 line 194, which name the record).
  • Claim: the Y2K theme work keeps its concrete audit local and holds the first component and state matrix: verified (#7675 merged; the theme record keeps its matrix and its open question).
  • Claim: the new record is new and a draft: false; the record is current and approved at this head (lines 6-10), the finding above.
  • Claim: DR1–DR4 cover scope, suppression, an independent cue at its own threshold, and one qualifying cue that faint cues cannot replace: verified (lines 31-47).
  • Claim: DR5 names the evidence and requires a scripted test for theme-token pairs, and inactive controls keep WCAG's exception: verified (lines 68-75; the exception is in the state table, line 64).
  • Claim: the completeness review's 1.4.11 row states the outcome and names the record, palette evidence follows DR5, and the reusable checklist mirrors the row: verified (AST-020 line 158, AST-008 line 194, checklist.ts line 105).
  • Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
  • Claim: the writing rubric finds nothing in the touched records: verified (no pull request or issue references remain; empty sections read None.).
  • Claim: the pull request is not records-only and its public text carries no internal context: verified.
  • Claim: the knowledge check is aligned and Prettier is clean: verified at this head.
  • Claim: the a11y-spec typecheck and tests passed at an earlier head: at this head the typecheck passes and the four top-level test files pass 75 tests; the only code change is the checklist string.
  • Claim: the change was reshaped with the author's original commit and authorship kept: verified.
  • Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (line 55).
  • Claim: DR5's scripted test follows a maintainer's comment, quoted correctly with its time; AST-008 FR12 points to DR5 instead of restating it; the AST-020 current-state text no longer cites an issue or a pull request: verified.
  • Claim: a merge of main was clean and left the pull request's own changes alone: verified; a later clean merge of main is not mentioned and also leaves them alone.
  • File docs/design/non-text-contrast.md: clear; the front matter now records the approval.
  • File docs/specs/AST-020/spec.md: clear.
  • File docs/specs/AST-008/spec.md: clear.
  • File internal/a11y-spec/src/checklist.ts: clear.
  • File docs/design/README.md: clear.

Automated review (maintainer link)

@astracat-bot astracat-bot 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.

Approved. CI passed on this head, an engineering owner approved the spec content at this exact head, the new design record lands as current, and every description claim and changed file checks out, so nothing needs to change.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: the accessibility spec-test record owns global WCAG evidence rules and the palette record owns palette accessibility evidence: verified (AST-020 global scope; AST-008 FR12).
  • Claim: neither said how to tell necessary visual information from an optional treatment: verified (the earlier 1.4.11 row and FR12 text).
  • Claim: the architecture gives cross-theme contrast methodology to a design record, so the rule lives under docs/design/ and the two records point to it: verified (AST-020 line 158, AST-008 line 194).
  • Claim: the Y2K theme work keeps its concrete audit local and holds the first component and state matrix: verified (the Y2K record keeps its suppression audit and open question).
  • Claim: the new record is current and approved by an engineering owner: verified (front matter lines 6-10 and the owner's approval of this head).
  • Claim: DR1–DR4 cover scope, suppression, an independent cue at its own threshold, and one qualifying cue that faint cues cannot replace: verified (lines 31-47).
  • Claim: DR5 names the evidence and requires a scripted test for theme-token pairs, and inactive controls keep WCAG's exception: verified (lines 68-75; the exception is in the state table, line 64).
  • Claim: the completeness review's 1.4.11 row names the record, palette evidence follows DR5, and the reusable checklist mirrors the row: verified (AST-020 line 158, AST-008 line 194, checklist.ts line 105).
  • Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
  • Claim: the writing rubric finds nothing in the touched records: verified (no pull request or issue references; empty sections read None.).
  • Claim: the pull request is not records-only and its public text carries no internal context: verified.
  • Claim: the knowledge check is aligned and formatting is clean: verified by CI at this head.
  • Claim: the a11y-spec typecheck and tests passed at an earlier head, and the only code change is the checklist string: verified; CI's typecheck passes at this head.
  • Claim: the change was reshaped with the author's original commit and authorship kept: verified.
  • Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (line 55).
  • Claim: DR5's scripted test follows a maintainer's comment, quoted correctly with its time; AST-008 FR12 points to DR5 instead of restating it; the AST-020 current-state text no longer cites an issue or a pull request: verified.
  • Claim: a merge of main was clean and left the pull request's own changes alone: verified; a later clean merge of main also leaves them alone.
  • File docs/design/non-text-contrast.md: clear.
  • File docs/specs/AST-020/spec.md: clear.
  • File docs/specs/AST-008/spec.md: clear.
  • File internal/a11y-spec/src/checklist.ts: clear.
  • File docs/design/README.md: clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 21, 2026 19:21

This branch was successfully deployed

1 active deployment
Preview — e965ebc9 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. lane:2 Astryx fix-loop lane 2 owns this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants