Repository navigation
Description
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:
executedRuleslists only rules that produced a non-skipped check; a rule that ran but had nothing to apply to (e.g.integrity/brand-impersonationwithout sign-in controls,content/mime-typein a default run) appears in neitherexecutedRulesnornotChecked.--includePagescaps the page list at 2,000 (pagesTruncated), so larger crawls cannot be reconciled page by page.
Request:
- A report-only per-rule disposition for every catalogue rule in the run:
evaluated(with or without findings),not-applicable,disabled,skipped/incompletewith a reason. - 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, orskipped/incompletewith a reason. - A rule that ran with nothing to apply to (for example
integrity/brand-impersonationwithout sign-in controls) is reportednot-applicable, not omitted. - The new field is additive: existing
executedRulesandnotCheckedoutput 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
--includePagesbehaviour and its 2,000 cap are unchanged. - The JSON schema, report docs and tests are updated for both additions.
Activity
nc9 commentedon Nov 29, 2026
Thanks for the clear request. The gap is confirmed: a rule with nothing to apply to appears in neither
executedRulesnornotChecked. It is two separable features, so the acceptance criteria in the issue body list them individually.nik
Generated by Claude Code