← Back to Pull requests

feat: move AICR triage to native issue priority #3891

Closed
unknown closed this pull request without merging on Nov 18, 2026 15:36 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 10:20 UTC
Author

Summary

Move AICR triage to the native issue Priority field and repository workflow labels. Use the native field for stale-issue protection and route contributors to repository issue queues.

Motivation / Context

This supplies the repository-level Priority input for the claim-expiry policy and lets triage run without access to Project #248.

Fixes: <!-- #123 if this closes the issue, else N/A -->
Related: #3014

Type of Change

<!-- Check all that apply -->

  • 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: Issue intake, lifecycle automation and repository triage
  • Implementation Notes

  • Map Urgent and High to P0, Medium to P1, and Low to P2. Keep new issues in intake until an explicit triage decision.

  • Protect P0 and P1 issues through their published fix windows. A read-only workflow dispatch verifies access to the native field with the Actions token.
  • Testing

    env -u GITLAB_TOKEN make qualify
    golangci-lint run -c .golangci.yaml ./pkg/cli/...
    node --test .github/scripts/stale-issues.test.cjs
    actionlint .github/workflows/triage.yaml .github/workflows/stale.yaml
    

    Qualification passed with 86.4% coverage. The 22 stale-policy tests and the
    Priority documentation regression test passed.

    Risk Assessment

    <!-- Select one and explain -->

  • 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: Verify the read-only dispatch and then seed workflow labels after the intake change is live. Retire the project after verifying data parity and repository triage.

    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: 354 lines (+265 / -89) across 4 files Reviewer: lalitadithya Review duration: 315m
    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 · 354 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.351
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3891"
    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.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    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: 16.8% · Safe to merge
    16.8%
    Repository