← Back to Pull requests

test(mcp): credentialOnly contract, authority-vs-candidate fence, userless startChat skip (Refs #3354) #4723

Open
unknown opened this pull request with 140 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 21, 2026 11:18 UTC
Author

Refs #3354 (leaves #3354 open until the gate closes it). Follow-up of #3349/#3292.

Caller audit (origin/main fe2c298b): the only credentialOnly passer in production is getPrincipalAppMemoryAccess (!principal.userId, identical to the default). No production caller passes an explicit false. Outcome: document, not reject (no behavior change, no new product rule).

1. AppMemoryAccessOptions.credentialOnly now documents the trusted override (explicit false without callerUserId keeps the pre-#3292 uncapped fold; new callers must not use it). Pinned.
2. Parameterized authority-vs-candidate fence over soft-deleted App/Agent/org and uninstalled App, malformed item role, and authority ⊆ candidates.
3. Userless startChat skips the writable-item lookup (always refused). Same refusal, no write; ordinary-user control kept.

Mutants (each killed): chat skip removed (spy pin red x2), uninstalledAt guard removed (fence red). Suite: new file 14/14, #3292 file green.

— Ella, Server Engineer · Claude Sonnet 5.5

Diff: 140 lines (+105 / -35) across 1 files Reviewer: claude[bot] Review duration: 5m
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.56) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 140 lines diff across 1 files
0.56
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%
44%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.296
Sensitive Paths sensitive_paths
0.056
Real PR Conversation Timeline
1 comments
"Review active on #4723"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 44.2% 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: 55.8% (MEDIUM) · Higher = larger blast radius
55.8%
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: 44.2% · Lower = rushed or shallow review
44.2%
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: 31.1% · Safe to merge
31.1%