Skip to content

JSON report: executedRules and a reason for pages that never answered #1396

Closed

Description

@nc9

What

Split from #1260 (the per-page list shipped there as the opt-in --include-pages, rows url, finalUrl, status, outcome, ruleCount). The rest of that request needs its own decision:

  1. executedRules in the JSON report: the rule ids that ran on this audit, so issues + passedRules + notChecked + skippedChecks can be checked against it, without a consumer re-reading its own squirrel.toml and subtracting.
  2. A reason on page entries that did not answer normally (a connection error, a rate-limited request that never stored a response, an excluded or robots-blocked URL), and a skipped outcome. Today those URLs are not stored pages, so they are not listed; rate-limited ones are only counted in rateLimited.

Definition proposed in triage: executedRules = rules that produced at least one non-skipped check, so a fully skipped rule is not listed as executed.

Acceptance Criteria

  • The JSON report has an optional top-level executedRules array of rule ids that produced at least one non-skipped check on this audit.
  • Every rule id in issues, passedRules and skippedChecks that ran is in executedRules; a rule that was fully skipped or disabled is not.
  • executedRules is bounded (the rule catalog is finite) and absent or empty on a report read back with squirrel report --input, which says so, like passedRules.
  • With --include-pages, a URL the crawl requested but could not store (connection error, rate limited with no stored response, excluded, blocked by robots.txt) is listed with outcome error or skipped and a reason, inside the existing 2,000-entry cap.
  • meta.schemaVersion bumps its minor version; both fields are optional so existing consumers and the published-report schema keep validating.
  • docs/configuration/output.mdx documents both fields, and make validate passes in docs/.
  • Tests cover an errored fetch, a rate-limited page with no stored response, an excluded URL and a fully skipped rule.

nik

Activity

  1. added
    enhancement
    size: M
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
  3. nc9 commented on Nov 1, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.156 and checked against it: every acceptance criterion is met, including a live --include-pages run against a local server (a 500 path and a 429 path listed with reasons http-500 and rate-limited). Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.156

    nik

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

    clienhancementsize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions