← Back to Pull requests

feat(recipes): add NVKE Telemetry Pipeline (NKTP) to the registry #3451

Closed
unknown closed this pull request without merging on Oct 28, 2026 20:27 UTC
View on GitHub
unknown unknown commented on Oct 27, 2026 20:04 UTC
Author

Summary

Adds NKTP, the NVKE Telemetry Pipeline (ADR-026), as an ops registry component with values, a Chainsaw health check, and a bundle-time validation. No stock recipe selects it yet; switching recipes over is #3445.

Motivation / Context

First step of ADR-026: make NKTP available as a component so overlays can adopt it.

Fixes: #3444
Related: #3445

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

  • New feature (non-breaking change that adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to change)

  • Documentation update

  • Refactoring (no functional changes)

  • Build/CI/tooling
  • Component(s) Affected

  • CLI (cmd/aicr, pkg/cli)

  • API server (cmd/aicrd, pkg/server)

  • Recipe engine / data (pkg/recipe)

  • Bundler and deployers (pkg/bundler, pkg/component)

  • Collectors / snapshotter (pkg/collector, pkg/snapshotter)

  • Validator (pkg/validator)

  • Core libraries (pkg/errors, pkg/k8s)

  • Docs/examples (docs/, examples/)

  • Other: health check (recipes/checks/nktp), drift-report tests
  • Implementation Notes

  • Chart pinned at 0.1.1-rc.3 (moves to 0.1.1 at GA). Images are the chart's defaults at that version, with no digest overrides, per ADR-006 Decision 3.

  • ownsCRDs: true for the opentelemetry.io CRDs; ownsCRDsExcludeSubcharts drops prometheus-crds (owned by prometheus-operator-crds) and opentelemetry-operator (its conf/crds/ holds Helm templates). The NVSentinel CRD exclusion render test is generalized to TestCRDExclusionsMatchChart, which checks every entry against the pinned chart.

  • New CheckNKTPExportersHaveBackend (severity error) fails the bundle when otel-lgtm is disabled (or deferred with --dynamic) while any of the five backend exporter endpoints is unset, since the chart default points them at the missing otel-lgtm Service.

  • Node agents (daemonset collector, node-exporter, KSM pods DaemonSet) are intentionally left out of nodeScheduling so system-toleration injection doesn't replace their operator: Exists toleration.

  • Dependency edges (cert-manager, prometheus-operator-crds, kube-prometheus-stack) land with the overlays that select it.
  • Testing

    go test -race ./pkg/bundler/... ./pkg/chainsaw/... ./pkg/recipe/...
    golangci-lint run -c .golangci.yaml ./pkg/bundler/... ./pkg/chainsaw/... ./pkg/recipe/...
    make qualify
    

  • Tests pass with -race, and lint reports 0 issues. make qualify passes, with 86.1% total coverage against the 83% floor.

  • Static checks:

  • - Bundles that include nktp render on all seven deployers.
    - aicr mirror list finds all 8 images, listed by tag.
    - The stock render golden gains only a +nktp fixture.
    - The health check passes 26 synthetic cluster states in the in-process executor, and the pinned Chainsaw CLI accepts it (chainsaw lint).
  • Kind (Kubernetes 1.37), with cert-manager, prometheus-operator-crds, and nktp added through a local overlay:

  • - The CRD step applied only the 4 opentelemetry.io CRDs. The monitoring CRDs stayed owned by prometheus-operator-crds.
    - All 21 pods became ready, with preemptionPolicy: Never.
    - The health check passes on the healthy install. It fails when lgtm is removed or the metrics API is down. This ran on a copy of the check with its YAML anchors expanded; the final file expands to the identical document.
    - up series reach otel-lgtm.
    - helm uninstall runs the pre-delete hook, removes the collectors, and keeps the CRDs.
    - Test-only overrides: NKTP's metrics-server turned on, since Kind has no metrics API; fewer replicas; and smaller Target Allocator memory requests, to fit an 8 GB node.

    | Package | Coverage before | Coverage after |
    |---|---|---|
    | pkg/bundler/validations | 95.0% | 95.0% |
    | pkg/chainsaw | 82.0% | 82.0% |

    Risk Assessment

  • Low — Isolated change, well-tested, easy to revert

  • Medium — Touches multiple components or has broader impact

  • High — Breaking change, affects critical paths, or complex rollout
  • Rollout notes: N/A. No stock recipe includes the component, so existing bundles are unchanged.

    Checklist

  • Tests pass locally (make test with -race)

  • Linter passes (make lint)

  • I did not skip/disable tests to make CI green

  • I added/updated tests for new functionality

  • I updated docs if user-facing behavior changed

  • Changes follow existing patterns in the codebase

  • Commits are signed off and cryptographically signed (git commit -s -S) — GPG signing info
  • Diff: 593 lines (+444 / -149) across 7 files Reviewer: yuanchen8911 Review duration: 1463m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 593 lines diff across 7 files
    0.50
    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.382
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3451"
    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: 50% (MEDIUM) · Higher = larger blast radius
    50%
    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: 19.8% · Safe to merge
    19.8%
    Repository