Repository navigation
fix(signals): stop closing signals that only dipped for a night or changed kind - #853
Merged
Merged
Conversation
…anged kind Two nights of the V1 library closed 74 and 79 signals; most had lived one night. Two causes: - A value near its threshold dipped under it for a night and the signal was resolved, then raised again the next morning. An undetected signal now stays open until it has been missing for resolveAfterHours (36), so one quiet night no longer closes it. - A subject moved between kinds one classifier chooses between (a topic slipping, then dropped; a source cited, then winning). The old signal was resolved and a new one opened. It is now closed at once as superseded, naming its successor, and the web labels it Changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
33 of 37 tasks
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 that did not end.
On the first two nights of the V1 library the pass closed 74 and 79 signals. Of the first night's 74, 64 had lived a single night. That is the signals page telling users problems were solved and then raising them again. There are two causes.
1. One quiet night closed a signal. Values near a threshold dip under it and come back. For example, a source at 21 results against a threshold of 20 drops to 19. The signal was resolved on the dip and reopened the next morning. An undetected signal now stays open until it has been missing for
resolveAfterHours(36h, inlibrarythresholds), so it takes two missed nights to close it. Detector failures (unreadKinds) and outages are still never treated as endings.2. A subject that changed kind was "resolved". Some kinds are exclusive choices of one classifier for the same subject:
When tonight's pass files a subject under a different kind of its group, the old signal is now closed at once (no grace, so the subject is never listed twice) with
payload.supersededBynaming its successor. The web shows it as Changed instead of Resolved. Groups that are not exclusive stay independent. For example, a competitor can lead and gain at the same time.signal_runs.detail.signalsgains asupersededcount besideautoResolved.Checked against last night on the hosted database: 71 of the 79 closures were library signals. Under this rule, 21 would have closed as Changed, and the other 50 would have stayed open for another night instead of closing.
Related issue
Follow-up to #843 · tracking #818
Type of change
fix— Bug fixHow to test
cd server && npx vitest run→ 861 passing.signals/resolution.test.jscovers grace, supersede, exclusivity, and the group registry.cd web && yarn test→ 361 passingsignal_runs.detail.signalsshowsautoResolvedwell below the ~75 of the last two nights, plus asupersededcount.Checklist
yarn lintpassesyarn typecheckpassesyarn format:checkpasses🤖 Generated with Claude Code