cgcardona / muse public
feat main #59 / 100

feat: code domain leverages core invariants, query engine, manifests, provenance, CRDT annotations, and op-log

- Extract domain-agnostic InvariantChecker protocol and BaseReport/BaseViolation types into muse/core/invariants.py; MidiChecker updated to satisfy the protocol - Extract generic commit-history walk into muse/core/query_engine.py (CommitEvaluator, walk_history, format_matches) - Code domain: max_complexity, no_circular_imports, no_dead_exports, test_coverage_floor invariant rules (muse/plugins/code/_invariants.py) - Code domain: hierarchical FileEntry/ModuleManifest/PackageManifest/CodeManifest for partial re-parse (muse/plugins/code/manifest.py) - Code domain: query DSL evaluator with TypeGuard-narrowed CodeField/CodeOp Literals (_code_query.py) - Code domain: op-log integration recording PatchOp/child ops into the append-only log (_op_log_integration.py) - CommitRecord gains format_version=5, reviewed_by (ORSet), test_runs (GCounter), agent provenance fields - CLI: muse annotate, muse check, muse code-check, muse code-query commands added and wired into app.py - muse commit wires --agent-id/--model-id/--toolchain-id/--sign env-driven provenance - tomli fallback removed (Python 3.12 ships tomllib in stdlib); zero type: ignore, zero Any, zero bare collections - 1396 tests green; mypy strict + typing_audit --max-any 0 both pass

G Gabriel Cardona <gabriel@tellurstori.com> · 1d ago Mar 19, 2026 · 766ee24d · parent e51a1033
oldest
newest 42%

Snapshot Diff

202 files in tree
+51 ~63 -5
README.md .md
muse/plugins/music/__init__.py .py
muse/plugins/music/_query.py .py
muse/plugins/music/midi_diff.py .py
muse/plugins/music/midi_merge.py .py
muse/plugins/music/plugin.py .py

Comments

0

No comments yet. Be the first to start the discussion.