Skip to content

feat(cli): --compare-url gives a targeted run a bounded comparison set for site rules #2096 - #2184

Merged
nc9 merged 2 commits into
mainfrom
boat/targeted-site-rules-2096
Nov 21, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/targeted-site-rules-2096

Conversation

@nc9

@nc9 nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Closes #2096.

What

  • --compare-url (repeatable, needs --target-url): extra URLs fetched once each next to the targets, same scope/robots/length checks, counted against maxPages.
  • New RuleMeta.comparisonSet: "listed-pages". Declared by content/duplicate-description and crawl/schema-noindex-conflict; on a targeted run with a comparison set they run over the fetched pages instead of skipping with targeted-run.
  • Every other site rule, and a declaring rule with no comparison set, stays skipped with targeted-run (not checked, never clean); skip message now says why.
  • Docs (docs/cli/audit.mdx Targeted audits > Comparison set), completions, changelog.d entry.

Acceptance criteria

  • comparison set accepted: --compare-url; test: comparison-set-2096-e2e (v1, v2)
  • [~] bounded rules evaluate over targets + set: duplicate-description and schema-noindex-conflict do (e2e). Homepage discovery (feed/agent probes) and auto-reading the previous report's cluster are NOT done: targeted runs send no probes, and the cluster URLs are passed by the caller as --compare-url. Follow-up needed.
  • unbounded rules reported not checked: e2e asserts links/click-depth skipped with targeted-run; no-set case asserts duplicate-description skipped
  • earlier finding resolved only if re-checked: existing diff logic marks a finding whose source pages were not crawled as not compared (diff-not-compared-1748 'item's source pages are all needed'); the rules above list their pages
  • fetched once: e2e asserts the server saw robots.txt + each of /p/1,/p/2,/p/3 exactly once (/p/2 in both lists), /p/5 never
  • docs updated

Gates (repo-public)

format:check, lint, typecheck clean; changelog check OK; make validate pass; suites: audit-engine 0 fail (2373 tests), crawler 1177 pass, report 1413 pass, rules 12523 pass, cli 4588 tests 0 fail.

Page rules also run on comparison pages (they are fetched pages); documented. Agent skill: no change needed beyond docs link (flag is new, optional).

@nc9
nc9 force-pushed the boat/targeted-site-rules-2096 branch from 847fb4d to 583a165 Compare November 20, 2026 23:19
@nc9
nc9 marked this pull request as ready for review November 20, 2026 23:33
@nc9
nc9 force-pushed the boat/targeted-site-rules-2096 branch from 583a165 to 83559bf Compare November 21, 2026 01:14
@nc9
nc9 merged commit b48273e into main Nov 21, 2026
8 of 15 checks passed
@nc9
nc9 deleted the boat/targeted-site-rules-2096 branch November 21, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Targeted runs: evaluate site-scoped rules over a bounded comparison set

1 participant