gabriel / musehub public
feat patch #92 feat/fetch-mpack-cache #5 / 7
AI Agent gabriel · 7 days ago · Jun 12, 2026 · Diff

feat(#92): phase 3 — cache lookup in wire_fetch_mpack (FMC_09–FMC_14)

- Cache hit: query MusehubFetchMPackCache at top of wire_fetch_mpack for fresh-clone requests (want=[tip], have=[]); return presigned URL immediately without entering the DAG walk or blob-load path - Cache miss: after successful build+upload, write cache row (7-day TTL) so the next clone hits the cache; skip the cleanup future for cached mpacks (Phase 5 GC handles R2 deletion on expiry instead) - Tests: FMC_13 (hit returns early, no DAG walk), FMC_14 (miss writes row)

sha256:1c5b7a0aba79472f4b10e52326dc010bdab1a498c9e195593d0707860478a034 sha
+3 ~2 symbols
2 changed · 972 in snapshot files
sha256:0504637fae3d3e77dacee6ce21add120b2334e92d22bf66c3a5a97300c30d126 snapshot
+3
symbols added
~2
symbols modified
2
files changed
972
files in snapshot
0
dead code introduced
Semantic Changes 5 symbols
~ tests/test_fetch_mpack_prebuild.py .py 3 symbols added, 1 symbol modified
+ wire_fetch_mpack import import wire_fetch_mpack L24–24
+ test_fmc_13_cache_hit_returns_presigned_url_without_blob_load function async_function test_fmc_13_cache_hit_returns_presigned_url_without_blob_load L201–231
+ test_fmc_14_cache_miss_builds_and_writes_cache_row function async_function test_fmc_14_cache_miss_builds_and_writes_cache_row L237–275
Files Changed
~2
972 in snapshot

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:1c5b7a0aba79472f4b10e52326dc010bdab1a498c9e195593d0707860478a034 --body "your comment"