← Back to Pull requests

remove --enable-export-aggregation and related flags #5988

Closed
unknown closed this pull request without merging on Nov 03, 2026 18:07 UTC
View on GitHub
unknown unknown commented on Oct 30, 2026 21:05 UTC
Author

Description

--enable-export-aggregation doesn't do anything useful. The aggregator's
handleEvent only has a default case that sends each event unchanged, so its
cache is never filled and AggregationInfo is never set. Turning it on only
adds a goroutine and a channel hop to the export path, and events can be
dropped when the aggregator's buffer fills up.

This PR removes the feature:

  • option: remove --enable-export-aggregation,

  • --export-aggregation-window-size and --export-aggregation-buffer-size.
  • docs: regenerate the flags reference.

  • server: remove pkg/aggregator and send events directly in GetEvents.

  • api: remove AggregationOptions, AggregationInfo,

  • GetEventsRequest.aggregation_options and
    GetEventsResponse.aggregation_info, and reserve their field numbers (3 and
    1002) and names.
  • api: regenerate the protobuf code, docs and vendored copies.
  • Compatibility (also covered in contrib/upgrade-notes/latest.md):

  • Passing the removed flags on the command line, including through Helm's

  • tetragon.extraArgs or tetragon.argsOverride, now stops the agent from
    starting.
  • Setting them in a config file, a config directory (such as the

  • tetragon-config ConfigMap) or a TETRAGON_ environment variable has no
    effect.
  • The API change is wire compatible. aggregation_options from older clients

  • is ignored as an unknown field, and aggregation_info was never set. Only
    code that references the removed Go types or fields needs updating.

    Note for reviewers: the lint-proto job's check-breaking step is expected
    to fail, because the API removal is intentional. make protogen stops at the
    same check, so the generated files were produced with every protogen step
    except the breaking check. The commit message lists the exact commands.

    Changelog

    ``release-note
    Removed the
    --enable-export-aggregation, --export-aggregation-window-size and --export-aggregation-buffer-size flags and the AggregationOptions/AggregationInfo gRPC API fields. Aggregation never had any effect. See the upgrade notes.
    ``

    Diff: 264 lines (+198 / -66) across 3 files Reviewer: mtardy Review duration: 5582m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 264 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.334
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5988"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.3% (MEDIUM) · Higher = larger blast radius
    39.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.5% · Safe to merge
    15.5%