feat(ranking): add safe article ranking and limits

Rank candidate articles using the selected preference and enforce global and per-source article limits.

Refs #6

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 19:54:17 +01:00
parent 50bde816ed
commit a4d63015d4
13 changed files with 918 additions and 138 deletions

View File

@ -0,0 +1,3 @@
ALTER TABLE sources ADD COLUMN article_limit INTEGER NOT NULL DEFAULT 20
CHECK (article_limit BETWEEN 1 AND 200);
-- Existing summary_max_articles values are deliberately preserved.