Skip to content

fix: distinguish recorded news priorities from unscored items - #17

Merged
HsukqiLee merged 4 commits into
mainfrom
fix/recorded-news-priority
Nov 21, 2026
Merged

HsukqiLee merged 4 commits into
mainfrom
fix/recorded-news-priority

Conversation

@HsukqiLee

@HsukqiLee HsukqiLee commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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 test-only head reproduced the incorrect 4.6 score on real unscored corpus records in desktop, mobile and /news: https://github.com/FastR-D/FastNews/actions/runs/44121362221 . The regression reads records through the real Go API and retains the same assertions after the fix.
  • Production CLI fetch -> daily-summary scenarios first failed in five missing/null/out-of-range cases. All eight cases now pass, including wrong-type rejection and unchanged minimum/maximum valid scores, with no invalid summary file created. Only remote feed/model HTTP uses a fixture.
  • Windows full Go tests, go vet and frontend typecheck/build passed. The final head includes the merged conference pipeline, research trends and HTTPS-release updates. Complete Linux CI passed Go race/vet, full formatting, 35 browser scenarios, production /news build and native package: https://github.com/FastR-D/FastNews/actions/runs/44918239754 . Two existing entry-canonicalization cases skip desktop/mobile and pass in the applicable subpath project.

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.

@HsukqiLee
HsukqiLee marked this pull request as ready for review November 21, 2026 15:27
@HsukqiLee
HsukqiLee merged commit 4f2c3fa into main Nov 21, 2026
3 checks passed
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.

1 participant