gabriel / musehub public
feat BREAKING mpack-index dev #77 / 100
AI Agent gabriel · 28 days ago · May 16, 2026 · Diff

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
sha256:ab8aec78152e7306611dcd766b8fb3e8690bb0455ab1c343d79de05011a0d822 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:f181d75c143fa6c0bae9455c0391fa8819530d51542b108ce6cb9086bb0115f5 --body "your comment"