gabriel / muse public
refactor BREAKING src task/fix-failing-tests #3 / 5
AI Agent gabriel · 135 days ago · May 5, 2026 · Diff

refactor(src): replace all UUID terminology with content-addressed ID language

- muse/core/crdts/aw_map.py, or_set.py: replace uuid.uuid4() tokens with secrets.token_hex(16) — CRDT tokens need randomness, not determinism - muse/core/task_queue.py: replace uuid.uuid4() claim nonces with secrets.token_hex(16); update all docstrings from 'UUID' to 'sha256: content ID' - muse/plugins/midi/_crdt_notes.py: replace uuid.uuid4() op_id with secrets.token_hex(16); update docstrings - muse/plugins/midi/entity.py: replace uuid.uuid4() entity_id with content_hash(note fields + op_id); update all docstrings - All CLI command docstrings/help text: '<uuid>' → '<id>' or '<sha256:...>' depending on whether the ID is server-assigned or content-addressed - All core module docstrings: 'Repository UUID' → 'repository content ID', 'UUID of the reservation' → 'content-addressed ID of the reservation', etc. - coordination.py: security note updated from 'UUID4 string cannot contain' to 'sha256: content ID cannot contain'; all parameter docs updated - dag.py: metavar='UUID' → metavar='ID' in argparse; docstrings updated - intent.py: metavar='UUID' → metavar='ID'; all UUID references removed - harmony.py: audit filename pattern '<uuid4>.json' → '<content-id>.json' - migrate.py: table updated to show 'plain string (pre-sha256)' - snapshot.py: ID derivation note updated

sha256:9c91037e99d96608d3bc875dca93e608dd3aa30594723b92cc4b665bcbc7ea24 sha
+5 ~107 −5 symbols
sha256:3af090d894b3b67231291987dbc00eaee5e13c017fcbb7eeda455f899b6d5ee0 snapshot
+5
symbols added
~107
symbols modified
−5
symbols removed
0
dead code introduced
Semantic Changes 117 symbols
~ muse/cli/commands/auth.py .py 1 symbol modified
~ muse/cli/commands/coord_sync.py .py 2 symbols modified
~ muse/cli/commands/dag.py .py 3 symbols modified
~ muse/cli/commands/hub/users.py .py 1 symbol modified
~ muse/cli/commands/intent.py .py 2 symbols modified
~ muse/cli/commands/release.py .py 2 symbols modified
~ muse/cli/commands/reserve.py .py 2 symbols modified
~ muse/cli/commands/shortlog.py .py 1 symbol modified
~ run
~ muse/core/crdts/aw_map.py .py 1 symbol added, 1 symbol removed, 2 symbols modified
uuid import import uuid L32–32
+ secrets import import secrets L32–32
~ AWMap
~ set
~ muse/core/crdts/or_set.py .py 1 symbol added, 1 symbol removed, 2 symbols modified
uuid import import uuid L42–42
+ secrets import import secrets L42–42
~ ORSet
~ add
~ muse/core/describe.py .py 1 symbol modified
~ muse/core/op_log.py .py 3 symbols modified
~ muse/core/pack.py .py 1 symbol modified
~ muse/core/rebase.py .py 1 symbol modified
~ muse/core/schema.py .py 1 symbol modified
~ muse/core/store.py .py 1 symbol modified
~ muse/core/task_queue.py .py 1 symbol added, 1 symbol removed, 9 symbols modified
_uuid_mod import import _uuid_mod L99–99
+ secrets import import secrets L99–99
~ muse/core/test_history.py .py 1 symbol modified
~ muse/core/test_runner.py .py 1 symbol modified
~ muse/domain.py .py 1 symbol modified
~ muse/plugins/midi/_crdt_notes.py .py 1 symbol added, 1 symbol removed, 4 symbols modified
_uuid_mod import import _uuid_mod L65–65
+ secrets import import secrets L65–65
~ insert
~ muse/plugins/midi/entity.py .py 1 symbol added, 1 symbol removed, 6 symbols modified
_uuid_mod import import _uuid_mod L55–55
+ content_hash import import content_hash L58–58

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