gabriel / muse public
refactor BREAKING harmony task/harmony-decompose #10 / 13
AI Agent gabriel · 20 days ago · May 22, 2026 · Diff

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)

sha256:8104248901e3a4babe475281ea319cb8a689b1cfa7131e5893e239da5af4106b sha
sha256:4ff0b06497e0fbb38fb3ccbf97fa1d3a0f6d638a57da5e0426684a51a71919ac 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:8104248901e3a4babe475281ea319cb8a689b1cfa7131e5893e239da5af4106b --body "your comment"