Skip to content

fix(audit-engine): sibling rows of a shared-component check are neutral on carried paths #2304 - #2305

Merged
nc9 merged 1 commit into
mainfrom
fix/sibling-row-shared-2304
Nov 24, 2026
Merged

nc9 merged 1 commit into
mainfrom
fix/sibling-row-shared-2304

Conversation

@nc9

@nc9 nc9 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2304. Pairs with private squirrelscan/repo#5336 (SQL twin mirror), planning-gated.

In addChecksToTally a row with no occurrences and componentEvidence.reason === "sibling-row" is neutral (neither shared nor unshared for its key). payload-limit (and page-sample-limit) stay unshared; a key of only siblings is not shared.

Tests (tests/sibling-row-shared-2304.test.ts, rows from the real flattenChecks): multi-item shared check and a rule mixing a shared and a plain key give byte-identical score JSON (overall + debug) for fresh, carried stream and aggregateUntouchedCarried; no-component control; all-siblings key not shared; payload-limit key unshared. Fails without the fix (5 of 7). Docs: none needed (internal scoring parity). Agent skill: no change.

Gates: format:check, lint, typecheck clean in audit-engine; full audit-engine tests run in 5 chunks, all pass except tests/leaked-secrets-residency-1552.test.ts (heap test), which also fails with scoring.ts reverted to the base.

@nc9
nc9 force-pushed the fix/sibling-row-shared-2304 branch from 9074adc to b214591 Compare November 24, 2026 11:02
@nc9
nc9 marked this pull request as ready for review November 24, 2026 18:42
@nc9
nc9 merged commit 640f9b3 into main Nov 24, 2026
10 checks passed
@nc9
nc9 deleted the fix/sibling-row-shared-2304 branch November 24, 2026 18:43
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.

audit-engine: carried paths never count a multi-item shared-component check as shared (sibling rows have no occurrences)

1 participant