Effort: standard
Build a /home spotlight panel showing the 10 highest-Elo cross-domain hypotheses of the past 7 days, refreshed every Monday. Plus an RSS/Atom feed at /feed/top10 for external consumption (Mastodon, etc.). Goal: surface SciDEX's best ideas to outside readers automatically.
/home (dashboard) displays a "Top 10 of the Week" spotlight panel above the fold showing the 10 highest-composite_score hypotheses created in the past 7 days, with at most 1 hypothesis per analysis domain (cross-domain constraint)/feed/top10 returns a valid Atom 1.0 feed with proper XML content-typeget_db_ro())Join hypotheses with analyses on analysis_id to get domain. Rank by composite_score descending within each domain, then pick the top hypothesis per domain until we have 10. Filter to created_at >= NOW() - INTERVAL '7 days'.
WITH ranked AS (
SELECT h.id, h.title, h.composite_score, h.target_gene, h.created_at,
a.domain,
ROW_NUMBER() OVER (PARTITION BY a.domain ORDER BY h.composite_score DESC) as rn
FROM hypotheses h
JOIN analyses a ON h.analysis_id = a.id
WHERE h.created_at >= NOW() - INTERVAL '7 days'
AND h.composite_score IS NOT NULL
)
SELECT id, title, composite_score, target_gene, domain, created_at
FROM ranked
WHERE rn = 1
ORDER BY composite_score DESC
LIMIT 10Fallback (if hypothesis has no analysis_id): use the hypothesis directly with domain = 'general'.
Insert a new HTML section into the dashboard() function in api.py, placed after the featured_html section and before the "Universal Activity Feed" section. The panel should:
#ffd54f) for the spotlight feel/feed/top10 with an RSS/Atom icon/feed/top10 Atom endpointCreate a new route @app.get("/feed/top10") in api.py (or a dedicated route file) that:
get_db_ro() to fetch the same top-10 queryContent-Type: application/atom+xml; charset=utf-8<id>: tag:scidex.ai,2026:/feed/top10<updated>: ISO-8601 timestamp of most recent hypothesis created_at<title>: "SciDEX Top 10 Hypotheses of the Week"<subtitle>: "The 10 highest-scoring cross-domain hypotheses on SciDEX this week"<entry> per hypothesis with proper Atom elements