Skip to content

crawler: discovery-probe follow-ups from #409 #422

Closed

Description

@nc9

Follow-ups deferred from #409 (the --disable-discovery-probes switch, shipped in v0.0.99):

  • squirrel crawl honours [crawler] disable_discovery_probes but has no --disable-discovery-probes flag.
  • The RSL probe re-reads robots.txt instead of reusing the crawl's first read, so every audit asks for robots.txt twice.
  • Sitemap discovery is not behind per_host_concurrency / per_host_delay_ms, unlike the probes and pages.
  • --disable-discovery-probes false (with a space) leaves false as a stray positional and turns the probes OFF. Only the =false form works.
  • selectDiscoveryProbes accepts plugin namespaces, but controllers/audit.ts doesn't pass them. Plugins are off by default.

Acceptance Criteria

Activity

  1. added
    enhancement
    P3
    size: S
    on Sep 30, 2026
  2. nc9 commented on Oct 11, 2026

    @nc9
    ContributorAuthor

    Checked against 0.0.108 and current main (ad95fb2), with a two-page local fixture server that logs every request. Four of the five bullets still hold. The space form of false does not reproduce.

    1. squirrel crawl flag: STILL TRUE. squirrel crawl --help has no probe option. apps/cli/src/cli/commands/crawl.ts has no disable-discovery-probes argument.
    2. robots.txt read twice: REPRODUCES. A default audit (--http --refresh -m 2 --offline) asked for /robots.txt twice: once before the probes (/llms.txt, /.well-known/* and so on), and again right before the sitemap candidates. With --disable-discovery-probes it asked once, so the second read belongs to the probe phase.
    3. Sitemap discovery politeness: REPRODUCES. With [crawler] per_host_concurrency = 1 and per_host_delay_ms = 700, the eight sitemap candidates (/sitemap.xml, /sitemap_index.xml, ..., /news-sitemap.xml) all arrived within 12 ms (17:34:24.957 to .969). The two page fetches that followed were about 700 ms apart (25.045, 25.739).
    4. --disable-discovery-probes false with a space: DOES NOT REPRODUCE on 0.0.108. That run sent every probe (/llms.txt, /.well-known/mcp.json, /openapi.json and so on), so false was read as the flag's value and was not left as a stray positional. The bare flag in the control run sent none. On main the flag is parsed by lastFlagValue(args["disable-discovery-probes"]) (apps/cli/src/cli/commands/audit.ts:1178).
    5. Plugin namespaces: STILL TRUE. selectDiscoveryProbes({ enabled, rules, ruleOptions }) in apps/cli/src/controllers/audit.ts:1048-1055 passes no additionalNamespaces, although packages/rules/src/discovery-probes.ts:34 accepts them.
  3. added theissue type on Oct 28, 2026
  4. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    The fifth criterion (plugin rules under --rule-exclude ax) is split into #1375: the CLI loads no plugins today, so the audit controller has nothing to pass to selectDiscoveryProbes. The selection logic already supports plugin namespaces and is tested.

    nik

  5. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.145 (fc55d0a3 5da5b3d0), verified against main: every acceptance criterion is met. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.145

    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

    P3enhancementsize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions