From 6d4813e2ece04bc8cf5664e206c294124adbcc0a Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Fri, 13 Nov 2026 21:49:49 -0500 Subject: [PATCH] =?UTF-8?q?apps(osint):=20map-phase=20grading=20=E2=80=94?= =?UTF-8?q?=20summarizer=202c41737d42dd=20+=20score=20thresholds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #53 grades every article 0-100 inside the existing map call (no extra round-trip), passes only blocks >= SUMMARY_MIN_SCORE to the reduce prompt and persists article_scores for threshold tuning. Pin the rebuilt summarizer and set min_score=60 / top_n=12 / fallback_top=3 in the ConfigMap. --- apps/base/osint/configmap.yaml | 7 +++++++ apps/base/osint/news-summarizer-deployment.yaml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/base/osint/configmap.yaml b/apps/base/osint/configmap.yaml index 83bb22f..4a46b4a 100644 --- a/apps/base/osint/configmap.yaml +++ b/apps/base/osint/configmap.yaml @@ -65,6 +65,13 @@ data: # model needs ~30 s for 8 articles, so bigger batches time out and silently # contribute nothing to the reduce phase. BATCH_SIZE: "4" + # Map-phase grading (PR #53): the map call scores every article 0-100 against + # a rubric and only blocks >= SUMMARY_MIN_SCORE reach the brief. When nothing + # clears the bar the top SUMMARY_FALLBACK_TOP are used so the HUD is not blank + # (set 0 for a genuinely empty "no significant developments" brief). + SUMMARY_MIN_SCORE: "60" + SUMMARY_TOP_N: "12" + SUMMARY_FALLBACK_TOP: "3" NEWS_SUMMARIZE_INTERVAL_S: "900" NEWS_SUMMARIZE_RUN_ON_START: "1" NEWS_RECAP_HOUR: "23" diff --git a/apps/base/osint/news-summarizer-deployment.yaml b/apps/base/osint/news-summarizer-deployment.yaml index cab7b5e..ed4fd1a 100644 --- a/apps/base/osint/news-summarizer-deployment.yaml +++ b/apps/base/osint/news-summarizer-deployment.yaml @@ -23,7 +23,7 @@ spec: kubernetes.io/hostname: siriussec containers: - name: news-summarizer - image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-c48788d4b614 + image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-2c41737d42dd imagePullPolicy: IfNotPresent # Loop: batch the last window, call Nous Portal, write summaries. command: ["python", "run_news_summarizer.py"]