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

refactor(harmony): Phase 7 — extract policies.py

Move policy serialisation, CRUD, and matching logic out of the harmony god-object into muse/core/harmony/policies.py.

- policies.py: _MAX_POLICY_BYTES, _MAX_POLICIES, _policy_condition_to_dict, _policy_to_dict, _dict_to_policy, save_policy, load_policy, list_policies, remove_policy, _condition_matches, match_policy - __init__.py: re-exports extracted symbols; fnmatch import removed (no longer used after policy matching moved out)

707/707 harmony tests green.

sha256:42ccf3b0a358cb985acab8d086d9cff35f61b8f647fa4639e523151b277ba864 sha
sha256:bf7f0fb917f651b184c1952ce65fb1348270a58c8aa94445c7feaa0ad0a05393 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:42ccf3b0a358cb985acab8d086d9cff35f61b8f647fa4639e523151b277ba864 --body "your comment"