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.
Watchdog 29-07-2026 @ 19:18 UTC Public
Code Health Audit

Vip32/Naos

49% Weak
CriticalWeakAdequateStrongExemplary
upper third — near Adequate

Medium · 52,730 LoC · 123 projects · rebuild ~1.0 person-years · weakest lens: Code Health (46%)

Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸

66/68dimensions tool-verifieddeterministic · confidence 1.0 · 2 LLM-assisted, advisory
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 headline Width 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.
Code Health 46% · 45% weightDomain Modelling 48% · 25% weightReadiness 49% · 14% weightSecurity 55% · 8% weightMaturity 64% · 4% weightPerformance 67% · 2% weightArchitecture 67% · 1% weightEvent-Driven 88% · 1% weight

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.

  • D4 · Duplicated block (15 lines × 6) src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity,TDestination}.cs
  • D4 · Duplicated block (12 lines × 2) src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs
  • D4 · Duplicated block (8 lines × 2) src/Operations.Application/LoggingOptionsExtensions.cs
  • D4 · Duplicated block (7 lines × 2) src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs
  • D4 · Duplicated block (6 lines × 3) src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs
  • D4 · Duplicated block (6 lines × 2) src/Queueing/InMemoryQueue.cs
  • D4 · Duplicated block (5 lines × 4) src/Queueing/InMemoryQueue.cs
  • D12 · Prerelease dependency: Microsoft.Azure.Cosmos.Table
  • D17 · BareSuppressMessage repeated 90 times in one file GlobalSuppressions.cs
  • D17 · TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs
  • D17 · TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs
  • D17 · TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs
  • D17 · TodoComment src/Application.Web/Controllers/NaosReadOnlyGenericRepositoryControllerBase.cs
  • D17 · TodoComment src/Application.Web/Controllers/NaosReadOnlyGenericRepositoryControllerBase.cs
  • D17 · TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobRegistrationsController.cs
  • D17 · TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobRegistrationsController.cs
  • D17 · TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobsController.cs
  • D17 · TodoComment src/ServiceDiscovery.Application.Web.Router/Controllers/NaosServiceDiscoveryRegistrationsController.cs
  • D17 · TodoComment src/ServiceDiscovery.Application.Web.Router/Controllers/NaosServiceDiscoveryRegistrationsController.cs
  • D17 · TodoComment src/ServiceDiscovery.Application.Web.Router/Controllers/NaosServiceDiscoveryRegistrationsController.cs
  • D17 · TodoComment tests/Sample/Countries/Presentation/Web/Controllers/CountriesController.cs
  • D17 · TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs
  • D17 · TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs
  • D17 · TodoComment src/Application.Web/Controllers/NaosReadOnlyGenericRepositoryControllerBase.cs
  • D17 · TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobRegistrationsController.cs
  • D17 · TodoComment src/JobScheduling.Application.Web/Controllers/NaosJobsController.cs
  • D17 · TodoComment src/ServiceDiscovery.Application.Web.Router/Controllers/NaosServiceDiscoveryRegistrationsController.cs
  • D17 · TodoComment tests/Sample/Countries/Presentation/Web/Controllers/CountriesController.cs
  • D17 · TodoComment src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs
  • D17 · TodoComment src/Application.Web/NaosExtensions.cs
  • D17 · TodoComment src/Application.Web/NaosExtensions.cs
  • D17 · TodoComment src/Application.Web/NaosExtensions.cs
  • D17 · TodoComment src/Application.Web/NaosExtensions.cs
  • D17 · BarePragmaDisable src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs
  • D17 · BarePragmaDisable src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs
  • D17 · BarePragmaDisable src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs
  • D17 · BarePragmaDisable src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity}.cs
  • D17 · BarePragmaDisable src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs
  • D17 · BarePragmaDisable src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity}.cs
  • D17 · TodoComment src/Commands.Application.Web/CommandRequestDocumentProcessor.cs
  • D17 · TodoComment src/Commands.Application.Web/Middleware/CommandRequestMiddleware.cs
  • D17 · TodoComment src/Commands.Application.Web/CommandRequestDocumentProcessor.cs
  • D17 · BarePragmaDisable repeated across 20 files src/Commands.Application.Web/CommandRequestRegistration.cs
  • D17 · TodoComment src/Commands.Application.Web/Middleware/CommandRequestMiddleware.cs
  • D17 · TodoComment src/Commands.Application/Handlers/BaseCommandHandler.cs
  • D17 · TodoComment src/Commands.Application/Handlers/BaseCommandHandler.cs
  • D17 · TodoComment src/Commands.Application/Handlers/BaseCommandHandler.cs
  • D17 · TodoComment src/Commands.Application/Handlers/BaseCommandHandler.cs
  • D17 · TodoComment src/Commands.Application/Handlers/BaseCommandHandler.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs
  • D17 · TodoComment src/Commands.Application/NaosExtensions.cs
  • D17 · TodoComment src/Commands.Application/NaosExtensions.cs
  • D17 · TodoComment src/ServiceDiscovery.Application.Web.Router/ApplicationExtensions.cs
  • D17 · TodoComment src/Commands.Application/NaosExtensions.cs
  • D17 · TodoComment src/Commands.Domain/Model/Command.cs
  • D17 · TodoComment src/Commands.Domain/Model/Command.cs
  • D17 · TodoComment src/Configuration.Application/NaosExtensions.cs
  • D17 · TodoComment src/Configuration.Application/NaosExtensions.cs
  • D17 · TodoComment src/Configuration.Application/NaosExtensions.cs
  • D17 · TodoComment src/Correlation.Application/Web/Client/Handlers/HttpClientCorrelationHandler.cs
  • D17 · TodoComment src/Correlation.Application/Web/Client/Handlers/HttpClientCorrelationHandler.cs
  • D17 · TodoComment src/Correlation.Application/Web/Client/Handlers/HttpClientCorrelationHandler.cs
  • D17 · TodoComment src/FileStorage.Infrastructure.Azure/AzureBlobFileStorage.cs
  • D17 · TodoComment src/Foundation.Application.Web/Dashboard/HttpResponseExtensions.cs
  • D17 · TodoComment src/Foundation.Application.Web/Dashboard/HttpResponseExtensions.cs
  • D17 · TodoComment src/FileStorage.Infrastructure.Azure/AzureBlobFileStorage.cs
  • D17 · TodoComment src/FileStorage.Infrastructure.Azure/AzureFileShareStorage.cs
  • D17 · TodoComment src/FileStorage.Infrastructure.Azure/AzureBlobFileStorage.cs
  • D17 · TodoComment src/FileStorage.Infrastructure.Azure/AzureFileShareStorage.cs
  • D17 · BarePragmaDisable repeated across 11 files src/FileStorage/Domain/FileStorageExtensions.cs
  • D17 · TodoComment src/Filtering.Application/Web/FilterContextFactory.cs
  • D17 · TodoComment src/Filtering.Application/Web/FilterContextFactory.cs
  • D17 · TodoComment src/Foundation.Application.Web/Dashboard/HttpResponseExtensions.cs
  • D17 · TodoComment src/Foundation.Application.Web/Dashboard/HttpResponseExtensions.cs
  • D17 · BarePragmaDisable src/Foundation.Console/App/InteractiveConsoleHostedService.cs
  • D17 · BarePragmaDisable src/Foundation.Domain/Model/DataDictionary.cs
  • D17 · BarePragmaDisable src/Foundation.Extensions/EnumExtensions.cs
  • D17 · BarePragmaDisable src/Foundation.Extensions/JTokenExtensions.cs
  • D17 · BarePragmaDisable src/Foundation.Extensions/JTokenExtensions.cs
  • D17 · BarePragmaDisable src/Foundation.Extensions/JTokenExtensions.cs
  • D17 · BarePragmaDisable src/Foundation.Utilities/Pipeline/Pipeline.cs
  • D17 · TodoComment src/Foundation.Domain.Repositories/InMemory/InMemoryRepository{TEntity,TDestination}.cs
  • D17 · TodoComment src/Foundation.Domain.Repositories/InMemory/InMemoryRepository{TEntity,TDestination}.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V3/CosmosSqlProviderV3.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V3/CosmosSqlProviderV3.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V3/CosmosSqlProviderV3.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.LogAnalytics/Repositories/LogAnalyticsRepository.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.LogAnalytics/Repositories/LogAnalyticsRepository.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Azure.LogAnalytics/Repositories/LogAnalyticsRepository.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs
  • D17 · TodoComment src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlServerDocumentProvider.cs

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.

Rebuild cost & value ~ Modeled — €47,000–€240,000
Cost to rebuild€47,000–€240,000 (0.5–1.5 person-years (788–2,531 h), ~1–2 engineers)
Domain complexityVery high — harder problems cost more per line
Quality factor0.7× (at 49% quality) — the last 20% of quality is most of the work
Size & shapeMedium · 47% boilerplate · 22% straight-line · 31% branching logic

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).
+2.9 pts · Low effort · Explicit Debt
2
Interpolated log message defeats structured logging
+3.3 pts · Medium effort · Structured logging
3
Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
+3.3 pts · Medium effort · Nullable reference types

Diagnosis — what's actually going on

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.
Evidence: valuation: Medium, ~1.0 person-years rebuild (52,730 LoC) · weakest lens: Code Health 46%
→ 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.
Evidence: DM5 setters: 9 · DM4 anemic: 11 · DM2 primitive ids: 14
→ Address encapsulation as one pattern (private setters + behaviour + strongly-typed ids), not 100 separate findings.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Interpolated log message defeats structured logging The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Interpolated log message defeats structured logging

Architecture — bounded-context dependency graph

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.

arch UnitTests UnitTests IntegrationTests IntegrationTests Application.Web Application.Web Application.Web2 Application.Web2 FitnessTests FitnessTests Sample.IntegrationTests Sample.IntegrationTests UnitTests (2) UnitTests (2) ctx:Application Application Application ctx:Configuration Configuration Application ctx:Application->ctx:Configuration ctx:Extensions Extensions Extensions ctx:Application->ctx:Extensions ctx:Messaging Messaging Application · Messaging ctx:Application->ctx:Messaging ctx:Operations Operations Application · Domain ctx:Application->ctx:Operations ctx:Queueing Queueing Application · Queueing ctx:Application->ctx:Queueing ctx:Tracing Tracing Application · Domain ctx:Application->ctx:Tracing ctx:Web (src/Application.Web) Web (src/Application.Web) Web) ctx:Web (src/Foundation.Application.Web) Web (src/Foundation.Application.Web) Web) ctx:Web (src/Application.Web)->ctx:Web (src/Foundation.Application.Web) ctx:Commands.Application Commands.Application Web ctx:Web (src/Application.Web)->ctx:Commands.Application ctx:Domain Domain Domain ctx:Web (src/Application.Web)->ctx:Domain ctx:Repositories Repositories Repositories ctx:Web (src/Application.Web)->ctx:Repositories ctx:Web (src/Application.Web)->ctx:Extensions ctx:Web (src/Foundation.Application.Web)->ctx:Extensions ctx:Commands.Application->ctx:Web (src/Foundation.Application.Web) ctx:Commands.Application->ctx:Configuration ctx:FileStorage FileStorage FileStorage ctx:Commands.Application->ctx:FileStorage ctx:Commands.Application->ctx:Queueing ctx:Commands.Application->ctx:Tracing ctx:Serialization Serialization Serialization ctx:Configuration->ctx:Serialization ctx:Domain->ctx:Extensions ctx:Repositories->ctx:Domain ctx:FileStorage->ctx:Domain ctx:FileStorage->ctx:Serialization ctx:Messaging->ctx:Web (src/Foundation.Application.Web) ctx:Messaging->ctx:Configuration ctx:Messaging->ctx:Domain ctx:Messaging->ctx:Repositories ctx:Messaging->ctx:Extensions ctx:Operations->ctx:Web (src/Foundation.Application.Web) ctx:Operations->ctx:Configuration ctx:Operations->ctx:Domain ctx:Operations->ctx:Repositories ctx:Operations->ctx:Tracing ctx:Queueing->ctx:Configuration ctx:Queueing->ctx:Domain ctx:Queueing->ctx:Serialization ctx:Queueing->ctx:Tracing ctx:Serialization->ctx:Extensions ctx:Tracing->ctx:Domain ctx:Tracing->ctx:Repositories __more__ +79 more contexts

At a glance — Code Health · 46% · Adequate · gated by X4, X5

At a glance — Architecture · 67% · Strong

At a glance — Maturity · 64% · Adequate · gated by D34

At a glance — Readiness · 49% · Adequate · gated by D8, D12

At a glance — Security · 55% · Adequate · gated by D36, S1

At a glance — Domain Modelling · 48% · Adequate · gated by DM2, DM4, DM7

At a glance — Event-Driven · 88% · Exemplary

At a glance — Performance · 67% · Strong

Security & Compliance — OWASP Top-10 mapping

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 categoryFindingsSeverity
A03:2021 — Injection4High / Critical
A02:2021 — Cryptographic Failures2High / 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 thisHelpsEffortDimension
Resolve the 3 EmptyCatchBlock finding(s) in Explicit Debt — start with Expando.cs (3).+2.9 ptsLowExplicit Debt
Interpolated log message defeats structured logging+3.3 ptsMediumStructured logging
Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.+3.3 ptsMediumNullable reference types
Resolve the 9 Vulnerable finding(s) in Dependency Hygiene.+1.6 ptsLowDependency Hygiene
Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.+3.2 ptsMediumIncompleteness & stubs
Sync-over-async (deadlock risk)+3.1 ptsMediumAsync correctness
Thread a CancellationToken through async methods so work stops promptly on cancellation.+3.0 ptsMediumCancellation propagation
Swallowed exception (empty catch)+3.0 ptsMediumException handling

File quality

Per-file score 0–10 — a quality signature. Of 340 files carrying findings, judged against the Template bar: 0% slop · 1% mixed · 99% near-clean.

FileScoreBandWorst signal
src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs3.3MixedChange Coupling: Boundary-crossing change coupling: AzureServiceBusQueue.cs ↔ InMemoryQueueOptionsBuilder.cs
src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs3.8MixedChange Coupling: Boundary-crossing change coupling: AzureStorageQueue.cs ↔ InMemoryQueueOptionsBuilder.cs
src/Foundation.Utilities/Expando/Expando.cs5.8MixedExplicit Debt: EmptyCatchBlock
src/Foundation.Utilities/SigningHelper.cs5.8MixedStatic Analysis (SAST): High: insecure-binaryformatter-deserialization
src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs6.0Near-cleanExplicit Debt: TodoComment
src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs6.0Near-cleanExplicit Debt: CommentedOutCode
src/Messaging.Infrastructure.Azure/ServiceBus/ServiceBusMessageBroker.cs6.0Near-cleanExplicit Debt: CommentedOutCode
src/Messaging.Infrastructure.FileSystem/FileStorageMessageBroker.cs6.0Near-cleanExplicit Debt: TodoComment
src/Foundation.Console/App/InteractiveConsoleHostedService.cs6.0Near-cleanExplicit Debt: TodoComment
src/Foundation.Infrastructure.Azure.LogAnalytics/Repositories/LogAnalyticsRepository.cs6.0Near-cleanExplicit Debt: TodoComment
src/Messaging.Infrastructure.RabbitMQ/RabbitMQMessageBroker.cs6.0Near-cleanExplicit Debt: TodoComment
src/Messaging.Infrastructure.Azure.SignalR/SignalRServerlessMessageBroker.cs6.0Near-cleanExplicit Debt: TodoComment
src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs6.0Near-cleanExplicit Debt: BarePragmaDisable
src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity}.cs6.0Near-cleanExplicit Debt: BarePragmaDisable
src/Operations.Application/LoggingFilterContext.cs6.0Near-cleanExplicit Debt: CommentedOutCode
src/Foundation.Utilities/Expando/PropertyBag.cs6.0Near-cleanExplicit Debt: CommentedOutCode
src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs6.0Near-cleanExplicit Debt: CommentedOutCode
src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs6.0Near-cleanExplicit Debt: CommentedOutCode
src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs6.0Near-cleanExplicit Debt: CommentedOutCode
src/Foundation.Domain.Repositories/InMemory/InMemoryRepository{TEntity}.cs6.0Near-cleanExplicit Debt: TodoComment

Methodology & how to trust this report

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
D1D2D3D4D5D6D8D9D10D12D13D14D15D17D18D19D21D26D27D28D29D34D35D36AX1AX10AX2AX3AX4AX5AX6AX8AX9C2DM1DM2DM4DM5DM6DM7DM8ED1ED2ED3ED4ED5GD1IC1M1M2M3M4P1P2P3P4P6P7P8PF1PF2PF3S1X1X2X3X4X5

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
  1. 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.)
  2. 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.
  3. 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.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
jscpdCode duplication✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.302✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.302✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019faf50-d4f1-7ce9-9033-5af0c3bad33e.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

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.

Dimensions

D1 · Cyclomatic Complexity8.6 / 10Strong✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 8.6 / 10 · rule-coverage 100% · ceiling Prevented

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.

SqlBuilder.BuildExpressionSelect (cyclomatic 38)src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs:84
FileStorageKeyValueStorage.Match (cyclomatic 35)src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:184
Extensions.To (cyclomatic 18)src/Foundation.Extensions/To.cs:21
Extensions.To (cyclomatic 17)src/Foundation.Extensions/To.cs:92
SshNetFileStorage.CreateConnectionInfo (cyclomatic 16)src/FileStorage.Infrastructure.Ssh/SshNetFileStorage.cs:300

What to do

  1. 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).
  2. 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).
  3. 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).
  4. 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.

D2 · Cognitive Complexity6.8 / 10Adequate✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 6.8 / 10 · rule-coverage 100% · ceiling Prevented

31 method(s) exceeded the cognitive complexity threshold of 15; the worst was FileStorageKeyValueStorage.Match at 46.

EntityFrameworkRepository.UpsertAsync (cognitive 20) · ×2src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:152
CosmosSqlRepository.UpsertAsync (cognitive 18) · ×2src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity,TDestination}.cs:114
MongoRepository.UpsertAsync (cognitive 18) · ×2src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:165
InMemoryRepository.FindAll (cognitive 16) · ×2src/Foundation.Domain.Repositories/InMemory/InMemoryRepository{TEntity,TDestination}.cs:90
FileStorageKeyValueStorage.Match (cognitive 46)src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:184

+ 22 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. 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).
  2. 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).
  3. 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).
  4. 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.

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.

Maturity: DocumentedVerifiedPrevented · effective 9.6 / 10 · rule-coverage 100% · ceiling Prevented

4 god class(es) detected.

TooManyMethods: SequentialGuid · ×3src/Foundation.Utilities/SequentialGuid.cs:0
FileTooLong: Foundation.ContentTypes/ContentType.cssrc/Foundation.ContentTypes/ContentType.cs:0

✓ On the Gold path — maintain.

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication9.5 / 10Exemplary✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 9.5 / 10 · rule-coverage 100% · ceiling Verified

51 duplicated block group(s) detected.

Duplicated block (14 lines × 2) · ×5src/Foundation.Application.Web/Extensions/HttpResponseExtensions.cs:23
Duplicated block (10 lines × 2) · ×5src/Messaging.Infrastructure.RabbitMQ/RabbitMQProvider.cs:81
Duplicated block (12 lines × 2) · ×4src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:159
Duplicated block (9 lines × 2) · ×3src/ServiceDiscovery.Application/Registries/FileStorageServiceRegistry.cs:153
Duplicated block (7 lines × 2) · ×3src/Foundation.Domain.Repositories/Decorators/RepositoryDomainEventsDecorator.cs:89

+ 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.

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.

Maturity: DocumentedVerifiedPrevented · effective 8.9 / 10 · rule-coverage 100% · ceiling Prevented

121 projects, 0 dependency cycle(s), 1 unstable depended-on project(s).

Layer violation: Application → Web · ×42
Off the main sequence: Infrastructure.Azure · ×16
Unstable project Application

What to do

  1. Resolve the 42 Layer violation finding(s) in Coupling. — One of this dimension's main actionable groups (42 issue-level).
  2. Resolve the 16 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (16 warning-level).
  3. Resolve the 1 Unstable project Application finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
  4. 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.

D6 · Cohesion (LCOM4)9.6 / 10Exemplary✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 9.6 / 10 · rule-coverage 100% · ceiling Verified

4 of 133 classes have LCOM4 above 3.

Low cohesion: SqlBuilder (LCOM4 11) · ×4src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs:11

✓ On the Gold path — maintain.

Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.

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.

Maturity: DocumentedVerifiedPrevented · effective 3.7 / 10 · rule-coverage 100% · ceiling Verified

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

  1. 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.

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.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

552 test methods: 381 unit, 171 integration, 0 BDD, 0 e2e.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

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.

Maturity: DocumentedVerifiedPrevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Prevented

9 skipped (9 with a documented reason), 2 zero-assertion, 6 mock references across 552 tests.

No assertions: MixInObjectInstanceTest · ×2tests/Foundation.UnitTests/Utilities/ExpandoTests.cs:220
Skipped (documented): FindAllAsync_WithNotSpecification_Test · ×9tests/Sample.IntegrationTests/Customers/Domain/Repositories/OrderRepositoryTests.cs:150
Mock framework: NSubstitute · ×6

✓ On the Gold path — maintain.

Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.

D12 · Dependency Hygiene0.0 / 10Critical✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Verified

121 outdated, 9 vulnerable, 25 deprecated, 1 prerelease packages.

Vulnerable: Newtonsoft.Json · ×9
Deprecated: Microsoft.CodeAnalysis.FxCopAnalyzers · ×25
Prerelease dependency: Microsoft.Azure.Cosmos.Table
Outdated: Microsoft.CodeAnalysis.CSharp · ×121

What to do

  1. Resolve the 25 Deprecated finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (25 warning-level).
  2. Resolve the 9 Vulnerable finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (9 issue-level).
  3. Resolve the 1 Prerelease dependency finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (1 warning-level).
  4. 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.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 130 packages use a banned license.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No churn × complexity hotspots in the window.

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md.

D17 · Explicit Debt6.3 / 10Adequate✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 6.3 / 10 · rule-coverage 100% · ceiling Prevented

570 deducted debt markers + 0 dead symbols across 52730 LoC (1.8/KLoC) → score 6.3.

EmptyCatchBlock · ×3src/Foundation.Utilities/Expando/Expando.cs:174
TodoComment · ×297src/Application.Web/Controllers/NaosGenericRepositoryControllerBase.cs:35
CommentedOutCode · ×112src/Application.Web/Controllers/NaosReadOnlyGenericRepositoryControllerBase.cs:65
BarePragmaDisable · ×17src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:93
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

  1. 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).
  2. 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).
  3. 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).
  4. 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.

D18 · Solution Shape10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

123 projects, 1433 source files, 67842 hand-written lines of code (52730 production / 15112 test), plus 518 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 2172 inter-project edges (build failed).

Build did not complete in the analyzer

✓ On the Gold path — maintain.

Detailed fixes: d18_recommendation.md · top locations in Appendix A, every location in findings.md.

D19 · Documentation Quality / 10Weak◐ Sampled · advisory

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.

Maturity: DocumentedVerifiedPrevented · effective Weak / 10 · rule-coverage 100% · ceiling Documented

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.

Low XML-doc coverage: Application · ×92src/Application/Application.csproj
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.
XML-doc coverage: Messaging · ×9src/Messaging/Messaging.csproj

What to do

  1. 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).
  2. 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).
  3. 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.

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

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.

Maturity: DocumentedVerifiedPrevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 naming inconsistencies across 200 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D26 · Project Cohesion10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic, LLM-independent.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 of 109 projects flagged as possibly oversized/incoherent.

✓ On the Gold path — maintain.

Detailed fixes: d26_recommendation.md.

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.

Maturity: DocumentedVerifiedPrevented · effective 8.2 / 10 · rule-coverage 100% · ceiling Documented

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

  1. 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.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)9.0 / 10Exemplary✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

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.

D29 · Static Analysis (SAST)5.0 / 10Adequate✓ Tool-verified

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).

Maturity: DocumentedVerifiedPrevented · effective 5.0 / 10 · rule-coverage 100% · ceiling Documented

4 finding(s): 0 critical, 4 high, 0 medium, 0 low.

High: insecure-binaryformatter-deserialization · ×4src/Foundation.Serialization/Serializers/BinarySerializer.cs:18detected by semgrep finding

What to do

  1. 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.

D34 · Knowledge Freshness0.0 / 10Critical✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

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

  1. 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).
  2. 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.

D35 · Change Coupling9.6 / 10Exemplary✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 9.6 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: ISqlBuilder.cs↔SqlServerDocumentProvider.cs 100%; CommandRequestWrapper.cs↔MediatorDispatcherCommandRequestExtension.cs 73%; AsyncLocalScope.cs↔IScopeManager.cs 73%

Boundary-crossing change coupling: AzureStorageQueueOptionsBuilder.cs ↔ QueueOptionsBase.cs · ×6src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueueOptionsBuilder.cs
Change coupling: ISqlBuilder.cs ↔ SqlServerDocumentProvider.cs · ×4src/Foundation.Infrastructure.Documents.SqlServer/Provider/ISqlBuilder.cs

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

D36 · Supply-chain Provenance & Signing0.0 / 10Critical✓ Tool-verified

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.

Maturity: DocumentedVerifiedPrevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

0/3 supply-chain integrity signals present (provenance, signing, SBOM).

No build provenance
No artifact signing
No SBOM

What to do

  1. Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 No artifact signing finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  3. 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.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AX1 · Captive dependencies10.0 / 10Exemplary✓ Tool-verified

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.

AX10 · Code composition5.6 / 10Adequate✓ Tool-verified

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.

AX2 · Stateful singletons5.4 / 10Adequate✓ Tool-verified

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.
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

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.

AX4 · Dependency direction4.4 / 10Adequate✓ Tool-verified

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.

What to do

  • Keep dependencies pointing inward: domain/application define interfaces, infrastructure/web implement them (Dependency Inversion).
AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

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.

AX6 · Interface segregation9.9 / 10Exemplary✓ Tool-verified

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.
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.

AX9 · CQS / query purity9.4 / 10Exemplary✓ Tool-verified

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.
C2 · Access Controls10.0 / 10Exemplary○ Nothing flagged

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.

DM1 · Aggregate boundaries10.0 / 10Exemplary✓ Tool-verified

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.

DM2 · Strongly-typed ids3.0 / 10Weak✓ Tool-verified

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.
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.
DM5 · Encapsulated state7.0 / 10Strong✓ Tool-verified

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
  • `Message` exposes publicly writable state (Id, Identifier, CorrelationId, Origin, Status). — Message.cs:7
  • `LogEvent` exposes publicly writable state (Id, Level, Key, Environment, Message, Timestamp, …). — LogEvent.cs:10
  • `Command` exposes publicly writable state (Id, CorrelationId, Request, CreatedBy, CreatedDate). — Command.cs:8
  • `LogTrace` exposes publicly writable state (Id, Level, Key, Environment, Message, Timestamp, …). — LogTrace.cs:10

What to do

  • Make entity setters private/init-only; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters).
DM6 · Domain ↔ infrastructure boundary10.0 / 10Exemplary✓ Tool-verified

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.

DM7 · Repository granularity3.5 / 10Weak✓ Tool-verified

Other · Domain Modelling — Whether repositories are per aggregate root (not per child entity) so the root's invariants can't be bypassed.

Method: Roslyn (DDD-gated): repository abstraction detection; repositories over non-aggregate-root entities flagged. Deterministic, DDD-native.

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.
DM8 · Value-object opportunities10.0 / 10Exemplary✓ Tool-verified

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.

ED1 · Handler temporal coupling10.0 / 10Exemplary✓ Tool-verified

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.

ED2 · Event/command shape10.0 / 10Exemplary✓ Tool-verified

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.

ED3 · Event naming8.6 / 10Exemplary✓ Tool-verified

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.
ED4 · Outbox / dual-write7.2 / 10Strong✓ Tool-verified

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.
ED5 · Idempotency10.0 / 10Exemplary◐ Sampled · advisory

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.

GD1 · Unfinished & placeholder code9.9 / 10Exemplary✓ Tool-verified

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.
IC1 · Incompleteness & stubs5.2 / 10Adequate✓ Tool-verified

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.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

  • `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.
M1 · Documentation (README)7.4 / 10Exemplary✓ Tool-verified

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.
M2 · Architecture documentation5.0 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — decisions aren't captured for future maintainers.

What to do

  • Start an ADR log (docs/adr/) recording significant decisions and their rationale.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy8.0 / 10Exemplary◐ Sampled · advisory

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.
P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P2 · Observability9.9 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

  • Only 87/90 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log).

What to do

  • Extend structured logging to the remaining service-like projects so the whole executable surface is diagnosable in production.
P3 · Security & performance tooling5.0 / 10Adequate✓ Tool-verified

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.
P4 · Deployment & Rollback5.0 / 10Adequate✓ Tool-verified

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.
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

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.
P7 · Outbound HTTP resilience10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.

Method: Roslyn scan: Polly resilience markers (Retry, CircuitBreaker, Timeout) on outbound HTTP invocations. Computed per type, deterministic.

P8 · Schema migrations10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether EF Core schema changes go through versioned migrations rather than the un-evolvable EnsureCreated().

Method: Roslyn scan: EF Core DbContext for a versioned migrations directory versus bare EnsureCreated usage. Exhaustive per project, deterministic.

PF1 · Benchmark discipline9.0 / 10Exemplary✓ Tool-verified

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.

PF2 · Allocation hygiene6.0 / 10Strong✓ Tool-verified

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.

Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit. Reward-only. Deterministic, syntax/text detection.

What to do

  • 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.
PF3 · Async & latency hygiene6.0 / 10Strong✓ Tool-verified

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.
S1 · Web-Security Posture3.5 / 10Weak✓ Tool-verified

Other · Security — Transport security, security headers, secure cookies, input validation, middleware order and crypto hygiene (presence, not runtime).

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. Deterministic.

  • 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.
X1 · Async correctness6.5 / 10Strong✓ Tool-verified

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

What to do

  • Sync-over-async (deadlock risk)
X2 · Cancellation propagation7.4 / 10Strong✓ Tool-verified

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.
X3 · Exception handling7.4 / 10Strong✓ Tool-verified

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

What to do

  • Swallowed exception (empty catch)
X4 · Structured logging3.4 / 10Weak✓ Tool-verified

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, …

What to do

  • Interpolated log message defeats structured logging
X5 · Nullable reference types2.0 / 10Weak✓ Tool-verified

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 `!`.

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.

LensScoreRatingImpact
Code Health46%Adequate — gated by X4, X5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture67%StrongSolid.
Maturity64%Adequate — gated by D34Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness49%Adequate — gated by D8, D12Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security55%Adequate — gated by D36, S1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling48%Adequate — gated by DM2, DM4, DM7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Event-Driven88%ExemplaryStrongest area.
Performance67%StrongSolid.
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.

Issue — 65 finding(s)
D5 · Coupling · Layer violation · ×42
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Application.Web.Startup (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Application.Web.Startup.EntityFramework (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Infrastructure — Application.Web (src/Application.Web) (Application) references Application.Web.Startup.Repositories (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Authentication.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Commands.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Commands.Application.Web.Azure (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Commands.Application.Web.RabbitMQ (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Configuration.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Infrastructure — Application.Web (src/Application.Web) (Application) references Domain.Repositories (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Exceptions.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references JobScheduling.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Messaging.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Operations.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Queueing.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references ServiceDiscovery.Application.Web.Router (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Application.Web (src/Application.Web) (Application) references Tracing.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Infrastructure → Web — Application.Web.Startup.Repositories (Infrastructure) references Application.Web.Startup (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Commands.Application (Application) references Configuration.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Domain → Infrastructure — Commands.Domain (Domain) references Domain.Repositories (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Infrastructure — Configuration.Application (Application) references Infrastructure.Azure.KeyVault (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Messaging.Application.Azure (Application) references Messaging.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Infrastructure — Messaging.Application.Azure (Application) references Messaging.Infrastructure.Azure (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Web — Messaging.Application.Azure.SignalR (Application) references Messaging.Application.Web (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Infrastructure — Messaging.Application.Azure.SignalR (Application) references Messaging.Infrastructure.Azure.SignalR (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Infrastructure — Messaging.Application.FileStorage (Application) references FileStorage.Infrastructure.FileSystem (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • + 17 more in this group — see findings.md.
D12 · Dependency Hygiene · Vulnerable · ×9
  • Vulnerable: Newtonsoft.Json — Newtonsoft.Json 12.0.3 — High severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: AutoMapper — AutoMapper 9.0.0 — High severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: Microsoft.AspNetCore.Server.Kestrel.Core — Microsoft.AspNetCore.Server.Kestrel.Core 2.2.0 — Critical severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: MessagePack — MessagePack 2.1.143 — Moderate severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: SSH.NET — SSH.NET 2016.1.0 — Moderate severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: System.Linq.Dynamic.Core — System.Linq.Dynamic.Core 1.1.5 — Critical severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: System.Drawing.Common — System.Drawing.Common 4.7.0 — Critical severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: System.Data.SqlClient — System.Data.SqlClient 4.8.1 — Moderate severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: MongoDB.Driver — MongoDB.Driver 2.10.4 — High severity. https://github.com/advisories/[GHSA redacted]
D35 · Change Coupling · Boundary-crossing change coupling · ×6
  • 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.
D29 · Static Analysis (SAST) · High · ×4
  • 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
D17 · Explicit Debt · EmptyCatchBlock · ×3
  • EmptyCatchBlock src/Foundation.Utilities/Expando/Expando.cs:174 — empty catch block
  • EmptyCatchBlock src/Foundation.Utilities/Expando/Expando.cs:204 — empty catch block
  • EmptyCatchBlock src/Foundation.Utilities/Expando/Expando.cs:234 — empty catch block
D28 · Secrets (history) · Secret · ×1
  • Secret: generic-api-key licenses.json:578 — matched rule 'generic-api-key'
Warning — 669 finding(s)
D17 · Explicit Debt · TodoComment · ×297
  • 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/Controllers/NaosGenericRepositoryControllerBase.cs:71 — // TODO: better happy path flow https://www.strathweb.com/2018/07/centralized-exception-handling-and-request-validation-in-asp-net-core/
  • 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.
  • + 272 more in this group — see findings.md.
D17 · Explicit Debt · CommentedOutCode · ×112
  • CommentedOutCode src/Application.Web/Controllers/NaosReadOnlyGenericRepositoryControllerBase.cs:65 — 4 consecutive commented-code lines
  • CommentedOutCode src/Commands.Application.Web/CommandRequestWrapper.cs:27 — 4 consecutive commented-code lines
  • CommentedOutCode src/Commands.Application.Web/CommandRequestWrapper.cs:47 — 4 consecutive commented-code lines
  • CommentedOutCode src/Configuration.Application/NaosExtensions.cs:102 — 4 consecutive commented-code lines
  • CommentedOutCode src/Foundation.Application.Web/Extensions/HttpRequestMessageExtensions.cs:187 — 4 consecutive commented-code lines
  • CommentedOutCode src/Foundation.Domain.Repositories.Documents/DocumentRepository.cs:104 — 4 consecutive commented-code lines
  • CommentedOutCode src/Foundation.Extensions/IsNullOrEmpty.cs:29 — 4 consecutive commented-code lines
  • CommentedOutCode src/Foundation.Extensions/TryGetValue.cs:14 — 4 consecutive commented-code lines
  • CommentedOutCode src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs:102 — 4 consecutive commented-code lines
  • CommentedOutCode src/Foundation.Infrastructure.Azure.Cosmos/Repositories/Provider/V2/CosmosSqlProviderV2.cs:520 — 4 consecutive commented-code lines
  • CommentedOutCode src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlServerDocumentProvider.cs:634 — 4 consecutive commented-code lines
  • CommentedOutCode src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:278 — 4 consecutive commented-code lines
  • CommentedOutCode src/Operations.Application.Web/Controllers/NaosOperationsLogTracesController.cs:121 — 4 consecutive commented-code lines
  • CommentedOutCode src/Operations.Application/LoggingFilterContext.cs:97 — 4 consecutive commented-code lines
  • CommentedOutCode src/Operations.Application/LoggingFilterContext.cs:109 — 4 consecutive commented-code lines
  • CommentedOutCode src/Queueing.Application.Web/Controllers/NaosQueuesController.cs:49 — 4 consecutive commented-code lines
  • CommentedOutCode src/Queueing.Infrastructure.RabbitMQ/RabbitMQQueue.cs:134 — 4 consecutive commented-code lines
  • CommentedOutCode src/Queueing.Infrastructure.RabbitMQ/RabbitMQQueueOptionsBuilder.cs:35 — 4 consecutive commented-code lines
  • CommentedOutCode tests/Foundation.UnitTests/Domain/EventSourcing/Repositories/EventSourcingRepositoryTests.cs:104 — 4 consecutive commented-code lines
  • CommentedOutCode tests/Sample.Application.Web/Startup.cs:152 — 4 consecutive commented-code lines
  • CommentedOutCode tests/Sample.IntegrationTests/Catalogs/Infrastructure/SqlServerDocumentProviderTests.cs:37 — 4 consecutive commented-code lines
  • CommentedOutCode tests/Sample.IntegrationTests/Customers/Domain/Repositories/OrderRepositoryTests.cs:222 — 4 consecutive commented-code lines
  • CommentedOutCode tests/Sample.IntegrationTests/Customers/Domain/Repositories/OrderRepositoryTests.cs:240 — 4 consecutive commented-code lines
  • CommentedOutCode tests/Sample.IntegrationTests/Customers/Infrastructure/CosmosDbSqlProviderV3Tests.cs:149 — 4 consecutive commented-code lines
  • CommentedOutCode tests/Sample.IntegrationTests/Inventory/Domain/Repositories/ReplenishmentRepositoryTests.cs:244 — 4 consecutive commented-code lines
  • + 87 more in this group — see findings.md.
D19 · Documentation Quality · Low XML-doc coverage · ×92
  • Low XML-doc coverage: Application src/Application/Application.csproj — Application: 0 % XML-doc coverage (0/10).
  • Low XML-doc coverage: Application.Web(netcoreapp3.1) src/Application.Web/Application.Web.csproj — Application.Web(netcoreapp3.1): 32 % XML-doc coverage (11/34).
  • Low XML-doc coverage: Application.Web(netcoreapp3.1) src/Foundation.Application.Web/Application.Web.csproj — Application.Web(netcoreapp3.1): 35 % XML-doc coverage (50/141).
  • Low XML-doc coverage: Domain src/Foundation.Domain/Domain.csproj — Domain: 29 % XML-doc coverage (42/147).
  • Low XML-doc coverage: Infrastructure.Azure.Cosmos src/Foundation.Infrastructure.Azure.Cosmos/Infrastructure.Azure.Cosmos.csproj — Infrastructure.Azure.Cosmos: 8 % XML-doc coverage (11/136).
  • Low XML-doc coverage: Infrastructure.Azure.LogAnalytics src/Foundation.Infrastructure.Azure.LogAnalytics/Infrastructure.Azure.LogAnalytics.csproj — Infrastructure.Azure.LogAnalytics: 0 % XML-doc coverage (0/26).
  • Low XML-doc coverage: Messaging.Infrastructure.RabbitMQ src/Messaging.Infrastructure.RabbitMQ/Messaging.Infrastructure.RabbitMQ.csproj — Messaging.Infrastructure.RabbitMQ: 5 % XML-doc coverage (2/40).
  • Low XML-doc coverage: Commands.Application src/Commands.Application/Commands.Application.csproj — Commands.Application: 31 % XML-doc coverage (32/104).
  • Low XML-doc coverage: Messaging.Infrastructure.Azure src/Messaging.Infrastructure.Azure/Messaging.Infrastructure.Azure.csproj — Messaging.Infrastructure.Azure: 15 % XML-doc coverage (6/39).
  • Low XML-doc coverage: Infrastructure.Azure.KeyVault src/Foundation.Infrastructure.Azure.KeyVault/Infrastructure.Azure.KeyVault.csproj — Infrastructure.Azure.KeyVault: 0 % XML-doc coverage (0/11).
  • Low XML-doc coverage: Configuration.Application src/Configuration.Application/Configuration.Application.csproj — Configuration.Application: 14 % XML-doc coverage (9/64).
  • Low XML-doc coverage: Infrastructure.Azure.Arm src/Foundation.Infrastructure.Azure.Arm/Infrastructure.Azure.Arm.csproj — Infrastructure.Azure.Arm: 0 % XML-doc coverage (0/1).
  • Low XML-doc coverage: Domain.Repositories src/Foundation.Domain.Repositories/Domain.Repositories.csproj — Domain.Repositories: 40 % XML-doc coverage (78/197).
  • Low XML-doc coverage: Domain.Specifications src/Foundation.Domain.Specifications/Domain.Specifications.csproj — Domain.Specifications: 0 % XML-doc coverage (0/90).
  • Low XML-doc coverage: Domain.Repositories.AutoMapper src/Foundation.Domain.Repositories.AutoMapper/Domain.Repositories.AutoMapper.csproj — Domain.Repositories.AutoMapper: 0 % XML-doc coverage (0/7).
  • Low XML-doc coverage: Infrastructure.EntityFramework src/Foundation.Infrastructure.EntityFramework/Infrastructure.EntityFramework.csproj — Infrastructure.EntityFramework: 22 % XML-doc coverage (18/81).
  • Low XML-doc coverage: Infrastructure.Azure.ServiceBus src/Foundation.Infrastructure.Azure.ServiceBus/Infrastructure.Azure.ServiceBus.csproj — Infrastructure.Azure.ServiceBus: 17 % XML-doc coverage (4/23).
  • Low XML-doc coverage: Operations.Domain src/Operations.Domain/Operations.Domain.csproj — Operations.Domain: 2 % XML-doc coverage (1/42).
  • Low XML-doc coverage: JobScheduling src/JobScheduling/JobScheduling.csproj — JobScheduling: 28 % XML-doc coverage (29/105).
  • Low XML-doc coverage: JobScheduling.Application.Web(netcoreapp3.1) src/JobScheduling.Application.Web/JobScheduling.Application.Web.csproj — JobScheduling.Application.Web(netcoreapp3.1): 0 % XML-doc coverage (0/10).
  • Low XML-doc coverage: RequestFiltering.Application(netcoreapp3.1) src/Filtering.Application/RequestFiltering.Application.csproj — RequestFiltering.Application(netcoreapp3.1): 46 % XML-doc coverage (22/48).
  • Low XML-doc coverage: Messaging.Infrastructure.FileStorage src/Messaging.Infrastructure.FileSystem/Messaging.Infrastructure.FileStorage.csproj — Messaging.Infrastructure.FileStorage: 0 % XML-doc coverage (0/30).
  • Low XML-doc coverage: Messaging.Infrastructure.Azure.SignalR src/Messaging.Infrastructure.Azure.SignalR/Messaging.Infrastructure.Azure.SignalR.csproj — Messaging.Infrastructure.Azure.SignalR: 3 % XML-doc coverage (1/36).
  • Low XML-doc coverage: ServiceContext.Application(netcoreapp3.1) src/ServiceContext.Application/ServiceContext.Application.csproj — ServiceContext.Application(netcoreapp3.1): 27 % XML-doc coverage (9/33).
  • Low XML-doc coverage: ServiceDiscovery.Application.Consul src/ServiceDiscovery.Application.Consul/ServiceDiscovery.Application.Consul.csproj — ServiceDiscovery.Application.Consul: 22 % XML-doc coverage (2/9).
  • + 67 more in this group — see findings.md.
D12 · Dependency Hygiene · Deprecated · ×25
  • Deprecated: Microsoft.CodeAnalysis.FxCopAnalyzers — Microsoft.CodeAnalysis.FxCopAnalyzers 3.3.0 — Legacy Microsoft.CodeAnalysis.NetAnalyzers >= 0.0.0
  • Deprecated: SecurityCodeScan — SecurityCodeScan 3.5.3 — Legacy SecurityCodeScan.VS2019 >= 0.0.0
  • Deprecated: Microsoft.AspNetCore.Mvc.Formatters.Json — Microsoft.AspNetCore.Mvc.Formatters.Json 2.2.0 — Other,Legacy
  • Deprecated: Microsoft.AspNetCore.Mvc — Microsoft.AspNetCore.Mvc 2.2.0 — Other,Legacy
  • Deprecated: System.Text.Json — System.Text.Json 4.7.2 — Legacy
  • Deprecated: Microsoft.Azure.DocumentDB.Core — Microsoft.Azure.DocumentDB.Core 2.11.0 — Legacy Microsoft.Azure.Cosmos >= 0.0.0
  • Deprecated: Microsoft.IdentityModel.Clients.ActiveDirectory — Microsoft.IdentityModel.Clients.ActiveDirectory 5.2.7 — Legacy Microsoft.Identity.Client >= 0.0.0
  • Deprecated: xunit — xunit 2.4.1 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: Microsoft.Azure.ServiceBus — Microsoft.Azure.ServiceBus 4.1.3 — Other Azure.Messaging.ServiceBus >= 0.0.0
  • Deprecated: Microsoft.Extensions.Configuration.AzureKeyVault — Microsoft.Extensions.Configuration.AzureKeyVault 3.1.5 — Legacy Azure.Extensions.AspNetCore.Configuration.Secrets >= 0.0.0
  • Deprecated: Microsoft.Extensions.Configuration.AzureAppConfiguration — Microsoft.Extensions.Configuration.AzureAppConfiguration 3.0.1 — Legacy,CriticalBugs
  • Deprecated: EventStore.Client — EventStore.Client 20.6.0 — Legacy EventStore.Client.Grpc.Streams >= 0.0.0
  • Deprecated: Microsoft.Azure.Management.ServiceBus — Microsoft.Azure.Management.ServiceBus 2.1.0 — Legacy Azure.ResourceManager.ServiceBus >= 0.0.0
  • Deprecated: Microsoft.Azure.Management.ServiceBus.Fluent — Microsoft.Azure.Management.ServiceBus.Fluent 1.34.0 — Legacy Azure.ResourceManager.ServiceBus >= 0.0.0
  • Deprecated: Microsoft.Azure.SignalR — Microsoft.Azure.SignalR 1.5.0 — Other Microsoft.Azure.SignalR >= 1.33.1
  • Deprecated: Microsoft.AspNetCore.Authentication — Microsoft.AspNetCore.Authentication 2.2.0 — Other,Legacy
  • Deprecated: ProxyKit — ProxyKit 2.3.3 — Legacy
  • Deprecated: Microsoft.AspNetCore.Server.Kestrel.Core — Microsoft.AspNetCore.Server.Kestrel.Core 2.2.0 — Other,Legacy
  • Deprecated: WindowsAzure.Storage — WindowsAzure.Storage 9.3.3 — Legacy Azure.Storage.Common >= 0.0.0
  • Deprecated: Serilog.Sinks.AzureDocumentDB — Serilog.Sinks.AzureDocumentDB 4.0.0 — Legacy
  • Deprecated: Serilog.Sinks.Literate — Serilog.Sinks.Literate 3.0.0 — Legacy Serilog.Sinks.Console >= 0.0.0
  • Deprecated: Microsoft.Azure.Cosmos.Table — Microsoft.Azure.Cosmos.Table 2.0.0-preview — Legacy Azure.Data.Tables >= 0.0.0
  • Deprecated: Microsoft.AspNetCore.Http.Abstractions — Microsoft.AspNetCore.Http.Abstractions 2.2.0 — Other,Legacy
  • Deprecated: Microsoft.ApplicationInsights — Microsoft.ApplicationInsights 2.14.0 — Other
  • Deprecated: SqlStreamStore.MsSql — SqlStreamStore.MsSql 1.2.0 — Legacy
D17 · Explicit Debt · BarePragmaDisable · ×17
  • 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
  • BarePragmaDisable tests/Foundation.UnitTests/Utilities/ExpandoTests.cs:312 — #pragma warning disable CA1307 // Specify StringComparison
  • BarePragmaDisable tests/Foundation.UnitTests/Utilities/ExpandoTests.cs:356 — #pragma warning disable CA1307 // Specify StringComparison
  • BarePragmaDisable tests/Sample.IntegrationTests/Catalogs/Infrastructure/DocumentRepositoryTests.cs:185 — #pragma warning disable CA1307 // Specify StringComparison
  • BarePragmaDisable tests/Sample.IntegrationTests/Catalogs/Infrastructure/SqlServerDocumentProviderTests.cs:300 — #pragma warning disable CA1307 // Specify StringComparison
D5 · Coupling · Off the main sequence · ×16
  • 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.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×5
  • Duplicated block (14 lines × 2) src/Foundation.Application.Web/Extensions/HttpResponseExtensions.cs:23 — src/Foundation.Application.Web/Extensions/HttpResponseExtensions.cs:23-36 | src/Foundation.Application.Web/Extensions/HttpResponseExtensions.cs:46-59
  • Duplicated block (14 lines × 2) src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity,TDestination}.cs:202 — src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity,TDestination}.cs:202-215 | src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity}.cs:195-208
  • Duplicated block (14 lines × 2) src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:286 — src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:286-299 | src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity}.cs:277-290
  • Duplicated block (14 lines × 2) src/Queueing/InMemoryQueue.cs:329 — src/Queueing/InMemoryQueue.cs:329-342 | src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs:313-326
  • Duplicated block (14 lines × 2) src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:213 — src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:213-226 | src/Queueing.Infrastructure.RabbitMQ/RabbitMQQueue.cs:255-268
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×5
  • Duplicated block (10 lines × 2) src/Messaging.Infrastructure.RabbitMQ/RabbitMQProvider.cs:81 — src/Messaging.Infrastructure.RabbitMQ/RabbitMQProvider.cs:81-90 | src/Queueing.Infrastructure.RabbitMQ/RabbitMQProvider.cs:81-90
  • Duplicated block (10 lines × 2) src/Foundation.Infrastructure.EntityFramework/Repositories/Extensions/OrderByIf.cs:19 — src/Foundation.Infrastructure.EntityFramework/Repositories/Extensions/OrderByIf.cs:19-28 | src/Foundation.Infrastructure.Mongo/Repositories/Extensions/OrderByIf.cs:19-28
  • Duplicated block (10 lines × 2) src/Queueing/InMemoryQueue.cs:46 — src/Queueing/InMemoryQueue.cs:46-55 | src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs:59-68
  • Duplicated block (10 lines × 2) src/Foundation.Criteria/CriteriaExtensions.cs:26 — src/Foundation.Criteria/CriteriaExtensions.cs:26-35 | src/Foundation.Criteria/CriteriaExtensions.cs:46-55
  • Duplicated block (10 lines × 2) src/Foundation.ContentTypes/ContentTypeExtensions.cs:8 — src/Foundation.ContentTypes/ContentTypeExtensions.cs:8-17 | src/Foundation.ContentTypes/ContentTypeExtensions.cs:28-37
D35 · Change Coupling · Change coupling · ×4
  • 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.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×4
  • Duplicated block (12 lines × 2) src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:159 — src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:159-172 | src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity}.cs:156-167
  • Duplicated block (12 lines × 2) src/ServiceDiscovery.Application/Registries/FileStorageServiceRegistry.cs:39 — src/ServiceDiscovery.Application/Registries/FileStorageServiceRegistry.cs:39-50 | src/ServiceDiscovery.Application/Registries/FileSystemServiceRegistry.cs:38-49
  • Duplicated block (12 lines × 2) src/FileStorage/InMemoryFileStorage.cs:115 — src/FileStorage/InMemoryFileStorage.cs:115-126 | src/FileStorage/InMemoryFileStorage.cs:138-149
  • Duplicated block (12 lines × 2) src/Foundation.Utilities/EncryptionHelper.cs:58 — src/Foundation.Utilities/EncryptionHelper.cs:58-69 | src/Foundation.Utilities/EncryptionHelper.cs:84-95
D6 · Cohesion (LCOM4) · Low cohesion · ×4
  • 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.
D3 · God Classes · TooManyMethods · ×3
  • TooManyMethods: SequentialGuid src/Foundation.Utilities/SequentialGuid.cs:0 — TooManyMethods — 126 lines, 39 methods.
  • TooManyMethods: SqlServerDocumentProvider src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlServerDocumentProvider.cs:0 — TooManyMethods — 378 lines, 34 methods.
  • TooManyMethods: Node src/Foundation.Utilities/Node/Node.cs:0 — TooManyMethods — 167 lines, 31 methods.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×3
  • Duplicated block (9 lines × 2) src/ServiceDiscovery.Application/Registries/FileStorageServiceRegistry.cs:153 — src/ServiceDiscovery.Application/Registries/FileStorageServiceRegistry.cs:153-161 | src/ServiceDiscovery.Application/Registries/FileSystemServiceRegistry.cs:154-162
  • Duplicated block (9 lines × 2) src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:155 — src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:155-163 | src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity}.cs:145-153
  • Duplicated block (9 lines × 2) src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:234 — src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:234-242 | src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity}.cs:225-233
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×3
  • Duplicated block (7 lines × 2) src/Foundation.Domain.Repositories/Decorators/RepositoryDomainEventsDecorator.cs:89 — src/Foundation.Domain.Repositories/Decorators/RepositoryDomainEventsDecorator.cs:89-95 | src/Foundation.Domain.Repositories/Decorators/RepositoryDomainEventsDecorator.cs:102-108
  • Duplicated block (7 lines × 2) src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs:45 — src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs:45-51 | src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs:100-106
  • Duplicated block (7 lines × 2) src/Queueing/InMemoryQueue.cs:168 — src/Queueing/InMemoryQueue.cs:168-174 | src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs:164-170
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×3
  • Duplicated block (6 lines × 2) src/Operations.Application.Web/Controllers/NaosOperationsHealthController.cs:95 — src/Operations.Application.Web/Controllers/NaosOperationsHealthController.cs:95-100 | src/Operations.Application.Web/Controllers/NaosOperationsHealthController.cs:134-139
  • Duplicated block (6 lines × 2) src/Queueing/InMemoryQueue.cs:71 — src/Queueing/InMemoryQueue.cs:71-76 | src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs:102-107
  • Duplicated block (6 lines × 2) src/Queueing/InMemoryQueue.cs:93 — src/Queueing/InMemoryQueue.cs:93-98 | src/Queueing.Infrastructure.RabbitMQ/RabbitMQQueue.cs:156-164
D10 · Test Quality · No assertions · ×2
  • 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.
D2 · Cognitive Complexity · EntityFrameworkRepository.UpsertAsync (cognitive 20) · ×2
  • 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.
D2 · Cognitive Complexity · CosmosSqlRepository.UpsertAsync (cognitive 18) · ×2
  • 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.
D2 · Cognitive Complexity · MongoRepository.UpsertAsync (cognitive 18) · ×2
  • 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.
D2 · Cognitive Complexity · InMemoryRepository.FindAll (cognitive 16) · ×2
  • 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.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×2
  • Duplicated block (19 lines × 2) src/FileStorage.Infrastructure.Azure/AzureBlobFileStorage.cs:226 — src/FileStorage.Infrastructure.Azure/AzureBlobFileStorage.cs:226-244 | src/FileStorage.Infrastructure.Ssh/SshNetFileStorage.cs:211-229
  • Duplicated block (19 lines × 2) src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:244 — src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:244-262 | src/Queueing.Infrastructure.RabbitMQ/RabbitMQQueue.cs:291-309
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×2
  • Duplicated block (11 lines × 2) src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlServerDocumentProvider.cs:521 — src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlServerDocumentProvider.cs:521-531 | src/Foundation.Infrastructure.Documents.Sqlite/Provider/SqliteDocumentProvider.cs:69-79
  • Duplicated block (11 lines × 2) src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:166 — src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:166-176 | src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity}.cs:156-166
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×2
  • Duplicated block (8 lines × 2) src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity,TDestination}.cs:56 — src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity,TDestination}.cs:56-63 | src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity}.cs:51-58
  • Duplicated block (8 lines × 2) src/Operations.Application/LoggingOptionsExtensions.cs:23 — src/Operations.Application/LoggingOptionsExtensions.cs:23-30 | src/Operations.Infrastructure.Azure/LoggingOptionsExtensions.cs:23-31
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×2
  • Duplicated block (6 lines × 3) src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:154 — src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:154-159 | src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs:136-141 | src/Queueing.Infrastructure.RabbitMQ/RabbitMQQueue.cs:180-185
  • Duplicated block (6 lines × 3) src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:173 — src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:173-178 | src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs:167-172 | src/Queueing.Infrastructure.RabbitMQ/RabbitMQQueue.cs:205-210
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×2
  • Duplicated block (5 lines × 2) src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:200 — src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:200-204 | src/Queueing.Infrastructure.RabbitMQ/RabbitMQQueue.cs:236-240
  • Duplicated block (5 lines × 2) src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:23 — src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:23-27 | src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity}.cs:20-24
D1 · Cyclomatic Complexity · SqlBuilder.BuildExpressionSelect (cyclomatic 38) · ×1
  • 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.
D1 · Cyclomatic Complexity · FileStorageKeyValueStorage.Match (cyclomatic 35) · ×1
  • 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.
D1 · Cyclomatic Complexity · Extensions.To (cyclomatic 18) · ×1
  • 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.
D1 · Cyclomatic Complexity · Extensions.To (cyclomatic 17) · ×1
  • 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.
D1 · Cyclomatic Complexity · SshNetFileStorage.CreateConnectionInfo (cyclomatic 16) · ×1
  • 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.
D12 · Dependency Hygiene · Prerelease dependency · ×1
  • 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.
D16 · Bus Factor · dormant codebase · ×1
  • 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.)
D17 · Explicit Debt · BarePragmaDisable repeated across 20 files · ×1
  • 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.)
D17 · Explicit Debt · BarePragmaDisable repeated across 11 files · ×1
  • 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.)
D17 · Explicit Debt · BarePragmaDisable repeated across 14 files · ×1
  • 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.)
D2 · Cognitive Complexity · FileStorageKeyValueStorage.Match (cognitive 46) · ×1
  • 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.
D2 · Cognitive Complexity · NaosOperationsHealthController.GetHtmlAsync (cognitive 33) · ×1
  • 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.
D2 · Cognitive Complexity · ServiceBusMessageBroker.ProcessMessage (cognitive 30) · ×1
  • 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.
D2 · Cognitive Complexity · FileStorageMessageBroker.ProcessMessage (cognitive 29) · ×1
  • 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.
D2 · Cognitive Complexity · InteractiveConsoleHostedService.Run (cognitive 27) · ×1
  • 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.
D2 · Cognitive Complexity · SqlBuilder.BuildExpressionSelect (cognitive 26) · ×1
  • 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.
D2 · Cognitive Complexity · LogAnalyticsRepository.MapResponse (cognitive 25) · ×1
  • 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.
D2 · Cognitive Complexity · RabbitMQMessageBroker.ProcessMessage (cognitive 23) · ×1
  • 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.
D2 · Cognitive Complexity · SignalRServerlessMessageBroker.ProcessMessage (cognitive 23) · ×1
  • 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.
D2 · Cognitive Complexity · LoggingFilterContext.Prepare (cognitive 20) · ×1
  • 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.
D2 · Cognitive Complexity · PropertyBag.ReadXml (cognitive 20) · ×1
  • 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.
D2 · Cognitive Complexity · ApiKeyAuthenticationHandler.HandleAuthenticateAsync (cognitive 19) · ×1
  • 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.
D2 · Cognitive Complexity · BasicAuthenticationHandler.HandleAuthenticateAsync (cognitive 19) · ×1
  • 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.
D2 · Cognitive Complexity · ExpressionExpander.VisitMethodCall (cognitive 19) · ×1
  • 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.
D2 · Cognitive Complexity · InMemoryRepository.UpsertAsync (cognitive 17) · ×1
  • 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.
D2 · Cognitive Complexity · NaosOperationsLogEventsController.GetHtmlAsync (cognitive 17) · ×1
  • 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.
D2 · Cognitive Complexity · SshNetFileStorage.CreateConnectionInfo (cognitive 17) · ×1
  • 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.
D2 · Cognitive Complexity · Extensions.To (cognitive 17) · ×1
  • 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.
D2 · Cognitive Complexity · Run.WithRetriesAsync (cognitive 17) · ×1
  • 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.
D2 · Cognitive Complexity · CommandRequestMiddleware.Invoke (cognitive 17) · ×1
  • 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.
D2 · Cognitive Complexity · BadRequestExceptionResponseHandler.Handle (cognitive 16) · ×1
  • 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.
D2 · Cognitive Complexity · PropertyBag.WriteXml (cognitive 16) · ×1
  • 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.
D2 · Cognitive Complexity · DocumentRepository.UpsertAsync (cognitive 16) · ×1
  • 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.
D24 · Comment Value · LLM evaluation failed · ×1
  • 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.
D3 · God Classes · FileTooLong · ×1
  • FileTooLong: Foundation.ContentTypes/ContentType.cs src/Foundation.ContentTypes/ContentType.cs:0 — FileTooLong — 1990 significant lines (blank, comment-only and punctuation-only lines excluded).
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×1
  • Duplicated block (25 lines × 2) src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:75 — src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:75-99 | src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs:75-99
D4 · Code Duplication · Duplicated block (22 lines × 4) · ×1
  • Duplicated block (22 lines × 4) src/Commands.Application.Web/CommandRequestOptionsExtensions.cs:82 — src/Commands.Application.Web/CommandRequestOptionsExtensions.cs:82-103 | src/Commands.Application.Web/CommandRequestOptionsExtensions.cs:162-183 | src/Commands.Application.Web/CommandRequestOptionsExtensions.cs:242-263 | src/Commands.Application.Web/CommandRequestOptionsExtensions.cs:282-303
D4 · Code Duplication · Duplicated block (22 lines × 3) · ×1
  • Duplicated block (22 lines × 3) src/Commands.Application.Web/CommandRequestOptionsExtensions.cs:42 — src/Commands.Application.Web/CommandRequestOptionsExtensions.cs:42-63 | src/Commands.Application.Web/CommandRequestOptionsExtensions.cs:122-143 | src/Commands.Application.Web/CommandRequestOptionsExtensions.cs:202-223
D4 · Code Duplication · Duplicated block (20 lines × 3) · ×1
  • Duplicated block (20 lines × 3) src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:142 — src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:142-161 | src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs:142-161 | src/Authentication.Application.Web/EasyAuth/EasyAuthAuthenticationHandler.cs:103-122
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×1
  • Duplicated block (20 lines × 2) src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs:211 — src/Foundation.Infrastructure.Documents.SqlServer/Provider/SqlBuilder.cs:211-230 | src/Foundation.Infrastructure.Documents.Sqlite/Provider/SqliteBuilder.cs:24-43
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×1
  • Duplicated block (18 lines × 2) src/ServiceDiscovery.Application/Registries/FileStorageServiceRegistry.cs:91 — src/ServiceDiscovery.Application/Registries/FileStorageServiceRegistry.cs:91-108 | src/ServiceDiscovery.Application/Registries/FileSystemServiceRegistry.cs:90-107
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×1
  • Duplicated block (17 lines × 2) src/KeyValueStorage.Infrastructure.Azure/TableKeyValueStorage.cs:105 — src/KeyValueStorage.Infrastructure.Azure/TableKeyValueStorage.cs:105-121 | src/KeyValueStorage.Infrastructure.Azure/TableKeyValueStorage.cs:126-142
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×1
  • Duplicated block (16 lines × 2) src/ServiceDiscovery.Application/Registries/FileStorageServiceRegistry.cs:65 — src/ServiceDiscovery.Application/Registries/FileStorageServiceRegistry.cs:65-80 | src/ServiceDiscovery.Application/Registries/FileSystemServiceRegistry.cs:64-79
D4 · Code Duplication · Duplicated block (15 lines × 6) · ×1
  • Duplicated block (15 lines × 6) src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity,TDestination}.cs:156 — src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity,TDestination}.cs:156-170 | src/Foundation.Infrastructure.Azure.Cosmos/Repositories/CosmosSqlRepository{TEntity}.cs:149-163 | src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:200-214 | src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity}.cs:193-207 | src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:206-220 | src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity}.cs:196-210
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×1
  • Duplicated block (15 lines × 3) src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:217 — src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:217-231 | src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:244-258 | src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:271-285
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×1
  • Duplicated block (15 lines × 2) src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:31 — src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity,TDestination}.cs:31-45 | src/Foundation.Infrastructure.EntityFramework/Repositories/EntityFrameworkRepository{TEntity}.cs:28-42
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×1
  • Duplicated block (14 lines × 3) src/Operations.Application/LoggingOptionsExtensions.cs:115 — src/Operations.Application/LoggingOptionsExtensions.cs:115-128 | src/Operations.Infrastructure.Azure/LoggingOptionsExtensions.cs:155-168 | src/Operations.Infrastructure.Mongo/LoggingOptionsExtensions.cs:74-87
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×1
  • Duplicated block (13 lines × 3) src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:114 — src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:114-126 | src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs:114-126 | src/Authentication.Application.Web/EasyAuth/EasyAuthAuthenticationHandler.cs:75-87
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×1
  • Duplicated block (13 lines × 2) src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:110 — src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity,TDestination}.cs:110-122 | src/Foundation.Infrastructure.Mongo/Repositories/MongoRepository{TEntity}.cs:103-115
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) src/KeyValueStorage.Infrastructure.LightningDb/LightningDbKeyValueStorage.cs:108 — src/KeyValueStorage.Infrastructure.LightningDb/LightningDbKeyValueStorage.cs:108-117 | src/KeyValueStorage.Infrastructure.LightningDb/LightningDbKeyValueStorage.cs:126-135 | src/KeyValueStorage.Infrastructure.LightningDb/LightningDbKeyValueStorage.cs:144-153 | src/KeyValueStorage.Infrastructure.LightningDb/LightningDbKeyValueStorage.cs:162-171
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×1
  • Duplicated block (8 lines × 3) src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:36 — src/Authentication.Application.Web/ApiKey/ApiKeyAuthenticationHandler.cs:36-43 | src/Authentication.Application.Web/Basic/BasicAuthenticationHandler.cs:36-43 | src/Authentication.Application.Web/EasyAuth/EasyAuthAuthenticationHandler.cs:29-36
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:87 — src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:87-93 | src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:98-104 | src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:109-115 | src/KeyValueStorage.Infrastructure.FileStorage/FileStorageKeyValueStorage.cs:120-126
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×1
  • Duplicated block (5 lines × 4) src/Queueing/InMemoryQueue.cs:103 — src/Queueing/InMemoryQueue.cs:103-122 | src/Queueing.Infrastructure.Azure/ServiceBus/AzureServiceBusQueue.cs:153-157 | src/Queueing.Infrastructure.Azure/Storage/AzureStorageQueue.cs:134-139 | src/Queueing.Infrastructure.RabbitMQ/RabbitMQQueue.cs:179-183
D5 · Coupling · Unstable project Application · ×1
  • 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.)
D34 · Knowledge Freshness · Dormant codebase · ×1
  • 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.
D36 · Supply-chain Provenance & Signing · No build provenance · ×1
  • No build provenance — No SLSA provenance generation or build attestation found in CI (e.g. slsa-github-generator, actions/attest-build-provenance).
D36 · Supply-chain Provenance & Signing · No artifact signing · ×1
  • 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.
Info — 148 finding(s)
D12 · Dependency Hygiene · Outdated · ×121
  • Outdated: Microsoft.CodeAnalysis.CSharp — Microsoft.CodeAnalysis.CSharp 3.7.0 → 5.6.0 available (referenced by Application).
  • Outdated: Microsoft.CodeAnalysis.FxCopAnalyzers — Microsoft.CodeAnalysis.FxCopAnalyzers 3.3.0 → 3.3.2 available (referenced by Application).
  • Outdated: Microsoft.Extensions.Http — Microsoft.Extensions.Http 3.1.5 → 10.0.10 available (referenced by Application).
  • Outdated: Microsoft.Extensions.Http.Polly — Microsoft.Extensions.Http.Polly 3.1.5 → 10.0.10 available (referenced by Application).
  • Outdated: Microsoft.Net.Compilers — Microsoft.Net.Compilers 3.7.0 → 4.2.0 available (referenced by Application).
  • Outdated: NetArchTest.Rules — NetArchTest.Rules 1.2.5 → 1.3.2 available (referenced by Application).
  • Outdated: SecurityCodeScan — SecurityCodeScan 3.5.3 → 3.5.4 available (referenced by Application).
  • Outdated: MediatR — MediatR 8.0.1 → 14.2.0 available (referenced by Application.Web).
  • Outdated: Microsoft.AspNetCore.Mvc.Formatters.Json — Microsoft.AspNetCore.Mvc.Formatters.Json 2.2.0 → 2.3.11 available (referenced by Application.Web).
  • Outdated: Microsoft.AspNetCore.Mvc.NewtonsoftJson — Microsoft.AspNetCore.Mvc.NewtonsoftJson 3.1.5 → 10.0.10 available (referenced by Application.Web).
  • Outdated: Microsoft.Extensions.DependencyInjection.Abstractions — Microsoft.Extensions.DependencyInjection.Abstractions 3.1.5 → 10.0.10 available (referenced by Application.Web).
  • Outdated: Microsoft.Extensions.Logging.Abstractions — Microsoft.Extensions.Logging.Abstractions 3.1.5 → 10.0.10 available (referenced by Application.Web).
  • Outdated: NSwag.Annotations — NSwag.Annotations 13.6.2 → 14.7.1 available (referenced by Application.Web).
  • Outdated: NSwag.Generation — NSwag.Generation 13.6.2 → 14.7.1 available (referenced by Application.Web).
  • Outdated: Microsoft.AspNetCore.Mvc — Microsoft.AspNetCore.Mvc 2.2.0 → 2.3.11 available (referenced by Application.Web).
  • Outdated: Colorful.Console — Colorful.Console 1.2.10 → 1.2.15 available (referenced by Application.Web).
  • Outdated: CommandLineParser — CommandLineParser 2.8.0 → 2.9.1 available (referenced by Application.Web).
  • Outdated: Humanizer.Core — Humanizer.Core 2.8.26 → 3.0.10 available (referenced by Application.Web).
  • Outdated: Microsoft.Extensions.Logging — Microsoft.Extensions.Logging 3.1.5 → 10.0.10 available (referenced by Application.Web).
  • Outdated: Newtonsoft.Json — Newtonsoft.Json 12.0.3 → 13.0.4 available (referenced by Application.Web).
  • Outdated: System.Text.Json — System.Text.Json 4.7.2 → 10.0.10 available (referenced by Domain).
  • Outdated: Microsoft.Azure.Cosmos — Microsoft.Azure.Cosmos 3.10.1 → 3.62.0 available (referenced by Infrastructure.Azure.Cosmos).
  • Outdated: Microsoft.Azure.DocumentDB.Core — Microsoft.Azure.DocumentDB.Core 2.11.0 → 2.22.0 available (referenced by Infrastructure.Azure.Cosmos).
  • Outdated: Microsoft.Extensions.Configuration.Abstractions — Microsoft.Extensions.Configuration.Abstractions 3.1.5 → 10.0.10 available (referenced by Infrastructure.Azure.LogAnalytics).
  • Outdated: Microsoft.Extensions.Options.ConfigurationExtensions — Microsoft.Extensions.Options.ConfigurationExtensions 3.1.5 → 10.0.10 available (referenced by Infrastructure.Azure.LogAnalytics).
  • + 96 more in this group — see findings.md.
D10 · Test Quality · Skipped (documented) · ×9
  • 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
D19 · Documentation Quality · XML-doc coverage · ×9
  • XML-doc coverage: Messaging src/Messaging/Messaging.csproj — Messaging: 52 % XML-doc coverage (37/71).
  • XML-doc coverage: RequestCorrelation.Application(netcoreapp3.1) src/Correlation.Application/RequestCorrelation.Application.csproj — RequestCorrelation.Application(netcoreapp3.1): 82 % XML-doc coverage (31/38).
  • XML-doc coverage: Serialization src/Foundation.Serialization/Serialization.csproj — Serialization: 50 % XML-doc coverage (44/88).
  • XML-doc coverage: Mapping src/Foundation.Mapping/Mapping.csproj — Mapping: 100 % XML-doc coverage (9/9).
  • XML-doc coverage: Mapping.AutoMapper src/Foundation.Mapping.AutoMapper/Mapping.AutoMapper.csproj — Mapping.AutoMapper: 50 % XML-doc coverage (5/10).
  • XML-doc coverage: Encoding src/Foundation.Encoding/Encoding.csproj — Encoding: 100 % XML-doc coverage (6/6).
  • XML-doc coverage: Options src/Foundation.Options/Options.csproj — Options: 53 % XML-doc coverage (8/15).
  • XML-doc coverage: Tracing.Application.Web src/Tracing.Application.Web/Tracing.Application.Web.csproj — Tracing.Application.Web: 50 % XML-doc coverage (4/8).
  • XML-doc coverage: Foundation src/Foundation/Foundation.csproj — Foundation: 100 % XML-doc coverage (0/0).
D10 · Test Quality · Mock framework · ×6
  • Mock framework: NSubstitute — UnitTests references NSubstitute.
  • Mock framework: Moq — Sample.IntegrationTests references Moq.
  • Mock framework: NSubstitute — Sample.IntegrationTests references NSubstitute.
  • Mock framework: Moq — Foundation.UnitTests references Moq.
  • Mock framework: NSubstitute — Foundation.UnitTests references NSubstitute.
  • Mock framework: NSubstitute — IntegrationTests references NSubstitute.
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.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaksgitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source .1artifacts/raw/gitleaks-history.json
D29 · Static Analysis (SAST)semgrepsemgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --json --quiet --timeout 0 --metrics off .4artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesdotnetdotnet: 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 solution0
D31 · IaC & Container Securitytrivytrivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.0
D32 · Data Compliance (PII/GDPR)semgrepsemgrep: not applicable — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.0
D33 · JS/npm Dependency Vulnerabilitiestrivytrivy: 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.0
D37 · Vulnerability-disclosure Policydisclosuredisclosure: 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.0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner: not applicable — 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.0
D40 · Network Egress Confinementruntime-hardeningruntime-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.0
D41 · Kernel & Syscall Confinementruntime-hardeningruntime-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.0
D42 · Runtime Threat Enforcementruntime-hardeningruntime-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.

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.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md