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
Comments
0No comments yet. Be the first to start the discussion.