refactor(core): unify all entity ID derivation under content_hash()
- Add content_hash(obj) to _types.py as the single canonical primitive (sort_keys, compact separators, ensure_ascii=True, sha256: prefix) - Wire content_hash into every compute_*_id function: store.py (tag/release), task_queue.py (task), coordination.py (reservation/intent), op_log.py (op), harmony.py (pattern/resolution/ escalation/audit), patch_record.py (patch) - Convert inline hashlib patterns in init.py, clone.py, shelf.py, test_history.py, test_runner.py to content_hash() - Fix shelf.py ensure_ascii=False bug (now ensure_ascii=True via content_hash) - Fix harmony: clear_all passes long_id(entry.name) to forget_pattern - Fix harmony: plugin fingerprint validator accepts sha256: format (len 71) - Remove all stale hashlib/json imports left by the conversion - Add tests/test_core_types.py (22 tests covering long_id/short_id/content_hash) - Update test_harmony_comprehensive.py: all ID assertions use sha256: format
0 comments
muse hub commit comment sha256:c6bbf1a26ea88a2356f944487d722fe218cbfcbc36f5b1d021e9eebcd78a786c --body "your comment"
No comments yet. Be the first to start the discussion.