Repository navigation
fix(audit-engine): sibling rows of a shared-component check are neutral on carried paths #2304 - #2305
Merged
Merged
Conversation
…al on carried paths #2304 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/sibling-row-shared-2304
branch
from
November 24, 2026 11:02
9074adc to
b214591
Compare
nc9
marked this pull request as ready for review
November 24, 2026 18:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2304. Pairs with private squirrelscan/repo#5336 (SQL twin mirror), planning-gated.
In
addChecksToTallya row with no occurrences andcomponentEvidence.reason === "sibling-row"is neutral (neither shared nor unshared for its key).payload-limit(andpage-sample-limit) stay unshared; a key of only siblings is not shared.Tests (
tests/sibling-row-shared-2304.test.ts, rows from the realflattenChecks): 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 andaggregateUntouchedCarried; 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.