feat(mpack-index): extend MusehubMPackIndex to cover commits and snapshots
Renamed MusehubPackIndex → MusehubMPackIndex (alias kept for in-flight callers). Schema changes (migration 0063): object_id → entity_id pack_id → mpack_id +entity_type VARCHAR(16) — 'object', 'commit', or 'snapshot'
process_mpack_index_job now writes index rows for all three entity types in one atomic batch. Fetch and GC queries updated to filter by entity_type='object' so they remain correct against the broader index.
Also fixes WIRE_CONTENT_TYPE import (moved from muse.core.mpack → muse.core.mwp during the rename sweep; musehub/api/routes/wire.py had the stale import).
TDD: tests/test_mpack_index_phase2.py covers PI-5 through PI-8.
sha256:f181d75c143fa6c0bae9455c0391fa8819530d51542b108ce6cb9086bb0115f5
sha
+34
~21
symbols
sha256:ab8aec78152e7306611dcd766b8fb3e8690bb0455ab1c343d79de05011a0d822
snapshot
+34
symbols added
~21
symbols modified
0
dead code introduced
Semantic Changes
55 symbols
+
test_pi5_commit_ids_indexed_after_push
function
async_function test_pi5_commit_ids_indexed_after_push L160–189
+
test_pi6_snapshot_ids_indexed_after_push
function
async_function test_pi6_snapshot_ids_indexed_after_push L197–226
+
test_pi7_all_three_types_indexed_atomically
function
async_function test_pi7_all_three_types_indexed_atomically L234–277
+
test_pi8_second_push_indexes_without_overwriting
function
async_function test_pi8_second_push_indexes_without_overwriting L285–326
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:f181d75c143fa6c0bae9455c0391fa8819530d51542b108ce6cb9086bb0115f5 --body "your comment"
No comments yet. Be the first to start the discussion.