Skip to content

JSON report: per-rule disposition for every rule and a page inventory beyond 2,000 #2446

Backlog

Description

@deniskern

Follow-up to #1260 / #1396 (closed), checked against v0.0.191 docs and reporter.

To resolve an earlier finding by its absence, a JSON consumer must know that the rule actually evaluated the page and found nothing. Today:

  • executedRules lists only rules that produced a non-skipped check; a rule that ran but had nothing to apply to (e.g. integrity/brand-impersonation without sign-in controls, content/mime-type in a default run) appears in neither executedRules nor notChecked.
  • --includePages caps the page list at 2,000 (pagesTruncated), so larger crawls cannot be reconciled page by page.

Request:

  1. A report-only per-rule disposition for every catalogue rule in the run: evaluated (with or without findings), not-applicable, disabled, skipped/incomplete with a reason.
  2. An opt-in complete page inventory beyond 2,000 entries (or a lossless paginated/NDJSON export), keeping the outcome for unanswered and skipped URLs.

With both, consumers can drop their own config-based rule inference and their truncated-list fallback. #2350 (clean-run baselines) is related but does not cover the per-rule disposition.

Triage

Related, closed: #1260 and #1396. The JSON output lives in packages/report/src/output/json.ts, with run bookkeeping in packages/report/src/rule-runs.ts and typed outcomes in packages/core-contracts/src/rule-outcome.ts. Today a rule with nothing to apply to is in neither executedRules nor notChecked, so absence cannot be told apart from not-applicable. This is two features in one issue: the per-rule disposition (additive report field) and the uncapped page inventory (opt-in export). They can ship separately.

Acceptance Criteria

  • The JSON report lists a disposition for every catalogue rule in the run: evaluated, not-applicable, disabled, or skipped/incomplete with a reason.
  • A rule that ran with nothing to apply to (for example integrity/brand-impersonation without sign-in controls) is reported not-applicable, not omitted.
  • The new field is additive: existing executedRules and notChecked output is unchanged.
  • An opt-in option exports every crawled page with its outcome beyond 2,000 entries, in a lossless form (full list or NDJSON), including unanswered and skipped URLs.
  • The default --includePages behaviour and its 2,000 cap are unchanged.
  • The JSON schema, report docs and tests are updated for both additions.

Activity

  1. added
    enhancement
    size: L
    on Nov 29, 2026
  2. added theissue type on Nov 29, 2026
  3. nc9 commented on Nov 29, 2026

    @nc9
    Contributor

    Thanks for the clear request. The gap is confirmed: a rule with nothing to apply to appears in neither executedRules nor notChecked. It is two separable features, so the acceptance criteria in the issue body list them individually.

    nik


    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

    enhancementsize: L

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions