Skip to content

feat(agent): emit templated alerts when AI is unavailable - #314

Merged
hoalongnatsu merged 1 commit into
mainfrom
feature/update
Jul 24, 2026
Merged

feat(agent): emit templated alerts when AI is unavailable#314
hoalongnatsu merged 1 commit into
mainfrom
feature/update

Conversation

@hoalongnatsu

Copy link
Copy Markdown
Member

Detection is already AI-free (the brain's SignalDetector), but emitDetect
dropped the alert whenever AI was off, quota-limited, or errored — so an
operator with no AI key got silent detection. Build a deterministic
templated finding on those paths and send it through the existing emitter,
so a brain-detected anomaly is never silently dropped. AI becomes an
enrichment layer, not the alerting gate.

  • new deterministic_finding.go: pure builder (title/summary/severity/
    confidence) from the AgentResult + deviation sigma, redacted samples only
  • emitDetect: AI-off/quota/error now emit (emitted_basic / _quota / _error);
    AI-success + cache paths unchanged
  • audit: Model="heuristic" + heuristic marker distinguish templated incidents
  • remove the misleading "no incidents will be emitted" boot WARN
  • docs: detect mode pages with or without an AI key

@hoalongnatsu
hoalongnatsu merged commit f7a9dc3 into main Jul 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant