resolved and reassignment are prompt-only invariants with no validator, so a string "false" resolves an incident
#88
Closed
opened 2026-08-30 02:44:06 -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#88
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 static correlation pass, unattended run 2026-08-30. Static reading only. Searched open and closed — not a duplicate of the closed #18, which is about incidents never recording
resolved_at; this is about the extractedresolvedflag being unvalidated on the way in.What happens
intelligence.py:275-276coerces both fields with a barebool(). There is no allow-list guard of the kind_VALID_INCIDENT_TYPESalready provides for incident type. Because a non-empty string is truthy in Python, a model returning the JSON string"false"— rather than the booleanfalse— is read as True. These values come straight from an LLM, so the type is a prompt convention, not a guarantee.Consequences
resolvedtruthy atrouters/upload.py:342-348writesstatus: resolvedonto whatever incident the scene linked into. On a scene that linked into a long pre-existing incident chain it has no real claim to, that closes someone else's incident — and it then cascades throughmaybe_resolve_parent.reassignmenttruthy blanks units atrouters/upload.py:324and changes which fit path the call takes.This is the same hazard class
DEFERRED.mdalready records for the severity ladder, now on two newer fields that never got the same treatment.Fix direction
Validate before coercion: accept only a real
bool, or an exact-match string from a small allow-list, and treat anything else as absent rather than as True. Failing closed is clearly correct for both fields — a missed resolution costs a stale open incident, while a false one silently closes a live one.Not verified
No live data this run. It is unmeasured whether the model in use has ever actually emitted a non-boolean for either field. The defect is that nothing would catch it if it did, and nothing would show it had happened.
Refs #80, DEFERRED.md (severity ladder).
Additional finding at
29c2fb1, static correlation pass, unattended run 2026-08-31. Folding into this issue rather than forking it, since it is the same invariant failing.The
bool()-coercion problem this issue describes has a consequence worse than a bad flag value: theresolvedwrite is not gated on how the scene linked.upload.py:227-233and:342-348act onresolvedregardless of the correlation path that produced the link. A scene that attached to an incident via thefast/thinrecency path - on recency alone, with no location match and no content match - can still carryresolved=trueand close that incident.So a thin, weakly-attached scene can resolve an incident it was never really part of. The incident stops accepting calls and drops out of the active set while the real event is still running on the air.
Suggested scope, in order:
resolvedandreassignmentas actual booleans at the extraction boundary rather than trusting the prompt (this issue's original scope).resolvedaction on the link path - do not honour a resolve that arrived via afast/thinattach. A resolve should require a link the correlator was actually confident about.Note that both
upload.pyandintelligence.pyare entirely untested. The existingdrb-c2-coresuite covers only the gate, dedup and identity paths ofincident_correlator.py, so any fix here needs its test written from scratch, and that is most of the work.Fixed in
240bbee, deployed to prod as4fab959on 2026-11-08 (/health confirms).