Skip to content

smart audits: give page-inapplicable rule skips a not-applicable skipReason so they stop carrying priors #1011

Closed

Description

@nc9

Some rules skip a page because the check does not apply to it, with a free-text skipReason such as no Link header (core/canonical-header), below minimum size (ax/token-weight) or Empty response / Parse error (core/doctype, core/charset). Smart audits cannot tell those from a check that failed to run, so a prior finding on such a page now carries (#508) instead of resolving, on local audits as it already did in the cloud. When the check no longer applies, the finding should resolve.

Give these rules a proper not-applicable skipReason (like the existing noindex verdict) that the merge and the resolution signal read as clean, so they stop carrying.

Acceptance Criteria

  • Each rule that skips because the check does not apply to the page uses a shared not-applicable skip reason, not free text.
  • A prior finding on a page that skips this way resolves in the local merge and the cloud publish merge, with a test for each.
  • A page that skips because the check did not run (a work cap, no timing data) still carries its prior; existing tests pass.
  • The skip reason does not change any rule's score or report output.

Refs #508

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: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions