Repository navigation
fix(signals): keep a signal open while its finding is still detected - #843
Merged
Merged
Conversation
Library detectors write at most maxSignalsPerKind signals per kind. The rest were dropped before the resolution step, so a finding that slipped from fifth to sixth between two passes was closed as resolved while the problem was still there. Over-cap findings are now marked instead of dropped: they refresh an open signal and count as detected, but raise nothing new and reopen nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 29, 2026
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.
Summary
Stops the nightly pass from closing signals whose problem is still there.
Each library detector writes at most
maxSignalsPerKind(5) signals per kind, strongest first. Everything past the cap was dropped before the resolution step. The resolution step then closed every open signal that was not in tonight's list. So when a second pass on the same night reranked sources, a signal that slipped from fifth to sixth was marked resolved, even though the condition it described had not changed. On the first night of the V1 library, one brand had 13 signals closed this way within two and a half hours of being raised.Now:
cap()marks over-cap findings withoverflowinstead of dropping them.libraryCandidates()returns them separately.signalsToResolve,overflowRefreshes) and tested directly.Signals already closed this way stay closed. They reopen on their own once they rank inside the cap again.
Related issue
Follow-up to #839 · tracking #818
Type of change
fix— Bug fixHow to test
cd server && npx vitest run→ 845 passing (9 new insignals/resolution.test.js)signal_runs.detail.signals.autoResolvedon the second pass should count only findings that disappeared, not ones that moved down the ranking.Checklist
🤖 Generated with Claude Code