Skip to content

fix(cli): console output inconsistencies seen auditing the nut shop demo (v0.0.183) #2086

Closed

Description

@nc9

Found while capturing real CLI output for the docs from `squirrel` v0.0.183, signed out, against https://nutshop.squirrelscan.com (25-page default audit, plus `analyze`, `report` and `entities`). Each item below is observable in that output.

Acceptance Criteria

  • `squirrel report --list` puts a separator between the date and the page count (today: `11/17/2026, 10:09:37 AM25`)
  • The totals line pluralises correctly ("1 error", not "1 errors")
  • A category header and the totals use the same unit, or label which is which: the Crawlability header said "25 errors" while the total said 1 error, because one counts pages and the other counts checks
  • Group counts match their section headers: the Agents group showed ⚠9 while the Agent Experience section said "11 warnings"
  • `squirrel analyze` over the same stored crawl gives the same pass/warn/fail totals as the audit that made it, or the difference is explained in the output (seen: audit 3651/87/1, analyze 3642/90/1)
  • The "Exposed Sensitive Files" not-checked note says "Run with --probe aggressive" once, in both the CLI and the cloud report (today it repeats)
  • `squirrel entities` lists every entity counted in "N declared on several pages with no @id" (it said 2 and listed only Brand), and an unnamed entity prints once, not as "(unnamed FAQPage) (FAQPage)"
  • Scan details count product pages correctly ("9 of 37 product pages" on a shop with 36 products) (obsolete: not reproducible since the demo sitemap changed; re-file with a fixture if seen again)
  • `analyze` does not print the "Config: (none, using defaults)" log line onto the spinner line ("Analyzing audit rulesConfig: ...")
  • User-facing CLI strings have no em-dashes ("not signed in — run …", "Detected stack — not part of the score", the AGENTS.md hint). The house copy rule applies, and the docs quote this output verbatim
  • A signed-out audit does not warn "Site uses cloudflare protection, some pages may be inaccessible" when every page was fetched successfully

Activity

  1. added
    bug
    size: M
    on Nov 16, 2026
  2. added theissue type on Nov 17, 2026
  3. nc9 commented on Nov 21, 2026

    @nc9
    ContributorAuthor

    Graded against public main f50d1ad (includes #2168, partial fix). Built from source and ran squirrel audit https://nutshop.squirrelscan.com --max-pages 30 --no-publish, then analyze, report --list, entities. Ticked the boxes that pass; 5 stay open.

    Pass:

    • report --list: 11/21/2026, 8:51:18 PM 30 (separate columns).
    • Pluralisation: console-warning-totals.test.ts passes; Total: ... 4 errors.
    • Exposed files note: "Run the audit with --probe aggressive" appears once (CLI output; not-checked-probe-level-once-2086.test.ts covers the shared report text). Cloud report not run here.
    • entities: "Entities without an @id (2)" lists ImageObject and Brand; unnamed prints once.
    • analyze: Config: (none, using defaults) is on its own line above the result.
    • Cloudflare warning: not printed on a fully fetched crawl, though Cloudflare is detected as the edge. It only prints when pages were refused (apps/cli/src/lib/bot-protection-notice.ts, bot-protection-notice.test.ts, shipped in feat(rules): security/form-captcha recognises honeypot fields and reports info #2228 #2237).

    Open gaps:

    • Header vs totals unit: section headers count grouped findings, the Group/Category Breakdown and Total count checks, with no label saying which is which. There was no Crawlability section on this run, but the same mismatch shows elsewhere (packages/report/src/grouping.ts groupIssuesByCategory vs score categories).
    • Group counts vs section headers: Agents ⚠24 but "Agent Experience (27 warnings)"; Security breakdown ⚠2 vs "Security (2 errors, 3 warnings)"; Performance ⚠32 vs "(33 warnings)".
    • analyze vs audit: audit 4587 / 91 / 4, analyze 4586 / 96 / 4 on the same crawl, no explanation printed.
    • Em-dashes: the named strings are fixed, but the audit output still prints two ("No Markdown response — consider...", "Visible text is under 15% of the page HTML — ..."), and auth.ts:30,94 still has them.
    • Product page count: current demo sitemap lists 37 product URLs and the report says "14 of 37", so the original 36 vs 37 case does not reproduce; cannot confirm either way.

    nik

  4. nc9 commented on Nov 21, 2026

    @nc9
    ContributorAuthor

    Closing with follow-ups. #2168 fixed the six ticked items. The rest moved to their own issues:

    The product page count item is obsolete: it does not reproduce since the demo sitemap changed. Re-file with a fixture if it shows up again.

    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

    bugclisize: M

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions