← Back to Pull requests

Adopt Apache Magpie for the security workflow #5408

Open
unknown opened this pull request with 328 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 30, 2026 19:34 UTC
Author

🤖 Adopts Apache Magpie for Solr's security workflow, so PMC members who use it start from shared, reviewed configuration instead of each configuring it by hand.

Why

Magpie is an agent-assisted framework for repository maintainership. Its security skills help the PMC with the project's private security process: triaging reports from the security list, syncing JIRA security issues with their mailing-list threads and fix commits, preparing the records and drafts the ASF process needs, and reconciling with the ASF security dashboard. Every one of those skills needs Solr's specifics: JIRA project and security level, label vocabulary, release trains, mailing lists. Today that lives in each PMC member's private clone. Committing it here means:

  • all PMC members get the same, reviewable configuration;

  • corrections land once, through normal review;

  • a new PMC member can start in minutes.
  • What contributors see

    Nothing, and no extra LLM context. .claude/ stays git-ignored (the existing "only AGENTS.md checked in" policy is untouched), so no plugin or skill is enabled for anyone by this change. Only people who install Magpie themselves use it.

    What this adds

  • .apache-magpie.lock: the project floor (minimum Magpie version, and the default plugin set: setup, utilities, agent-guard, vetted-ops).

  • .apache-magpie-overrides/: the shared configuration store (see the comment below for which files are filled in and which are still templates).

  • .gitignore: /.apache-magpie-local/, the per-machine personal layer.
  • What a PMC member does to use it

    1. Install Magpie's plugins (/plugin marketplace add apache/magpie, then install magpie-setup, and magpie-security for the security skills).
    2. Optionally run /magpie-setup:setup config for personal settings: mail access, a private skill policy, and so on. That stays on their machine, in .apache-magpie-local/ or .git/apache-magpie/.

    Nothing else; the shared files are picked up from the checkout. Anyone who doesn't care can ignore the directory entirely.

    Test plan

  • gradlew check -x test passes (includes rat; the new files pass the license check).

  • No code is changed.
  • Notes for reviewers

  • Mostly new files copied from Magpie's project template, so the line count is large. The files that carry Solr-specific content are project.md, security-tracker-stats.md, and commit-attribution.toml.

  • I have not added a changelog entry: this changes tooling configuration only. Happy to add one if wanted.
  • 🤖 Generated with Claude Code

    Diff: 328 lines (+246 / -82) across 4 files Reviewer: janhoy Review duration: 1802m
    All Vouch review confidence checks passed
    Residual risk 0.37 = Change Risk (0.70) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.70 · 328 lines diff across 4 files
    0.70
    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
    Diff Size diff_size
    0.347
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.070
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #5408"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium 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: 70.2% (HIGH) · Higher = larger blast radius
    70.2%
    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: 37.4% · Moderate risk
    37.4%
    Repository