Skip to content

feat: add privacy-aware cache tiers - #10

Merged
github-actions[bot] merged 4 commits into
mainfrom
feat/07-caching
Aug 30, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
feat/07-caching

Conversation

@Yash-Chindam

Copy link
Copy Markdown
Owner

Implements section 12 of the design specification.

  • Exact-response, prefix, semantic, and router-decision caches.
  • Keys bind tenant, model-catalog fingerprint, and generation parameters, so promoting a model revision or routing policy version invalidates dependent entries.
  • Restricted data is never cached; semantic reuse requires public privacy, deterministic generation, and an approved task class; semantic caching is off by default.
  • Cache outcomes reported through router_cache_events_total and an X-Cache header.

Tests: 13 unit, 7 integration, 2 Playwright end-to-end. Local suite 47 passed, 97% branch coverage.

Adds exact-response, prefix, semantic, and router-decision caches with
tenant, model-revision, and generation-parameter scoping. Restricted data
is never exactly cached, semantic reuse is limited to public deterministic
approved task classes, and router decisions invalidate on policy change.
Checks exact and semantic caches before routing using a catalog
fingerprint, so any model promotion or policy change invalidates entries.
Reports cache outcomes through metrics and an X-Cache response header.
@github-actions github-actions Bot added documentation Improvements or additions to documentation area/api area/tests labels Aug 30, 2026
@github-actions
github-actions Bot merged commit c6edd79 into main Aug 30, 2026
6 checks passed
@github-actions
github-actions Bot deleted the feat/07-caching branch August 30, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api area/tests documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant