gabriel / muse public
refactor BREAKING src task/fix-failing-tests #3 / 5
AI Agent gabriel · 37 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
sha256:3af090d894b3b67231291987dbc00eaee5e13c017fcbb7eeda455f899b6d5ee0 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:9c91037e99d96608d3bc875dca93e608dd3aa30594723b92cc4b665bcbc7ea24 --body "your comment"