Skip to content

fix(report): merged cookie-httponly count covers the items it lists #2300 - #2303

Merged
nc9 merged 1 commit into
mainfrom
boat/cookie-flags-count-2300
Nov 24, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/cookie-flags-count-2300

Conversation

@nc9

@nc9 nc9 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #2300.

When pages each list different cookies and agree on the per-page count, the merged check read 1 cookie(s) over two items. For rules with messageCountsItems, groupIssuesByCategory now widens the leading count to the range up to the merged item count (1 to 2 cookie(s)). FAIL host lists: pages with different host lists keep separate, true messages (the host text is part of the merge key); pages that agree print the shared list.

Acceptance criteria:

  • merged message count matches merged items or reads as a range: cookie-httponly-merged-count-2300.test.ts (equal counts, different cookies)
  • FAIL message same treatment: same file, FAIL asserted in both tests
  • two-page fixture with different counts per page, WARN and FAIL: second test in that file

Verification: report suite 1426 pass 0 fail; audit-engine files in 5-file chunks 2461 pass 0 fail (new tests fail without the fix); format:check, lint, typecheck clean in packages/report and packages/audit-engine; bun scripts/changelog.ts check OK. Changelog entry added. Docs: no change. Agent skill: no change.

@nc9
nc9 marked this pull request as ready for review November 24, 2026 10:32
@nc9
nc9 merged commit 239d2c6 into main Nov 24, 2026
10 checks passed
@nc9
nc9 deleted the boat/cookie-flags-count-2300 branch November 24, 2026 10:44
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.

cookie-flags: merged cookie-httponly message counts one page's cookies, not the items it lists

1 participant