fix: filter on meta.<time_field> in the CacheChecker TTL check #13985
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 318 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
Diff Size
diff_size
0.345
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #13985"
general
weight: 0.35
chrikrah
Related Issues
Proposed Changes:
With
ttlset,CacheCheckerstripsmeta.fromtime_fieldand filters on the bare name. The docstring calls it a metadata field, which the filter docs spellmeta.<name>. Only the legacy fallback inutils/filters.py, marked for removal, maps it tometa, so Qdrant and pgvector miss. The range conditions now usemeta.<time_field>.Merged before 3.6, the bare-name filter never ships. I can fold the
fixesnote into #12987's enhancement note.How did you test it?
test_build_filters_with_ttlnow expectsmeta.cached_at; a new test coverstime_field="meta.cached_at".Checklist
@bogdankostic, I would keep
cache_fieldas given:"id"or"content"matches the Document attribute today. Both TTL examples incachechecker.mdxpasscache_field="url", which needs the same fallback. Shall I switch them to"meta.url"in this PR?