Repository navigation
Description
On v0.0.173 the audit command has a configurable whole-run --max-duration, but its separate crawl-phase backstop is clamped to 1,800 seconds by resolveCrawlPhaseTimeoutMs and CRAWL_PHASE_MAX_TIMEOUT_MS. The internal RunAuditOptions.crawlPhaseTimeoutMs override is not exposed in the installed CLI help or crawler configuration.
For a polite single-host crawl with per_host_concurrency = 1 and per_host_delay_ms = 1000, a 3,913-page target cannot finish in 30 minutes even before response and rendering time. Retained v0.0.172 production logs show --max-duration 6260 but a crawl-phase stop at 1,800 seconds, collecting 1,568 pages; the final report says completed while stderr reports a partial crawl. Reading the tagged v0.0.173 source confirms the same clamp. Raising the outer duration therefore cannot fix this limit. No new customer crawl was made for this report.
Please expose a bounded CLI/config crawl-phase budget, or derive this backstop from the effective per-host rate, page budget and whole-run duration. Preserve a finite backstop and per-request watchdogs. A crawl stopped by that backstop should report partial status with machine-readable reason/coverage so consumers cannot mistake site-level link/sitemap conclusions for a complete link graph.
Related independently reproducible coverage case on both manifest-verified .172 and .173: a three-page loopback sitemap, with / and /ok returning HTML 200 and only /restricted returning 429 with Retry-After: 1, yields status partial and rateLimited.pages=1 but still warns crawl/sitemap-coverage / sitemap-orphans for that URL. All-200 control yields three pages and no issue. Both runs exit 0. The reported rules were selected with --rule-include crawl/sitemap-coverage,links/orphan-pages,links/no-contextual-inbound --http --offline --passive --disable-discovery-probes --no-publish --no-external-links --max-pages 10 --max-duration 30 --refresh --include-pages --include-passed -f json. The other two selected rules produce no finding in this small control; this report does not claim all graph shapes were tested.
Expected: distinguish unknown site-wide conclusions caused by a cut/denied fetch from actionable sitemap orphans, retaining the denial evidence. This is not a request to disable all link checks or to retry indefinitely.
Duplicate search before filing: all-state issues for crawl-phase timeout, crawlPhaseTimeoutMs, and 1800/crawl; all-state PRs for crawl-phase timeout. PR #222 concerns the overall per-page run budget, and issue #1285 concerns local requests during cloud rendering; neither exposes this crawl backstop or fixes the rate-limited sitemap verdict.
Triage
Two separate problems in one report:
- The crawl-phase backstop is clamped to 30 minutes and there is no CLI or config way to raise it, so a polite single-host crawl of a few thousand pages stops early while
--max-durationallows more. The report also reads as completed. This needs a bounded, configurable (or rate-derived) budget and a machine-readable partial reason. - When a fetch is denied or cut (429 with Retry-After), site-wide link graph conclusions such as sitemap orphans are still emitted as actionable findings. They should be marked unknown, with the denial evidence kept.
Note: the checkout used for this triage did not include the public engine sources, so the clamp and the rule behaviour are taken from the reporter's description and have not yet been re-verified against main.
Acceptance Criteria
- The crawl-phase budget can be set through a documented CLI flag or config key, and is bounded by a finite maximum
- With no explicit value, the budget is derived from the effective per-host rate, page budget and whole-run duration instead of a fixed 1,800 seconds
- A crawl stopped by the crawl-phase backstop reports partial status with a machine-readable reason and page coverage in the report output
- Per-request watchdogs still apply and are not affected by the new budget
- A sitemap URL that returns 429 (or is otherwise denied or cut) is not reported as an actionable
crawl/sitemap-coverageor sitemap-orphans finding, and the denial evidence is retained - The all-200 control case still reports no issue, and a genuine orphan is still reported
- Tests cover the clamp change and the rate-limited sitemap case, and the docs describe the new option
Generated by Claude Code
Activity
deniskern commentedon Nov 9, 2026
Additional retained production evidence, without another crawl: Motorroller run
2026-11-08T02-56-47-f74fe0faon v0.0.172 used--max-duration 2400 --includePages. Its log explicitly reports a crawl-phase timeout at the independent 1800-second backstop and continues with 94 pages. JSON nevertheless reportsstatus=completed,meta.maxPages=1500,meta.totalPages=94,meta.unfetched=14531; 94 inventory entries have positive rule counts. The tagged v0.0.173 controller retains the clamp, and installed v0.0.173 CLI help exposes no crawl-phase override. This confirms the crawl-ceiling gap independently of whole-audit exhaustion. Please preserve a finite backstop, expose/derive a budget compatible with the agreed page/rate scope, and emit machine-readable partial crawl coverage. We have not raised production limits or added a private workaround. Closure requires a native fix adopted in the managed pin and the next regular full-scope run reaching the configured scope, or an explicit evidenced site-side denial, without an extra rescan.feat(crawler): configurable crawl-phase budget and sitemap denial han…
fix(cli): offer --crawl-timeout in bash, zsh and fish completions #1639
fix(crawler): cap the derived crawl-phase budget at 60 min, test craw…
docs(report): schema 1.12 covers crawlPhase and lcp-preload pageEvide…
nc9 commentedon Nov 12, 2026
Shipped in v0.0.179: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.179
Acceptance criteria checked against the tag; the change is 40530ce.
nik
deniskern commentedon Nov 12, 2026
Thanks,
crawl_timeoutworks for us on v0.0.179. The 429 sitemap part still reproduces:429withRetry-After: 600.squirrel audit http://127.0.0.1:8765/ --http --offline --no-publish --no-external-links --disable-discovery-probes -m 10 --refresh -f jsonstatus: "partial",rateLimited: { pages: 1 }, andcrawl/sitemap-coveragestill reportssitemap-orphans(warn) with the 429 URL as its item.Expected per the release note: the URL is listed in the informational
sitemap-unverifiedcheck, not as an orphan.