Skip to content

Crawler/engine: resolve redirected seeds, report re-verified and left-carried pages, report orphans #1759

Description

@nc9

Follow-up to private squirrelscan/repo#4002 (pages with open findings that the crawl no longer reaches). The private half (seed more pages, record seeds and outcomes on the run) is squirrelscan/repo#4014. What is left needs the public crawler and audit engine.

Problem

A page that is unlinked, moved or deleted keeps its open findings carried from audit to audit. Seeding re-fetches such pages inside the page budget, but the engine and report cannot yet say what happened to them:

  • A seeded page that now redirects off its old URL: the report names the destination, not the source, so its findings are neither resolved nor marked redirected.
  • The report carries no "re-verified N, left carried M" counts.
  • A live page nothing links to any more is not reported as an orphan.
  • "Skipped by the page budget" and "no longer linked" look the same (both are carried).

Acceptance Criteria

  • A carried page that redirects off its old URL has its page-level findings resolved in that audit, with the redirect recorded (source, destination, status).
  • A 404 or 410 re-fetch resolves findings with evidence naming the status (already true for the merge; the report evidence names it).
  • The report states how many known pages with open findings were re-verified this run and how many were left carried, split into "skipped by the page budget" and "no longer linked".
  • A carried page that still answers 200 but is reached by no link is reported by the orphan-page rule, with its findings fresh.
  • The resolution signal names the source URL of a followed redirect, so a consumer can tell a redirected seed from a skipped one.
  • Sampled and capped audits keep today's carried behaviour for pages they chose not to visit.
  • A test on the nut shop shape: a page unlinked after a fault is switched off yields resolved (gone or redirected) or fresh (still live, orphan), never carried.

Activity

  1. added
    enhancement
    size: L
    on Nov 11, 2026
  2. added theissue type on Nov 11, 2026
  3. nc9 commented on Nov 11, 2026

    @nc9
    ContributorAuthor

    Compared with the bundles v0.0.179 to v0183 (local, unreleased ones included). Short version: one criterion is met, two are partly covered, four remain, and together they are larger than one PR.

    Met

    • AC6 (sampled and capped audits keep today's carried behaviour): nothing in the stack changes it.

    Partly covered

    • AC1 (redirected seed): since A URL that redirects is audited as its own page, with the destination's content reported against it #1762 (v0180) a URL that redirects is stored as a redirect row (source, hops, destination) and is no longer a page; it is listed under redirects with --include-pages (JSON schema 1.15). What is not there: the merge treats that row like any crawled page, so I expect its findings to resolve, but no test pins it and the resolution does not carry the redirect (source, destination, status).
    • AC2 (404 or 410): the merge already resolves and stales these. The report evidence naming the status is not there.

    Remaining

    • AC3: coverage has auditedPages, knownPages and carriedFindings (and scanScope.unfetched and per-type counts since v0.0.179), but no "re-verified N, left carried M" and no split into "skipped by the page budget" and "no longer linked".
    • AC4: links/orphan-pages already reports a live page nothing links to when the crawl reaches it. Whether a carried page gets reached depends on seeding; the crawler takes carriedSeedUrls (fix(cli): a role refusal on run register and publish says forbidden_role and why #1146) but the seeding itself is private #4014, and there is no test of the unlinked-after-a-fault shape.
    • AC5: the resolution signal names no redirect source.
    • AC7: the nut shop shape test.

    Rough size: AC3 is M (engine and report), AC1 plus AC5 is M and crosses repos (the signal shape is read by the private merge), AC4 plus AC7 is M and needs #4014. Proposed split: (a) re-verified / left-carried counts with the budget versus unlinked split, (b) redirect evidence on resolved findings and in the resolution signal, (c) orphan and the nut shop test once #4014 lands.

    nik

  4. added
    engine
    on Nov 13, 2026
  5. nc9 commented on Nov 13, 2026

    @nc9
    ContributorAuthor

    The CLI and engine side shipped in squirrel v0.0.180 (see the v0.0.180 section of CHANGELOG.md). Kept open until the hosted (cloud) side meets the remaining acceptance criteria.

  6. nc9 commented on Nov 16, 2026

    @nc9
    ContributorAuthor

    The public side is on main (#1801, via #1805): coverage.seedVerification with re-verified, left-carried, skipped-by-budget and no-longer-linked counts in every report format; 404/410 status evidence; redirect-source resolution signals; the nut-shop shape test. Still open: criteria 1 and 4 need the private merge to use it (resolving redirect-away findings, seeding carried pages), tracked privately. This stays open until that lands.

  7. added
    blocked
    on Nov 20, 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

    blockedengineenhancementsize: L

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions