← Back to Pull requests

docs(design): add ADR-032 portable AICR integrations #3940

Closed
unknown closed this pull request without merging on Nov 20, 2026 16:38 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 14:08 UTC
Author

Summary

Adds ADR-032 (status: Proposed). It records the decision that AICR uses vendor-neutral contracts across the framework and makes hardware- or platform-specific behavior pluggable where needed. Docs only: one new file, no code, schema, or recipe changes.

Motivation / Context

When the core workflow assumes one environment, adding another can require changes across recipe selection, discovery, and validation. That raises the cost of contributing and maintaining an integration. This ADR records the decision that the work under the epic below builds on.

Fixes: N/A
Related: #3920

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: ____________
  • Implementation Notes

  • The ADR is short on purpose. It states the decision, the three areas it applies to (configuration catalog, cluster discovery, validation and evidence), and the qualification bar. The contracts for each area are proposed separately.

  • Status is Proposed. Approval of this PR is the ratification: the status moves to Accepted before merge, as with ADR-022, which was accepted by ratification in the PR that added it (#2373).
  • Testing

    make check-docs-filenames check-docs-mdx check-docs-mdx-parse check-docs-links
    

    All four pass. The file contains no links, so the link check has nothing to resolve in it.

    Full make qualify was not run. The change is one Markdown file under docs/design/, and the Go tests that scan docs exclude that directory (pkg/cli/docs_claims_test.go, pkg/server/docs_examples_test.go).

    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

    Checklist

  • Tests pass locally (make test with -race) (not run: docs only)

  • Linter passes (make lint) (docs gates only, see Testing)

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

  • I added/updated tests for new functionality (N/A)

  • I updated docs if user-facing behavior changed (N/A: no behavior change)

  • Changes follow existing patterns in the codebase

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