fix(osint): run the PR #72 summarizer (fail-loudly + concurrent map phase)

The resilience fix sirius/osint-dashboard@fb5285d (PR #72) was merged but
never deployed: ns osint still ran the 11/19 image amd64-fe2b5df369d0, which
has neither the concurrent map phase nor NousAPIError, so a non-retryable
Nous rejection was swallowed as an empty completion and the analyst idled
for nine days without a single signal.

* pin deploy/osint-news-summarizer to the CI-built amd64-fb5285df7f38
  (build run 1497 / job 2165, manifest sha256:e2387f90...4de52)
* pin osint-analyst-exporter to the same tag — it borrows the summarizer
  image for python3 + psycopg2, and two tags for one image read as drift
* SUMMARY_MAP_CONCURRENCY=16 next to BATCH_SIZE: ~20 s per map call, the
  746-batch recap measured 951 s at 16 (8 projects to ~98 min)
* README: image inventory + a section on the new behaviour and log line
This commit is contained in:
Lance Walters 2026-12-05 00:29:11 -05:00
commit 2f613e4f11
4 changed files with 35 additions and 4 deletions

View file

@ -15,7 +15,7 @@ instead of a host Docker container on the Pi.
| `osint-camera-service` | same app image | public-camera discovery + snapshots (PVC `osint-camera-snapshots` 3 Gi, shared with the app) |
| `osint-titiler` | `forgejo…/sirius/titiler:0.26.0` | SAR COG tile proxy, exposed same-origin at `/titiler` |
| `osint-news-scraper` | `forgejo…/sirius/osint-news-scraper:amd64-58f71f5b4520` | Scrapy news scraper loop |
| `osint-news-summarizer` | `forgejo…/sirius/osint-news-summarizer:amd64-fe2b5df369d0` | "analyst" — Nous Portal briefs every 15 min + 23:00 recap |
| `osint-news-summarizer` | `forgejo…/sirius/osint-news-summarizer:amd64-fb5285df7f38` | "analyst" — Nous Portal briefs every 15 min + 23:00 recap |
Every workload is pinned to `kubernetes.io/hostname: siriussec` (Gateway/Envoy
co-location + local-path PVs).
@ -141,6 +141,21 @@ because `chat()` swallows non-200s and returns an empty string. It is set in
`configmap.yaml`; changing it in the UI (`PUT /api/settings`) only takes effect
when the env var is empty, because `resolve_model()` prefers the env.
## Analyst resilience + map concurrency (PR #72)
`SUMMARY_MAP_CONCURRENCY` (16, in `configmap.yaml`) sets how many map calls are
in flight. Each call is a ~20 s wall clock, so the phase is latency-bound: the
746-batch recap measured **951 s** end-to-end at 16, where 8 is projected at
~98 min. The code default is also 16; the env var is pinned so a default change
upstream cannot silently stretch the 15-min interval past its window.
A non-retryable Nous rejection (400/404/422 — e.g. a retired model id) now
raises `NousAPIError` and aborts the run with `rc=1` instead of being swallowed
as an empty completion, so the failure shows up in the pod log on the *first*
tick rather than as nine days of "idle" ticks. The per-run summary line is
`summarize done kind=<interval|recap> summary_id=… model=… batches=… articles=…
ticker=… map=… elapsed=…s`.
## Analyst grading (PR #53 + #54)
The map call scores every article **0-100** against a rubric in the same request