gabriel / musehub public
feat BREAKING phase1 task/object-refs-phase1 #1 / 1
gabriel · 68 days ago · Apr 13, 2026 · Diff

feat(phase1): add musehub_object_refs — materialized reachability index

Migration 0044 creates musehub_object_refs (repo_id, object_id) with a composite PK for idempotent upserts, an index on object_id for reverse lookups, and backfills one ref per existing object from the legacy musehub_objects.repo_id column.

ORM: MusehubObjectRef model with FK to both musehub_repos (CASCADE) and musehub_objects. MusehubObject gains a refs relationship. Legacy repo_id column and relationship remain intact until phase 5 (migration 0045).

All 49 migration tests pass.

sha256:d6ce1c5868f7726c7fe8504d9c437eb2f5f5fb66c419faffa021c9c4799b87c7 sha
sha256:91b60fa2a84a7466feffdc6419fe7c5a39f0e2717cfb54f172b5629a74ab6892 snapshot
← Older Oldest on task/object-refs-phase1
All commits
Newer → Latest on task/object-refs-phase1

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