Repository navigation
fix: distinguish recorded news priorities from unscored items - #17
Merged
Merged
Conversation
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.
News presented a value score even when none had been saved: a browser keyword heuristic filled the missing value and ranked the row as a recommendation. The daily generator also clamped absent/invalid model scores into apparently valid 1/10 values. This fixes the missing-measurement class at both producer and consumer.
The daily summary retains score presence and requires the already stated model contract: an integer from 1 to 10. Missing, null, wrong-type and out-of-range scores fail before that summary is persisted; valid model choices are kept unchanged. Existing checkpoints and data formats stay intact.
The UI reads only saved score fields. Top 10 uses scored records when they exist; when no score is available, the list is explicitly latest unscored news, ordered by publication date. Expanded rows label unknown scores as unscored. The keyword/value fallback is removed and no replacement semantic heuristic is added.
Validation:
The sweep covered recommendation_score, the browser priority function and the daily producer. No dependency, model output field, timeout, retry layer or data migration was added. No live LLM call, publication or deployment was performed. Advances the scored Top 10 requirement in #1.
All four changed files and all PR commits were reviewed. Production diff +25/-24 (net +1); scenario diff +100/-0. Test growth covers the missing producer/consumer contract through real CLI/HTTP/browser entries rather than internal mocks.