Skip to content

Region-scoped findings may count pages carried from an earlier audit #860

Closed

Description

@nc9

Problem

Region-scoped findings (#846) read "In the site footer, on 49 of 53 pages". When an audit carries findings forward for pages it did not fetch again (an earlier audit's results kept for unchanged or skipped pages), the page counts behind that line can mix pages from this audit with pages carried from an earlier one. The page-type version of the same line (#857) already refuses to scope a carried finding, because a claim like "on all 9 pages" would then describe pages this audit never looked at. The region version does not have the same guard.

Found while reviewing #857. Not yet reproduced against a real carried audit: the first step is to confirm it.

Expected

A region-scoped line only counts pages this audit actually evaluated. A finding that includes carried pages keeps its page rows (or says how many are carried) instead of claiming a share of a region.

Acceptance Criteria

  • A reproduction exists: an audit with carried findings where the region line today counts carried pages, written as a test
  • A finding carried from an earlier audit is never presented as "on N of M pages" of the current audit's region
  • A finding on fresh pages only still reads as today ("In the site footer, on 49 of 53 pages")
  • The behaviour is the same in markdown, text, llm, console, html, json and xml
  • Golden baseline numbers do not move

Activity

  1. added
    enhancement
    size: S
    rules
    on Oct 16, 2026
  2. added theissue type on Oct 28, 2026
  3. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.144 (commits 89c377c, 976f6f2). Checked every acceptance criterion against current main: a finding with carried pages is never scoped to a page region, with tests.

    nik

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions