Repository navigation
Description
v0.0.105 changed content/hidden-text and content/dev-leakage to skip a page that hits their scan limits instead of passing it. That fixes the dashboard, but the JSON report gives external consumers no way to see the skip: packages/report/src/grouping.ts keeps only fail/warn checks, and output/json.ts exports summary.passed/warnings/failed only.
A consumer that resolves its own findings from the JSON (we recheck a finding by re-auditing the page and close it when the rule no longer reports it) still reads "no issue" as clean and closes a finding on a page the rule skipped, the same false "fixed" the release notes describe.
Request: list skipped checks in the JSON report, per rule and page (for example a skipped entry per rule with the affected page URLs, or a summary.skipped count plus per-check status). That lets consumers keep those pages out of their coverage.
Version: squirrel 0.0.105, squirrel report --format json.
Acceptance Criteria
-
squirrel audit --format jsonandsquirrel report --format jsoninclude a new top-level list of skipped checks, each with rule id, check name, skip reason and the affected page URLs - The first version covers evaluation gaps only (checks skipped because a scan limit was hit, reason
scan-truncated). The entry shape carries the reason so other reasons can be added later -
summarygains askippedcount;passed,warnings,failedand every existing key keep their names and values - A page where
content/hidden-textorcontent/dev-leakagehit their scan limit appears as skipped for that rule, including when the skip was folded into a multi-page aggregate - Skipped checks never appear under
issues - Loading a saved JSON with
squirrel reportrenders the same issues as before - A report with no skips keeps today's top-level keys apart from
summary.skippedbeing 0 -
docs/configuration/output.mdxdocuments the real JSON shape (top-level keysmeta,status,score,summary,issues, plus the new skipped data). The documentedproject,healthandpagesshape that does not exist is corrected - Test: new
packages/report/tests/json-skipped.test.ts, a per-page scan-truncated skip appears with its rule id and page URL - Test: same file, a folded skip carrying
pages[]lists every page - Test: same file, negative control: a report with no skips has
summary.skipped0 and the same top-level keys as before - Test:
packages/report/tests/json-status.test.tsupdated deliberately for the new key - The PR description names the squirrelscan agent skill's JSON output notes as needing an update, and a follow-up is filed against squirrelscan/skills (cloud runners cannot push there)
Activity
nc9 commentedon Oct 7, 2026
Triage notes (maintainer review):
content/hidden-textorcontent/dev-leakagehit their scan limit reads as clean in JSON. The skip itself is recorded by the rules; only the JSON renderer discards it.issues, because the CLI rebuilds those entries as checks and consumers treat every issue as a finding. It is additive, and the dashboard and API do not use this renderer.docs/configuration/output.mdxdocuments a JSON shape that does not match the real output. The docs criterion includes correcting it.feat(report): list scan-truncated skips in the JSON report (#554)
nc9 commentedon Oct 8, 2026
Acceptance check against main: 11 of 13 criteria verified and ticked (
packages/report/tests/json-skipped.test.tsandjson-status.test.ts: 9 pass, 0 fail). Two are left open:squirrel audit --format jsonandsquirrel report --format jsoninclude a new top-level list of skipped checks": met forsquirrel auditand forsquirrel reportbuilt from the project database, but not forsquirrel report --input <saved.json> --format json.convertSlimReportinapps/cli/src/controllers/report.ts(around line 187) rebuilds onlyissuesfrom a saved JSON report, soskippedChecksis dropped. A round trip throughrenderJson, thenloadReport, thenrenderJsonagain goes fromskippedCheckswithsummary.skipped: 3to noskippedChecksandsummary.skipped: 0. The re-exported report then looks clean, the same false "no issue" signal this issue describes. The merged PR lists this under "Notes for review", but no test or doc covers it, anddocs/configuration/output.mdxdoes not mention the limitation.Reopening, because the first item is core behaviour: a saved JSON report re-exported with
squirrel reportloses its skip data.nc9 commentedon Oct 8, 2026
Re-checked against main 47fb5ac:
squirrel auditandsquirrel reportJSON: still not met forsquirrel report --input <saved.json> --format json.convertSlimReportinapps/cli/src/controllers/report.tshas not changed since the last check, and it rebuilds onlyissuesfrom a saved JSON report, so the re-export dropsskippedChecksand reportssummary.skipped: 0. Theauditpath and the database-backedreportpath include the list. The issue stays open for this.nc9 commentedon Oct 10, 2026
Quick status: the JSON report has listed scan-limit skips since v0.0.106 (#554), and the skills follow-up is filed, so I ticked that box. One gap keeps this open: re-exporting a saved report with
squirrel report --input saved.json --format jsonstill dropsskippedChecksand reportssummary.skipped: 0(convertSlimReportinapps/cli/src/controllers/report.tsdoes not read them back).nc9 commentedon Oct 11, 2026
Checked against current main (ad95fb2): the open criterion is STILL TRUE, and the code now marks it as deliberate. The slim report type in
apps/cli/src/controllers/report.ts:156-160saysskippedChecksis "Not read back: skipped checks are not findings, so they are never rebuilt intoruleResults". Sosquirrel report --input saved.json --format jsonstill writes noskippedChecksand reportssummary.skipped: 0. Closing the gap means changing that decision, not finding a missed line.A related evaluation gap I hit while trying to produce a
scan-truncatedskip on 0.0.108. On a heavily loaded machine, a local page with 21,000 elements (pastcontent/hidden-text's 20,000-element cap) did not skip. The rule hit its 1000 ms time budget instead and reportedcontent/hidden-text-error(fail,timedOut: true), withsummary.skipped: 0and noskippedChecks. A page a rule abandoned on time is just as unevaluated as one it cut short, butskippedChecksonly listsscan-truncated. Version one says other reasons can come later, and timeouts look like the next one.nc9 commentedon Oct 11, 2026
From the repro run: a rule that hits its time budget (for example
content/hidden-textunder load) is not listed inskippedChecks, so a timeout is invisible in the report. Worth adding to the scope here as an unlisted gap.fix(report): clip info check messages; rule-errored reason; --include…
feat(report): infoChecks in json and llm; rule-timed-out and rule-err…
feat(report): infoChecks in json and info-checks in llm; rule-timed-o…
fix(report): clip info check messages; rule-errored reason; --include…
nc9 commentedon Oct 30, 2026
Checked against main (23a34c1, v0.0.144). Ticked what holds. Gap in criterion 1:
squirrel report --input saved.json --format jsondropsskippedChecksand reportssummary.skipped: 0, because the slim JSON reader deliberately does not read them back (apps/cli/src/controllers/report.ts), and the docs do not say so. Either read them back or document the limit. The skills follow-up (last criterion) is not checkable from the repo.nik
fix(report): skipped-checks read-back drops non-rule ids, caps counts…
fix(report): skipped-checks read-back drops non-rule ids, caps counts…
docs(report): skipped read-back id shape and sanitising note #518
fix(report): squirrel report --input reads skippedChecks back, valida…
fix(report): skipped-checks read-back drops non-rule ids, caps counts…
docs(report): skipped read-back id shape and sanitising note #518
nc9 commentedon Oct 31, 2026
Re-checked against main after v0.0.147 (
squirrel report --inputnow readsskippedChecksback). Every behavioural criterion is met and tested. The one open box is the agent skill follow-up, which is not checkable from this repo. Leaving this open for that.nik
nc9 commentedon Nov 4, 2026
Acceptance check against main 7c31d5b (first released in v0.0.147, included in v0.0.161):
audit --format jsonandreport --format jsoninclude a top-level skipped listpackages/report/tests/json-skipped.test.ts(6 pass) covers the renderer;apps/cli/tests/reports/report-input-skipped-518.test.ts(10 pass) coverssquirrel report --input: "re-exporting a loaded report keeps skippedChecks and summary.skipped identical", "skipped checks never become issues", "a report with no skips has none after the round trip", plus hostile-entry cases;docs/configuration/output.mdxdocumentsskippedChecksjson-status.test.ts3 pass on this mainThe gap noted earlier (a saved report re-exported with
--inputdroppedskippedChecks) was closed by commit 961b6c2, hardened by 8c77760 and documented in 286628e. Timed-out rules are also listed (reasonrule-timed-out, commit 57c9d85).Ticked criterion 1 and closing. The agent skill follow-up is tracked outside this repository, so I could not confirm it from here; the box was already ticked by the maintainer.
nik