Skip to content

Auditing a deep URL silently audits the site root; the page you named may not be audited #1369

Closed

Description

@nc9

What happens

squirrel audit https://example.com/blog/some-launch-post audits https://example.com. The CLI sets the report's baseUrl to the origin, seeds from the sitemap and crawls the site. The path you named may not be among the audited pages at all. Nothing in the output tells you this happened.

Seen at scale in a batch of ~38k audits (v0.0.141): 6,657 targets were deep URLs (product pages on company blogs, app-store listings, landing pages). Three audits of three different posts on one company blog had the same baseUrl and the same 41 pages, so they were three copies of one audit. Running per URL wasted about 5% of the batch, and anyone reading one of those reports assumes it covers the page they asked for.

Expected

  • If the start URL has a path, the CLI says up front that it will audit the whole site from the origin, and the report records the URL the user asked for (for example meta.requestedUrl) as well as baseUrl.
  • The requested page is always among the audited pages, even when -m is small.
  • Optional: a way to keep the crawl to the path prefix (for example --scope path) for people auditing one section of a large site.

Acceptance Criteria

  • squirrel audit <origin>/<path> prints a notice before crawling that names both the URL as given and the origin it will audit.
  • The JSON report holds the URL as given, alongside baseUrl.
  • With -m 5, the requested path is one of the audited pages (it is seeded first, before sitemap URLs).
  • A start URL with no path (https://example.com or https://example.com/) prints no notice and gives the same report as now.
  • The docs page for squirrel audit explains how a deep start URL is handled.

Activity

  1. added
    size: S
    on Oct 30, 2026
  2. added theissue type on Oct 30, 2026
  3. WilliamK112 commented on Oct 30, 2026

    @WilliamK112
    Contributor

    I can take this. I’ll keep the requested deep URL distinct from the origin in CLI/report output, put the requested page ahead of sitemap entries in the crawl frontier, and add focused tests plus the audit docs/changelog update.

  4. nc9 commented on Oct 31, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.147 (47271665 b941d7fb af46427f d94c6fc2), verified against main: every acceptance criterion is met. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.147

    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

    clisize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions