Skip to content

fix(crawler): block a one-page crawl of a 2xx soft challenge page #2250 - #2252

Merged
nc9 merged 2 commits into
mainfrom
boat/soft-challenge-blocked-2250
Nov 23, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/soft-challenge-blocked-2250

Conversation

@nc9

@nc9 nc9 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Closes #2250.

A crawl that fetched exactly one page, the seed, served 2xx, and that is a tiny document with no doctype and no html element, or with generic challenge wording, is now recorded as the seed block (code blocked_by_waf, signal names the only page fetched). It then takes the existing hard-block path: status blocked, no score, CLI exit code 3. The cloud uses the same crawler and status derivation.

Acceptance criteria

  • Cloudflare-style, checking-your-browser and empty-shell fixtures blocked, no score: packages/audit-engine/tests/waf-soft-challenge-2250.test.ts (3 tests; fail without the crawler change)
  • Valid minimal page still scored: 'a valid minimal page (doctype and html) is not blocked'; multi-page crawl with challenge wording not blocked
  • Reason names it: signal 'the only page fetched ...' asserted; wafBlockReason carries it
  • Docs: docs/guides/failed-audits.mdx, 'A soft challenge on a one-page crawl'; make validate 0 fail

Gates: format:check, lint, typecheck in waf-detect, crawler, audit-engine, utils; suites crawler 1186 pass, rest 3951 pass, audit-engine 2400 pass; 3 CLI waf/exit-code e2e files 17 pass; changelog check OK. Full apps/cli suite not run locally.
Agent skill change: not needed.

@nc9
nc9 force-pushed the boat/soft-challenge-blocked-2250 branch from 70ee4e6 to 1f42c0c Compare November 23, 2026 01:58
@nc9
nc9 marked this pull request as ready for review November 23, 2026 02:02
@nc9
nc9 merged commit d6a7b03 into main Nov 23, 2026
10 checks passed
@nc9
nc9 deleted the boat/soft-challenge-blocked-2250 branch November 23, 2026 02:39
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.

A one-page audit of a 2xx bot-challenge page gets a normal health score instead of blocked

1 participant