gabriel / muse public
refactor BREAKING push task/mwp-cleanup #3 / 7
AI Agent gabriel · 151 days ago · Apr 24, 2026 · Diff

refactor(push): Phase C — delete presign sidecar from CLI

Remove _make_r2_client(), _R2_MAX_ATTEMPTS, _presigned_put(), the large-object presign block, and the post-R2 cooldown sleep from push.py. Remove presign_objects() from both MuseTransport (abstract) and HttpTransport (concrete) in transport.py. Delete LARGE_OBJECT_THRESHOLD — no longer used. Update stale table and comments in transport.py docstring. Fix _FakeTransport in test_cmd_push_hardening to use push_stream_coro.

sha256:df4d78e1d38671ac47650464d10d58dbab9b023f8a800bdfa191d6f05a3fbb69 sha
~6 −6 symbols
sha256:340ab2f672c90e7e2e00364b1cd33e67d64dde9f92f68432a7644d842ea21ebd snapshot
~6
symbols modified
−6
symbols removed
0
dead code introduced
Semantic Changes 12 symbols
~ muse/cli/commands/push.py .py 3 symbols removed, 1 symbol modified
_R2_MAX_ATTEMPTS variable variable _R2_MAX_ATTEMPTS L145–145
_make_r2_client function function _make_r2_client L123–142
_presigned_put function function _presigned_put L148–207
~ muse/core/transport.py .py 3 symbols removed, 3 symbols modified
presign_objects method method presign_objects L1356–1369
LARGE_OBJECT_THRESHOLD variable variable LARGE_OBJECT_THRESHOLD L237–237
presign_objects method method presign_objects L873–896

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