← Back to Pull requests

refactor(api): move plugin configuration and catalog storage into services #405

Re-review Required
chrispian merged 14 files (849 lines) on Oct 02, 2026 01:34 UTC
View on GitHub
chrispian chrispian commented on Oct 02, 2026 01:31 UTC
Author

Plugin configuration and catalog handlers now call narrow services instead of the raw store. Secret writes, masking, config notifications, sparse catalog updates and uninstall cleanup retain existing behavior; API-owned DTOs preserve JSON field order and nil/empty shapes.

Task CW-20260930-0083. The plugin host and manifest/catalog seams (#401, #402) are merged. Whole-tree transport findings 12 → 0; no new findings or type-check errors.

Validation: full TMPDIR=/var/tmp ./scripts/check.sh on combined main; affected API/service/server tests -race -count=20; production HTTP/fixture parity checks; three assertion-failing mutation probes covering secret routing, masking, and explicit zero priority. Self-tool PRs #403/#404 integrated.

Does not change plugin installation orchestration or scheduler storage.

Diff: 849 lines (+661 / -188) across 14 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 3m
Review confidence threshold not met — re-review recommended
Residual risk 0.81 = Change Risk (0.95) × (1 − Review Confidence (0.15)). Flagged for follow-up review before production rollout.
Model 1 · Change Risk (XGBoost)
Score: 0.95 · 849 lines diff across 14 files
0.95
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 16% · Reviewer familiarity: 35%
14%
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.400
Shallow Review Depth shallow_review_depth
0.344
Rapid Merge rapid_merge
0.100
Sensitive Paths sensitive_paths
0.095
Real PR Conversation Timeline
2 items
copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Oct 02, 2026 01:31 UTC
Reviewer

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Assignees
chrispian chrispian
Labels
risk: high confidence: 14.6% needs-re-review 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: 95.2% (HIGH) · Higher = larger blast radius
95.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: 14.6% · Lower = rushed or shallow review
14.6%
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: 81.3% · Re-review required
81.3%