gabriel / musehub public
refactor BREAKING task/minio-replace-local-backend #3 / 5
AI Agent gabriel · 41 days ago · May 9, 2026 · Diff

refactor: purge all local storage references — BlobBackend is the only backend

Production code: - objects.py: replace FileResponse-from-disk with BlobBackend.get() Response - musehub_sync.py: make _to_object_response async, fetch bytes from blob store - musehub_wire.py: disk_path insert no longer strips 'local://' prefix (set to '') - musehub_repository.py: remove stale disk_path docstring reference - musehub_models.py: remove 'local://…' from storage_uri lifecycle docs - config.py: update musehub_repos_dir comment (refs only, not object storage)

Deleted migration scripts (one-time, dead): - deploy/flatten_object_store.py - scripts/migrate_flat_to_per_repo.py

Deploy utilities: - deploy/count_compressed.py: remove LocalBackend isinstance branch - deploy/decompress_objects.py: remove LocalBackend isinstance branch

Documentation: - docs/pre-launch-checklist.md: remove LocalBackend/disk_path references - docs/test-coverage-checklist.md: rewrite object store and storage backends sections - GHOST_OBJECTS_INVESTIGATION.md: remove LocalBackend reference

Tests (14 files): - Replace storage_uri='local://...' with 's3://muse-objects/objects/...' - Replace disk_path=uri.replace('local://', '') with disk_path='' - Replace mock backend returning 'local://...' with 's3://...' - Fix FP4 comment in test_wire_fetch_presign.py - Fix LocalBackend address string in test_phase3_gravity_schema.py

sha256:2b1f349d777582c862b59991f2b75fc018d08142cea5a5ced394d1807769a1bc sha
sha256:55799cfaff1eef3565f583047cc048aa5322695ff5d1f48fd908ac2d51b3a49b 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:2b1f349d777582c862b59991f2b75fc018d08142cea5a5ced394d1807769a1bc --body "your comment"