gabriel / muse public
feat patch dev
AI Agent gabriel · 138 days ago · Apr 25, 2026 · Diff

feat: Phase 1 — add .muse/cache/ directory, migrate test_history

- paths.py: add cache_dir(root) → .muse/cache/; retarget test_history_path() and symbol_cache_path() to use it - init.py: add 'cache' to _INIT_SUBDIRS so new repos get the dir - repo.py: add 'cache' to _MUSE_SWEEP_DIRS for stale-temp GC sweep - docs/cache-reorganization-plan.md: multi-phase plan document

test_history.py needed no changes — it already delegates path resolution entirely to paths.py and calls mkdir(parents=True).

sha256:b7329e2e04808c06d01d5ab48f8b14571cde869b26b0f14e5bf49764794a0627 sha
+14 ~4 symbols
sha256:738718c25963e0167c58b5f5385faaee8653ff6ed584003d50b747014b8aab3d snapshot
+14
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes 18 symbols
~ docs/cache-reorganization-plan.md .md 13 symbols added
+ Cache Reorganization Plan section Cache Reorganization Plan L1–89
+ Cache inventory section Cache inventory L14–29
+ table@L16 section table@L16 L16–24
+ Migration for existing repos section Migration for existing repos L84–89
+ Motivation section Motivation L6–14
+ Phases section Phases L46–84
+ Phase 1 — Infrastructure + test_history ✅ section Phase 1 — Infrastructure + test_history ✅ L48–54
+ Phase 2 — stat_cache section Phase 2 — stat_cache L54–59
+ Phase 3 — symbolcache, callgraphcache, implicitedgecache section Phase 3 — symbolcache, callgraphcache, implicitedgecache L59–65
+ Phase 4 — codeinvariantscache section Phase 4 — codeinvariantscache L65–69
+ Phase 5 — Fix concurrent write race (Pattern B → A) section Phase 5 — Fix concurrent write race (Pattern B → A) L69–74
+ Phase 6 — Shared MsgpackCache base class class section Phase 6 — Shared MsgpackCache base class L74–84
+ Write pattern taxonomy section Write pattern taxonomy L29–46
~ muse/cli/commands/init.py .py 1 symbol modified
~ muse/core/paths.py .py 1 symbol added, 2 symbols modified
+ cache_dir function function cache_dir L160–162
~ muse/core/repo.py .py 1 symbol modified
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:b7329e2e04808c06d01d5ab48f8b14571cde869b26b0f14e5bf49764794a0627 --body "your comment"