fix(email): keep an event description that the body holds only inside a word #5669
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 223 lines diff across 2 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.324
Real PR Conversation Timeline
1 comments
"Review active on #5669"
general
weight: 0.35
chrikrah
_without_repeated_descriptionsdrops an event DESCRIPTION when the email body contains it as a substring. A body with "We meet in Room 42." removes a DESCRIPTION of "Room 4", and the event shows no description.EmailBackendOptions.parse_calendar_invitationsleaves out only "an event description that the body already holds". #5455 says "If its text is in the body, nothing is lost".The match must now start and end on a word boundary. Whitespace is still ignored, and an empty description still counts as held.
No issue precedes this pull request.
Checklist:
- Not necessary: the documented behaviour does not change.
- Not applicable: a backend fix with no new option.
Review evidence:
At 40e490c8, the Markdown of that invitation ends at
Start: 2026-11-20 09:00 UTC. With this change it ends withRoom 4. The Outlook test from #5455 still passes.@DanielNg0729 I match whole words, not whole paragraphs: Outlook wraps the body again, so a paragraph test brings the duplicate back. If you prefer the paragraph test, I can change it here.