Skip to content

rules: hidden-text and dev-leakage report pass after a scan cut short by a work cap #501

Closed

Description

@nc9

Found while fixing #474. content/hidden-text stops its element walk at 20,000 elements and its stylesheet index at 400,000 characters / 4,000 rules, and content/dev-leakage has similar work caps. Since #474, a fail/warn check from either rule records details.scanTruncated when a cap cut the scan short. But when the truncated scan found nothing, both rules still emit pass ("No hidden text or links detected", "No development, private or preview hosts referenced").

A pass is evaluation evidence. buildResolutionSignal (packages/rules/src/resolution.ts) counts it, so the page drops out of the check's failing set, and the publish merge resolves the page's prior findings. That holds even when the hidden block or dev URL sits past the cap and is still there. The local merge resolves on a pass too.

The case is rare: it needs a page of more than 20,000 elements or more than 4,000 stylesheet rules, with the finding past the cap.

Acceptance Criteria

  • A content/hidden-text or content/dev-leakage scan cut short by a work cap with no findings does not report pass. It reports a status the resolution signal treats as not evaluated (for example skipped with a distinct skipReason), or a pass the signal does not count
  • A prior finding on such a page is carried by the publish merge rather than resolved (a runCloudSmartAudits test)
  • The rule docs pages describe the new outcome

Activity

  1. added
    bug
    P3
    size: S
    rules
    on Oct 6, 2026
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

    P3bugrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions