๐ฉน fix: treat Vary field names as case-insensitive #4642
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) ร (1 โ Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 ยท Change Risk (XGBoost)
Score: 0.33 ยท 153 lines diff across 1 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.301
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4642"
general
weight: 0.35
BitWeaverDev
Description
Res.Vary()compared field names byte for byte, soVary("accept")followed byVary("Accept")(orAutoFormat, which addsAccept) producedVary: accept, Accept. RFC 9110 Section 5.1 treats field names as case-insensitive.Vary now dedups with ASCII case folding and keeps the first spelling. Generic
Append()stays byte-exact, because those lists are not all field names (Link, Cache-Control). That is documented on Append.Append("Vary", ...)can still listacceptandAccepttogether; useVary()for this header.Fixes #4641
Changes introduced
headerlist.AppendUniqueFoldfor case-insensitive list membersRes.Vary()uses it;Append()still uses byte-exactAppendUniquedocs/api/ctx.mdnote the byte-exact comparisonBenchmark
Review A/B, interleaved
-count=8:Ctx_Vary39.55n ยฑ 4% to 41.20n ยฑ 2% (+4.20%, p=0.000). Allocs unchanged. That is EqualFold vs==, about 1.65ns.Type of change
Checklist
/docs/updated