fix(mongoatlas): reject unsupported aggregation stages #15
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.39) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 244 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.329
Real PR Conversation Timeline
1 comments
"Review active on #15"
general
weight: 0.35
coderabbitai[bot]
Atlas Data API aggregation could silently skip an unsupported stage and return HTTP 200 with incorrect documents. The route now validates each stage's shape and operator before executing the pipeline. An unsupported operator returns HTTP 400 with
InvalidParameterand its zero-based pipeline index. Each stage object must contain exactly one operator.| Installed CLI request | Before | After |
| --- | --- | --- |
|
$group| 200, three raw rows | 400,$groupatpipeline[0]||
$match,$group,$count| 200,[{"total":2}]| 400,$groupatpipeline[1]||
$match,$count| 200,[{"total":2}]| 200,[{"total":2}]||
$sort,$skip,$limit,$project| 200,[{"amount":10}]| 200,[{"amount":10}]|Verification
2779bb471c49ae0e8fc5438434dac22635c6ad40. The Atlas suite passed all 33 tests. Atlas type check and lint passed.