Repository navigation
Description
Version: squirrel v0.0.180 (release notes to v0.0.183 checked).
Observed: --target-url audits a URL list, but site-scoped rules are skipped (targeted-run), e.g. schema-noindex-conflict, duplicate-description and feed/agent discovery on the homepage. To verify a fix for one of these rules an integrator has to run a full crawl; on large Shopify stores (~4k pages) that hits rate limits (429) and takes hours.
Request: let targeted runs evaluate site-scoped rules over an explicit comparison set: the target URLs plus caller-supplied related URLs (e.g. --compare-url or a file), or the rule's own bounded set (for duplicate-description: the URLs of the duplicate cluster from the previous report; for homepage discovery: the homepage). Report rules whose comparison set is unbounded as not checked with a reason, never as clean.
Why: fix verification for site-context rules is currently the slowest path for agents fixing shops; a bounded targeted mode would make it seconds instead of a full crawl.
Triage
Confirmed against main: a --target-url run skips every site-scope rule with the coded reason targeted-run (see packages/rules/src/types.ts and the --target-url help in apps/cli/src/cli/commands/audit.ts), so site-context rules cannot be verified without a full crawl. Related: #1778 widens targeted runs to site rules that can be judged from the listed pages alone. This request goes further by letting a rule evaluate over a bounded comparison set beyond the listed pages (supplied URLs, a previous duplicate cluster, the homepage).
Acceptance Criteria
- A targeted run accepts an explicit comparison set (for example
--compare-url, repeatable, or a file) in addition to the target URLs. - Site-scoped rules that can declare a bounded comparison set (duplicate-description via the previous report's cluster, homepage discovery via the homepage) evaluate over target URLs plus that set instead of skipping with
targeted-run. - Rules whose comparison set is unbounded are reported as not checked with a stated reason, never as clean.
- A site finding from an earlier full audit is never marked resolved unless its comparison set was actually re-checked.
- Only pages in the target and comparison sets are fetched, each once.
- Docs (
docs/cli/audit.mdx"Targeted audits") describe the comparison set and which rules use it.
Generated by Claude Code
Activity
feat(cli): --compare-url gives a targeted run a bounded comparison se…
fix(cli): pass --compare-url through to the crawler #2096
feat(cli): --compare-url gives a targeted run a bounded comparison se…
fix(cli): pass --compare-url through to the crawler #2096
feat(cli): --compare-url gives a targeted run a bounded comparison se…