feat: migrate invariants cache to .muse/cache/invariants.msgpack (Phase 4)
- Add invariants_cache_path(root) to paths.py - _InvariantFileCache: rename _muse_dir → _cache_dir; load() derives cache_dir = muse_dir / 'cache'; save() calls mkdir(parents, exist_ok) - Add size property and prune() method (were missing) - Full docstrings on class, load(), save(), get(), put(), prune(), empty() - New test_invariant_file_cache.py: 29 tests across tiers 1/2/5/6/7 (unit, integration, data integrity, performance, security) - 89 existing invariant tests: all pass
sha256:f3b726b50f0aee3622bba751e0a67aa7ae4cf75a798477dbce581940b6a9cf70
sha
sha256:c70c0cc4c2694aa1cd311fe23c839348f317cca2af1d90886d36efc8cc4f8a47
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:f3b726b50f0aee3622bba751e0a67aa7ae4cf75a798477dbce581940b6a9cf70 --body "your comment"
No comments yet. Be the first to start the discussion.