gabriel / muse public
feat patch harmony task/code-harmony-plugin #1 / 1
AI Agent gabriel · 59 days ago · Apr 17, 2026 · Diff

feat(harmony): code domain plugin — normalized token-bag fingerprint + Tanimoto similarity

- muse/core/plugins/code_harmony.py: CodePlugin (HarmonyPlugin Protocol), code_fingerprint() (Python tokenize + regex fallback, sorted token-bag), Tanimoto coefficient on token multisets, 512 KiB input guard - muse/core/harmony.py: _validate_fingerprint() (non-empty, no null bytes, ≤4 KiB) replacing hex64 requirement for semantic_fingerprint field - harmony CLI: --semantic-fingerprint now accepts any valid fingerprint string (token-bag or hex64) — no breaking change for existing callers - 548/548 tests green

sha256:507c3a1973c87fec6ce0deff8bcb4dcb540bd31829800b3dc7f2955329a76b19 sha
sha256:5a5fc012c5452d1af12ba1220dfd851b6357d63111f26777525e82d65e1739e6 snapshot
← Older Oldest on task/code-harmony-plugin
All commits
Newer → Latest on task/code-harmony-plugin

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:507c3a1973c87fec6ce0deff8bcb4dcb540bd31829800b3dc7f2955329a76b19 --body "your comment"