Skip to content

[scorecard] Build the scorecard from the criterion status lines and generate all summary tables #49263

Closed

Description

@linear-code

Problem

Some tables are generated: the reports index, the conformance page summary, and the rollup. Other tables are still written by hand:

  • The count table at the top of each <Component>/accessibility.md. A person counts the criterion ratings and types the totals.
  • The "Known gaps" table on the conformance page.

pnpm a11y:scorecard parses the hand-written count table to build scorecard.json. The data flows the wrong way. A wrong count goes into the JSON without an error.

Proposal

Make the status line under each criterion (`✅ Supports` · `○ Author`) the only source.

  1. pnpm a11y:scorecard parses the status line under each criterion heading into scorecard.json. Include the rating, the responsibility, the flag, the tier, and the level.
  2. It generates the count table in each report between <!-- scorecard-counts:start/end --> markers.
  3. It generates the "Known gaps" table on the conformance page from the ⚠️ and ❌ criteria.
  4. pnpm a11y:scorecard:check fails when a generated table is stale.

Done when

  • No summary or count table in the reports or on the conformance page is written by hand.
  • scorecard.json does not depend on any hand-written count.
  • CI fails when a rating changes and the tables are not regenerated.

Search keywords:

Activity

  1. added
    scope: docs-infra
    on Sep 30, 2026
  2. deleted a comment from github-actions on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

accessibilityscope: docs-infra

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions