Skip to content

Broken link rules show a Performance badge: give reliability its own group or badge the category #842

Closed

Description

@nc9

Follow-up to #836. reliability rolls up into the performance group (packages/rules/src/categories.ts), so after #836 the HTML badge on "Broken Links" and "Broken External Links" reads "Performance", next to reliability/broken-resources and reliability/broken-forms. A dead link is not a performance problem.

Options: give reliability its own top-level group (new group score, badge, and a fifth entry in the group list), or keep the category under Performance and show the category name on the badge instead of the group name for rules whose category differs from their group.

This touches the RuleGroup union in packages/core-contracts and its mirrors in packages/report, the publish schema, group score history and the dashboard group views in the private repo, so it needs a decision before work starts.

Acceptance Criteria

  • The decision (new top-level group, or badge shows the category) is recorded on this issue
  • The Broken Links and Broken External Links badges no longer read "Performance" in html, markdown, text, llm, json, xml and console reports
  • Group scores are consistent between a local audit and the same audit published to the cloud, and the golden baseline is updated on purpose
  • Reports published before the change still render
  • Docs (docs/reports.mdx group table, rule category pages) match the new grouping
  • A private issue tracks the dashboard and API changes that follow from the decision

Activity

  1. added
    enhancement
    size: M
    rules
    on Oct 16, 2026
  2. nc9 commented on Oct 16, 2026

    @nc9
    ContributorAuthor

    Decision: the badge shows the category for Reliability rules. There is no new top-level group.

    • A new reliability group would put a fifth value on RuleGroup. The API's publish schema validates group with z.enum(["seo", "performance", "security", "ai"]) (apps/api/src/schemas/audit-report.ts), so every CLI with the new group would have its publishes rejected until the API shipped first. On top of that it would change group score history and the dashboard group views. That makes it a cross-repo, ordered change for a label problem.
    • Instead, a category can say its rules are badged by the category name (badgeByCategory in packages/report/src/categories.ts). Only reliability sets it. All Reliability rules then read Reliability, with the tooltip "Reliability, scored under Performance": the broken-link rules, broken-resources and broken-forms. Their score still counts toward Performance, so group scores and the publish payload do not change.
    • json, xml and llm reports carry category (now Reliability) and group (performance, the score it rolls into) as data, not as a badge. They stay truthful about scoring.
    • The private follow-up for the dashboard badge, catalog and group views is filed separately and linked from the PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrulessize: M

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions