Repository navigation
Description
Summary
With [crawler] discovery_probe_paths (v0.0.179) only the approved probes go out and a 429 stops the remaining ones (#1655), thanks. A probe that was not sent or was refused is reported only as prose in infoChecks, though, so a consumer cannot tell "checked, absent" from "not checked" without parsing text.
Reproduction (v0.0.179)
Local logging server; /llms* answers 429.
squirrel audit http://127.0.0.1:8765/ --http --offline --no-publish --no-external-links --rule-include ax \
--discovery-probe-path /llms.txt,/AGENTS.md -m 5 --refresh -f json
- Requests:
/llms.txtonce,/AGENTS.mdnever (correct). infoChecks:ax/llms-txtcheckllms-txt, message "/llms.txt not checked: the site refused the request (HTTP 429)";ax/agents-mdcheckagents-md-present, message "AGENTS.md not checked: the discovery probe was not sent".notCheckedandskippedCheckslist neither rule, andexecutedRulescontains both.
The same pattern applies to security/security-txt ("security.txt not checked: path not approved") when its path is not in the allowlist.
Request
List a rule whose probe was not approved, not sent or refused in notChecked with outcome: "coverage_gap" and a reason code (like external-links-not-checked), so a pipeline that resolves findings by absence keeps them open.
Related
In the non-blocking run, /AGENTS.md was approved and requested (answered 404), yet agents-md-present said "AGENTS.md not checked: path not approved ([crawler] discovery_probe_paths)". Expected: checked, absent.
Triage
Confirmed against packages/rules/src/ax/discovery-probe-state.ts: a probe that was not sent, not approved, refused or throttled becomes an info check (notCheckedCheck, value not-checked, message " not checked: "). The rule still counts as executed and never lands in notChecked, so a consumer resolving findings by absence cannot tell "checked, absent" from "not checked" without reading the message. notChecked entries with outcome: "coverage_gap" and a reason code already exist for other causes (packages/report/src/not-checked.ts, packages/core-contracts/src/rule-outcome.ts), so the discovery probe reasons (not-sent, no-answer, blocked, not-approved, redirect-not-followed) can reuse that path. The second report (an approved /AGENTS.md probe that was requested and answered 404, yet reported as "path not approved") is a separate bug in how approval is matched and should be fixed in the same change or split out.
Related, not duplicates: #1655 (per-path allowlist, closed), #422 (discovery probe follow-ups, closed).
Acceptance Criteria
- A rule whose discovery probe was not sent, not approved, refused or throttled appears in
notCheckedwithoutcome: "coverage_gap"and a reason code, in the JSON report - The reason codes distinguish at least not-approved, not-sent and refused or throttled
- A probe that was sent and answered (including 404) is reported as checked, never as "not checked"
- An approved
/AGENTS.mdthat was requested and answered 404 produces "absent" forax/agents-md, not "path not approved" - The same applies to
security/security-txt,ax/llms-txtand the other rules that read discovery probes -
report --diffand issue resolution keep a finding open when its rule is innotCheckedfor a probe reason - Tests cover the not-approved, refused (429) and approved-404 cases; rule docs and the report schema docs describe the new reason codes
Generated by Claude Code
Activity
fix(report): skip the host probe for local and special-use hosts; #1655…
fix(report): retain discovery probe coverage gaps #1794
fix(report): skip the host probe for local and special-use hosts; #1655…