Skip to content

v1 and streaming engines count a 4xx error page differently in per-page-rule messages (31 vs 30 pages) #1359

Closed

Description

@nc9

Found while pinning finding messages (#229). On a crawl with an injected 404 page that has no body (an EMPTY_PARSED_PAGE append in v1), the resident engine counts it as a page and the streaming engine does not. The finding status is identical, the message and value differ:

  • url/slug-convention: v1 "All 31 page(s) follow ...", value 31; streaming "All 30 page(s) ...", value 30
  • perf/total-byte-weight: v1 "across 31 pages ... average page 52KB"; streaming "across 30 pages ... average page 54KB"

Repro: packages/audit-engine/tests/streaming-rules-golden.test.ts, test "edge crawl: injected 4xx", compare the message/value/expected fields of the finding tuples.

Acceptance Criteria

  • The v1 and streaming engines report the same page count in url/slug-convention and perf/total-byte-weight for a crawl containing a bodyless 4xx page
  • The edge-crawl golden test compares message, value and expected for every rule with no exclusions
  • Which count is right (error pages in or out of per-page denominators) is decided and noted in the rule docs

nik

Activity

  1. added
    bug
    on Oct 30, 2026
  2. added theissue type on Oct 30, 2026
  3. added
    rules
    size: S
    on Oct 30, 2026
  4. nc9 commented on Nov 1, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.154, checked against main: all three acceptance criteria are met (the docs validate step ran in the release). Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.154

    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

    bugrulessize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions