gabriel / muse public
refactor BREAKING bridge task/bridge-issue14-sweep #1 / 1
AI Agent gabriel · 19 days ago · May 22, 2026 · Diff

refactor(bridge): comprehensive spec sweep — close all issue #14 gaps

Fixes all spec violations found in post-completion sweep:

bridge.py — 375 → 74 lines, zero re-exports, argparse-only - Move _register_git_import, _register_git_export, _register_git_status to their canonical submodules (importer, exporter, status) - bridge.py now delegates to _register_*_parser() helpers and imports nothing from the domain layer

muse/core/bridge/__init__.py — add full public API re-export - All symbols tests might import from the package now accessible via muse.core.bridge directly (per Phase 8 spec)

git_primitives.py — fix circular import violation - FileDiffTree = dict[str, str | None] defined here, not in state.py - state.py no longer carries a type that belongs to the git layer - Upholds 'git_primitives has no Muse domain knowledge' invariant

All test imports updated: zero imports from muse.cli.commands.bridge - Every test now imports from the canonical muse.core.bridge.* path - No backward-compat shims; the old path is the thin CLI shell only

277/277 tests pass.

sha256:51116ec824246acde6abf729e6ba854c223dc5173eff31a645520208023b0652 sha
1065 changed · 1065 in snapshot files
sha256:719041cabcaf89a76d45aea88d6c44564c1064167325c5f3af1b8abdb5524b79 snapshot
1065
files changed
1065
files in snapshot
Files Changed
+1065
1065 in snapshot
+ .coverage .coverage
+ .cursorrules .cursorrules
+ .museattributes .museattributes
+ .museignore .museignore
+ .windsurfrules .windsurfrules
+ AGENTS.md .md
+ CLAUDE.md .md
+ README.md .md
+ dev-setup.sh .sh
+ pyproject.toml .toml
← Older Oldest on task/bridge-issue14-sweep
All commits
Newer → Latest on task/bridge-issue14-sweep

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