corr_debug is overwritten per scene on the shared call doc, so #35's "LLM tier decides 3.5% of links" is a per-call blend and cannot answer whether the tier works #96
Closed
opened 2026-09-01 02:43:34 -04:00 by logan
·
2 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#96
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 the standing P0 correlation static pass, unattended run 2026-09-01, at
b722223. New since theCORRELATION_REVIEW_0820.mdbaseline — the baseline's §7 complaint was that these fields were not exposed at all, and that part is now fixed atadmin.py:134-136. This is the next layer of the same problem: they are exposed, but they are not trustworthy.The defect
Every scene of a multi-scene call writes
corr_debugonto the same call doc (incident_correlator.py:1321), with partial keys, last-write-wins. A call carrying three scenes ends up withcorr_pathfrom whichever scene wrote last andcorr_consensus/corr_llm_action/corr_llm_reasonfrom a different one. The record does not describe any single correlation decision — it is a splice of several.admin.py:292-295then tallies these per call.Why this matters more than a cosmetic debug bug
It invalidates the measurement #35 is built on. #35 states the LLM correlation tier decides only 3.5% of links and that the fast/thin path dominates. That number is computed off a per-call blend, so it is not a per-link rate and cannot be converted into one after the fact. The tier could be deciding materially more or materially less; the instrument cannot tell us.
Consequences that follow:
corr_pathdistribution across runs. For multi-scene calls that trend line is noise, and multi-scene calls are exactly the population where over-split (#5) and over-merge live.Fix shape
corr_debugshould be per scene, keyed by scene index, not a single map on the call doc — e.g. a list or a map keyed by scene id, each entry complete in itself.admin.pythen tallies per scene, which is the unit correlation actually operates on. Once that lands, #35's 3.5% figure must be re-measured before anything is concluded from it, and this issue should be referenced when it is.Cheap interim option if the schema change is too large for one pass: write the scene index into each
corr_debugentry and have the tally count only single-scene calls, so at least the reported rate is honest about its population.Test gap
Nothing covers the multi-scene
corr_debugwrite.drb-c2-coreis 290 pass / 0 fail at HEAD; this path is outside the tested gate and dedup paths, like the other two findings from this pass.Related: #35 (its metric is the thing invalidated), #57, #80, #5. Comment left on #35 so its number is not read at face value in the meantime.
Fixed in #132 (fix/96-114-per-scene-call-doc).
Added a per-scene
scenes.<scene_index>map on the call doc (incident_correlator._apply_and_log, additive,doc_set(..., merge=True)— confirmed Firestore recursively merges nested maps, so each scene's write lands in its own map key instead of colliding). Each entry carries that scene's owntranscript, theincident_idit resolved to, and its fullcorr_debug. The existing flatcorr_*fields are left exactly as they were (last-scene-wins) for backward compatibility.admin.py's_call_summarynow exposes asceneslist per call, and the summary tally iterates scenes-if-present else falls back to the flat fields for old-schema docs — a 2-scene call now counts as 2 data points instead of 1 blended one. Newscene_decision_countnext tolinked_call_countmakes the distinction visible.Per the fix-shape note in the issue: #35's 3.5% figure should be re-measured now that the tally is honest about its population — flagging that here since this issue is what invalidated it.
14 new tests, 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.