gabriel / musehub public
refactor patch feat/adding-debug-logs-to-staging #6 / 6
AI Agent gabriel · 6 days ago · Jun 8, 2026 · Diff

refactor: remove dual fetch paths in _walk_commit_delta and callers

Delete the dead legacy fallback (walk_dag_async per-commit path) from _walk_commit_delta. The fast path via CommitGraph bulk range scan was always active (guarded by 'if True:'). Remove the guard, delete the legacy block, and update both callers (wire_fetch_presign, wire_fetch_mpack) to unconditionally fetch MusehubCommit rows — no more _is_proxy conditional. Rename _CommitDeltaMap to _CommitGraphMap to reflect the single return type.

sha256:9dbd6015bfeb02e1832f9bdbe80ed58ee9138566f0f317c5557bbd571d6946ca sha
+2 ~3 −1 symbols
sha256:be95d5b6292fb76d373e922528241b98175e7c8027b5fa4d42916af9be336071 snapshot
+2
symbols added
~3
symbols modified
−1
symbol removed
0
dead code introduced
Semantic Changes 6 symbols
~ musehub/services/musehub_wire_fetch.py .py 2 symbols added, 1 symbol removed, 3 symbols modified
_CommitDeltaMap variable variable _CommitDeltaMap L43–43
+ _CommitGraphMap variable variable _CommitGraphMap L45–45
+ _SN import import _SN L43–43

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