Skip to content

feat(report): explain an overall score below its section scores from healthScore.debug (squirrelscan/repo#3915) - #1797

Closed
nc9 wants to merge 1 commit into
mainfrom
feat/3915-score-adjustment-note
Closed

nc9 wants to merge 1 commit into
mainfrom
feat/3915-score-adjustment-note

Conversation

@nc9

@nc9 nc9 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

The overall score takes two site-wide adjustments the section scores do not (issue density on the pooled issues, and robots.txt/sitemap penalties), so it can sit well below every section. The engine already records the numbers in healthScore.debug; nothing showed them.

  • scoreAdjustment / scoreAdjustmentNoteFor (new score-adjustment.ts, exported from @squirrelscan/report): one derivation and one sentence, for the report formats and for the dashboard.
  • HTML, Markdown, text and LLM reports print it, only when the report has section scores and debug and the adjustment is at least 1%: 'Overall 72: 95 before a 24% site-wide adjustment for issue density across the whole audit. Section scores use only their own checks.'
  • docs/reports.mdx: why the overall can be lower than every section.
  • No score changes, no schema change. Tests: tests/score-adjustment-3915.test.ts; the report package suite passes (1286), typecheck clean, make validate clean.

Agent skill: no change needed. Pairs with a private PR (dashboard and MCP get_report) that carries the same wording; it ships after this release.

@nc9
nc9 force-pushed the feat/3915-score-adjustment-note branch 3 times, most recently from 16b7a4d to b7dd900 Compare November 12, 2026 13:14
…healthScore.debug, in every format #3915

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Landed in bundle #1799, rebase-merged to main.

nik

@nc9 nc9 closed this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant