intelligence: shadow-mode upstream dispatch-vs-chatter classifier (#127) #128
No Reviewers
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
No labels
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#128
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.
Closes #127. Related: #115,
CORRELATION_REVIEW_0907.md,CORRELATION_REVIEW_0907b.md,CORRELATION_REVIEW_0912.md.Why
Three live measurement windows and two consensus-layer fixes (#125, #126) all converged on the same conclusion: the disagreement shape those PRs target (
corr_llm_action==orphan,corr_rules_action==new) is real but structurally small — backtesting a perfect version of that gate against window #3's own data caps out around 14/57 single-call "junk" incidents in a 4h window. 43/57 are outside its scope, and the largest bucket (15/57,agreed) is structurally unreachable from the consensus layer at all — both correlator tiers independently called it a new incident, no disagreement exists to arbitrate.Decision in both review docs: stop iterating the consensus layer. Move the fix upstream — recognize non-event radio housekeeping in scene extraction before it ever produces a scene.
What this ships
drb-c2-core/app/internal/chatter_classifier.py—classify_chatter(transcript) -> (bool, reason), a pure function with no I/O. Recognizes two shapes drawn from hand-labeled examples in the review docs, cross-referenced against the real dumps:roll_call— a roll-call announcement or line-upbare_acknowledgement— every token in the transcript is a callsign/unit-ID (digit-led token) or a small fixed set of procedural filler words ("central", "affirmative", "10-4", "stand by", "show me", "clear", ...)Anything else — a location, an action, a description, an unrecognized word — leaves the call unclassified:
(False, None). No fuzzy scoring, no thresholding; a transcript either cleanly reduces to one of these two shapes or it doesn't.This is SHADOW MODE ONLY. Nothing skips scene extraction.
intelligence.extract_scenescomputes the verdict next to the existing_is_garbage_transcript/transcript_too_shortgates and writeschatter_classifier_verdict(bool) +chatter_classifier_reason(str|None) onto the call doc, then runs extraction exactly as it does today regardless of the verdict.admin.py's correlation-debug_call_summarynow surfaces both fields, same pattern ascorr_gate_vetofrom #126, so a live window can read the real-world false-positive rate directly instead of it being invisible.A
TODO(server-26#127)at the call site inintelligence.pymarks exactly what has to happen before this flips live.Backtest (offline, against all three existing dumps)
corr_dump_9-7_0437am.json(window #1)corr_dump_9-7_pm.json(window #2)corr_dump_9-12.json(window #3)False positive = a flagged call carrying tags, coords, or non-routine severity — zero across all 1002 calls. Individually re-verified against every transcript the review docs named as dangerous to drop: the major "extinguishing fire" call (severity=major), the geocoded 911-hangup call, both pursuit updates (severity=major), the "6 Alpha... Pelham Station" subject check, the property-retrieval call, the Maronex subject check, the milepost-13.7 trespass call, the MVA call — all confirmed
(False, None).Catch rate against a proxy chatter-universe (severity none/routine, no tags, no coords, no resolved incident_type — a superset that also includes mid-conversation fragments of real events, so this undercounts precision on the narrower true-chatter set): 55/343 (16%), 72/271 (27%), 27/201 (13%). Recall is intentionally low. Deliberately left uncaught rather than risk a broader net: garbled spelled-out roll call ("Five units. Six hundred. Eighty-four. Ten-four."), ambiguous check-ins with a stray content word ("7-4, call Central. 6-9, location."), CID/plate/case-number readbacks that mix in other words.
Tests
drb-c2-core/tests/test_chatter_classifier.py— real transcripts from the dumps/review docs, both directions (chatter → True, every named-dangerous real event → False). Sandboxed pytest: 332 → 364, green.Next step — explicitly NOT done here
This PR ships measurement infrastructure, not a behavior change. Before any live flip:
extract_scenesand writeskip_reason="non_event_chatter".🤖 Generated with Claude Code
https://claude.ai/code/session_01Tbknwttzou4s46PAykmtix