← Back to Pull requests

Build Open Policy Agent filters only with opa tag #4431

Merged
adri merged 13 files (351 lines) on Nov 24, 2026 13:05 UTC
View on GitHub
adri adri commented on Nov 13, 2026 22:03 UTC
Author

Fixes #4429

Builds the Open Policy Agent filters only with the opa build tag, as discussed in the issue.

  • The default cmd/skipper build drops from 270 to 115 modules and from 110 MB to 48 MB.

  • Options and flags stay in both builds, so the API and config files do not change. Without the tag, -enable-open-policy-agent fails at startup with a clear error.

  • The config package now takes the OPA flag defaults from filters/openpolicyagent/defaults, which has no dependencies.
  • Release binaries, container images, vet, staticcheck and the test targets use -tags opa, so released artifacts keep the OPA filters. Please say if you prefer the release builds without OPA instead.

    Diff: 351 lines (+264 / -87) across 13 files Reviewer: MustafaSaber Review duration: 15302m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.56) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.56 · 351 lines diff across 13 files
    0.56
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.54 · 2 substantive comment(s)
    0.54
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    71%
    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.351
    Real PR Conversation Timeline
    5 items
    szuecs szuecs commented on Nov 16, 2026 16:12 UTC
    Contributor

    @adri can you create the PR to cwfreeze instead of master branch?
    We are for 2-3 weeks only able to merge it to cwfreeze.

    adri adri commented on Nov 16, 2026 16:14 UTC
    Author

    Done, it now targets cwfreeze.

    MustafaSaber MustafaSaber approved these changes on Nov 16, 2026 18:33 UTC
    Approved Reviewer

    Approved these changes.

    szuecs szuecs approved these changes on Nov 24, 2026 11:45 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    adri adri
    Labels
    risk: low confidence: 71.6% 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: 55.7% (MEDIUM) · Higher = larger blast radius
    55.7%
    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: 71.6% · Lower = rushed or shallow review
    71.6%
    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.8% · Safe to merge
    15.8%