summarizer reads the whole-call transcript per incident — next leg of the #80/#95/#102 scene-context leak #114
Closed
opened 2026-09-07 00:12:58 -04:00 by logan
·
3 comments
No Branch/Tag Specified
Labels
Clear labels
area/ai-pipeline
area/auth
area/billing
area/correlation
area/discord
area/frontend
area/governance
area/growth
area/infra-deploy
area/legal
area/map
area/mqtt
area/node-ota
area/osint
area/recording-audio
area/sdr-radio
area/transcription
board
board:agenda
minutes:draft
minutes:final
role:ceo
role:cfo
role:cio
role:ciso
role:cmo
role:coo
role:cto
Scene/entity extraction, summarizer, AI providers, embeddings
AuthN/Z, roles, tenancy/org scoping, API keys, credentials
Plans, entitlements, AI spend accounting and caps
Incident correlation, linking, lifecycle, severity, corr_debug
Discord bot, radio bots, voice streams, bot tokens, webhooks
Web UI: Next.js app and the edge-node local dashboard
Board process, minutes, unattended runner, agent tooling
Go-to-market, outreach, cold email, discovery conversations
CI/CD, VM, registry, Firestore rules/indexes deploy, Terraform/Caddy
ToS, retention, licences/DAAs, CAN-SPAM, E&O, name suppression
Live map: pins, paths, tiles, legend, geocoding
Node-C2 MQTT, checkins, commands, node sweeper, dynsec
Node install, enrollment, OTA updater, image skew
External feeds: cameras, 511, ADS-B, AIS, outages, and their licences
Call capture, boundaries, PulseAudio, ring buffer, trimming, attribution
OP25 decode, SDR hardware/tuning, conventional, second SDR, mesh radio
STT, transcript correction, place verification, name accuracy
Board process: minutes and board-filed items
Needs board scoping at the next sitting; CEO removes the label once scoped
One exec pre-read, closed by CEO
CEO ruling; open until enacted
Filed by the CEO
Filed by the CFO
Filed by the CIO
Filed by the CISO
Filed by the CMO
Filed by the COO
Filed by the CTO
kind
behavior-bug
Wrong product behavior; the instrument reads it correctly
kind
measurement-bug
Corrupts the recording/instrument (debug data, evals, health checks), not behavior
priority
p0
Drop everything: prod broken, live exposure, or owner-ruled P0
priority
p1
Next up: blocks a gate, a customer, or core incident quality
priority
p2
Normal: real defect or planned work, schedule in turn
priority
p3
Low: minor, cosmetic, or someday
status
blocked
Waiting on an external party, spend, or another issue
status
in-progress
Branch or PR open against it
status
needs-decision
Waiting on an owner or board ruling before work
status
needs-info
Root cause or repro unknown; needs a reading first
type
bug
Something built is wrong: code, data, or a measurement
type
chore
Maintenance, refactor, tests, pinning, cleanup: no user-visible change
type
decision
A ruling to make or record: board minutes, owner calls, legal reviews
type
docs
Docs, runbooks, CLAUDE.md, skills, SOPs
type
feature
New capability or an extension of an existing one
type
security
Security, privacy, credential or tenant-isolation exposure
type
tracking
Tracker, checklist, initiative or punch-list spanning several changes
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: logan/server-26#114
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found by drb-correlation-review while reviewing #102.
drb-c2-core/app/internal/summarizer.py:70-71readsdoc["transcript"](whole-call) when building an incident summary, and ignorestranscript_correctedentirely. Same defect class as #87 (coords), #80/#95 (embedding/severity), #102 (LLM correlation prompt): a multi-scene call contributes text from its other scenes to an incident it was only partially part of, and the summary is built on raw rather than corrected transcription.This one is user-visible — it lands in the incident summary shown on the incident page.
Fix shape: the summarizer already iterates an incident's linked calls; for each, use that call's scene-relevant text. The per-scene
transcriptfield added tointelligence.py'sprocessed[]in #102 is written to the call doc only as the primary scene's — so either (a) persist per-scene text on the call doc (schema change, overlaps #96's per-scene debug record), or (b) at minimum switch totranscript_corrected or transcriptso summaries stop being built on raw transcription. (b) is a one-liner and worth doing now; (a) is the real fix and should ride with #96.Blocked-by / relates-to: #96 (per-scene call-doc record), #102 (the correlation half of this leak).
Fixed in #132 (fix/96-114-per-scene-call-doc), option (a) from the issue's fix shape (the real fix, riding with #96 as predicted).
Each scene's own text is now persisted on the call doc under
scenes.<scene_index>.transcript(server-26#96's new map), alongside whichincident_idthat scene resolved to.summarizer.py's new_scene_text_for_incidentreads a linked call'sscenesmap and picks only the scene(s) whoseincident_idmatches the incident being summarized, joining more than one if several scenes landed in the same incident.Also did the one-liner half (b) regardless, for calls with no
scenesfield (predates this change): falls back totranscript_corrected or transcriptinstead of rawtranscript.14 new tests (including an end-to-end
_summarize_incidenttest proving a 2-scene call only contributes its incident-relevant scene's text, not the whole-call blend), full suite 364 -> 378 passed.Review found and fixed one blocker (commit
0fe6d3b):Blocker — stale
scenesentries survived re-extraction.PATCH /calls/{id}/transcriptwipestags/severity/location/units/embeddingbefore re-running extraction, but notscenes, anddoc_set(merge=True)can only add/overwrite nested map keys, never remove one. A call corrected from 3 scenes down to 1 keptscenes.1/scenes.2with pre-correction transcripts andincident_ids forever — corrupting the exact per-scene tally #96 exists to make trustworthy, and able to re-feed stale text into #114's summarizer fix if a stale scene'sincident_idstill named a real incident. Fixed withfstore.doc_update(..., {"scenes": fstore.DELETE_FIELD})— a real delete, not a merge over{}. Addedfstore.DELETE_FIELD(re-exports the real sentinel) and a matching stub entry intests/conftest.py, which didn't have one. New test:tests/test_reprocess_clears_stale_scenes.py.Also softened an overclaiming docstring — the Firestore nested-merge behavior is verified against the
doc_setwrapper's pass-through code and Firestore's documented contract, not against a live Firestore instance (no SDK available in any sandbox this landed from).Sandboxed pytest: 378 → 380, all green.
Not fixed, noted instead (non-blocking, safe by construction): the manual-attach endpoint and any future #131 relink both skip writing a
scenesentry.summarizer._scene_text_for_incidentfalls back to whole-calltranscript_corrected or transcriptwhen no scene matches — the old #114 behavior, not an error, no data loss, just not the full per-scene fix on those two paths. Worth a follow-up if #131's relink bug turns out to be common.Fixed and merged (PR #132, commits
fae84a4+0fe6d3b) — confirmed live on main:summarizer.pyhas_scene_text_for_incident, reads per-scene text keyed by which incident that scene resolved to. This was already done, just never closed. Closing now.