Skip to content

fix(runner/alerts): stop leaking internal matcher names into finding descriptions - #552

Merged
blue4209211 merged 1 commit into
mainfrom
fix/finding-description-internal-trigger-name
Jul 30, 2026
Merged

fix(runner/alerts): stop leaking internal matcher names into finding descriptions#552
blue4209211 merged 1 commit into
mainfrom
fix/finding-description-internal-trigger-name

Conversation

@mayankpande88

Copy link
Copy Markdown
Contributor

Description

Before: every trigger-matched finding stored the description Trigger 'babysitter_deployment' matched on agent (raw event in evidence) (or the equivalent for other matchers). That internal trigger name renders verbatim in the event UI and is fed into AI-investigation evidence, where it reads as noise and is misleading — it describes the watcher, not what happened.

Now: MatchedTrigger.Description() returns an operator-facing one-liner per aggregation key, mirroring how Title() already switches — e.g. a configuration change says the resource's spec was changed and points at the attached diff; CrashLoopBackOff, OOMKilled, ImagePullBackOff, job failure, node conditions, and service-no-endpoints each get a plain-language description. Internal matcher names no longer appear anywhere user-facing.

Existing stored events keep their old description; new findings pick this up on the next agent release.

How Has This Been Tested?

  • make test in runner/ — full suite green.
  • go vet clean for the changed package (the one gosec finding is pre-existing in pkg/observability/signoz, untouched here).

…descriptions

The stored event description for every trigger-matched finding was the
placeholder "Trigger '<matcher>' matched on agent (raw event in
evidence)" — internal trigger vocabulary (babysitter_deployment, ...)
rendered verbatim in the UI and in AI-investigation evidence, where it
reads as noise and misleads. Descriptions now say what happened on the
cluster per aggregation key (config change with spec diff attached,
CrashLoopBackOff, OOMKilled, image pull failure, ...).
@mayankpande88
mayankpande88 requested a review from a team as a code owner July 30, 2026 09:35

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Description() method of MatchedTrigger in runner/pkg/alerts/finding.go to return user-friendly, operator-oriented descriptions based on the AggregationKey instead of internal matcher/trigger names. I have no feedback to provide as there are no review comments.

@blue4209211
blue4209211 merged commit cdcc22f into main Jul 30, 2026
7 checks passed
@blue4209211
blue4209211 deleted the fix/finding-description-internal-trigger-name branch July 30, 2026 09:40
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.

2 participants