Per-system correlation_enabled=false is ignored: the call still correlates, with empty tags, down the thin/recency path #75
Closed
opened 2026-08-25 21:30:50 -04:00 by logan
·
1 comment
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#75
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 correlation pass on the 2026-08-25 evening unattended run.
The defect
app/routers/upload.pyresolves AI feature flags through a local_flag()helper (:276-280) that correctly applies per-systemai_flagsoverrides on top of the globalconfig/ai_featuresdocument. Step 1 (STT,:286) and Step 2's entry (:298) both use it.Line 313 does not. It tests the raw global
flags["correlation_enabled"]instead of_flag("correlation_enabled").Failure scenario
Global
correlation_enabled = true, one system opted out via its ownai_flags.correlation_enabled = false:scenesstays empty.if not scenesfallback (:347-362) runs anyway and correlates the call with empty tags.So the per-system opt-out does not opt the system out of correlation. It opts it out of good correlation and leaves it doing the worst kind — blind recency attachment.
Impact
This is the control you would reach for to keep a noisy or low-value system out of a paid AI evaluation window, or to bound spend for a comped friends-and-family node (#50). It does not hold. Anyone who has set it believes they are protected and is not.
Both live systems currently have
correlation_enabled = true, so this did not affect the 2026-08-25 window.Fix
Change
:313to_flag("correlation_enabled"). Add a test asserting that a system-levelfalseunder a globaltrueproduces neither extraction nor a correlation attempt.Note on shipping this
routers/upload.pyis one of the four files board minutes #62 decision 9 froze for autonomous push tomainuntil the deploy rollback (#65) lands.Refs #50, #45, #65, #62.
Fixed and deployed.
d18e4f0, live on prod/healthat 2026-08-27 06:55 UTC.upload.py:313now resolves through the per-system helper instead of the raw global flag, so a system withai_flags.correlation_enabled = falseunder a globaltruegets no scene extraction and no correlation attempt — including the empty-scenes fallback, which was the actual harm. The opt-out no longer degrades the system to blind recency attachment.Root cause was structural, so the fix is too: the resolver moved out of
upload.pyintofeature_flags.resolve_flags(). It had been a local helper, which is exactly why one of its three call sites could drift out of sync without anything noticing.transcription.pyandcalls.pynow use the same function.Tests added as this issue asked (
tests/test_ai_flag_gating.py):resolve_flags(system false beats global true; global false beats everything; absent key inherits);test_per_system_opt_out_blocks_the_blind_recency_fallback_too, which asserts_correlate_with_consensusis never awaited — this is the specific regression guard, since skipping extraction alone was never the bug;Suite: 264 passed, 0 failed. Reviewed by the correlation pass before push (initial verdict HOLD on an unrelated defect in the same diff, re-verified SHIP after the fix).
Closing.