Skip to content

Discovery probes: report not-approved, unsent or refused probes in notChecked, not only as info prose #1794

Closed

Description

@deniskern

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.txt once, /AGENTS.md never (correct).
  • infoChecks: ax/llms-txt check llms-txt, message "/llms.txt not checked: the site refused the request (HTTP 429)"; ax/agents-md check agents-md-present, message "AGENTS.md not checked: the discovery probe was not sent".
  • notChecked and skippedChecks list neither rule, and executedRules contains 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 notChecked with outcome: "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.md that was requested and answered 404 produces "absent" for ax/agents-md, not "path not approved"
  • The same applies to security/security-txt, ax/llms-txt and the other rules that read discovery probes
  • report --diff and issue resolution keep a finding open when its rule is in notChecked for 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: M

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions