transcript_correction.py accepted the model's rewrite verbatim — a real ten-code got swapped for a different real ten-code #162
Closed
opened 2026-09-20 21:51:25 -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#162
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 live while reviewing the correction pass's output against raw transcripts (2026-09-21).
correct()'s prompt tells the model "Do NOT expand ten-codes" and "NEVER add information" — but nothing in the code checked that.raw["corrected"]was accepted verbatim once it passed basic non-empty/changed checks; thechangedfield it returns is logged "for audit" and never validated against anything.Caught on the "Shots Fired at Home Street and Forest Ave" call (talkgroup 8026): the same call's raw vs corrected transcript showed "10-7" rewritten to "10-13" in one place and to "10-4" in another, and a bare "7" expanded into "ShotSpotter". The place-name fixes alongside it were good (Holmes Street and 4th and Rowe → Home Street and Forest Ave, using this system's own vocabulary) — the corrector isn't broken in general, it just has no leash on what kind of token it's allowed to touch.
Why this is worse than it sounds for a public-safety tool: a wrong 10-13 (officer needs assistance) standing in for an actual 10-7 (out of service) reads exactly as confident and trustworthy as a correct transcript. There is no visible sign downstream that anything was invented.
Fixed in this pass:
_code_tokens()extracts every ten-code/signal-shaped token (\d{1,3}(?:-\d{1,3})+— covers "10-4", "4-2", and case-number fragments like "7-2-1") from the original and the corrected text/segments; if the set changes at all, that half of the correction is discarded and the raw text is kept instead. Independently checked for the joined text and for segments, matching the existing all-or-nothing segment-alignment rule. Tests added totests/test_transcript_correction.pycovering: a changed code, an invented code, a legitimate place-only correction that must still pass, and a segment-level code change discarding only the segments (not the independently-clean joined text).What this does NOT fix, and can't cheaply: a wrong word substituted for another equally plausible word that isn't code-shaped (a street name changed to a different real street name, say). That class of error still relies entirely on the model following its own prompt. Tracked as part of the broader STT-quality initiative filed alongside this.
Correction: the commit message for this fix (
241a15b) says "Filed server-26#161 for the broader STT/audio quality initiative" — that's wrong, #161 is the unrelated FIREBASE_TOKEN/Firestore-rules CI issue. The STT initiative this fix belongs alongside is #163, filed after this commit landed. Not amending the pushed commit for a message-only error; leaving this comment as the correction.Fixed in
7ecfca7, deployed to prod as4fab959on 2026-11-08 (/health confirms).