Repository navigation
v0.4.1 — cache_key_rules + key normalization fixes
quant-cache v0.4.1
cache_key_rules implementation and key normalization consistency fixes.
cache_key_rules (Phase E → Done)
PolicyIR cache_key_rules fully implemented across all layers:
- Evaluator: regex-based key normalization with result caching
- Search: UTM/fbclid stripping candidates in policy-search
- Compile: query_string_strip config for Cloudflare Cache Key settings
- Context remap: IrEvalContext scores/sizes/freshness remapped to normalized keys
- TTL overrides: stored under normalized keys
- Prewarm: normalized before backend insertion
Bug Fixes
IrEvalContextkeys remapped to normalized form at construction (P1)apply_ttl_rules()uses normalized keys (P1)prewarm()normalizes keys through cache_key_rules (P1)import_e2etest updated for SIEVE-based compare output (CI fix)
Phase Status
All phases A-D now Done. Phase E (provider validation, quantum) is planned.
Tests
8 IR policy tests including:
- Key normalization (UTM strip → same cache entry)
- Admission with normalized scores
- Prewarm with cache_key_rules