Public report — DomainDrivenDesignUniversity, published 3 Aug 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 03-08-2026 @ 12:51 UTC Public
Code Health Audit

Dr-Marek-Jaskula/DomainDrivenDesignUniversity

48% At Risk

Medium · 27,068 LoC · 18 projects · rebuild ~0.3 person-years · weakest lens: Readiness (31%)

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

72/74dimensions tool-verifieddeterministic · confidence 1.0 · 2 LLM-assisted, advisory
40findings with an exact file:lineof 159 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
74/108dimensions across the health lenses27068 LoC · 18 projects — wide & deep

Executive summary

Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.

dr-marek-jaskula/DomainDrivenDesignUniversity carries serious risk (48%). Several issues below can materially affect reliability, security, or the cost of change and warrant near-term attention.

It is strongest in Event-Driven (100%) — its messaging keeps components properly decoupled. Code Health (92%) is solid too.

Most urgent: a critical security exposure was detected (see the Security & Compliance lens). Treat it as a priority regardless of the overall grade.

The area that most needs attention is Readiness (31%) — operating, monitoring and recovering the system safely is harder. Security (55%) is the next concern — exposure to security and compliance incidents is elevated.

Leadership focus, highest impact first: SAST step to CI running what this repository's stack ships (Security & performance tooling); Codify backups + geo-recovery in IaC and document RTO/RPO… (DR & Backup); `healthcheck:` to the served compose service — probing… (Deployment & Rollback).

For scale: Medium (~27,068 production lines); rebuilding it from scratch would take roughly ~0.3 person-years (~1 engineer). Approximate, ±~30%.

It builds on a genuinely strong Event-Driven foundation (100%); 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.
Readiness 31% · 45% weightSecurity 55% · 25% weightMaturity 62% · 14% weightPerformance 69% · 8% weightDomain Modelling 71% · 4% weightArchitecture 74% · 2% weightCode Health 92% · 1% weightEvent-Driven 100% · 1% weight

Raise Readiness 31 → 70 (the Healthy floor) ⇒ headline 48 → ~62.

Code composition — where the lines go
Business logic 7%Plumbing 42%Tests 10%Generated 39%Analyzers 1%
New since the last scan (100+)

138 finding(s) are new versus the previous scan (2026-07-29) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.

  • D1 · StringUtilities.SqlLike (cyclomatic 35) src/Shopway.Domain/Common/Utilities/StringUtilities.cs
  • D2 · StringUtilities.SqlLike (cognitive 83) src/Shopway.Domain/Common/Utilities/StringUtilities.cs
  • D2 · FilterByEntryJsonConverter.Read (cognitive 32) src/Shopway.Domain/Common/DataProcessing/FilterByEntryJsonConverter.cs
  • D2 · MappingEntryJsonConverter.Read (cognitive 26) src/Shopway.Domain/Common/DataProcessing/MappingEntryJsonConverter.cs
  • D2 · ApplicationCache.CreateValidationResultCache (cognitive 19) src/Shopway.Application/Cache/ApplicationCache.ResultValidations.cs
  • D2 · MappingEntry.GetAllPropertyNamesWithHierarchy (cognitive 17) src/Shopway.Domain/Common/DataProcessing/MappingEntry.cs
  • D3 · TooManyMethods: Error src/Shopway.Domain/Common/Errors/Error.Common.cs
  • D4 · Duplicated block (14 lines × 2) src/Shopway.Application/Cache/ApplicationCache.AllowedFilterOperations.cs
  • D4 · Duplicated block (13 lines × 2) src/Shopway.Application/Utilities/FluentValidationUtilities.cs
  • D4 · Duplicated block (9 lines × 2) src/Shopway.Application/Features/Orders/Commands/AddOrderLine/AddOrderLineCommandValidator.Fluent.cs
  • D4 · Duplicated block (9 lines × 2) src/Shopway.Domain/Common/Utilities/HashUtilities.cs
  • D5 · Off the main sequence: Shopway.SourceGenerator.Base
  • D5 · Off the main sequence: Shopway.Domain
  • D6 · Low cohesion: Specification (LCOM4 16) src/Shopway.Persistence/Specifications/Specification.cs
  • D6 · Low cohesion: OrderHeadersController (LCOM4 8) src/Shopway.Presentation/Controllers/OrderHeaderController.Payment.cs
  • D6 · Low cohesion: User (LCOM4 5) src/Shopway.Domain/Users/User.cs
  • D6 · Low cohesion: OrderHeader (LCOM4 4) src/Shopway.Domain/Orders/OrderHeader.cs
  • D8 · Coverage not measured — test suite did not build
  • D12 · Vulnerable: MailKit
  • D12 · Vulnerable: System.Linq.Dynamic.Core
  • D12 · Vulnerable: OpenTelemetry.Exporter.OpenTelemetryProtocol
  • D12 · Deprecated: FluentValidation.AspNetCore
  • D12 · Deprecated: xunit
  • D12 · Prerelease dependency: OpenTelemetry.Exporter.Prometheus.AspNetCore
  • D12 · Prerelease dependency: OpenTelemetry.Instrumentation.EntityFrameworkCore
  • D13 · Leaked secret: jwt docs/DomainDrivenDesignUniversity.postman_collection.json
  • D17 · CommentedOutCode test/Shopway.Tests.Benchmark/Benchmarks/ReflectionUtilitiesBenchmarks.cs
  • D17 · NoWarnInCsproj src/Shopway.Presentation/Shopway.Presentation.csproj
  • D19 · LLM evaluation failed
  • D24 · LLM evaluation failed
  • D28 · Secret: jwt docs/DomainDrivenDesignUniversity.postman_collection.json
  • D28 · Secret: stripe-access-token PaymentGateway/Persistence/SecretStore.Shopway.txt
  • D28 · Secret: generic-api-key src/Shopway.App/appsettings.json
  • D28 · Secret: stripe-access-token src/Shopway.App/appsettings.json
  • D28 · Secret: generic-api-key docker-compose.override.yml
  • D28 · Secret: jwt DomainDrivenDesignUniversity.postman_collection.json
  • D28 · Secret: jwt DomainDrivenDesignUniversity.postman_collection.json
  • D28 · Secret: jwt DomainDrivenDesignUniversity.postman_collection.json
  • D28 · Secret: jwt DomainDrivenDesignUniversity.postman_collection.json
  • D28 · Secret: jwt DomainDrivenDesignUniversity.postman_collection.json
  • D28 · Secret: jwt DomainDrivenDesignUniversity.postman_collection.json
  • D28 · Secret: jwt DomainDrivenDesignUniversity.postman_collection.json
  • D28 · Secret: jwt docs/DomainDrivenDesignUniversity.postman_collection.json
  • D29 · High: github-actions-mutable-action-tag .github/workflows/continuous-integration.yml
  • D29 · High: github-actions-mutable-action-tag .github/workflows/continuous-integration.yml
  • D29 · High: github-actions-mutable-action-tag .github/workflows/continuous-integration.yml
  • D29 · High: github-actions-mutable-action-tag .github/workflows/conventional-pull-request-names.yml
  • D29 · High: github-actions-mutable-action-tag .github/workflows/conventional-pull-request-names.yml
  • D29 · Medium: jwt-tokenvalidationparameters-no-expiry-validation src/Shopway.Infrastructure/Services/SecurityTokenService.cs
  • D30 · Critical CVE: System.Drawing.Common 4.5.0-preview1-25914-04
  • D30 · Critical CVE: Scriban.Signed 5.5.0
  • D30 · Critical CVE: Refit 7.2.1
  • D30 · High CVE: Microsoft.Extensions.Caching.Memory 8.0.0
  • D30 · High CVE: System.Linq.Dynamic.Core 1.4.5
  • D30 · High CVE: System.Text.Json 6.0.0
  • D30 · High CVE: System.Text.Json 8.0.0
  • D30 · High CVE: System.Text.Json 8.0.0
  • D30 · High CVE: Scriban.Signed 5.5.0
  • D30 · High CVE: Scriban.Signed 5.5.0
  • D30 · High CVE: Scriban.Signed 5.5.0
  • D30 · High CVE: Scriban.Signed 5.5.0
  • D30 · High CVE: Scriban.Signed 5.5.0
  • D30 · High CVE: Scriban.Signed 5.5.0
  • D30 · High CVE: Scriban.Signed 5.5.0
  • D30 · High CVE: Scriban.Signed 5.5.0
  • D30 · High CVE: System.Text.Json 8.0.4
  • D30 · High CVE: System.Text.RegularExpressions 4.3.0
  • D30 · High CVE: MessagePack 2.4.59
  • D30 · High CVE: MessagePack 2.4.59
  • D30 · Medium CVE: Azure.Identity 1.10.3
  • D30 · Medium CVE: Azure.Identity 1.10.3
  • D30 · Medium CVE: MailKit 4.7.1.1
  • D30 · Medium CVE: Microsoft.Identity.Client 4.56.0
  • D30 · Medium CVE: MimeKit 4.7.1
  • D30 · Medium CVE: OpenTelemetry.Api 1.9.0
  • D30 · Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.9.0
  • D30 · Medium CVE: Scriban.Signed 5.5.0
  • D30 · Medium CVE: Scriban.Signed 5.5.0
  • D30 · Medium CVE: Scriban.Signed 5.5.0
  • D30 · Medium CVE: Scriban.Signed 5.5.0
  • D30 · Medium CVE: MessagePack 2.4.59
  • D30 · Medium CVE: MessagePack 2.4.59
  • D30 · Medium CVE: MessagePack 2.4.59
  • D30 · Medium CVE: MessagePack 2.4.59
  • D30 · Medium CVE: MessagePack 2.4.59
  • D30 · Medium CVE: MessagePack 2.4.59
  • D30 · Medium CVE: MessagePack 2.4.59
  • D30 · Medium CVE: MessagePack 2.4.59
  • D30 · Medium CVE: MessagePack 2.4.59
  • D30 · Medium CVE: MessagePack 2.4.59
  • P5 · No DR/backup evidence
  • P12 · CI test gate excludes suites by filter
  • IC1 · Hollow method — returns a constant without doing the work src/Shopway.Domain/Common/Utilities/IEnumerableUtilities.cs
  • IC1 · Empty method body — does nothing with its inputs src/Shopway.Infrastructure/Payments/DummyGatewayTypes/Refunds/RefundService.cs
  • AX2 · Stateful singleton: WebhookService PaymentGateway/Webhook/WebhookService.cs
  • AX4 · Dependency-rule violation: Shopway.App (Application) → Shopway.Persistence (Infrastructure)
  • AX4 · Dependency-rule violation: Shopway.App (Application) → Shopway.Presentation (Web)
  • DM4 · Anemic entity: Customer src/Shopway.Domain/Users/Customer.cs
  • DM6 · Domain depends on infrastructure: AmountConverter src/Shopway.Persistence/Converters/ValueObjects/AmountConverter.cs
  • DM6 · Domain depends on infrastructure: AmountComparer src/Shopway.Persistence/Converters/ValueObjects/AmountConverter.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 — €16,000–€78,000
Cost to rebuild€16,000–€78,000 (0.2–0.5 person-years (261–823 h), ~1 engineer)
Domain complexityVery high — harder problems cost more per line
Quality factor0.7× (at 48% quality) — the last 20% of quality is most of the work
Size & shapeMedium · 48% boilerplate · 38% straight-line · 15% branching logic

This codebase represents roughly ~0.3 person-years of build effort (about ~€47,000 to rebuild). Its weakest lens is Readiness at 31% — 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.8) — 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 Vulnerable finding(s) in Dependency Hygiene.
+13.5 pts · Low effort · Dependency Hygiene
2
Resolve the 1 Leaked secret finding(s) in Secret Scanning — start with DomainDrivenDesignUniversity.postman_collection.json.
+11.2 pts · Low effort · Secret Scanning
3
Resolve the 2 Deprecated finding(s) in Dependency Hygiene.
+11.1 pts · Low effort · Dependency Hygiene

Diagnosis — what's actually going on

Value concentrated against a weak lens · High · Value at risk
This is a Medium asset (~0.3 person-years to rebuild), and its weakest lens is Readiness at 31%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Medium, ~0.3 person-years rebuild (27,068 LoC) · weakest lens: Readiness 31%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Root cause: an un-encapsulated domain · Medium · Root cause
8 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: 7 · DM4 anemic: 1 · DM2 primitive ids: 0
→ 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: Add a SAST step to CI running what this repository's stack ships: CodeQL's csharp pack (it analyses VB.NET too), or a security analyzer package — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Add a SAST step to CI running what this repository's stack ships: CodeQL's csharp pack (it analyses VB.NET too), or a security analyzer package — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.

Architecture — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways — a layering smell or cycle. A clean layered graph has none.

arch PaymentGateway PaymentGateway Shopway.App App Shopway.Persistence Persistence Shopway.App->Shopway.Persistence Shopway.Presentation Presentation Shopway.App->Shopway.Presentation Shopway.Application Application Shopway.Domain Domain Shopway.Application->Shopway.Domain Shopway.Infrastructure Infrastructure Shopway.Infrastructure->Shopway.Application Shopway.Persistence->Shopway.Infrastructure Shopway.Presentation->Shopway.Application

Architecture — module dependency matrix

200 modules, 683 dependencies — 7 dependency cycles, shown as the red cell(s) above the diagonal. Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows — an unusual but cycle-free dependency sits below the diagonal like any other.)

…aseTypes.Abstractions…ocessing.Abstractions…Domain.Common.Results…way.Domain.EntityKeys…main.Common.BaseTypes…Common.DataProcessing….Domain.Common.Errors….DataProcessing.Proxy…Products.ValueObjects…n.Users.Authorization…in.Users.ValueObjects…opway.Domain.ProductsShopway.Domain.Users…lication.Abstractions…n.Orders.ValueObjects…aProcessing.Filtering…ataProcessing.Sorting….Application.Features…ures.Products.QueriesShopway.Domain.Orders…Persistence.Framework…atures.Orders.Queries…eaderWithMappingQuery…eaderWithMappingQuery…ds.BatchUpsertProduct…oductWithMappingQuery…namicWithMappingQuery…sistence.Repositories…cation.Features.Proxy…ion.Abstractions.CQRS…nds.CreateHeaderOrder…ts.Commands.AddReview…Commands.RemoveReview…micOffsetProductQuery…ductsCursorDictionary…ductsOffsetDictionary…ueryOffsetPageProduct…ageProductWithMapping….Application.Mappings…sentation.Controllers…aseTypes.Abstractions1…ocessing.Abstractions2…Domain.Common.Results3…way.Domain.EntityKeys4…main.Common.BaseTypes5…Common.DataProcessing6….Domain.Common.Errors7….DataProcessing.Proxy8…Products.ValueObjects9…n.Users.Authorization10…in.Users.ValueObjects11…opway.Domain.Products12Shopway.Domain.Users13…lication.Abstractions14…n.Orders.ValueObjects15…aProcessing.Filtering16…ataProcessing.Sorting17….Application.Features18…ures.Products.Queries19Shopway.Domain.Orders20…Persistence.Framework21…atures.Orders.Queries22…eaderWithMappingQuery23…eaderWithMappingQuery24…ds.BatchUpsertProduct25…oductWithMappingQuery26…namicWithMappingQuery27…sistence.Repositories28…cation.Features.Proxy29…ion.Abstractions.CQRS30…nds.CreateHeaderOrder31…ts.Commands.AddReview32…Commands.RemoveReview33…micOffsetProductQuery34…ductsCursorDictionary35…ductsOffsetDictionary36…ueryOffsetPageProduct37…ageProductWithMapping38….Application.Mappings39…sentation.Controllers4042215182312167771131131213461219142113412324244181442321131286331126121412211121211121215542111111221111112218112132454721182242111114121211122131332231131111111121111111221111111221111111121111112212312324421111135131211122211111+160 more modules (most-connected shown)

At a glance — Code Health · 92% · Exemplary

At a glance — Architecture · 74% · Strong

At a glance — Maturity · 62% · Adequate · gated by D34, M2

At a glance — Readiness · 31% · Weak · gated by D12, P3, P5

At a glance — Security · 55% · Adequate · gated by D28, D29, D30

At a glance — Domain Modelling · 71% · Strong

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

At a glance — Performance · 69% · Adequate

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
A06:2021 — Vulnerable & Outdated Components43High / Critical
A02:2021 — Cryptographic Failures15High / Critical
A03:2021 — Injection6High / Critical
A05:2021 — Security Misconfiguration1Medium

Roadmap

First, integrate a security scanning step into the CI pipeline to fail the build on detected vulnerabilities. Second, codify disaster recovery and backup procedures in infrastructure-as-code, explicitly defining recovery time and data loss objectives. Third, implement health checks and immutable image tags to ensure reliable deployments and simple rollbacks. Fourth, maintain a changelog to track release history. Finally, restrict the public API by making types internal by default to protect consumers from internal changes.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Resolve the 3 Vulnerable finding(s) in Dependency Hygiene.+13.5 ptsLowDependency Hygiene
Resolve the 1 Leaked secret finding(s) in Secret Scanning — start with DomainDrivenDesignUniversity.postman_collection.json.+11.2 ptsLowSecret Scanning
Resolve the 2 Deprecated finding(s) in Dependency Hygiene.+11.1 ptsLowDependency Hygiene
Resolve the 2 Prerelease dependency finding(s) in Dependency Hygiene.+11.1 ptsLowDependency Hygiene
Add a SAST step to CI running what this repository's stack ships: CodeQL's csharp pack (it analyses VB.NET too), or a security analyzer package — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.+14.5 ptsMediumSecurity & performance tooling
Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.+14.5 ptsMediumDR & Backup
Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.+14.2 ptsMediumDeployment & Rollback
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.+14.2 ptsMediumRelease Hygiene

File quality

Per-file score 0–10 — a quality signature. Of 25 files carrying findings, judged against the Production bar: 4% slop · 40% mixed · 56% near-clean.

FileScoreBandWorst signal
docs/DomainDrivenDesignUniversity.postman_collection.json3.0SlopSecret Scanning: Leaked secret: jwt
DomainDrivenDesignUniversity.postman_collection.json4.4MixedSecrets (history): Secret: jwt
.github/workflows/continuous-integration.yml5.1MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
src/Shopway.App/appsettings.json5.8MixedSecrets (history): Secret: generic-api-key
.github/workflows/conventional-pull-request-names.yml5.8MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
PaymentGateway/Persistence/SecretStore.Shopway.txt7.2MixedSecrets (history): Secret: stripe-access-token
docker-compose.override.yml7.2MixedSecrets (history): Secret: generic-api-key
src/Shopway.Presentation/Shopway.Presentation.csproj7.6MixedExplicit Debt: NoWarnInCsproj
src/Shopway.Domain/Common/Utilities/StringUtilities.cs7.8MixedCyclomatic Complexity: StringUtilities.SqlLike (cyclomatic 35)
src/Shopway.Persistence/Specifications/Specification.cs7.9MixedCohesion (LCOM4): Low cohesion: Specification (LCOM4 16)
src/Shopway.Infrastructure/Services/SecurityTokenService.cs7.9MixedStatic Analysis (SAST): Medium: jwt-tokenvalidationparameters-no-expiry-validation
test/Shopway.Tests.Benchmark/Benchmarks/ReflectionUtilitiesBenchmarks.cs8.2Near-cleanExplicit Debt: CommentedOutCode
src/Shopway.Domain/Common/DataProcessing/FilterByEntryJsonConverter.cs8.5Near-cleanCognitive Complexity: FilterByEntryJsonConverter.Read (cognitive 32)
src/Shopway.Domain/Common/DataProcessing/MappingEntryJsonConverter.cs8.5Near-cleanCognitive Complexity: MappingEntryJsonConverter.Read (cognitive 26)
src/Shopway.Application/Cache/ApplicationCache.ResultValidations.cs8.5Near-cleanCognitive Complexity: ApplicationCache.CreateValidationResultCache (cognitive 19)
src/Shopway.Domain/Common/DataProcessing/MappingEntry.cs8.5Near-cleanCognitive Complexity: MappingEntry.GetAllPropertyNamesWithHierarchy (cognitive 17)
src/Shopway.Domain/Common/Errors/Error.Common.cs8.5Near-cleanGod Classes: TooManyMethods: Error
src/Shopway.Application/Cache/ApplicationCache.AllowedFilterOperations.cs8.5Near-cleanCode Duplication: Duplicated block (14 lines × 2)
src/Shopway.Application/Utilities/FluentValidationUtilities.cs8.5Near-cleanCode Duplication: Duplicated block (13 lines × 2)
src/Shopway.Application/Features/Orders/Commands/AddOrderLine/AddOrderLineCommandValidator.Fluent.cs8.5Near-cleanCode Duplication: Duplicated block (9 lines × 2)

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. 72 of 74 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.7 — 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 — 74 dimensions across the health lenses
D1D2D3D4D5D6D9D10D11D12D13D14D15D16D17D18D20D21D26D27D28D29D30D31D34D35D37AX1AX10AX2AX3AX4AX5AX6AX7AX8AX9C1C2C3C4DM1DM4DM5DM6DM8ED1ED2ED3ED4GD1IC1M1M2M3M4P1P10P2P3P4P5P6P7P8PF1PF2PF3S1X1X2X3X4X5

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, 40 of 159 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 019fc7ae-2067-7a9e-b24f-61eb4013ca0d.

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.

  • D19 Documentation Quality — 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.
  • 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.
  • 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.
  • D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
  • 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.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • 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.
  • D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
  • 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").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and the advisory database — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • 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.
  • C3 Audit Trail: This control is scored from in-repo evidence only — a working control configured outside the repository leaves no signal a static scan can credit.
  • C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
  • 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.
  • 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".
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
  • 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 (3): D20, D21, 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 Complexity9.0 / 10Exemplary✓ 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 9.0 / 10 · rule-coverage 100% · ceiling Prevented

1 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was StringUtilities.SqlLike at 35.

StringUtilities.SqlLike (cyclomatic 35)src/Shopway.Domain/Common/Utilities/StringUtilities.cs:166

✓ On the Gold path — maintain.

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

D2 · Cognitive Complexity7.8 / 10Strong✓ 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 7.8 / 10 · rule-coverage 100% · ceiling Prevented

5 method(s) exceeded the cognitive complexity threshold of 15; the worst was StringUtilities.SqlLike at 83.

StringUtilities.SqlLike (cognitive 83)src/Shopway.Domain/Common/Utilities/StringUtilities.cs:166
FilterByEntryJsonConverter.Read (cognitive 32)src/Shopway.Domain/Common/DataProcessing/FilterByEntryJsonConverter.cs:12
MappingEntryJsonConverter.Read (cognitive 26)src/Shopway.Domain/Common/DataProcessing/MappingEntryJsonConverter.cs:10
ApplicationCache.CreateValidationResultCache (cognitive 19)src/Shopway.Application/Cache/ApplicationCache.ResultValidations.cs:21
MappingEntry.GetAllPropertyNamesWithHierarchy (cognitive 17)src/Shopway.Domain/Common/DataProcessing/MappingEntry.cs:21

What to do

  1. Resolve the 1 StringUtilities.SqlLike (cognitive 83) finding(s) in Cognitive Complexity — start with StringUtilities.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 FilterByEntryJsonConverter.Read (cognitive 32) finding(s) in Cognitive Complexity — start with FilterByEntryJsonConverter.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 MappingEntryJsonConverter.Read (cognitive 26) finding(s) in Cognitive Complexity — start with MappingEntryJsonConverter.cs. — One of this dimension's main actionable groups (1 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.8 / 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.8 / 10 · rule-coverage 100% · ceiling Prevented

1 god class(es) detected.

TooManyMethods: Errorsrc/Shopway.Domain/Common/Errors/Error.Common.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.9 / 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.9 / 10 · rule-coverage 100% · ceiling Verified

4 duplicated block group(s) detected.

Duplicated block (9 lines × 2) · ×2src/Shopway.Application/Features/Orders/Commands/AddOrderLine/AddOrderLineCommandValidator.Fluent.cs:11
Duplicated block (14 lines × 2)src/Shopway.Application/Cache/ApplicationCache.AllowedFilterOperations.cs:13
Duplicated block (13 lines × 2)src/Shopway.Application/Utilities/FluentValidationUtilities.cs:139

✓ On the Gold path — maintain.

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

D5 · Coupling9.1 / 10Exemplary✓ 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 9.1 / 10 · rule-coverage 100% · ceiling Prevented

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

Off the main sequence: Shopway.SourceGenerator.Base · ×2

✓ On the Gold path — maintain.

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

D6 · Cohesion (LCOM4)9.2 / 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.2 / 10 · rule-coverage 100% · ceiling Verified

4 of 58 classes have LCOM4 above 3.

Low cohesion: Specification (LCOM4 16) · ×4src/Shopway.Persistence/Specifications/Specification.cs:44

✓ On the Gold path — maintain.

Detailed fixes: d6_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

109 test methods: 97 unit, 12 integration, 0 BDD, 0 e2e.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

D10 · Test Quality10.0 / 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 10.0 / 10 · rule-coverage 100% · ceiling Prevented

1 skipped (1 with a documented reason), 0 zero-assertion, 3 mock references across 109 tests.

Mock framework: NSubstitute · ×3
Skipped (documented): CleanDatabaseFromTestDataAsynctest/Shopway.Tests.Integration/Persistence/CleanTestData.cs:11

✓ On the Gold path — maintain.

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

D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests pass reliably, with no flakiness.

Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.

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

0 flaky across 2 measured tier(s). unit: measured (0 flaky); integration: measured (0 flaky).

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

D12 · Dependency Hygiene1.4 / 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 1.4 / 10 · rule-coverage 100% · ceiling Verified

53 outdated, 3 vulnerable, 2 deprecated, 2 prerelease packages.

Vulnerable: MailKit · ×3
Deprecated: FluentValidation.AspNetCore · ×2
Prerelease dependency: OpenTelemetry.Exporter.Prometheus.AspNetCore · ×2
Outdated: Asp.Versioning.Mvc.ApiExplorer · ×53

What to do

  1. Resolve the 3 Vulnerable finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (3 issue-level).
  2. Resolve the 2 Deprecated finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 2 Prerelease dependency finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (2 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 Scanning5.0 / 10Adequate✓ Tool-verified

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 5.0 / 10 · rule-coverage 100% · ceiling Prevented

1 secret(s) detected.

Leaked secret: jwtdocs/DomainDrivenDesignUniversity.postman_collection.json:116

What to do

  1. Resolve the 1 Leaked secret finding(s) in Secret Scanning — start with DomainDrivenDesignUniversity.postman_collection.json. — One of this dimension's main actionable groups (1 issue-level).
  2. Enforce Secret Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.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 63 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.

D16 · Bus Factor10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

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

No source file's living knowledge is concentrated in a single author.

✓ On the Gold path — maintain.

Detailed fixes: d16_recommendation.md.

D17 · Explicit Debt9.9 / 10Exemplary✓ 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 9.9 / 10 · rule-coverage 100% · ceiling Prevented

3 deducted debt markers + 0 dead symbols across 23653 LoC (0.1/KLoC) → score 9.9.

NoWarnInCsprojsrc/Shopway.Presentation/Shopway.Presentation.csproj:11
CommentedOutCodetest/Shopway.Tests.Benchmark/Benchmarks/ReflectionUtilitiesBenchmarks.cs:80
ObsoleteWithoutCallerssrc/Shopway.Persistence/Specifications/Specification.cs:222

✓ On the Gold path — maintain.

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

D18 · Solution Shape9.8 / 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 9.8 / 10 · rule-coverage 100% · ceiling Documented

18 projects, 897 source files, 29259 hand-written lines of code (23653 production / 5606 test), plus 20928 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 51 inter-project edges.

Thin analysable surface across projects

✓ On the Gold path — maintain.

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

D20 · ADR Quality / 10Critical◐ Sampled · advisory

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.

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

No architecture decision records were found.

No ADRs found

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d20_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 Cohesion7.8 / 10Strong✓ 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 7.8 / 10 · rule-coverage 100% · ceiling Documented

2 of 18 projects flagged as possibly oversized/incoherent.

Split Shopway.Application
Split Shopway.Domain

What to do

  1. Resolve the 1 Split Shopway.Application finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 Split Shopway.Domain finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.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

91 % of calls cross a namespace and 18 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: medium — clean/modular boundaries expected.

What to do

  1. Improve Navigability — currently 8.2/10. — 91 % of calls cross a namespace and 18 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: medium — clean/modular boundaries expected.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)0.0 / 10Critical✓ 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 0.0 / 10 · rule-coverage 100% · ceiling Documented

17 finding(s): 0 critical, 17 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.

Secret: jwt · ×13docs/DomainDrivenDesignUniversity.postman_collection.json:116detected by gitleaks finding
Rotate the exposed credentials — git history can't be un-committed

What to do

  1. Resolve the 13 Secret finding(s) in Secrets (history) — start with DomainDrivenDesignUniversity.postman_collection.json (9), appsettings.json (2), SecretStore.Shopway.txt. — One of this dimension's main actionable groups (13 issue-level).
  2. Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).

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

D29 · Static Analysis (SAST)4.0 / 10Weak✓ 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 4.0 / 10 · rule-coverage 100% · ceiling Documented

6 finding(s): 0 critical, 5 high, 1 medium, 0 low.

High: github-actions-mutable-action-tag · ×5.github/workflows/continuous-integration.yml:19detected by semgrep finding
Medium: jwt-tokenvalidationparameters-no-expiry-validationsrc/Shopway.Infrastructure/Services/SecurityTokenService.cs:148detected by semgrep finding

What to do

  1. Resolve the 5 High finding(s) in Static Analysis (SAST) — start with continuous-integration.yml (3), conventional-pull-request-names.yml (2). — One of this dimension's main actionable groups (5 issue-level).
  2. Resolve the 1 Medium finding(s) in Static Analysis (SAST) — start with SecurityTokenService.cs. — One of this dimension's main actionable groups (1 warning-level).

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

D30 · Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

What it measures: Whether any dependencies have known published vulnerabilities (CVEs), direct or transitive.

Method: NuGet CVE scan via dotnet list package --vulnerable including transitive; severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer. Exhaustive, deterministic; degrades when absent.

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

42 vulnerable package(s): 3 critical, 17 high, 21 medium, 1 low.

High CVE: Microsoft.Extensions.Caching.Memory 8.0.0 · ×17detected by dotnet list package --vulnerable
Critical CVE: System.Drawing.Common 4.5.0-preview1-25914-04 · ×3detected by dotnet list package --vulnerable
Medium CVE: Azure.Identity 1.10.3 · ×21detected by dotnet list package --vulnerable
Low CVE: Microsoft.Identity.Client 4.56.0detected by dotnet list package --vulnerable

What to do

  1. Resolve the 21 Medium CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (21 warning-level).
  2. Resolve the 17 High CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (17 issue-level).
  3. Resolve the 3 Critical CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (3 issue-level).

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

D31 · IaC & Container Security10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (Dockerfile/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

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

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

Low IaC: DS-0026PaymentGateway/Dockerfiledetected by trivy finding

✓ On the Gold path — maintain.

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

D34 · Knowledge Freshness0.1 / 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.1 / 10 · rule-coverage 100% · ceiling Documented

116 of 117 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/Shopway.Domain/Common/Utilities/QueryableUtilities.cs.

Dormant codebase

What to do

  1. 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 Coupling10.0 / 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 10.0 / 10 · rule-coverage 100% · ceiling Documented

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

D37 · Vulnerability-disclosure Policy4.0 / 10Weak✓ Tool-verified

What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.

Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.

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

A vulnerability-disclosure policy (docs/SECURITY.md) is present but lists no reporting contact.

Disclosure policy has no reporting contact

What to do

  1. Resolve the 1 Disclosure policy has no reporting contact finding(s) in Vulnerability-disclosure Policy. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d37_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 composition7.1 / 10Strong✓ 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.9 / 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.

  • `WebhookService` is a singleton (one shared instance) but mutates instance state outside any lock (_subscriptions; e.g. `_subscriptions` at line 14). — WebhookService.cs:8

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

  • `Shopway.App` is a Application project but references `Shopway.Persistence`, 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.
  • `Shopway.App` is a Application project but references `Shopway.Presentation`, 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.

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 segregation10.0 / 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.

  • `IProductRepository` declares 20 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. — IProductRepository.cs:9

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX7 · Slice cohesion10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether feature slices stay independent (no direct cross-slice references) — the discipline that makes vertical-slice architecture pay off.

Method: Roslyn scan (vertical-slice gated): feature slices resolved from namespaces (.Features.*, .Slices.*) or project names; cross-slice type references detected. Deterministic, traceable.

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 purity10.0 / 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.

C1 · Data Protection6.5 / 10Adequate✓ Tool-verified

Other · Security — Whether sensitive data is encrypted at rest and in transit and keys are vaulted.

Method: Roslyn plus filesystem scan: encryption presence (EF ColumnEncryption, key-vault references, HTTPS enforcement) and key-derivation KDF detection. Deterministic.

What to do

  • Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
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.

C3 · Audit Trail5.0 / 10Adequate✓ Tool-verified

Other · Security — Whether changes to sensitive data are recorded (who, what, when) for compliance + incident response.

Method: Roslyn scan: audit-trail mechanism graded (SaveChanges interceptor/immutable AuditLog/[Audited] strong; bare IAuditable/AddAuditing weak). Deterministic.

  • An audit marker (IAuditable / AddAuditing) was found, but no structural mechanism (an EF SaveChanges interceptor, an immutable audit-log type, or [Audited] usage) — the trail's completeness can't be confirmed from the source.

What to do

  • Back the audit convention with a structural mechanism: an EF SaveChanges interceptor (or equivalent) writing every sensitive change to an immutable audit log, and apply [Audited] to the entities that need a who-changed-what trail.
C4 · Data Retention6.5 / 10Adequate✓ Tool-verified

Other · Security — Whether data has a defined lifetime — retention periods, TTLs, cleanup jobs (storage limitation).

Method: Roslyn scan: retention/TTL configuration presence in schema; CascadeDelete detected but not scored as retention control. Deterministic, gated by PII presence.

  • A retention mechanism is present, but the data-lifecycle is not yet complete — missing: a scheduled purge / cleanup job (PurgeOlderThan / CleanupJob), a documented retention period / data-expiry.

What to do

  • Complete the data-lifecycle story: an expiry limit (a declared maximum age for the stored data — a retention-age setting, or a store-level TTL where your storage offers one), a scheduled purge/cleanup job that enforces it, and a documented retention period covering the personal data.
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.

DM4 · Rich vs anemic model9.0 / 10Exemplary✓ 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.

  • `Customer` is an aggregate/entity with 13 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Customer.cs:8

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 state6.5 / 10Adequate✓ 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.

  • `OrderHeader` exposes publicly writable state (CreatedOn, UpdatedOn, CreatedBy, UpdatedBy, SoftDeletedOn, SoftDeleted). — OrderHeader.cs:17
  • `OrderLine` exposes publicly writable state (CreatedOn, UpdatedOn, CreatedBy, UpdatedBy). — OrderLine.cs:7
  • `Payment` exposes publicly writable state (CreatedOn, UpdatedOn, CreatedBy, UpdatedBy). — Payment.cs:13
  • `Product` exposes publicly writable state (CreatedOn, UpdatedOn, CreatedBy, UpdatedBy). — Product.cs:8
  • `Review` exposes publicly writable state (CreatedOn, UpdatedOn, CreatedBy, UpdatedBy). — Review.cs:8
  • `Customer` exposes publicly writable state (CreatedOn, UpdatedOn, CreatedBy, UpdatedBy). — Customer.cs:8
  • `User` exposes publicly writable state (Username, Email, CreatedOn, UpdatedOn, CreatedBy, UpdatedBy, …). — User.cs:9

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 boundary5.3 / 10Adequate✓ 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.

  • `AmountConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — AmountConverter.cs:7
  • `AmountComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — AmountConverter.cs:12
  • `DescriptionConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — DescriptionConverter.cs:7
  • `DescriptionComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — DescriptionConverter.cs:12
  • `DiscountConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — DiscountConverter.cs:7
  • `DiscountComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — DiscountConverter.cs:12
  • `EmailConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — EmailConverter.cs:7
  • `EmailComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — EmailConverter.cs:12
  • `ExternalIdentityProviderConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — ExternalIdentityProviderConverter.cs:7
  • `ExternalIdentityProviderComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — ExternalIdentityProviderConverter.cs:12
  • `FirstNameConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — FirstNameConverter.cs:7
  • `FirstNameComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — FirstNameConverter.cs:12
  • `LastNameConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — LastNameConverter.cs:7
  • `LastNameComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — LastNameConverter.cs:12
  • `PasswordHashConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — PasswordHashConverter.cs:7
  • `PasswordHashComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — PasswordHashConverter.cs:12
  • `PhoneNumberConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — PhoneNumberConverter.cs:7
  • `PhoneNumberComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — PhoneNumberConverter.cs:12
  • `PriceConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — PriceConverter.cs:7
  • `PriceComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — PriceConverter.cs:12
  • `ProductNameConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — ProductNameConverter.cs:7
  • `ProductNameComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — ProductNameConverter.cs:12
  • `RefreshTokenConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — RefreshTokenConverter.cs:7
  • `RefreshTokenComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — RefreshTokenConverter.cs:12
  • `RevisionConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — RevisionConverter.cs:7
  • `RevisionComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — RevisionConverter.cs:12
  • `StarsConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — StarsConverter.cs:7
  • `StarsComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — StarsConverter.cs:12
  • `TitleConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — TitleConverter.cs:7
  • `TitleComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — TitleConverter.cs:12
  • `TwoFactorTokenHashConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — TwoFactorTokenHashConverter.cs:7
  • `TwoFactorTokenHashComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — TwoFactorTokenHashConverter.cs:12
  • `TwoFactorToptSecretConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — TwoFactorToptSecretConverter.cs:7
  • `TwoFactorToptSecretComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — TwoFactorToptSecretConverter.cs:12
  • `UomCodeConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — UomCodeConverter.cs:7
  • `UomCodeComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — UomCodeConverter.cs:12
  • `UsernameConverter` (domain layer) references `Microsoft.EntityFrameworkCore.Storage.ValueConversion` — an infrastructure concern (persistence/HTTP/web). — UsernameConverter.cs:7
  • `UsernameComparer` (domain layer) references `Microsoft.EntityFrameworkCore.ChangeTracking` — an infrastructure concern (persistence/HTTP/web). — UsernameConverter.cs:12

What to do

  • Invert domain→infrastructure dependencies: declare interfaces in the domain, implement them in infrastructure (Dependency Inversion).
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 naming10.0 / 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.

ED4 · Outbox / dual-write10.0 / 10Exemplary○ Nothing flagged

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.

GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

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.

IC1 · Incompleteness & stubs8.4 / 10Strong✓ 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.

  • `GetHashCode` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — IEnumerableUtilities.cs:123
  • `CreateAsync` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — RefundService.cs:5
  • A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers). (×5) — GenericPageQueryStrategyAttribute.cs:28, GenericStrategyByIdAttribute.cs:26, GenericStrategyByKeyAttribute.cs:26, …
  • A test is skipped ("Only for cleaning the database manually") — coverage that looks present but never runs in any gate. If it's an opt-in suite, document how it runs; otherwise re-enable or delete it. — CleanTestData.cs:11

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)8.0 / 10Strong✓ 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 README to the 18 of 18 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation2.0 / 10Critical✓ 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 — no conventional ADR directory, no `NNNN-title.md` documents and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
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 accuracy10.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.

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.

P10 · Library API & versioning6.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries. Exhaustive, deterministic.

  • 714/928 types (77%) are public. For a library, every public type is a stability contract — make internal-by-default and expose only the intended API.

What to do

  • Make types internal by default; expose only the deliberate public API so internals can change without breaking consumers.
P2 · Observability8.7 / 10Strong✓ 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 4/7 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 7, 2 ship a process this repository operates; the rest are libraries their consumer hosts, where the logging decision belongs to the host.

What to do

  • Extend structured logging across the projects you operate, and give the library ones a diagnostics seam instead — an `EventSource`/`ActivitySource` the host can subscribe to, or an optional logger on your options object — rather than taking a logging dependency on your consumers' behalf.
P3 · Security & performance tooling1.0 / 10Critical✓ 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.

  • No static application security testing detected. For this repository's stack, add CodeQL's csharp pack (it analyses VB.NET too), or a security analyzer package (or `semgrep --config=auto`, which runs on any language) as a CI step.

What to do

  • Add a SAST step to CI running what this repository's stack ships: CodeQL's csharp pack (it analyses VB.NET too), or a security analyzer package — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
  • 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 is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.

What to do

  • Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
  • Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether disaster recovery is planned and codified — backups, geo-recovery, RTO/RPO, persistence guarantees — from IaC + container manifests + docs, never the live cloud.

Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.

  • A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.

What to do

  • Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
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.5 / 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.1 / 10Adequate✓ 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 5 use(s) across 44,787 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 / 10Adequate✓ 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.

  • Only 2/282 awaits use ConfigureAwait(false). A library that captures the caller's context can stall or deadlock its host — the classic way a dependency drags an app down.

What to do

  • In library code, append .ConfigureAwait(false) to every await (or set <ConfigureAwait>false</ConfigureAwait> / use the analyzer CA2007) so the library never captures the host's context.
S1 · Web-Security Posture6.5 / 10Adequate✓ 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.

  • 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 CookieSecurePolicy/HttpOnly/SameSite configuration found. (−1.5 on this card; skip if the app sets no cookies.)

What to do

  • 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.
  • 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 correctness10.0 / 10Exemplary○ Nothing flagged

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.

X2 · Cancellation propagation9.8 / 10Exemplary✓ 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 208/216 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. (×8) — UsersController.Google.cs:20, ErrorHandlingMiddleware.cs:46, PaymentGatewayService.cs:125, …

What to do

  • Thread a CancellationToken through async methods so work stops promptly on cancellation.
X3 · Exception handling10.0 / 10Exemplary○ Nothing flagged

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.

X4 · Structured logging10.0 / 10Exemplary○ Nothing flagged

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.

X5 · Nullable reference types9.2 / 10Exemplary✓ 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.

  • ~1.0 `!` suppressions per 1k syntax nodes — 256 suppression(s) across the 246658 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a `!` can suppress anything in (a `!` under `#nullable disable` is inert and is not counted, and its file's nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide.

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 Health92%ExemplarySolid.
Architecture74%StrongSolid.
Maturity62%Adequate — gated by D34, M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness31%Weak — gated by D12, P3, P5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security55%Adequate — gated by D28, D29, D30Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling71%StrongSolid.
Event-Driven100%ExemplaryStrongest area.
Performance69%AdequateAcceptable, with room to improve.
Not included — 34 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.
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
  • D19 Documentation Quality — LLM evaluation failed
  • 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
  • D32 Data Compliance (PII/GDPR) — Data compliance (PII/GDPR) was not assessed in this scan — no ruleset is currently available for it. This says nothing about how this repository handles personal data, in either direction.
  • 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.
  • D36 Supply-chain Provenance & Signing — The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release).
  • 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
  • D8 Code Coverage — Coverage not measured — test suite did not build
  • DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
  • DM3 Integration-event coupling — no integration events detected — coupling check not applicable
  • DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this check looks for
  • P12 CI test-gate honesty — Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • 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 — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X6 Hand-rolled structured-format parsing — Reported, not scored — this card publishes what it found rather than grading it. Its content is the findings and the key metric above.
  • X7 Silent fallback defaults — Reported, not scored — this card publishes what it found rather than grading it. Its content is the findings and the key metric above.

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 — 43 finding(s)
D30 · Dependency Vulnerabilities · High CVE · ×17
  • High CVE: Microsoft.Extensions.Caching.Memory 8.0.0 — Microsoft.Extensions.Caching.Memory 8.0.0 (transitive) has a High advisory; affects 10 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Linq.Dynamic.Core 1.4.5 — System.Linq.Dynamic.Core 1.4.5 (transitive) has a High advisory; affects 11 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Text.Json 6.0.0 — System.Text.Json 6.0.0 (transitive) has a High advisory; affects 2 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Text.Json 8.0.0 — System.Text.Json 8.0.0 (transitive) has a High advisory; affects 5 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Text.Json 8.0.0 — System.Text.Json 8.0.0 (transitive) has a High advisory; affects 5 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Text.Json 8.0.4 — System.Text.Json 8.0.4 (transitive) has a High advisory; affects 2 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Text.RegularExpressions 4.3.0 — System.Text.RegularExpressions 4.3.0 (transitive) has a High advisory; affects 2 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
D28 · Secrets (history) · Secret · ×13
  • Secret: jwt docs/DomainDrivenDesignUniversity.postman_collection.json:116 — matched rule 'jwt'
  • Secret: stripe-access-token PaymentGateway/Persistence/SecretStore.Shopway.txt:1 — matched rule 'stripe-access-token'
  • Secret: generic-api-key src/Shopway.App/appsettings.json:43 — matched rule 'generic-api-key'
  • Secret: stripe-access-token src/Shopway.App/appsettings.json:42 — matched rule 'stripe-access-token'
  • Secret: generic-api-key docker-compose.override.yml:55 — matched rule 'generic-api-key'
  • Secret: jwt DomainDrivenDesignUniversity.postman_collection.json:24 — matched rule 'jwt'
  • Secret: jwt DomainDrivenDesignUniversity.postman_collection.json:24 — matched rule 'jwt'
  • Secret: jwt DomainDrivenDesignUniversity.postman_collection.json:65 — matched rule 'jwt'
  • Secret: jwt DomainDrivenDesignUniversity.postman_collection.json:24 — matched rule 'jwt'
  • Secret: jwt DomainDrivenDesignUniversity.postman_collection.json:24 — matched rule 'jwt'
  • Secret: jwt DomainDrivenDesignUniversity.postman_collection.json:65 — matched rule 'jwt'
  • Secret: jwt DomainDrivenDesignUniversity.postman_collection.json:542 — matched rule 'jwt'
  • Secret: jwt docs/DomainDrivenDesignUniversity.postman_collection.json:1084 — matched rule 'jwt'
D29 · Static Analysis (SAST) · High · ×5
  • High: github-actions-mutable-action-tag .github/workflows/continuous-integration.yml:19 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/continuous-integration.yml:21 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/setup-dotnet@<40-character SHA>`. This step references `actions/setup-dotnet@v4`; resolve the SHA it points at today with `gh api repos/actions/setup-dotnet/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/continuous-integration.yml:31 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: dorny/test-reporter@<40-character SHA>`. This step references `dorny/test-reporter@v1`; resolve the SHA it points at today with `gh api repos/dorny/test-reporter/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/conventional-pull-request-names.yml:12 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: ytanikin/PRConventionalCommits@<40-character SHA>`. This step references `ytanikin/PRConventionalCommits@1.1.0`; resolve the SHA it points at today with `gh api repos/ytanikin/PRConventionalCommits/commits/1.1.0 --jq .sha`. Note that `1.1.0` is an exact release tag rather than a floating major: it is still mutable (a tag can be repointed), but by convention it moves only on a force-push, so pin the floating-major and branch references in this file first.
  • High: github-actions-mutable-action-tag .github/workflows/conventional-pull-request-names.yml:19 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: kentaro-m/auto-assign-action@<40-character SHA>`. This step references `kentaro-m/auto-assign-action@v2.0.0`; resolve the SHA it points at today with `gh api repos/kentaro-m/auto-assign-action/commits/v2.0.0 --jq .sha`. Note that `v2.0.0` is an exact release tag rather than a floating major: it is still mutable (a tag can be repointed), but by convention it moves only on a force-push, so pin the floating-major and branch references in this file first.
D12 · Dependency Hygiene · Vulnerable · ×3
  • Vulnerable: MailKit — MailKit 4.7.1.1 — Moderate severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: System.Linq.Dynamic.Core — System.Linq.Dynamic.Core 1.4.5 — High severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: OpenTelemetry.Exporter.OpenTelemetryProtocol — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.9.0 — Moderate severity. https://github.com/advisories/[GHSA redacted]
D30 · Dependency Vulnerabilities · Critical CVE · ×3
  • Critical CVE: System.Drawing.Common 4.5.0-preview1-25914-04 — System.Drawing.Common 4.5.0-preview1-25914-04 (transitive) has a Critical advisory; affects 8 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Critical CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a Critical advisory. https://github.com/advisories/[GHSA redacted]
  • Critical CVE: Refit 7.2.1 — Refit 7.2.1 (transitive) has a Critical advisory. https://github.com/advisories/[GHSA redacted]
D13 · Secret Scanning · Leaked secret · ×1
  • Leaked secret: jwt docs/DomainDrivenDesignUniversity.postman_collection.json:116 — jwt detected. Treat the value as compromised: it is readable by everyone who has ever had the repository, and deleting the line does not un-publish it. In order — (1) REVOKE it at whatever issued it and issue a replacement, which is the only step that actually closes the exposure; (2) load the replacement at run time from your platform's secret store or the process environment instead of from the tree, so no future value is committable; (3) remove the file or line and add its path to the repository's ignore rules, so it cannot come back; (4) if the value was ever live, purge it from the history as well, since a clone taken before the deletion still carries it. If this is instead a FIXTURE — key material generated for tests and valid nowhere — then the exposure is nil and the fix is to make that legible: generate it in test setup, or keep it under a test-data path, so a reader (and this scan) can tell it from the real thing.
D17 · Explicit Debt · NoWarnInCsproj · ×1
  • NoWarnInCsproj src/Shopway.Presentation/Shopway.Presentation.csproj:11 — 1591 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
Warning — 47 finding(s)
D30 · Dependency Vulnerabilities · Medium CVE · ×21
  • Medium CVE: Azure.Identity 1.10.3 — Azure.Identity 1.10.3 (transitive) has a Medium advisory; affects 7 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Azure.Identity 1.10.3 — Azure.Identity 1.10.3 (transitive) has a Medium advisory; affects 7 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MailKit 4.7.1.1 — MailKit 4.7.1.1 (transitive) has a Medium advisory; affects 8 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Microsoft.Identity.Client 4.56.0 — Microsoft.Identity.Client 4.56.0 (transitive) has a Medium advisory; affects 7 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MimeKit 4.7.1 — MimeKit 4.7.1 (transitive) has a Medium advisory; affects 8 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: OpenTelemetry.Api 1.9.0 — OpenTelemetry.Api 1.9.0 (transitive) has a Medium advisory; affects 7 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.9.0 — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.9.0 (transitive) has a Medium advisory; affects 7 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Scriban.Signed 5.5.0 — Scriban.Signed 5.5.0 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MessagePack 2.4.59 — MessagePack 2.4.59 (transitive) has a Medium advisory. https://github.com/advisories/[GHSA redacted]
D6 · Cohesion (LCOM4) · Low cohesion · ×4
  • Low cohesion: Specification (LCOM4 16) src/Shopway.Persistence/Specifications/Specification.cs:44 — Specification's methods form 16 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: OrderHeadersController (LCOM4 8) src/Shopway.Presentation/Controllers/OrderHeaderController.Payment.cs:13 — OrderHeadersController'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: User (LCOM4 5) src/Shopway.Domain/Users/User.cs:9 — User'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.
  • Low cohesion: OrderHeader (LCOM4 4) src/Shopway.Domain/Orders/OrderHeader.cs:17 — OrderHeader's methods form 4 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.
D12 · Dependency Hygiene · Deprecated · ×2
  • Deprecated: FluentValidation.AspNetCore — FluentValidation.AspNetCore 11.3.0 — Legacy
  • Deprecated: xunit — xunit 2.9.0 — Legacy — the publisher's replacement is `xunit.v3`; migrate the reference to it.
D12 · Dependency Hygiene · Prerelease dependency · ×2
  • Prerelease dependency: OpenTelemetry.Exporter.Prometheus.AspNetCore — OpenTelemetry.Exporter.Prometheus.AspNetCore resolves to 1.7.0-rc.1, 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.
  • Prerelease dependency: OpenTelemetry.Instrumentation.EntityFrameworkCore — OpenTelemetry.Instrumentation.EntityFrameworkCore resolves to 1.0.0-beta.11, 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.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×2
  • Duplicated block (9 lines × 2) src/Shopway.Application/Features/Orders/Commands/AddOrderLine/AddOrderLineCommandValidator.Fluent.cs:11 — src/Shopway.Application/Features/Orders/Commands/AddOrderLine/AddOrderLineCommandValidator.Fluent.cs:11-19 | src/Shopway.Application/Features/Orders/Commands/UpdateOrderLine/UpdateOrderLineCommandValidator.Fluent.cs:11-19 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shopway.Application/Features/Orders/Commands/AddOrderLine/AddOrderLineCommandValidator.Fluent.cs:11` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) src/Shopway.Domain/Common/Utilities/HashUtilities.cs:11 — src/Shopway.Domain/Common/Utilities/HashUtilities.cs:11-19 | PaymentGateway/Cryptography/HashUtilities.cs:11-19 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shopway.Domain/Common/Utilities/HashUtilities.cs:11` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D5 · Coupling · Off the main sequence · ×2
  • Off the main sequence: Shopway.SourceGenerator.Base — Shopway.SourceGenerator.Base: abstractness 0.20, instability 0.00, distance 0.80 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
  • Off the main sequence: Shopway.Domain — Shopway.Domain: abstractness 0.24, instability 0.00, distance 0.76 — zone of pain — concrete and depended on by 5 project(s), so it's rigid to change.
D1 · Cyclomatic Complexity · StringUtilities.SqlLike (cyclomatic 35) · ×1
  • StringUtilities.SqlLike (cyclomatic 35) src/Shopway.Domain/Common/Utilities/StringUtilities.cs:166 — StringUtilities.SqlLike has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D17 · Explicit Debt · CommentedOutCode · ×1
  • CommentedOutCode test/Shopway.Tests.Benchmark/Benchmarks/ReflectionUtilitiesBenchmarks.cs:80 — 4 consecutive commented-code lines
D19 · Documentation Quality · LLM evaluation failed · ×1
  • LLM evaluation failed — JSON parse error: Expected end of string, but instead reached end of data. Path: $.findings[0].suggestion | LineNumber: 0 | BytePositionInLine: 1228.
D2 · Cognitive Complexity · StringUtilities.SqlLike (cognitive 83) · ×1
  • StringUtilities.SqlLike (cognitive 83) src/Shopway.Domain/Common/Utilities/StringUtilities.cs:166 — StringUtilities.SqlLike has cognitive complexity 83 (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 · FilterByEntryJsonConverter.Read (cognitive 32) · ×1
  • FilterByEntryJsonConverter.Read (cognitive 32) src/Shopway.Domain/Common/DataProcessing/FilterByEntryJsonConverter.cs:12 — FilterByEntryJsonConverter.Read has cognitive complexity 32 (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 · MappingEntryJsonConverter.Read (cognitive 26) · ×1
  • MappingEntryJsonConverter.Read (cognitive 26) src/Shopway.Domain/Common/DataProcessing/MappingEntryJsonConverter.cs:10 — MappingEntryJsonConverter.Read 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 · ApplicationCache.CreateValidationResultCache (cognitive 19) · ×1
  • ApplicationCache.CreateValidationResultCache (cognitive 19) src/Shopway.Application/Cache/ApplicationCache.ResultValidations.cs:21 — ApplicationCache.CreateValidationResultCache has cognitive complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · MappingEntry.GetAllPropertyNamesWithHierarchy (cognitive 17) · ×1
  • MappingEntry.GetAllPropertyNamesWithHierarchy (cognitive 17) src/Shopway.Domain/Common/DataProcessing/MappingEntry.cs:21 — MappingEntry.GetAllPropertyNamesWithHierarchy 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.
D24 · Comment Value · LLM evaluation failed · ×1
  • LLM evaluation failed — JSON parse error: Expected start of a property name or value, but instead reached end of data. Path: $.notable[4] | LineNumber: 0 | BytePositionInLine: 948.
D29 · Static Analysis (SAST) · Medium · ×1
  • Medium: jwt-tokenvalidationparameters-no-expiry-validation src/Shopway.Infrastructure/Services/SecurityTokenService.cs:148 — The TokenValidationParameters.ValidateLifetime is set to false, this means the JWT tokens lifetime is not validated. This can lead to an JWT token being used after it has expired, which has security implications. It is recommended to validate the JWT lifetime to ensure only valid tokens are used. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
D3 · God Classes · TooManyMethods · ×1
  • TooManyMethods: Error src/Shopway.Domain/Common/Errors/Error.Common.cs:0 — TooManyMethods — 88 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods, declared across 2 files: Errors/Error.Common.cs (19), Errors/Error.cs (13). To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×1
  • Duplicated block (14 lines × 2) src/Shopway.Application/Cache/ApplicationCache.AllowedFilterOperations.cs:13 — src/Shopway.Application/Cache/ApplicationCache.AllowedFilterOperations.cs:13-26 | src/Shopway.Application/Cache/ApplicationCache.AllowedFilterProperties.cs:13-26 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shopway.Application/Cache/ApplicationCache.AllowedFilterOperations.cs:13` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×1
  • Duplicated block (13 lines × 2) src/Shopway.Application/Utilities/FluentValidationUtilities.cs:139 — src/Shopway.Application/Utilities/FluentValidationUtilities.cs:139-151 | src/Shopway.Application/Utilities/FluentValidationUtilities.cs:183-195 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shopway.Application/Utilities/FluentValidationUtilities.cs:139` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D8 · Code Coverage · Coverage not measured · ×1
  • Coverage not measured — test suite did not build — Coverage NOT MEASURED: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code — a repository written for an older SDK band can compile for you and not for us. Run `dotnet build` on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything.
Recommendation — 11 finding(s)
D17 · Explicit Debt · ObsoleteWithoutCallers · ×1
  • ObsoleteWithoutCallers src/Shopway.Persistence/Specifications/Specification.cs:222 — [Obsolete] AddIncludeByQueryable
D18 · Solution Shape · Thin analysable surface across projects · ×1
  • Thin analysable surface across projects — 1 project(s) carry only a thin slice of real code (e.g. `Shopway.App` with 43 significant line(s)). The mean analysable-surface weight is 98 %, lowering Solution Shape by about 0.16 point(s). Consolidate thin projects or grow them into substantial, well-scoped assemblies.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found — No ADRs found at common paths; consider documenting architectural decisions in Docs/ADL/ or similar.
D23 · Boundary Type-Coupling · Bounded contexts not declared · ×1
  • Bounded contexts not declared — At 23653 LoC spread over 18 projects the codebase is large and multi-module, so explicit bounded contexts are needed. 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 module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D26 · Project Cohesion · Split Shopway.Application · ×1
  • Split Shopway.Application — A 'Shopway' application whose name implies a single concern but is huge and spans 82 namespaces is a sprawling grab-bag. Suggested: by namespace: Shopway.Messaging, Shopway.Persistence, Shopway.Caching
D26 · Project Cohesion · Split Shopway.Domain · ×1
  • Split Shopway.Domain — 'Domain' is the generic catch-all name that is large and spans 36 namespaces, so it should be split into focused domain packages. Suggested: by namespace: Shopway.Ordering, Shopway.Catalog, Shopway.Inventory
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.)
D30 · Dependency Vulnerabilities · Low CVE · ×1
  • Low CVE: Microsoft.Identity.Client 4.56.0 — Microsoft.Identity.Client 4.56.0 (transitive) has a Low advisory; affects 7 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
D31 · IaC & Container Security · Low IaC · ×1
  • Low IaC: DS-0026 PaymentGateway/Dockerfile — No HEALTHCHECK defined Without one the runtime only knows whether the process is alive, not whether it is serving, so a wedged container is restarted by nobody. The step: add a `HEALTHCHECK` to the image that probes the service the way a client would — this image already declares `EXPOSE 8082`, so a request to `localhost:8082` on the service's own health or root route, exiting non-zero when it does not answer, is the probe — and give it an `--interval`, a `--timeout` and a `--start-period` long enough to cover startup. If the image ships no HTTP client, probe with whatever the runtime already has, or declare the check in the orchestrator instead and say so here.
D34 · Knowledge Freshness · Dormant codebase · ×1
  • Dormant codebase — 116 of 117 significant files have no living knowledge — the codebase as a whole is dormant, not 116 separate risks. Re-engage owners or document before change.
D37 · Vulnerability-disclosure Policy · Disclosure policy has no reporting contact · ×1
  • Disclosure policy has no reporting contact — docs/SECURITY.md is present but no reporting contact (email / URL / mailto) was found — a coordinated-disclosure policy must tell reporters where to send a report.
Info — 58 finding(s)
D12 · Dependency Hygiene · Outdated · ×53
  • Outdated: Asp.Versioning.Mvc.ApiExplorer — Asp.Versioning.Mvc.ApiExplorer 8.1.0 → 10.0.1 available (referenced by Shopway.Presentation).
  • Outdated: FastEndpoints — FastEndpoints 5.29.0 → 8.2.0 available (referenced by Shopway.Presentation).
  • Outdated: FastEndpoints.AspVersioning — FastEndpoints.AspVersioning 5.29.0 → 8.2.0 available (referenced by Shopway.Presentation).
  • Outdated: FastEndpoints.Security — FastEndpoints.Security 5.29.0 → 8.2.0 available (referenced by Shopway.Presentation).
  • Outdated: FastEndpoints.Swagger — FastEndpoints.Swagger 5.29.0 → 8.2.0 available (referenced by Shopway.Presentation).
  • Outdated: Microsoft.AspNetCore.Authentication.Google — Microsoft.AspNetCore.Authentication.Google 8.0.8 → 10.0.10 available (referenced by Shopway.Presentation).
  • Outdated: Microsoft.AspNetCore.Authentication.JwtBearer — Microsoft.AspNetCore.Authentication.JwtBearer 8.0.8 → 10.0.10 available (referenced by Shopway.Presentation).
  • Outdated: Microsoft.AspNetCore.OpenApi — Microsoft.AspNetCore.OpenApi 8.0.8 → 10.0.10 available (referenced by Shopway.Presentation).
  • Outdated: Scrutor — Scrutor 4.2.2 → 7.0.0 available (referenced by Shopway.Presentation).
  • Outdated: Swashbuckle.AspNetCore — Swashbuckle.AspNetCore 6.7.3 → 10.2.3 available (referenced by Shopway.Presentation).
  • Outdated: Swashbuckle.AspNetCore.Filters — Swashbuckle.AspNetCore.Filters 8.0.2 → 10.0.1 available (referenced by Shopway.Presentation).
  • Outdated: Microsoft.VisualStudio.Azure.Containers.Tools.Targets — Microsoft.VisualStudio.Azure.Containers.Tools.Targets 1.21.0 → 1.23.0 available (referenced by Shopway.App).
  • Outdated: FluentValidation.AspNetCore — FluentValidation.AspNetCore 11.3.0 → 11.3.1 available (referenced by Shopway.Application).
  • Outdated: MediatR — MediatR 12.4.1 → 14.2.0 available (referenced by Shopway.Application).
  • Outdated: ZiggyCreatures.FusionCache — ZiggyCreatures.FusionCache 1.4.0 → 2.6.0 available (referenced by Shopway.Application).
  • Outdated: Google.Apis.Auth.AspNetCore3 — Google.Apis.Auth.AspNetCore3 1.68.0 → 1.75.0 available (referenced by Shopway.Infrastructure).
  • Outdated: MailKit — MailKit 4.7.1.1 → 4.17.0 available (referenced by Shopway.Infrastructure).
  • Outdated: Polly — Polly 8.4.1 → 8.7.0 available (referenced by Shopway.Infrastructure).
  • Outdated: SymSpell — SymSpell 6.7.2 → 6.7.3 available (referenced by Shopway.Infrastructure).
  • Outdated: System.Linq.Dynamic.Core — System.Linq.Dynamic.Core 1.4.5 → 1.7.3 available (referenced by Shopway.Domain).
  • Outdated: Ulid — Ulid 1.3.4 → 1.4.1 available (referenced by Shopway.Domain).
  • Outdated: coverlet.collector — coverlet.collector 6.0.2 → 10.0.1 available (referenced by Shopway.Tests.Unit).
  • Outdated: FluentAssertions — FluentAssertions 6.12.1 → 8.10.0 available (referenced by Shopway.Tests.Unit).
  • Outdated: Microsoft.NET.Test.Sdk — Microsoft.NET.Test.Sdk 17.11.1 → 18.8.1 available (referenced by Shopway.Tests.Unit).
  • Outdated: NSubstitute — NSubstitute 5.1.0 → 6.0.0 available (referenced by Shopway.Tests.Unit).
  • + 28 more in this group — see findings.md.
D10 · Test Quality · Mock framework · ×3
  • Mock framework: NSubstitute — Shopway.Tests.Unit references NSubstitute.
  • Mock framework: NSubstitute — Shopway.Tests.Integration references NSubstitute.
  • Mock framework: NSubstitute — Shopway.Tests.Integration.Container references NSubstitute.
D10 · Test Quality · Skipped (documented) · ×1
  • Skipped (documented): CleanDatabaseFromTestDataAsync test/Shopway.Tests.Integration/Persistence/CleanTestData.cs:11 — Skipped with a documented reason — a deferral, not lazy debt: Only for cleaning the database manually
D22 · Internal API Consistency · No exposed public API · ×1
  • No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.

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 .17artifacts/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 .6artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesdotnetdotnet list DomainDrivenDesignUniversity.sln package --vulnerable --include-transitive --format json42artifacts/raw/dotnet-vulnerable.json
D31 · IaC & Container Securitytrivytrivy config --format json --quiet .1artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrepsemgrep: not applicable — Data compliance (PII/GDPR) was not assessed in this scan — no ruleset is currently available for it. This says nothing about how this repository handles personal data, in either direction.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
D36 · Supply-chain Provenance & Signingprovenanceprovenance: not applicable — The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release).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 019fc7ae-2067-7a9e-b24f-61eb4013ca0d · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Appendix C — Personal-data map

Every field, property and record parameter whose name is conventional personal data — 17 field(s) across 5 categories, each with an exact repo-relative file:line. This is the data inventory a compliance review starts from — right-to-erasure, retention, minimisation. Detected by name with a deliberately specific classifier (the same one the GDPR dimensions use, so CardDefinition or FileName don't trip); informational — it feeds no score.

Email — 9 field(s)
  • LogUserCommand.Email src/Shopway.Application/Features/Users/Commands/LogUser/LogUserCommand.cs:7
  • LoginTwoFactorFirstStepCommand.Email src/Shopway.Application/Features/Users/Commands/LoginTwoFactorFirstStep/LoginTwoFactorFirstStepCommand.cs:7
  • LoginTwoFactorSecondStepCommand.Email src/Shopway.Application/Features/Users/Commands/LoginTwoFactorSecondStep/LoginTwoFactorSecondStepCommand.cs:7
  • LoginTwoFactorToptCommand.Email src/Shopway.Application/Features/Users/Commands/LoginTwoFactorTopt/LoginTwoFactorToptCommand.cs:7
  • RegisterUserCommand.Email src/Shopway.Application/Features/Users/Commands/RegisterUser/RegisterUserCommand.cs:8
  • TwoFactorTokenCreatedDomainEventHandler._sendEmail src/Shopway.Application/Features/Users/Events/TwoFactorTokenCreatedDomainEventHandler.cs:21
  • UserResponse.Email src/Shopway.Application/Features/Users/Queries/GetUserByUsername/UserResponse.cs:10
  • PasswordOrEmailError.InvalidPasswordOrEmail src/Shopway.Domain/Users/Errors/DomainErrors.PasswordOrEmailError.cs:13
  • User.Email src/Shopway.Domain/Users/User.cs:26
Address — 3 field(s)
  • Address._zipCodeRegex src/Shopway.Domain/Users/ValueObjects/Address.cs:18
  • Address.ZipCodeDoesNotMatch src/Shopway.Domain/Users/ValueObjects/Address.cs:36
  • Address.ZipCode src/Shopway.Domain/Users/ValueObjects/Address.cs:72
Name — 2 field(s)
  • Customer.FirstName src/Shopway.Domain/Users/Customer.cs:40
  • Customer.LastName src/Shopway.Domain/Users/Customer.cs:41
Phone — 2 field(s)
  • Customer.PhoneNumber src/Shopway.Domain/Users/Customer.cs:47
  • Number.PhoneNumberMaxLenght src/Shopway.Persistence/Constants/Constants.Number.cs:11
Date of birth — 1 field(s)
  • Customer.DateOfBirth src/Shopway.Domain/Users/Customer.cs:46

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