Skip to content

Conversation

@IanLindsley
Copy link
Collaborator

  • (CODEX) Add cache controls and pruning
  • (CODEX) Version cache schema tag
  • (CODEX) Harden cache perf spans and defaults

Codex Assistant added 3 commits October 17, 2025 17:19
Expose per-cache enable flags with selection cache off by default, add TTL=-1 support, and allow pruning entries older than a cutoff.

- add cache manager JSON backend with per-cache toggles and prune helper methods
- extend admin API with optional older_than_days pruning, document usage, and cover via tests
- ensure deterministic cache keys remain configurable while leaving treatment of RAG caches adjustable

Tests: scripts/check_repo.sh; PYTHONPATH=. pytest -q tests/apps/api/routes/test_admin_cache_endpoints.py
Adopt a neutral release-style cache schema identifier and harden cache decoding so stored intent strings round-trip to IntentType instances.

- update CACHE_SCHEMA_VERSION to v1.0.0-cache to avoid branch-scoped naming
- coerce cached response intent fields back to IntentType when loading manifests to keep downstream identity comparisons working

Tests: scripts/check_repo.sh
Expand cache miss spans to cover underlying compute work so perf reports show real durations, and default the rag_final/rag_vector caches to off to reduce unnecessary disk churn unless explicitly enabled.

- record cache miss spans around the compute() call and keep hits focused on lookup timing
- flip CACHE_RAG_VECTOR_ENABLED and CACHE_RAG_FINAL_ENABLED defaults to false and document the change

Tests: scripts/check_repo.sh
@IanLindsley IanLindsley merged commit df3a6a6 into main Oct 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants