fix(memory): treat a zero episode limit as no recall #3660
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.33) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 150 lines diff across 1 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.300
Real PR Conversation Timeline
1 comments
"Review active on #3660"
general
weight: 0.35
its-amann
Why are these changes needed?
EpisodicMemoryPolicy(max_episodes=0) currently uses entries[-0:], which injects all past conversation summaries. Return the original prompt and history before reading the store when the limit is zero.
Related issue number
No matching issue found. Reproduced on upstream main.
Checks
AI assistance
Codex assisted with the investigation, changes, tests, and description. Validation was performed against the upstream baseline and the proposed fix. Human contributor attestations are left to the account owner.