Skip to content

chore: update drain3 default log pattern weights - #78253

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
ci/train-drain3-weights-20261116
Closed

github-actions[bot] wants to merge 1 commit into
mainfrom
ci/train-drain3-weights-20261116

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This pull request updates the default Drain3 log pattern weights (pkg/agentdrain/data/default_weights.json) by training on the most recent workflow run logs.

What changed

  • Re-trained log template clusters from the latest run logs using gh aw logs --train
  • Copied resulting drain3_weights.json to the embedded defaults path

How to verify

  1. Build the binary with make build
  2. Run gh aw audit or gh aw logs --train and confirm the anomaly analysis reflects the updated patterns

This PR was created automatically by the train-drain3-weights workflow.

Copilot AI adaptive review requested due to automatic review settings November 16, 2026 04:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The embedded Drain3 baselines change production audit and log anomaly classification, so validating cluster correctness and false-positive/false-negative behavior requires representative runtime testing beyond this data-only diff.

No open issues 🎉

What changed in this PR

Updates the embedded Drain3 default weights used by log anomaly analysis with newly trained data from recent workflow run logs while preserving the existing configuration and snapshot structure.

Changes:

  • Refreshes the trained cluster sizes for the finish and plan stages.
  • Reformats the generated JSON arrays while preserving masking rules, thresholds, and cluster templates.
File Description
pkg/​agentdrain/​data/​default_weights.json Refreshes the embedded Drain3 training snapshots and cluster weights used by default log anomaly analysis.

Review effort: Lite (dynamic)

@github-actions

Copy link
Copy Markdown
Contributor Author

Triage

  • Category: chore
  • Risk: low
  • Score: 42/100 (impact 14 + urgency 10 + quality 18)
  • Recommended action: auto_merge
  • Notes: low-risk operational change with good quality signal.

Generated by 🔧 PR Triage Agent · copilot · mai11 · ~9 AIC · ⌖ ~2 AIC · ⊞ 15.3K · ◷

@github-actions

Copy link
Copy Markdown
Contributor Author

Category: chore
Risk: low
Total score: 42/100
Score breakdown: impact 23 + urgency 12 + quality 8 = 42
Recommended action: auto_merge
Batch: none

Generated by 🔧 PR Triage Agent · copilot · mai11 · ~6 AIC · ⌖ ~2 AIC · ⊞ 15.3K · ◷

@github-actions

Copy link
Copy Markdown
Contributor Author

Category: chore | Risk: low | Total score: 42 (impact 0/urgency 0/quality 0) | Recommended action: auto_merge | Batch: none

PR: #78253 — chore: update drain3 default log pattern weights

Generated by 🔧 PR Triage Agent · copilot · mai11 · ~7 AIC · ⌖ ~2 AIC · ⊞ 15.3K · ◷

@pelikhan pelikhan closed this Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants