← Back to Pull requests

tracingpolicy: Apply CRD defaults in nok8s builds #6102

Open
unknown opened this pull request with 216 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 18, 2026 12:39 UTC
Author

<!--
Thanks for contributing! Please ensure your pull request adheres to the following guidelines:

  • All commits contain a well written commit message and are signed-off (see Submitting a pull request).

  • All code is covered by unit and/or end-to-end tests where feasible.

  • All generated files are updated if needed (see Making changes).

  • Provide a title or release-note blurb suitable for the release notes (see guidelines).

  • Update documentation and write an upgrade note if needed (see guidelines).

  • Are you a user of Tetragon? Please add yourself to the Users doc in the Cilium repository.

  • Consult https://github.com/cilium/community/blob/main/AI-POLICY.md for PRs that

  • use Generative AI.
    -->

    Description


    <!-- Please describe quickly the change but most importantly the reason or context of your change -->

    The nok8s parser validated and decoded a policy without the schema defaults that the API server and the k8s build apply. It rejected an argument without type and did not treat a kprobe without syscall as a syscall kprobe. Both builds now decode a policy to the same spec, so a nok8s kprobe on a non-syscall function needs syscall: false.

    Changelog


    <!-- Enter the release note text in the codeblock below if needed or remove this section! -->

    ``release-note
    tracingpolicy: Apply CRD defaults in nok8s builds
    ``

    Diff: 216 lines (+162 / -54) across 2 files Reviewer: mtardy Review duration: 8756m
    All Vouch review confidence checks passed
    Residual risk 0.32 = Change Risk (0.60) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 216 lines diff across 2 files
    0.60
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.322
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #6102"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed sensitive_module
    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: 59.8% (MEDIUM) · Higher = larger blast radius
    59.8%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 31.9% · Safe to merge
    31.9%