Public report — Naos, published 29 Jul 2026.
Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version;
ask the repo owner for the full report.
658findings with an exact file:lineof 893 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
68/107dimensions across the health lenses52730 LoC · 123 projects — wide & deep
Executive summary
Read through the Template lens: this is a template / kata / sample / demo — code meant to be read or copied, not operated. The ship-it and operate-it dimensions (CI/CD, observability, ADRs, architecture docs, deployment security) are N/A, and the colour bands on what remains are relaxed to what an example needs. Code correctness stays near-strict; the score is absolute and comparable across repos.
vip32/Naos carries serious risk (49%). Several issues below can materially affect reliability, security, or the cost of change and warrant near-term attention.
It is strongest in Event-Driven (88%) — its messaging keeps components properly decoupled.
The area that most needs attention is Code Health (46%) — changes there are slower and more error-prone. Domain Modelling (48%) is the next concern — the domain model leaks and drifts, so business rules are harder to trust and change.
Leadership focus, highest impact first: Interpolated log message defeats structured logging (Structured logging); Enable <Nullable>enable</Nullable> across all projects… (Nullable reference types); Finish or delete the unfinished stubs (NotImplementedException… (Incompleteness & stubs).
For scale: Medium (~52,730 production lines); rebuilding it from scratch would take roughly ~1.0 person-years (~1–2 engineers). Approximate, ±~30%.
It builds on a genuinely strong Event-Driven foundation (88%); the priorities above are the highest-leverage way to bring the rest up to that level.
How the score is built — each lens's share of the headlineWidth is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
No single dominant problem — the weakest areas are close, so progress on any of them moves the score.
Code composition — where the lines go
Business logic 24%Plumbing 53%Tests 22%Generated 1%
New since the last scan (100+)
234 finding(s) are new versus the previous scan (2026-07-20) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.
A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.
This codebase represents roughly ~1.0 person-years of build effort (about ~€140,000 to rebuild). Its weakest lens is Code Health at 46% — the part of that asset most exposed by the findings below.
How we model this: boilerplate at a scaffolding rate + logic × domain Very high (×1.9) — service/app, DDD/clean architecture, CQRS, domain model, event-driven integration × a 0.7× quality factor, at €60–95/h; indicative, ±~30%. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).
Top priorities
The highest-leverage moves; the full ranked list is in the Roadmap below.
1
Resolve the 3 EmptyCatchBlock finding(s) in Explicit Debt — start with Expando.cs (3).
Value concentrated against a weak lens · Medium · Value at risk
This is a Medium asset (~1.0 person-years to rebuild), and its weakest lens is Code Health at 46%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
→ Direct remediation budget at Code Health first — highest risk-reduction per euro on an asset this size.
Root cause: an un-encapsulated domain · Medium · Root cause
34 findings across public setters, anemic types and primitive ids share one root cause — the domain layer doesn't protect its own invariants. Fixing the encapsulation pattern resolves them together, rather than chasing each finding.
Each box is a bounded context (its layer projects grouped, or a project count when large); arrows show dependencies between contexts. A shared kernel is where many arrows converge.
At a glance — Code Health · 46% · Adequate · gated by X4, X5
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A03:2021 — Injection
4
High / Critical
A02:2021 — Cryptographic Failures
2
High / Critical
Roadmap
First, replace all interpolated log messages with structured logging to improve observability. Next, enable nullable reference types across all projects and resolve warnings instead of suppressing them. Then, finish or remove all unfinished stubs to eliminate dead code that appears live. After that, address sync-over-async patterns to prevent deadlocks. Finally, propagate cancellation tokens through all async methods to ensure work stops promptly.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 3 EmptyCatchBlock finding(s) in Explicit Debt — start with Expando.cs (3).
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 66 of 68 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 2 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.6 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 68 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 658 of 893 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D24 Comment Value — LLM provider failed — The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
ED5 Idempotency: Idempotency is judged from the handler body's visible writes and guards — a guard enforced by a database unique constraint, a broker's exactly-once delivery, or a domain method whose no-op-when-applied logic the scan can't follow may read as at-risk; the at-risk candidates are confirmed by a SAMPLED LLM verdict (advisory, not exhaustive) and degrade to heuristic-only when no model is configured. It flags the at-least-once double-apply SHAPE, not a runtime proof of a duplicate effect.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
LLM-set scores this run (4): D19, D21, ED5, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
5 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was SqlBuilder.BuildExpressionSelect at 38. A further 2 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being ExpressionVisitor.Visit at 46 — they are counted neither in the figure above nor in this dimension's score.
Resolve the 1 SqlBuilder.BuildExpressionSelect (cyclomatic 38) finding(s) in Cyclomatic Complexity — start with SqlBuilder.cs. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 FileStorageKeyValueStorage.Match (cyclomatic 35) finding(s) in Cyclomatic Complexity — start with FileStorageKeyValueStorage.cs. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Extensions.To (cyclomatic 18) finding(s) in Cyclomatic Complexity — start with To.cs. — One of this dimension's main actionable groups (1 warning-level).
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 22 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 2 EntityFrameworkRepository.UpsertAsync (cognitive 20) finding(s) in Cognitive Complexity — start with EntityFrameworkRepository{TEntity,TDestination}.cs, EntityFrameworkRepository{TEntity}.cs. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 2 CosmosSqlRepository.UpsertAsync (cognitive 18) finding(s) in Cognitive Complexity — start with CosmosSqlRepository{TEntity,TDestination}.cs, CosmosSqlRepository{TEntity}.cs. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 2 MongoRepository.UpsertAsync (cognitive 18) finding(s) in Cognitive Complexity — start with MongoRepository{TEntity,TDestination}.cs, MongoRepository{TEntity}.cs. — One of this dimension's main actionable groups (2 warning-level).
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes9.6 / 10Exemplary✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
+ 24 more group(s) — more in Appendix A; the complete list is findings.md.
✓ On the Gold path — maintain.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling8.9 / 10Strong✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
Resolve the 42 Layer violation finding(s) in Coupling. — One of this dimension's main actionable groups (42 issue-level).
Resolve the 16 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (16 warning-level).
Resolve the 1 Unstable project Application finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D8 · Code Coverage3.7 / 10Weak✓ Tool-verified
What it measures: How much of the code is actually exercised by tests.
Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.
Line coverage 15.1% — read from a committed opencover report (tests/Foundation.UnitTests/coverage.opencover.xml); the in-image collector couldn't run the suite (commonly external-service dependencies). A real measurement, but from a committed artifact rather than a fresh in-image run.
Coverage read from a committed report
What to do
Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d8_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
552 test methods: 381 unit, 171 integration, 0 BDD, 0 e2e.
✓ On the Gold path — maintain.
Detailed fixes: d9_recommendation.md.
Do you agree with this assessment?
D10 · Test Quality9.9 / 10Exemplary✓ Tool-verified
What it measures: Whether the tests truly assert behaviour rather than just running the code.
Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.
What it measures: Whether dependencies are current, secure, and not bloated.
Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.
Resolve the 25 Deprecated finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (25 warning-level).
Resolve the 9 Vulnerable finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (9 issue-level).
Resolve the 1 Prerelease dependency finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (1 warning-level).
Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
BareSuppressMessage repeated 90 times in one fileGlobalSuppressions.cs:2
+ 3 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 297 TodoComment finding(s) in Explicit Debt — start with NaosExtensions.cs (22), Startup.cs (17), CosmosSqlProviderV2.cs (9). — One of this dimension's main actionable groups (297 warning-level).
Resolve the 3 EmptyCatchBlock finding(s) in Explicit Debt — start with Expando.cs (3). — One of this dimension's main actionable groups (3 issue-level).
Resolve the 112 CommentedOutCode finding(s) in Explicit Debt — start with CosmosDbSqlProviderV3Tests.cs (6), State.cs (6), CosmosSqlProviderV2.cs (5). — One of this dimension's main actionable groups (112 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the solution is laid out in a sensible, conventional structure.
Method: Solution structure: project count, decomposition, shell-project detection, build success (confirmed failures cap the score); traced to actual .sln files and binaries. Deterministic.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
The Naos project has a strong README with an architectural concepts section and a dev stack list but is otherwise thin on content. The visible documentation is mostly a single markdown file (the 'Architectural concepts' section) plus the Dev Stack and a brief logo; no architecture or per-module design docs, and XML-doc coverage across 120 modules is below 5% for most namespaces.
The README contains only an architectural Concepts section (a single bulleted list of patterns) plus the dev stack and a logo; there is no cohesive architecture or design documentation describing how each module fits together.
No architecture or per-module design documentation describing how each module fits together.
Resolve the 92 Low XML-doc coverage finding(s) in Documentation Quality — start with Application.Web.csproj (2), Application.csproj, Domain.csproj. — One of this dimension's main actionable groups (92 warning-level).
Resolve the 1 The README contains only an architectural Concepts section (a single… finding(s) in Documentation Quality. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 No architecture or per-module design documentation describing how each… finding(s) in Documentation Quality. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
0 of 109 projects flagged as possibly oversized/incoherent.
✓ On the Gold path — maintain.
Detailed fixes: d26_recommendation.md.
Do you agree with this assessment?
D27 · Navigability8.2 / 10Strong✓ Tool-verified
What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.
Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
87 % of calls cross a namespace and 12 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: large — vertical-slice locality expected.
What to do
Improve Navigability — currently 8.2/10. — 87 % of calls cross a namespace and 12 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: large — vertical-slice locality expected.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.
1 finding(s): 0 critical, 1 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
Secret: generic-api-keylicenses.json:578detected by gitleaks finding
Rotate the exposed credentials — git history can't be un-committed
✓ On the Gold path — maintain.
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
High: insecure-binaryformatter-deserialization · ×4src/Foundation.Serialization/Serializers/BinarySerializer.cs:18detected by semgrep finding
What to do
Resolve the 4 High finding(s) in Static Analysis (SAST) — start with SigningHelper.cs (2), BinarySerializer.cs, SerializationHelper.cs. — One of this dimension's main actionable groups (4 issue-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
274 of 274 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/Foundation.ContentTypes/ContentType.cs.
Largest orphaned file · ×3src/Foundation.ContentTypes/ContentType.cs
Dormant codebase
What to do
Resolve the 3 Largest orphaned file finding(s) in Knowledge Freshness — start with ContentType.cs, SqlServerDocumentProvider.cs, CosmosSqlProviderV2.cs. — One of this dimension's main actionable groups (3 recommendation-level).
Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling; coupling through a build step, config, or non-source file isn't seen.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 No artifact signing finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 No SBOM finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.
Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.
Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.
`ServiceDiscoveryHostedService` is a singleton (one shared instance) but mutates instance state outside any lock (serviceAddress; e.g. `serviceAddress` at line 59). — ServiceDiscoveryHostedService.cs:15
`CommandRequestRegistration` is a singleton (one shared instance) but mutates instance state outside any lock (route; e.g. `route` at line 26). — CommandRequestRegistration.cs:12
What to do
Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
`Sample.Application.Web2` is a Application project but references `Commands.Infrastructure.FileStorage`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Sample.Application.Web2` is a Application project but references `FileStorage.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Sample.Application.Web2` is a Application project but references `Operations.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Sample.Application.Web2` is a Application project but references `Operations.Infrastructure.Mongo`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Sample.Application.Web2` is a Application project but references `Tracing.Infrastructure.Zipkin`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Sample.Application.Web` is a Application project but references `Commands.Infrastructure.FileStorage`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Sample.Application.Web` is a Application project but references `FileStorage.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Sample.Application.Web` is a Application project but references `Operations.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Sample.Application.Web` is a Application project but references `Operations.Infrastructure.Mongo`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Sample.Application.Web` is a Application project but references `Tracing.Infrastructure.Zipkin`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Tracing.Application.Zipkin` is a Application project but references `Tracing.Infrastructure.Zipkin`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Queueing.Application.RabbitMQ` is a Application project but references `Infrastructure.RabbitMQ`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Queueing.Application.RabbitMQ` is a Application project but references `Queueing.Infrastructure.RabbitMQ`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Queueing.Application.Azure` is a Application project but references `Infrastructure.Azure.ServiceBus`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Queueing.Application.Azure` is a Application project but references `Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Queueing.Application.Azure` is a Application project but references `Queueing.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Operations.Application.Web` is a Application project but references `Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Operations.Application.Web` is a Application project but references `FileStorage.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Operations.Application.Web` is a Application project but references `FileStorage.Infrastructure.FileSystem`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Operations.Application.Web` is a Application project but references `Utilities.Web`, a Web project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Messaging.Application.RabbitMQ` is a Application project but references `Infrastructure.RabbitMQ`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Messaging.Application.RabbitMQ` is a Application project but references `Messaging.Infrastructure.RabbitMQ`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Messaging.Application.FileStorage` is a Application project but references `FileStorage.Infrastructure.FileSystem`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Messaging.Application.FileStorage` is a Application project but references `Messaging.Infrastructure.FileStorage`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Messaging.Application.Azure` is a Application project but references `Messaging.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Messaging.Application.Azure.SignalR` is a Application project but references `Messaging.Infrastructure.Azure.SignalR`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Application.Web.Startup.EntityFramework` is a Application project but references `Infrastructure.EntityFramework`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Configuration.Application` is a Application project but references `Infrastructure.Azure.KeyVault`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Commands.Application.Web` is a Application project but references `Utilities.Web`, a Web project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Commands.Application.Web` is a Application project but references `Queueing.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Commands.Application.Web` is a Application project but references `FileStorage.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Commands.Application.Web` is a Application project but references `FileStorage.Infrastructure.FileSystem`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Commands.Application.Web.RabbitMQ` is a Application project but references `Infrastructure.RabbitMQ`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Commands.Application.Web.RabbitMQ` is a Application project but references `Queueing.Infrastructure.RabbitMQ`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
`Commands.Application.Web.Azure` is a Application project but references `Queueing.Infrastructure.Azure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.
Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface member counts; fat-interface threshold (over 15 members) flagged per type. Deterministic, type-level.
`IQueueItem<TData>` declares 19 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IQueueItem.cs:7
`ISpan` declares 25 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — ISpan.cs:7
`IDocumentProvider<T>` declares 17 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IDocumentProvider.cs:9
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Do you agree with this assessment?
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified
Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.
Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.
Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
`Application.MessagingConsoleCommandEventHandler` is a read (query) handler but its body raises events — a query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica. — MessagingConsoleCommandEventHandler.cs:12
`Application.TracesConsoleCommandEventHandler` is a read (query) handler but its body writes persistent state — a query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica. — TracesConsoleCommandEventHandler.cs:12
What to do
Keep query handlers read-only — move the writes/event-publishes into a command handler so reads stay safe to retry, cache, and route to a read replica.
Other · Security — Whether access is authorized by default — a framework authorization attribute/decorator or policy, or imperative guard methods (throw-on-violation) called from handlers.
Method: Roslyn scan: [Authorize] usage and authorization policies, plus imperative throw-on-violation guard methods detected via syntax. Deterministic.
Other · Domain Modelling — Whether aggregates reference each other by identity (id) rather than by direct object reference — the core DDD consistency-boundary rule.
Method: Roslyn (DDD-gated): aggregate roots identified by convention; each aggregate field checked for direct references to other aggregates versus id-only. Deterministic, DDD-native.
Coverage: Population: aggregate roots identified by AggregateRoot/IAggregateRoot base/interface NAME convention; reference-by-identity then checked exhaustively within that set — a root not using those names is invisible.
Other · Domain Modelling — How much of the domain uses strongly-typed ids vs raw Guid/string/int — adoption curve, not all-or-nothing.
Method: Roslyn (DDD-gated): strongly-typed id adoption on domain entities/events; raw Guid/int/string ids counted versus wrapped types. Deterministic, adoption percentage.
Coverage: Population: id-like members by *Id/*Key NAME suffix; strongly-typed-ID shape then checked semantically — non-suffixed identifiers are not seen.
`DomainEventBase.EventId` is a raw `Guid` — give it a strongly-typed id: a dedicated single-field type wrapping the `Guid`, in whatever form your language spells that. — DomainEventBase.cs:34
`DomainEventBase.CorrelationId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — DomainEventBase.cs:42
`TenantEntity.TenantId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — TenantEntity.cs:14
`Message.CorrelationId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — Message.cs:58
`LogEvent.Key` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — LogEvent.cs:36
`LogEvent.CorrelationId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — LogEvent.cs:46
`LogEvent.TrackId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — LogEvent.cs:58
`Command.CorrelationId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — Command.cs:26
`LogTrace.Key` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — LogTrace.cs:36
`LogTrace.CorrelationId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — LogTrace.cs:46
`LogTrace.TrackId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — LogTrace.cs:58
`LogTrace.TraceId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — LogTrace.cs:62
`LogTrace.SpanId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — LogTrace.cs:64
`LogTrace.ParentSpanId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — LogTrace.cs:66
What to do
Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
Do you agree with this assessment?
DM4 · Rich vs anemic model3.0 / 10Weak✓ Tool-verified
Other · Domain Modelling — Whether aggregates/entities carry the behaviour that protects their invariants, rather than being data bags driven by external services.
Method: Roslyn (DDD-gated): entity method BODIES classified mutator-vs-query — only methods that mutate the entity's own declared state count as invariant-protecting behaviour, so a getter/passthrough doesn't rescue an anemic class. Deterministic, exhaustive over domain-layer entities.
Coverage: Population: entities by name/base convention; rich-vs-anemic judged by classifying each method body mutator-vs-query — logic-bearing domain types outside the convention are invisible.
`AggregateRoot` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — AggregateRoot.cs:30
`EchoEntity` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — EchoEntity.cs:3
`TenantAggregateRoot` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — TenantAggregateRoot.cs:30
`TenantEntity` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — TenantEntity.cs:10
`DummyMessage` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — DummyMessage.cs:3
`EchoMessage` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — EchoMessage.cs:3
`EntityMessage` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — EntityMessage.cs:5
`Message` is an aggregate/entity with 8 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Message.cs:7
`LogEvent` is an aggregate/entity with 16 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — LogEvent.cs:10
`Command` is an aggregate/entity with 6 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Command.cs:8
`LogTrace` is an aggregate/entity with 28 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — LogTrace.cs:10
What to do
Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
Other · Domain Modelling — Whether entities protect their state (private/init-only setters) instead of exposing public setters that bypass invariants. Softened when a rehydration framework (Marten/EF) is present.
Method: Roslyn (DDD-gated): public setters on entities detected; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.
Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.
`EchoEntity` exposes publicly writable state (Text). — EchoEntity.cs:3
`TenantEntity` exposes publicly writable state (TenantId). — TenantEntity.cs:10
`DummyMessage` exposes publicly writable state (Data). — DummyMessage.cs:3
`EchoMessage` exposes publicly writable state (Text). — EchoMessage.cs:3
`EntityMessage` exposes publicly writable state (Entity). — EntityMessage.cs:5
Make entity setters private/init-only; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters).
Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies (EF/Marten/HTTP/ASP.NET) — the clean-architecture dependency rule.
Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.
Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.
Coverage: Population: repositories + aggregate roots by NAME convention; per-root repository rule checked within the set.
`LogAnalyticsLogEventRepository` is a repository over `LogEvent`, which is an entity but not an aggregate root. Repositories should be per aggregate ROOT — loading/saving a child entity independently lets callers bypass the root's invariants. Access `LogEvent` through its owning aggregate instead. — LogAnalyticsLogEventRepository.cs:10
`LogAnalyticsLogTraceRepository` is a repository over `LogTrace`, which is an entity but not an aggregate root. Repositories should be per aggregate ROOT — loading/saving a child entity independently lets callers bypass the root's invariants. Access `LogTrace` through its owning aggregate instead. — LogAnalyticsLogTraceRepository.cs:9
`MongoLogEventRepository` is a repository over `LogEvent`, which is an entity but not an aggregate root. Repositories should be per aggregate ROOT — loading/saving a child entity independently lets callers bypass the root's invariants. Access `LogEvent` through its owning aggregate instead. — MongoLogEventRepository.cs:7
`MongoLogTraceRepository` is a repository over `LogTrace`, which is an entity but not an aggregate root. Repositories should be per aggregate ROOT — loading/saving a child entity independently lets callers bypass the root's invariants. Access `LogTrace` through its owning aggregate instead. — MongoLogTraceRepository.cs:7
What to do
Define repositories per aggregate root; reach child entities through their root so invariants can't be bypassed.
Other · Domain Modelling — Whether clusters of primitives that travel together (a missing value object) are extracted — a low-weight suggestion, LLM-confirmed when configured.
Method: Roslyn (DDD-gated): primitive parameter clusters recurring three or more times across signatures extracted, then confirmed by language model when configured. Advisory, low-weight.
Other · Event-Driven — Whether event handlers stay asynchronous (no blocking remote HTTP/gRPC calls awaited inside a handler).
Method: Roslyn semantic scan (event-driven gated): event-handler bodies scanned for HTTP/gRPC invocations by resolved symbol type, not substring. Deterministic, semantic-resolved.
Other · Event-Driven — Whether commands have a single handler (one owner of the decision) and fan-out is modelled with events.
Method: Roslyn scan (event-driven gated): command-shaped messages identified by convention; handler count per command checked for the exactly-one rule. Deterministic, hard fact.
Other · Event-Driven — Whether events are named in the past tense (a clarity nudge — low weight).
Method: Roslyn scan (event-driven gated): domain and integration events checked for past-tense naming (-ed/-en suffix or irregular set). Naming nudge, low-weight advisory.
`DomainEventBase` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. (×2) — DomainEventBase.cs:5, DomainEventBase.cs:5
`EntityDeleteDomainEvent` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. — EntityDeleteDomainEvent.cs:3
`EntityInsertDomainEvent` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. — EntityInsertDomainEvent.cs:3
`EntityUpdateDomainEvent` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. — EntityUpdateDomainEvent.cs:3
`IDomainEvent` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. — IDomainEvent.cs:3
What to do
Name events in the past tense — they record facts that already happened.
Other · Event-Driven — Whether state changes and message publishes are atomic (a transactional outbox) rather than a crash-unsafe dual write.
Method: Roslyn semantic scan (event-driven gated): event-handler methods scanned for DB-save plus bus-publish without a transactional outbox reference. Deterministic, semantic-resolved.
`TracesConsoleCommandEventHandler.Handle` writes to the database while `MessagingConsoleCommandEventHandler.Handle` publishes to the message bus in the same command-handling flow, with no outbox referenced on either path. Splitting the persist and the publish across sibling methods (or two collaborating actors) doesn't make them atomic — a crash between the two either loses the message or emits a phantom event. Use the transactional outbox pattern so the message is committed in the same transaction as the state change and dispatched afterwards. — TracesConsoleCommandEventHandler.cs:23
What to do
Adopt the transactional outbox pattern so DB writes and message publishes commit atomically — no lost or phantom events on a crash.
Other · Readiness — Whether retry-prone mutations (command handlers + message/event consumers) are idempotent so an at-least-once redelivery or client retry doesn't double-apply the effect — heuristic at-risk detection confirmed by language model, advisory.
Method: Roslyn heuristic (any mutation, ungated): command handlers and message/event consumers that mutate persistent state without a visible idempotency guard (exists/dedup check, upsert, idempotency-key/inbox, conditional/versioned write, fixed-value set) flagged as at-risk; each at-risk candidate then confirmed or cleared by a language model as genuinely non-idempotent versus naturally-idempotent. Advisory without a model (heuristic-only, degraded), per-candidate judged with one.
Coverage: Population: retry-prone mutations — command handlers (CQRS write side) + message/event consumers (IConsumer/I*EventHandler) — that mutate persistent state; runs on any repo with mutations, not only event-driven ones. The at-risk subset (no obvious guard) is a HEURISTIC candidate set, each then LLM-JUDGED non-idempotent vs safe; a handler outside those conventions, or a guard the LLM can't confirm, is bounded by the sample. Degrades to heuristic-only when no model is configured.
Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface. (×21) — CosmosSqlProviderV3.cs:180, LogAnalyticsRepository.cs:95, LogAnalyticsRepository.cs:100, …
What to do
Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
Other · Code Health — Unfinished work detected by code SHAPE, not keywords: members that only throw a "not implemented" exception, methods that take inputs and return a constant, async methods that never await, dead `if (false)` / `#if false` branches, and skeleton types most of whose members are holes. A real, objective slice of technical debt.
`GetSecretsWithHttpMessagesAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — CachedKeyVaultClient.cs:48
`GetSecretWithHttpMessagesAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — CachedKeyVaultClient.cs:57
`RenameFileAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×3) — AzureFileShareStorage.cs:141, AzureKeyVaultFileStorage.cs:54, EmbeddedFileStorage.cs:90
`AzureKeyVaultFileStorage` has 10 unfinished members out of 10 — a scaffolded type that was never implemented. — AzureKeyVaultFileStorage.cs:9
`CopyFileAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — AzureKeyVaultFileStorage.cs:14, EmbeddedFileStorage.cs:95
`DeleteFileAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — AzureKeyVaultFileStorage.cs:19, EmbeddedFileStorage.cs:100
`DeleteFilesAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — AzureKeyVaultFileStorage.cs:24, EmbeddedFileStorage.cs:105
`Dispose` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — AzureKeyVaultFileStorage.cs:29
`ExistsAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — AzureKeyVaultFileStorage.cs:34
`GetFileInformationAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — AzureKeyVaultFileStorage.cs:39
`GetFileInformationsAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — AzureKeyVaultFileStorage.cs:44
`GetFileStreamAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — AzureKeyVaultFileStorage.cs:49
`SaveFileAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — AzureKeyVaultFileStorage.cs:59, EmbeddedFileStorage.cs:85
`GetDirectoryContents` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — FileStorageProvider.cs:21
`InMemoryEventStore` has 2 unfinished members out of 4 — a scaffolded type that was never implemented. — InMemoryEventStore.cs:7
`ReadSnapshotAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InMemoryEventStore.cs:32
`SaveSnapshotAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InMemoryEventStore.cs:38
`FindAllAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — DocumentRepository.cs:85
`FindOneAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — DocumentRepository.cs:113
`WhereAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — CosmosSqlProviderV3.cs:171
`CountAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×3) — LogAnalyticsRepository.cs:93, LogAnalyticsRepository.cs:98, LogAnalyticsRepository.cs:103
`SqlEventStore` has 4 unfinished members out of 4 — a scaffolded type that was never implemented. — SqlEventStore.cs:8
What to do
Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add a 'Testing' section to the root README — how to run the test suite.
Add a README to the 107 of 109 project(s) that lack one — worth up to 2 pts.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
README advertises a microservices architecture, but the repo is a single project with no service manifests
What to do
Reconcile the README with reality: README advertises a microservices architecture, but the repo is a single project with no service manifests.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
What to do
Enable Dependabot/Renovate or a dependency-review gate.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced — a bad release is harder to detect and reverse.
What to do
Add readiness/liveness probes and a rolling-update (or blue/green) strategy so a bad release is caught and rolled back automatically.
The pipeline declares a deployment environment, but whether required reviewers / protection rules are attached to it lives in repository settings we cannot read — confirm the gate is enforced before production promotion.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
Readiness · Performance — Whether the library protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.
Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.
Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.
Raise allocation-aware density on the hot paths — currently 4 use(s) across 75,988 production line(s) (~0.1/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.
Readiness · Performance — Whether asynchronous code keeps its host responsive — a library awaits with ConfigureAwait(false) (so it never captures and stalls the host's context) and avoids sync-over-async blocking (.Wait()/.GetAwaiter().GetResult()) that wastes threads and risks deadlock.
Method: Production-source scan: sync-over-async blocking (.Wait()/.GetAwaiter().GetResult()) counted everywhere, and — for a library with ≥5 awaits — the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
20 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock in a consumer with a synchronization context.
What to do
Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult() in library code.
Other · Security — Transport security, security headers, secure cookies, input validation, middleware order and crypto hygiene (presence, not runtime).
MD5/SHA1 is broken for security purposes (collision-vulnerable). Use SHA-256+ for content integrity; for password storage, use a KDF (PBKDF2/Argon2/BCrypt). — HashAlgorithm.cs:20
DES / 3DES / RijndaelManaged-bare is deprecated or broken. Use AES-GCM via `Aes.Create()` with explicit key/iv sizes. — RijndaelSerializer.cs:46
`RequireHttpsMetadata = false` allows the OIDC discovery doc to be fetched over plain HTTP. Safe for loopback-only fetches (Aspire / on-host); risky for any other path. — NaosExtensions.cs:106
No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
No UseHttpsRedirection/UseHsts and no reverse-proxy signal — transport security is unverified at the app layer. (−2.0 on this card.)
No CookieSecurePolicy/HttpOnly/SameSite configuration found. (−1.5 on this card; skip if the app sets no cookies.)
What to do
Replace MD5/SHA1 with SHA-256+ for content hashing; switch to a KDF (PBKDF2/Argon2/BCrypt) for password storage.
Replace DES/3DES (and bare RijndaelManaged) with AES-GCM via `Aes.Create()`.
Set RequireHttpsMetadata = true in prod (or pin MetadataAddress to a localhost URL the API can hit directly).
Add security response headers (Content-Security-Policy, X-Frame-Options, X-Content-Type-Options) — defense in depth, even when a reverse proxy could set them.
Enforce HTTPS at the app layer (UseHttpsRedirection / UseHsts) — only skip this if a reverse proxy demonstrably terminates TLS.
Set secure cookie flags — CookieSecurePolicy.Always, HttpOnly, and SameSite (Strict/Lax) on auth/session cookies. Skip only if the app sets no cookies.
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Make the caller `async` and `await` instead. (×18) — RabbitMQMessageBroker.cs:201, ServiceBusMessageBroker.cs:66, ServiceBusMessageBroker.cs:149, …
`async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained. — JobSchedulerHostedService.cs:70
Other · Code Health — Whether async methods accept a CancellationToken so work can be cancelled (adoption curve).
Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage.
Only 216/384 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
No CancellationToken parameter — this work can't be stopped early once started. (×14) — NaosGenericRepositoryControllerBase.cs:27, NaosGenericRepositoryControllerBase.cs:62, NaosGenericRepositoryControllerBase.cs:86, …
What to do
Thread a CancellationToken through async methods so work stops promptly on cancellation.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×3) — Expando.cs:174, Expando.cs:204, Expando.cs:234
Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.
Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. Deterministic.
Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it. (×23) — HttpClientBuilderExtensions.cs:53, HttpClientBuilderExtensions.cs:63, NaosReadOnlyGenericRepositoryControllerBase.cs:42, …
Other · Code Health — Whether nullable reference types are enabled and not undermined by heavy `!` suppression.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
0/4 projects enable <Nullable>enable</Nullable>. NRTs catch a whole class of null-deref bugs at compile time.
What to do
Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Not included — 39 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AXB2 Runtime readiness — no data
C1 Data Protection — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
C3 Audit Trail — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
D11 Test Reliability — Test reliability not measured — no test run produced results
D16 Bus Factor — dormant codebase — no living knowledge left to concentrate
D20 ADR Quality — N/A — this repo declares itself a template / kata / sample / demo; a formal ADR log is deferred to a real application built from it.
D22 Internal API Consistency — No exposed public API
D23 Boundary Type-Coupling — Bounded contexts not declared
D24 Comment Value — LLM evaluation failed
D25 ADR Conformance — no ADRs to check
D30 Dependency Vulnerabilities — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
D32 Data Compliance (PII/GDPR) — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.
D33 JS/npm Dependency Vulnerabilities — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D38 OSV Dependency Vulnerabilities — No supported non-.NET dependency lockfile found outside build output (npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven pom.xml, Gradle lockfiles, Python requirements.txt/poetry.lock/Pipfile.lock/pdm.lock, PHP composer.lock, Ruby Gemfile.lock, Elixir mix.lock, Dart pubspec.lock, Swift Package.resolved); nothing for OSV to scan. A NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain.
D39 IL Efficiency — The target did not build, so no IL was available to measure.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
DM3 Integration-event coupling — no integration events detected — coupling check not applicable
ES1 Event Sourcing — applicable but skipped (2/3 markers — below the conservative bar): an event-store package (Marten/EventStore); an append-only event-store seam (IEventStore/Append-of-events)
P12 CI test-gate honesty — no data
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
SC1 Supply-chain hygiene — no data
X6 Hand-rolled structured-format parsing — no data
X7 Silent fallback defaults — no data
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
Boundary-crossing change coupling: AzureStorageQueueOptionsBuilder.cs ↔ QueueOptionsBase.cs src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueueOptionsBuilder.cs— `src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueueOptionsBuilder.cs` (context Queueing.Infrastructure.Azure) and `src/Queueing/Domain/Model/QueueOptionsBase.cs` (context Queueing) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: AzureStorageQueue.cs ↔ InMemoryQueueOptionsBuilder.cs src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs— `src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs` (context Queueing.Infrastructure.Azure) and `src/Queueing/InMemoryQueueOptionsBuilder.cs` (context Queueing) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: AzureServiceBusQueue.cs ↔ InMemoryQueueOptionsBuilder.cs src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs— `src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs` (context Queueing.Infrastructure.Azure) and `src/Queueing/InMemoryQueueOptionsBuilder.cs` (context Queueing) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: AzureStorageQueue.cs ↔ QueueOptionsBase.cs src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs— `src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs` (context Queueing.Infrastructure.Azure) and `src/Queueing/Domain/Model/QueueOptionsBase.cs` (context Queueing) sit in DIFFERENT parts of the tree yet change together 54% of the time (7 of the 13 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: OperationsOptionsExtensions.cs ↔ HttpClientTracerHandler.cs src/Operations.Application/OperationsOptionsExtensions.cs— `src/Operations.Application/OperationsOptionsExtensions.cs` (context Operations) and `src/Tracing.Application/HttpClientTracerHandler.cs` (context Tracing) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
Boundary-crossing change coupling: AzureStorageQueue.cs ↔ QueueItem.cs src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs— `src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs` (context Queueing.Infrastructure.Azure) and `src/Queueing/Domain/Model/QueueItem.cs` (context Queueing) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
High: insecure-binaryformatter-deserialization src/Foundation.Serialization/Serializers/BinarySerializer.cs:18— The BinaryFormatter type is dangerous and is not recommended for data processing. Applications should stop using BinaryFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. BinaryFormatter is insecure and can't be made secure
High: insecure-binaryformatter-deserialization src/Foundation.Utilities/Expando/SerializationHelper.cs:128— The BinaryFormatter type is dangerous and is not recommended for data processing. Applications should stop using BinaryFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. BinaryFormatter is insecure and can't be made secure
High: insecure-binaryformatter-deserialization src/Foundation.Utilities/SigningHelper.cs:17— The BinaryFormatter type is dangerous and is not recommended for data processing. Applications should stop using BinaryFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. BinaryFormatter is insecure and can't be made secure
High: insecure-binaryformatter-deserialization src/Foundation.Utilities/SigningHelper.cs:31— The BinaryFormatter type is dangerous and is not recommended for data processing. Applications should stop using BinaryFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. BinaryFormatter is insecure and can't be made secure
TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs:35— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs:68— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs:94— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/Application.Web/Controllers/NaosReadOnlyGenericRepositoryControllerBase.cs:39— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/Application.Web/Controllers/NaosReadOnlyGenericRepositoryControllerBase.cs:57— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobRegistrationsController.cs:36— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobRegistrationsController.cs:49— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobsController.cs:39— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/ServiceDiscovery.Application.Web.Router/Controllers/NaosServiceDiscoveryRegistrationsController.cs:38— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/ServiceDiscovery.Application.Web.Router/Controllers/NaosServiceDiscoveryRegistrationsController.cs:51— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/ServiceDiscovery.Application.Web.Router/Controllers/NaosServiceDiscoveryRegistrationsController.cs:78— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment tests/Sample/Countries/Presentation/Web/Controllers/CountriesController.cs:29— // TODO: use 2.2 conventions https://blogs.msdn.microsoft.com/webdev/2018/08/23/asp-net-core-2-20-preview1-open-api-analyzers-conventions/
TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs:55— // TODO: throw notfoundexception? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs:104— // TODO: throw notfoundexception? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/Application.Web/Controllers/NaosReadOnlyGenericRepositoryControllerBase.cs:73— // TODO: throw notfoundexception? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobRegistrationsController.cs:60— // TODO: throw notfoundexception? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobsController.cs:50— // TODO: throw notfoundexception? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/ServiceDiscovery.Application.Web.Router/Controllers/NaosServiceDiscoveryRegistrationsController.cs:88— // TODO: throw notfoundexception? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment tests/Sample/Countries/Presentation/Web/Controllers/CountriesController.cs:40— // TODO: throw notfoundexception? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/Application.Web/NaosExtensions.cs:93— // TODO: replace with .AddOpenApiDocument, but currently has issues with example model generation in UI — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/Application.Web/NaosExtensions.cs:95— // TODO: AddNaos.AddSwaggerDocument() ^^^^ — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/Application.Web/NaosExtensions.cs:178— // TODO: also allow the auth header to be sent in the querystring — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/Application.Web/NaosExtensions.cs:190— // TODO: also allow the auth header to be sent in the url https://en.wikipedia.org/wiki/Basic_access_authentication
TodoComment src/Authentication.Application.Web/ApplicationExtensions.cs:58— // TODO: register other middleware for different authentication schemes (easyauth?) — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
BarePragmaDisable src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:93— #pragma warning disable SA1008 // Opening parenthesis must be spaced correctly
BarePragmaDisable src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs:93— #pragma warning disable SA1008 // Opening parenthesis must be spaced correctly
BarePragmaDisable src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:213— #pragma warning disable SA1008 // Opening parenthesis must be spaced correctly
BarePragmaDisable src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity}.cs:206— #pragma warning disable SA1008 // Opening parenthesis must be spaced correctly
BarePragmaDisable src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:219— #pragma warning disable SA1008 // Opening parenthesis must be spaced correctly
BarePragmaDisable src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity}.cs:209— #pragma warning disable SA1008 // Opening parenthesis must be spaced correctly
BarePragmaDisable src/Foundation.Console/App/InteractiveConsoleHostedService.cs:123— #pragma warning disable CA1031 // Do not catch general exception types
BarePragmaDisable src/Foundation.Domain/Model/DataDictionary.cs:120— #pragma warning disable CA1031 // Do not catch general exception types
BarePragmaDisable src/Foundation.Extensions/EnumExtensions.cs:115— #pragma warning disable CA1031 // Do not catch general exception types
BarePragmaDisable src/Foundation.Extensions/JTokenExtensions.cs:89— #pragma warning disable CA1031 // Do not catch general exception types
BarePragmaDisable src/Foundation.Extensions/JTokenExtensions.cs:116— #pragma warning disable CA1031 // Do not catch general exception types
BarePragmaDisable src/Foundation.Extensions/JTokenExtensions.cs:275— #pragma warning disable CA1031 // Do not catch general exception types
BarePragmaDisable src/Foundation.Utilities/Pipeline/Pipeline.cs:67— #pragma warning disable CA1031 // Do not catch general exception types
Off the main sequence: Infrastructure.Azure — Infrastructure.Azure: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Extensions — Extensions: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Encoding — Encoding: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Infrastructure.RabbitMQ — Infrastructure.RabbitMQ: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: ContentTypes — ContentTypes: abstractness 0.00, instability 0.02, distance 0.98 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Resources — Resources: abstractness 0.00, instability 0.02, distance 0.98 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Logging — Logging: abstractness 0.00, instability 0.02, distance 0.98 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Infrastructure.Azure.KeyVault — Infrastructure.Azure.KeyVault: abstractness 0.00, instability 0.04, distance 0.96 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Utilities — Utilities: abstractness 0.08, instability 0.03, distance 0.89 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Serialization — Serialization: abstractness 0.10, instability 0.01, distance 0.89 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Abstractions — Abstractions: abstractness 0.11, instability 0.01, distance 0.88 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Console — Console: abstractness 0.10, instability 0.06, distance 0.85 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Configuration.Application — Configuration.Application: abstractness 0.08, instability 0.12, distance 0.80 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Domain.Specifications — Domain.Specifications: abstractness 0.11, instability 0.10, distance 0.78 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Infrastructure.Azure.ServiceBus — Infrastructure.Azure.ServiceBus: abstractness 0.25, instability 0.00, distance 0.75 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Criteria — Criteria: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Change coupling: ISqlBuilder.cs ↔ SqlServerDocumentProvider.cs src/Foundation.Infrastructure.Documents.SqlServer/Provider/ISqlBuilder.cs— `src/Foundation.Infrastructure.Documents.SqlServer/Provider/ISqlBuilder.cs` and `src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlServerDocumentProvider.cs` change together 100% of the time (10 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
Change coupling: CommandRequestWrapper.cs ↔ MediatorDispatcherCommandRequestExtension.cs src/Commands.Application.Web/CommandRequestWrapper.cs— `src/Commands.Application.Web/CommandRequestWrapper.cs` and `src/Commands.Application.Web/Middleware/Extensions/MediatorDispatcherCommandRequestExtension.cs` change together 73% of the time (8 of the 11 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
Change coupling: AsyncLocalScope.cs ↔ IScopeManager.cs src/Tracing.Domain/Model/AsyncLocalScope.cs— `src/Tracing.Domain/Model/AsyncLocalScope.cs` and `src/Tracing.Domain/Model/IScopeManager.cs` change together 73% of the time (8 of the 11 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
Change coupling: CommandRequestQueueEventHandler.cs ↔ QueueDispatcherCommandRequestExtension.cs src/Commands.Application.Web/CommandRequestQueueEventHandler.cs— `src/Commands.Application.Web/CommandRequestQueueEventHandler.cs` and `src/Commands.Application.Web/Middleware/Extensions/QueueDispatcherCommandRequestExtension.cs` change together 69% of the time (11 of the 16 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
Low cohesion: SqlBuilder (LCOM4 11) src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs:11— SqlBuilder's methods form 11 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: Node (LCOM4 9) src/Foundation.Utilities/Node/Node.cs:8— Node's methods form 9 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: Span (LCOM4 8) src/Tracing.Domain/Model/Span/Span.cs:10— Span's methods form 8 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: SqlServerDocumentProvider (LCOM4 5) src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlServerDocumentProvider.cs:17— SqlServerDocumentProvider's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
No assertions: MixInObjectInstanceTest tests/Foundation.UnitTests/Utilities/ExpandoTests.cs:220— Test method exercises code but verifies nothing — add an assertion.
No assertions: CanSendInvalid_Test tests/IntegrationTests/Commands/CommandRequestTests.cs:65— Test method exercises code but verifies nothing — add an assertion.
EntityFrameworkRepository.UpsertAsync (cognitive 20) src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:152— EntityFrameworkRepository.UpsertAsync has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
EntityFrameworkRepository.UpsertAsync (cognitive 20) src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity}.cs:148— EntityFrameworkRepository.UpsertAsync has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
CosmosSqlRepository.UpsertAsync (cognitive 18) src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity,TDestination}.cs:114— CosmosSqlRepository.UpsertAsync has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
CosmosSqlRepository.UpsertAsync (cognitive 18) src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity}.cs:108— CosmosSqlRepository.UpsertAsync has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
MongoRepository.UpsertAsync (cognitive 18) src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:165— MongoRepository.UpsertAsync has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
MongoRepository.UpsertAsync (cognitive 18) src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity}.cs:155— MongoRepository.UpsertAsync has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
InMemoryRepository.FindAll (cognitive 16) src/Foundation.Domain.Repositories/InMemory/InMemoryRepository{TEntity,TDestination}.cs:90— InMemoryRepository.FindAll has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
InMemoryRepository.FindAll (cognitive 16) src/Foundation.Domain.Repositories/InMemory/InMemoryRepository{TEntity}.cs:312— InMemoryRepository.FindAll has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
SqlBuilder.BuildExpressionSelect (cyclomatic 38) src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs:84— SqlBuilder.BuildExpressionSelect has cyclomatic complexity 38 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
FileStorageKeyValueStorage.Match (cyclomatic 35) src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:184— FileStorageKeyValueStorage.Match has cyclomatic complexity 35 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Extensions.To (cyclomatic 18) src/Foundation.Extensions/To.cs:21— Extensions.To has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Extensions.To (cyclomatic 17) src/Foundation.Extensions/To.cs:92— Extensions.To has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
SshNetFileStorage.CreateConnectionInfo (cyclomatic 16) src/FileStorage.Infrastructure.Ssh/SshNetFileStorage.cs:300— SshNetFileStorage.CreateConnectionInfo has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D11 · Test Reliability· Test reliability not measured · ×1
Test reliability not measured — no test run produced results — Test reliability NOT MEASURED: the test run produced no results for any test tier, so no test ever ran and flakiness could not be exercised. The cause could not be attributed, so it is excluded from the score rather than read as an absence of tests.
Prerelease dependency: Microsoft.Azure.Cosmos.Table — Microsoft.Azure.Cosmos.Table resolves to 2.0.0-preview, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
dormant codebase — no living knowledge left to concentrate — All 45 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains — nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness).
D17 · Explicit Debt· BareSuppressMessage repeated 90 times in one file · ×1
BareSuppressMessage repeated 90 times in one file GlobalSuppressions.cs:2— The identical BareSuppressMessage (`System.Diagnostics.CodeAnalysis.SuppressMessage`) appears 90 times in one file — one decision applied repeatedly (e.g. the same rule silenced on every overload of a fluent API), not 90 independent debts. Decide it once — at the type or project level, or by fixing the underlying pattern — rather than occurrence-by-occurrence. (Every occurrence still counts toward the score and metrics.)
BarePragmaDisable repeated across 20 files src/Commands.Application.Web/CommandRequestRegistration.cs:63— The identical BarePragmaDisable (`#pragma warning disable SA1402 // File may only contain a single type`) appears in 20 files (20 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 20 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
BarePragmaDisable repeated across 11 files src/FileStorage/Domain/FileStorageExtensions.cs:20— The identical BarePragmaDisable (`#pragma warning disable CA2000 // Dispose objects before losing scope`) appears in 11 files (17 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 17 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
BarePragmaDisable repeated across 14 files src/Foundation.Utilities/Factory.cs:9— The identical BarePragmaDisable (`#pragma warning disable SA1402 // File may only contain a single class`) appears in 14 files (14 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 14 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
FileStorageKeyValueStorage.Match (cognitive 46) src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:184— FileStorageKeyValueStorage.Match has cognitive complexity 46 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NaosOperationsHealthController.GetHtmlAsync (cognitive 33) src/Operations.Application.Web/Controllers/NaosOperationsHealthController.cs:86— NaosOperationsHealthController.GetHtmlAsync has cognitive complexity 33 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ServiceBusMessageBroker.ProcessMessage (cognitive 30) src/Messaging.Infrastructure.Azure/ServiceBus/ServiceBusMessageBroker.cs:213— ServiceBusMessageBroker.ProcessMessage has cognitive complexity 30 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
FileStorageMessageBroker.ProcessMessage (cognitive 29) src/Messaging.Infrastructure.FileSystem/FileStorageMessageBroker.cs:142— FileStorageMessageBroker.ProcessMessage has cognitive complexity 29 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
InteractiveConsoleHostedService.Run (cognitive 27) src/Foundation.Console/App/InteractiveConsoleHostedService.cs:50— InteractiveConsoleHostedService.Run has cognitive complexity 27 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
SqlBuilder.BuildExpressionSelect (cognitive 26) src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs:84— SqlBuilder.BuildExpressionSelect has cognitive complexity 26 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LogAnalyticsRepository.MapResponse (cognitive 25) src/Foundation.Infrastructure.Azure.LogAnalytics/Repositories/LogAnalyticsRepository.cs:155— LogAnalyticsRepository.MapResponse has cognitive complexity 25 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
RabbitMQMessageBroker.ProcessMessage (cognitive 23) src/Messaging.Infrastructure.RabbitMQ/RabbitMQMessageBroker.cs:329— RabbitMQMessageBroker.ProcessMessage has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
SignalRServerlessMessageBroker.ProcessMessage (cognitive 23) src/Messaging.Infrastructure.Azure.SignalR/SignalRServerlessMessageBroker.cs:181— SignalRServerlessMessageBroker.ProcessMessage has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LoggingFilterContext.Prepare (cognitive 20) src/Operations.Application/LoggingFilterContext.cs:21— LoggingFilterContext.Prepare has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
PropertyBag.ReadXml (cognitive 20) src/Foundation.Utilities/Expando/PropertyBag.cs:132— PropertyBag.ReadXml has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ApiKeyAuthenticationHandler.HandleAuthenticateAsync (cognitive 19) src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:32— ApiKeyAuthenticationHandler.HandleAuthenticateAsync has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
BasicAuthenticationHandler.HandleAuthenticateAsync (cognitive 19) src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs:32— BasicAuthenticationHandler.HandleAuthenticateAsync has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ExpressionExpander.VisitMethodCall (cognitive 19) src/Foundation.Utilities/Expressions/ExpressionExtensions.cs:92— ExpressionExpander.VisitMethodCall has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
InMemoryRepository.UpsertAsync (cognitive 17) src/Foundation.Domain.Repositories/InMemory/InMemoryRepository{TEntity}.cs:157— InMemoryRepository.UpsertAsync has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NaosOperationsLogEventsController.GetHtmlAsync (cognitive 17) src/Operations.Application.Web/Controllers/NaosOperationsLogEventsController.cs:94— NaosOperationsLogEventsController.GetHtmlAsync has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
SshNetFileStorage.CreateConnectionInfo (cognitive 17) src/FileStorage.Infrastructure.Ssh/SshNetFileStorage.cs:300— SshNetFileStorage.CreateConnectionInfo has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Extensions.To (cognitive 17) src/Foundation.Extensions/To.cs:21— Extensions.To has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Run.WithRetriesAsync (cognitive 17) src/Foundation.Utilities/Run.cs:50— Run.WithRetriesAsync has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
CommandRequestMiddleware.Invoke (cognitive 17) src/Commands.Application.Web/Middleware/CommandRequestMiddleware.cs:61— CommandRequestMiddleware.Invoke has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
BadRequestExceptionResponseHandler.Handle (cognitive 16) src/Exceptions.Application.Web/Middleware/Handlers/BadRequestExceptionResponseHandler.cs:26— BadRequestExceptionResponseHandler.Handle has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
PropertyBag.WriteXml (cognitive 16) src/Foundation.Utilities/Expando/PropertyBag.cs:65— PropertyBag.WriteXml has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
DocumentRepository.UpsertAsync (cognitive 16) src/Foundation.Domain.Repositories.Documents/DocumentRepository.cs:134— DocumentRepository.UpsertAsync has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
LLM evaluation failed — JSON parse error: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. Path: $.notable[4].comment | LineNumber: 0 | BytePositionInLine: 995.
Unstable project Application — Application has instability 0.89 with 7 dependents.
Recommendation — 11 finding(s)
D34 · Knowledge Freshness· Largest orphaned file · ×3
Largest orphaned file src/Foundation.ContentTypes/ContentType.cs— One of the largest files with no living knowledge remaining — a reasonable place to start a read-through before the aggregate risk above bites.
Largest orphaned file src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlServerDocumentProvider.cs— One of the largest files with no living knowledge remaining — a reasonable place to start a read-through before the aggregate risk above bites.
Largest orphaned file src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs— One of the largest files with no living knowledge remaining — a reasonable place to start a read-through before the aggregate risk above bites.
D19 · Documentation Quality· The README contains only an architectural Concepts section (a single bulleted list of patterns) plus the dev stack and a logo; there is no cohesive architecture or design documentation describing how each module fits together. · ×1
The README contains only an architectural Concepts section (a single bulleted list of patterns) plus the dev stack and a logo; there is no cohesive architecture or design documentation describing how each module fits together. — Expand with a high-level architecture diagram showing modules, their interdependencies, and data flow. Add a Design section covering domain events, repositories, query patterns, and cross-cutting concerns.
D19 · Documentation Quality· No architecture or per-module design documentation describing how each module fits together. · ×1
No architecture or per-module design documentation describing how each module fits together. — Create an Architecture document mapping every module to its purpose, dependencies, and the modules it interacts with.
D23 · Boundary Type-Coupling· Bounded contexts not declared · ×1
Bounded contexts not declared — At 52k LoC across 123 projects the codebase is both large and multi-module, so explicit bounded contexts are warranted. Name this codebase's bounded contexts (≥2 module groups, e.g. per subsystem) so cross-boundary type coupling can be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["Acme.Billing"]`, `Catalog: ["Acme.Catalog"]`.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
Rotate the exposed credentials — git history can't be un-committed — Some of these secrets are in git HISTORY: deleting the file does not remove them (the commit persists on every clone, fork and backup). The remediation is to ROTATE each historically-exposed credential and treat it as compromised — not to delete the file. Rewriting history is disruptive and unreliable across existing forks. (Working-tree-only secrets — no commit — can instead be removed from the file and moved to a secret store.)
Dormant codebase — 274 of 274 significant files have no living knowledge — the codebase as a whole is dormant, not 274 separate risks. Re-engage owners or document before change.
No artifact signing — No artifact signing found in CI — sign your released artifacts with whatever your ecosystem ships (a GPG/minisign detached signature — or `cosign sign-blob` — over the release archives, or over a checksum file published alongside them, Authenticode via signtool, or `dotnet nuget sign` for packages) so consumers can verify what you built.
D36 · Supply-chain Provenance & Signing· No SBOM · ×1
No SBOM — No SBOM generation or committed SBOM found — produce one with what your ecosystem ships (`dotnet sbom-tool generate` (or the CycloneDX .NET tool) over the solution, `syft` (or `anchore/sbom-action` in CI) over the source tree or released image). Publish it as a release asset (`*.spdx.json` / `*.cdx.json`) so consumers can see what they are installing.
Skipped (documented): FindAllAsync_WithNotSpecification_Test tests/Sample.IntegrationTests/Customers/Domain/Repositories/OrderRepositoryTests.cs:150— Skipped with a documented reason — a deferral, not lazy debt: expression mapping issue
Skipped (documented): FindAllAsync_WithTenantExtension_Test tests/Sample.IntegrationTests/Inventory/Domain/Repositories/ReplenishmentRepositoryTests.cs:76— Skipped with a documented reason — a deferral, not lazy debt: unresolved expression mapping issue
Skipped (documented): ResponseTest tests/Sample.IntegrationTests/RootControllerTests.cs:12— Skipped with a documented reason — a deferral, not lazy debt: testhost not found
Skipped (documented): Benchmark tests/Foundation.UnitTests/Serialization/Base64SerializerTests.cs:32— Skipped with a documented reason — a deferral, not lazy debt: Skip benchmarks for now
Skipped (documented): Benchmark tests/Foundation.UnitTests/Serialization/BsonDataSerializerTests.cs:32— Skipped with a documented reason — a deferral, not lazy debt: Skip benchmarks for now
Skipped (documented): Benchmark tests/Foundation.UnitTests/Serialization/CsvSerializerTests.cs:20— Skipped with a documented reason — a deferral, not lazy debt: Skip benchmarks for now
Skipped (documented): Benchmark tests/Foundation.UnitTests/Serialization/HexSerializerTests.cs:32— Skipped with a documented reason — a deferral, not lazy debt: Skip benchmarks for now
Skipped (documented): Benchmark tests/Foundation.UnitTests/Serialization/JsonNetSerializerTests.cs:32— Skipped with a documented reason — a deferral, not lazy debt: Skip benchmarks for now
Skipped (documented): Benchmark tests/Foundation.UnitTests/Serialization/MessagePackSerializerTests.cs:32— Skipped with a documented reason — a deferral, not lazy debt: Skip benchmarks for now
D18 · Solution Shape· Build did not complete in the analyzer · ×1
Build did not complete in the analyzer — `dotnet build` reported 16 error(s) but no compiler diagnostic — an SDK / target-framework / restore mismatch in the analyzer environment, not a code defect (common for an older codebase whose target framework the analyzer's SDK can't build). Solution Shape is scored on structure and is NOT capped; the semantic analysis of your source loads independently and is unaffected.
D22 · Internal API Consistency· No exposed public API · ×1
No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.
D8 · Code Coverage· Coverage read from a committed report · ×1
Coverage read from a committed report — Line coverage 15.1% — read from a committed opencover report (tests/Foundation.UnitTests/coverage.opencover.xml); the in-image collector couldn't run the suite (commonly external-service dependencies). A real measurement, but from a committed artifact rather than a fresh in-image run.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
dotnet: not applicable — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
trivy: not applicable — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
0
—
Run 019faf50-d4f1-7ce9-9033-5af0c3bad33e · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 65 · Warnings: 669 · Recommendations: 11 · Info: 148 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 29-07-2026 @ 19:18 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.