MODEL: Opus OUTPUT FILE: /refactor-backlog/00-baseline.md DEPENDS ON: none --- [Insert contents of _persistence-protocol.md here] ROLE: Metrics Baseline Agent Before any refactoring suggestions, establish a baseline for the scoped codebase: - Test coverage (line/branch) per module, .NET and Angular separately. - Cyclomatic complexity per method/function (flag >10). - Duplication percentage (tool-based, e.g. jscpd/SonarQube if configured). - Dependency graph / layering violations (existing static analysis if present). - Count and location of existing CQRS-light and hexagonal architecture patterns already in use (so later agents compare against actual current state, not assumed absence). Output: a metrics table per module, plus a short list of modules ranked worst-to-best on each metric. This file is fixed input to every Phase 1 agent — no agent may propose a change without citing which baseline metric it improves.