Phase 2: autodiscover per-app mcp.py modules #17
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 254 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #17"
general
weight: 0.35
BenA-SA
The first Django-ergonomics layer: apps contribute tools the way they contribute admin models. Recorded in ADR-0009.
Design: import, don't register
The scope revision against the installed SDK drives this. Registration already exists —
@server.tool()is public SDK API — so the only genuine gap was that nothing imports an app'smcp.py. The implementation is therefore oneAppConfig.ready()calling Django's ownautodiscover_modules("mcp"), the same mechanismdjango.contrib.adminuses. No package registry, no default server, no new API surface beyond the app config itself.myapp.mcp) — no collision with the SDK's top-levelmcppackage.mcp.pyare skipped; one that fails to import raises at startup rather than being swallowed.mcp_view(server)contract from ADR-0007 is unchanged — autodiscovery is opt-in sugar viaINSTALLED_APPS.The proof-shaped test
Nothing in the suite or URLconf imports
tests/mcp.py— so itsmultiplytool can only appear intools/listif autodiscovery imported it. That assertion plus a call test (multiply(6,7) → 42) are the new coverage; a Phase 1 assertion that the tool list is exactly["add"]was updated to membership, with the exact-set assertion now owned by the autodiscovery test.Test plan