refactor(harmony): Phase 3 — extract fingerprint.py
Move all pure-computation functions (no I/O) to muse/core/harmony/fingerprint.py.
Moved to fingerprint.py ----------------------- Time helpers: _now_utc, _parse_dt
Content-addressed ID computation: blob_fingerprint, compute_pattern_id, compute_resolution_id, compute_escalation_id
Plugin-dispatch fingerprinting: compute_semantic_fingerprint
fingerprint.py imports ---------------------- datetime, logging, pathlib muse.core.types: JsonValue, content_hash .paths: _SHA256_ID_RE .types: AgentProvenance muse.domain.HarmonyPlugin (lazy, inside compute_semantic_fingerprint)
__init__.py changes ------------------- - Adds from .fingerprint import (...) for all 7 symbols - Removes duplicated function bodies (~100 lines) - content_hash re-added to muse.core.types import (needed by append_audit)
Test result: 707 passed / 0 failed (baseline: 707 passed)
0 comments
muse hub commit comment sha256:8104248901e3a4babe475281ea319cb8a689b1cfa7131e5893e239da5af4106b --body "your comment"
No comments yet. Be the first to start the discussion.