Skip to content

fix(rules): a capped crawl's inbound-link skip is a shared not-checked reason (#1144) - #1148

Closed
nc9 wants to merge 1 commit into
mainfrom
fix/1144-capped-skip-reason
Closed

nc9 wants to merge 1 commit into
mainfrom
fix/1144-capped-skip-reason

Conversation

@nc9

@nc9 nc9 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Fixes #1144.

When a crawl stops at its page cap with pages still queued, links/orphan-pages, links/weak-internal-links and links/no-contextual-inbound skip (#1044, #1128). The skip was correct, but its reason was a literal repeated in all three rules, and it was not in NOT_CHECKED_SKIP_REASONS. Two effects:

  • Reports: they did not show these rules as "Not checked" on a capped crawl, so the rules read as clean.
  • Finding consumers: anything that closes findings when a rule stops reporting them closed them on a capped crawl. The cloud's issue sync hit this; it carries a copy of the literal since squirrelscan/repo#3399.

Change

  • core-contracts: a new CRAWL_CAPPED_SKIP_REASON constant holds the reason, with the exact text published reports already carry, so stored reports and existing readers keep matching. It is added to NOT_CHECKED_SKIP_REASONS.
  • The three rules use the constant.
  • report not-checked.ts: the reason gets its hint: "Raise the page limit (--max-pages, or crawler.max_pages) so the crawl reaches every page, to check them."
  • Effect of joining NOT_CHECKED_SKIP_REASONS:
    • every report format prints a Not checked: line for these rules;
    • the publish capper keeps their skip row ahead of any cut;
    • a locked-rules note never lists them.
  • Docs:
    • the notChecked.reason list in configuration/output.mdx names the reason;
    • each rule page says the rule shows as Not checked and that an earlier finding stays open.
  • CHANGELOG: an entry under Fixed.

Tests

  • rules/tests/no-contextual-inbound.test.ts: all three rules skip with CRAWL_CAPPED_SKIP_REASON. The constant keeps the published text and is a not-checked reason.
  • report/tests/not-checked-2729.test.ts: a capped orphan-pages skip becomes a Not checked entry with its message and the --max-pages hint.
  • Also run: engine publish-cap, publish-meta and site-query-link-rules-golden (89 pass), plus report not-checked-link-targets-726.
  • Typecheck: tsgo --noEmit is clean in core-contracts, rules and report.
  • Docs: make validate passes.

The touched rule and report files had oxfmt differences on main already. They are not reformatted here, to keep the diff to the change.

Skill: no change. Cloud follow-up at the next private bump: the private not-checked hint map can name this reason, and the private copy of the literal in UNOBSERVED_SKIP_REASONS becomes redundant.

…d reason (#1144)

orphan-pages, weak-internal-links and no-contextual-inbound skipped a capped crawl with a repeated literal that was not in NOT_CHECKED_SKIP_REASONS, so reports showed the rules as clean and a consumer closing findings on absence closed them. The reason is now CRAWL_CAPPED_SKIP_REASON in core-contracts, with the same text published reports carry, and a not-checked reason: every report shows a Not checked line with a --max-pages hint, the capper keeps the row, and it never resolves an open finding.

Signed-off-by: Nik Cubrilovic <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Auto-review did not complete

The claude-review job failed before posting a review. This PR has not been auto-reviewed. Run a review manually (/review) before merging.

  • Result: success / is_error=true after 1 turns, 0 permission denial(s), $0.00
  • Job log

Partial findings recovered from the session (incomplete, unverified, and NOT a merge signal):

Show partial review

You've hit your session limit · resets 7:40am (UTC)

@nc9 nc9 mentioned this pull request Oct 26, 2026
@nc9

nc9 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

Landed in the v0.0.134 batch (#1149), main commits 5469744.

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.

Inbound-link rules' capped-crawl skip reason is a repeated literal, not a not-checked constant

1 participant