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

refactor(harmony): Phase 8 — extract escalations + engine into package submodules

- Add muse/core/harmony/escalations.py with _MAX_ESCALATION_BYTES, _escalation_to_dict, _dict_to_escalation, record_escalation, load_escalation, list_escalations, resolve_escalation - Add muse/core/harmony/engine.py — move harmony_engine.py into the package with relative imports; exposes EngineStatus, HarmonyPlugin, DefaultPlugin, EngineConfig, EngineResult, find_similar, resolve - Delete muse/core/harmony_engine.py (now muse.core.harmony.engine) - Update 5 call sites: cli/commands/harmony.py (3 sites), plugins/code_harmony.py, tests/test_harmony_engine.py, tests/test_code_harmony_plugin.py - Trim __init__.py: remove unused stdlib imports (datetime, json, os, tempfile, Mapping, dc_replace) and unused muse.core.types names (JsonValue, load_json_file, long_id); only logging + pathlib remain - All 707 harmony tests pass

sha256:340607e5ffa9f61ae5150b14dde6ebfa3085efe24cba3d01840a765e244f97f2 sha
sha256:e504c32666536eb53bc3f714086fb158b6d019827e46e8e809e3d9fafd11fe12 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:340607e5ffa9f61ae5150b14dde6ebfa3085efe24cba3d01840a765e244f97f2 --body "your comment"