Skip to content

v0.3.0 — Policy IR, Search Engine, Deployment Scaffolds

Choose a tag to compare

@albert-einshutoin albert-einshutoin released this 02 Apr 03:31

quant-cache v0.3.0

Economic cache control plane — Phase B-D release.

New: Policy Intermediate Representation (Phase B)

Declarative cache policy configuration as JSON/TOML:

{
  "backend": "sieve",
  "capacity_bytes": 50000000,
  "admission_rule": { "type": "score_threshold", "threshold": 0.5 },
  "bypass_rule": { "type": "size_limit", "max_bytes": 10485760 },
  "prewarm_set": ["/images/hero.jpg"],
  "ttl_class_rules": [
    { "content_type_pattern": "image/", "ttl_seconds": 7200 }
  ]
}

qc policy-eval --input trace.csv --policy config.json --preset ecommerce

New: Policy Search Engine (Phase C)

Automatic search over backend × admission × bypass × prewarm × TTL class rules:

qc policy-search --input trace.csv --capacity 50M --preset ecommerce

New: Deployment Scaffold Generators (Phase D)

  • qc compile --target cloudflare — Cache Rules + Workers script
  • qc compile --target cloudfront — CacheBehaviors + CloudFront Functions
  • qc compile --scores policy.json — populate admission scores from optimizer

New Tests

11 new tests for PolicyIR (serde round-trip, equivalence, admission, bypass, prewarm).

CLI Commands (10 total)

import, generate, optimize, simulate, compare, calibrate,
policy-eval, policy-search, compile, help

Full Changelog

v0.2.0...v0.3.0