From 7edb32f6276032caeb4595165dde34d8f70f5104 Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Fri, 13 Nov 2026 21:58:06 -0500 Subject: [PATCH] =?UTF-8?q?apps(osint):=20summarizer=20fa745ee3f7ae=20?= =?UTF-8?q?=E2=80=94=20closed=20window=20+=20fallback=20score=20floor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #54: get_recent_news() now ends at NOW() so future-dated event listings are no longer re-graded every interval, and the fallback can only pick blocks with score >= SUMMARY_FALLBACK_MIN_SCORE (40) instead of taking the top N blind. --- apps/base/osint/configmap.yaml | 3 +++ apps/base/osint/news-summarizer-deployment.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/base/osint/configmap.yaml b/apps/base/osint/configmap.yaml index 4a46b4a..29e5b8e 100644 --- a/apps/base/osint/configmap.yaml +++ b/apps/base/osint/configmap.yaml @@ -72,6 +72,9 @@ data: SUMMARY_MIN_SCORE: "60" SUMMARY_TOP_N: "12" SUMMARY_FALLBACK_TOP: "3" + # Lowest score the fallback may pick when nothing clears SUMMARY_MIN_SCORE; + # below this the brief is the honest "no significant developments" one. + SUMMARY_FALLBACK_MIN_SCORE: "40" 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 ed4fd1a..7e39ca1 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-2c41737d42dd + image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-fa745ee3f7ae imagePullPolicy: IfNotPresent # Loop: batch the last window, call Nous Portal, write summaries. command: ["python", "run_news_summarizer.py"]