Skip to content

docs: configuration/rules.mdx is stale (category count, per-category counts, missing integrity, legacy ai/* ids) #172

Closed

Description

@nc9

Found during the #171 rule-count pass. docs/configuration/rules.mdx has drifted far enough that it needs a content rewrite, not a numeric touch-up:

  • Says "All 18 audit rule categories"; there are 21 live categories.
  • Fourteen stale **Rules:** N values, some badly off (accessibility says 12, live is 61; performance says 9, live is 29; ax says 2, live is 17).
  • Omits the Site Integrity category entirely.
  • Documents the legacy ai/* rule id alias instead of the canonical ax/*.

It was deliberately left out of #171 (numeric fixes only) and out of the count guard, because guarding a page this stale would just fail CI until rewritten.

Related one-line fix to include: the comment at packages/utils/src/constants.ts:448 says the live rule total is "currently 264"; it is 278.

Acceptance Criteria

  • docs/configuration/rules.mdx states the live category count and lists every live category, including Site Integrity
  • every **Rules:** N value on the page matches the live per-category counts from loadAllRules(), or the counts are removed in favour of a link to the rules reference
  • the agent experience (ax/*) section describes how those rules run today: no claim that the category is off by default or needs OPENROUTER_API_KEY (from docs: rules configuration page has stale per-category rule counts and AI section #512)
  • rule ids on the page use the canonical ax/* form (the legacy ai/* alias may be mentioned as an alias, not as the primary form)
  • the stale "currently 264" comment at packages/utils/src/constants.ts:448 reflects the live total or stops naming an exact number
  • make validate passes in docs/

Part of #638.

Activity

  1. added
    bug
    P3
    size: S
    on Sep 1, 2026
  2. added
    documentation
    and removed
    bug
    on Oct 10, 2026
  3. nc9 commented on Oct 10, 2026

    @nc9
    ContributorAuthor

    Merged #512 into this issue, since both cover docs/configuration/rules.mdx. From #512: the option to replace the per-category counts with a link to the rules reference, and a criterion for the ax/* section, which still says the category is off by default and needs OPENROUTER_API_KEY. Still stale on main: "All 18 audit rule categories" and the old **Rules:** N values.

  4. nc9 commented on Oct 11, 2026

    @nc9
    ContributorAuthor

    Checked against current main (ad95fb2): STILL TRUE apart from criterion 5.

    • docs/configuration/rules.mdx:87 still says "All 18 audit rule categories". PUBLIC_CATEGORY_COUNT is 21, and docs/rules/index.mdx has 21 category cards. Site Integrity is still not on the page.
    • The **Rules:** N values are unchanged (Core SEO 11, the ai/* section 2, several left blank).
    • The agent experience section (from line 490) is still headed ai/* and still says "DISABLED BY DEFAULT - Requires OpenRouter API key" and "Requires OPENROUTER_API_KEY".
    • Criterion 5 is done: docs(rules): one rule count everywhere #652 rewrote the packages/utils/src/constants.ts comment, which now says "currently 301 enabled rules" (line 461). That matches the 21 category counts on docs/rules/index.mdx, which add up to 301.
  5. nc9 commented on Oct 16, 2026

    @nc9
    ContributorAuthor

    Fixed in #868 (51af089). docs/configuration/rules.mdx now has a table of the 22 live categories, Site Integrity included, each with its pattern and its rules page, and no per-category counts (the rules reference has those). ax/* is the primary form, with ai/* and adblock/* described as aliases. The agent experience text names the five cloud-backed rules and makes no off-by-default or OPENROUTER_API_KEY claim. The constants comment already said 308. packages/rules/tests/docs-category-table.test.ts keeps the table, its count and its links in step with loadAllRules().

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

    P3documentationsize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions