Public report — pet-family-backend-new, 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 @ 15:10 UTC Public
Code Health Audit

Haxnted/pet-Family-Backend-New

56% Adequate
CriticalWeakAdequateStrongExemplary
lower third — near Weak

Medium · 21,205 LoC · 49 projects · rebuild ~0.2 person-years · weakest lens: Security (44%)

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

62/66dimensions tool-verifieddeterministic · confidence 1.0 · 4 LLM-assisted, advisory
89findings with an exact file:lineof 135 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
66/101dimensions across the health lenses21205 LoC · 49 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.

haxnted/pet-family-backend-new is in a workable but fragile state (56%). It is not in crisis, but it carries material risk that makes change slower and incidents harder to contain if left unaddressed.

It is strongest in Code Health (98%) — the code is clean and low-risk to change. Architecture (85%) is solid too.

The area that most needs attention is Security (44%) — exposure to security and compliance incidents is elevated. Performance (60%) is the next concern — it raises ongoing delivery and operational cost.

Leadership focus, highest impact first: Encrypt sensitive data at rest (ASP.NET Core Data Protection /… (Data Protection); Set RequireHttpsMetadata = true in prod (or pin MetadataAddress… (Web-Security Posture); 12 Medium CVE finding(s) in Dependency Vulnerabilities (Dependency Vulnerabilities).

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

It builds on a genuinely strong Code Health foundation (98%); 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.
Security 44% · 46% weightPerformance 60% · 25% weightReadiness 65% · 14% weightMaturity 70% · 8% weightEvent-Driven 80% · 4% weightArchitecture 85% · 2% weightCode Health 98% · 1% weight

Raise Security 44 → 70 (the Healthy floor) ⇒ headline 56 → ~66.

Code composition — where the lines go Plumbing-heavy — business logic is 9% of hand-written app code; most lines are wiring, declarations and straight-line glue. Fine for an integration/CRUD service; worth a look if this is meant to be logic-rich.
Business logic 7%Plumbing 67%Tests 11%Generated 15%
New since the last scan (15+)

15 finding(s) are new versus the previous scan (2026-07-29) — surfaced by this scheduled scan itself, no pull request required.

  • D22 · Redundant data in DTOs: Both types contain FileName, FileSize, and ContentType. FileInfoDto is a read-model, while FileUploadResponse is a write-result, but they share significant overlap in file metadata.
  • D22 · Duplicate intent: Both events represent a request to delete a file/photo. They share identical properties (FileId, BucketName) but have different names and types.
  • D30 · High CVE: System.Security.Cryptography.Xml 9.0.0
  • D30 · High CVE: System.Security.Cryptography.Xml 9.0.0
  • D30 · High CVE: System.Security.Cryptography.Xml 9.0.0
  • D30 · High CVE: System.Security.Cryptography.Xml 9.0.0
  • D30 · High CVE: System.Security.Cryptography.Xml 9.0.0
  • D30 · High CVE: System.Security.Cryptography.Xml 9.0.0
  • D30 · High CVE: System.Security.Cryptography.Xml 9.0.0
  • D30 · High CVE: System.Security.Cryptography.Xml 9.0.0
  • D30 · Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0
  • D30 · Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0
  • D30 · Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0
  • D30 · Medium CVE: Azure.Identity 1.3.0
  • D30 · Medium CVE: Azure.Identity 1.3.0

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 — €12,000–€57,000
Cost to rebuild€12,000–€57,000 (0.1–0.4 person-years (193–604 h), ~1 engineer)
Domain complexityVery high — harder problems cost more per line
Quality factor0.8× (at 56% quality) — the last 20% of quality is most of the work
Size & shapeMedium · 57% boilerplate · 34% straight-line · 9% branching logic

This codebase represents roughly ~0.2 person-years of build effort (about ~€34,000 to rebuild). Its weakest lens is Security at 44% — the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain Very high (×2.0) — microservices, DDD/clean architecture, CQRS, event-driven integration × a 0.8× 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
Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
+10.7 pts · Medium effort · Data Protection
2
Set RequireHttpsMetadata = true in prod (or pin MetadataAddress to a localhost URL the API can hit directly).
+10.3 pts · Medium effort · Web-Security Posture
3
Resolve the 5 Secret finding(s) in Secrets (history) — start with appsettings.json (3), appsettings.Docker.json (2).
+4.8 pts · Low effort · Secrets (history)

Diagnosis — what's actually going on

Value concentrated against a weak lens · High · Value at risk
This is a Medium asset (~0.2 person-years to rebuild), and its weakest lens is Security at 44%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Medium, ~0.2 person-years rebuild (21,205 LoC) · weakest lens: Security 44%
→ Direct remediation budget at Security first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.). The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).

Architecture — bounded-context dependency graph

Each box is a bounded context (its layer projects grouped, or a project count when large); arrows show dependencies between contexts. A shared kernel is where many arrows converge.

arch Hosts.Consumers Hosts.Consumers ctx:Hosts.DI Hosts.DI DI Hosts.Consumers->ctx:Hosts.DI ctx:SharedKernel SharedKernel Application · Contracts · Domain · Infrastructure Hosts.Consumers->ctx:SharedKernel ctx:SharedKernel.WebApi SharedKernel.WebApi WebApi Hosts.Consumers->ctx:SharedKernel.WebApi Hosts.Endpoints Hosts.Endpoints Hosts.Endpoints->ctx:Hosts.DI Hosts.Endpoints->ctx:SharedKernel.WebApi ApiGateway ApiGateway ApiGateway->ctx:SharedKernel.WebApi Endpoints Endpoints ctx:Auth Auth Application · Contracts · Infrastructure Endpoints->ctx:Auth Endpoints->ctx:SharedKernel.WebApi Conversation.Hosts.Consumers Conversation.Hosts.Consumers ctx:Conversation.Hosts.DI Conversation.Hosts.DI DI Conversation.Hosts.Consumers->ctx:Conversation.Hosts.DI Conversation.Hosts.Consumers->ctx:SharedKernel Conversation.Hosts.Endpoints Conversation.Hosts.Endpoints Conversation.Hosts.Endpoints->ctx:Conversation.Hosts.DI Conversation.Hosts.Endpoints->ctx:SharedKernel.WebApi UnitTests UnitTests Consumers Consumers ctx:FileStorage FileStorage Application · Contracts · Infrastructure Consumers->ctx:FileStorage ctx:DI DI DI Consumers->ctx:DI Consumers->ctx:SharedKernel FileStorage.Endpoints FileStorage.Endpoints FileStorage.Endpoints->ctx:FileStorage FileStorage.Endpoints->ctx:DI FileStorage.Endpoints->ctx:SharedKernel FileStorage.Endpoints->ctx:SharedKernel.WebApi IntegrationTests IntegrationTests Notification.Hosts.Consumers Notification.Hosts.Consumers ctx:Notification.Hosts.DI Notification.Hosts.DI DI Notification.Hosts.Consumers->ctx:Notification.Hosts.DI Notification.Hosts.Consumers->ctx:SharedKernel Notification.Hosts.Endpoints Notification.Hosts.Endpoints Notification.Hosts.Endpoints->ctx:Notification.Hosts.DI Notification.Hosts.Endpoints->ctx:SharedKernel.WebApi SharedKernel.Tests SharedKernel.Tests VolunteerManagement.Hosts.Consumers VolunteerManagement.Hosts.Consumers ctx:Notification Notification Application · Contracts · Infrastructure VolunteerManagement.Hosts.Consumers->ctx:Notification VolunteerManagement.Hosts.Consumers->ctx:SharedKernel ctx:VolunteerManagement.Hosts.DI VolunteerManagement.Hosts.DI DI VolunteerManagement.Hosts.Consumers->ctx:VolunteerManagement.Hosts.DI VolunteerManagement.Hosts.Endpoints VolunteerManagement.Hosts.Endpoints VolunteerManagement.Hosts.Endpoints->ctx:SharedKernel.WebApi VolunteerManagement.Hosts.Endpoints->ctx:VolunteerManagement.Hosts.DI ctx:Account Account Domain · Infrastructure ctx:Account->ctx:SharedKernel ctx:Hosts.DI->ctx:Account ctx:Hosts.DI->ctx:FileStorage ctx:Hosts.DI->ctx:SharedKernel ctx:Auth->ctx:SharedKernel ctx:Conversation Conversation Contracts · Domain · Infrastructure ctx:Conversation->ctx:SharedKernel ctx:Conversation.Hosts.DI->ctx:Conversation ctx:Conversation.Hosts.DI->ctx:SharedKernel ctx:Conversation.Hosts.DI->ctx:SharedKernel.WebApi ctx:FileStorage->ctx:SharedKernel ctx:FileStorage->ctx:SharedKernel.WebApi ctx:DI->ctx:FileStorage ctx:DI->ctx:SharedKernel ctx:DI->ctx:SharedKernel.WebApi ctx:Notification->ctx:SharedKernel ctx:Notification.Hosts.DI->ctx:Notification ctx:Notification.Hosts.DI->ctx:SharedKernel.WebApi ctx:VolunteerManagement.Handlers VolunteerManagement.Handlers Handlers ctx:VolunteerManagement.Handlers->ctx:FileStorage ctx:VolunteerManagement.Handlers->ctx:SharedKernel ctx:VolunteerManagement.Services VolunteerManagement.Services Services ctx:VolunteerManagement.Handlers->ctx:VolunteerManagement.Services ctx:VolunteerManagement.Hosts.DI->ctx:FileStorage ctx:VolunteerManagement.Hosts.DI->ctx:SharedKernel ctx:VolunteerManagement.Hosts.DI->ctx:SharedKernel.WebApi ctx:VolunteerManagement.Hosts.DI->ctx:VolunteerManagement.Handlers ctx:VolunteerManagement.Services->ctx:Notification ctx:VolunteerManagement.Services->ctx:SharedKernel __more__ +7 more contexts

Architecture — module dependency matrix

209 modules, 312 dependencies — every dependency points down the layering, so there are no cycles. 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.)

Auth.Contracts.Dtos…Infrastructure.Common….Application.Services…ification.Core.Models…Contracts.Events.Auth…nel.Domain.Primitives…tructure.Abstractions…nfrastructure.Caching…ucture.Configurations…ernel.WebApi.Services…vices.Volunteers.Dtos…unt.Domain.Aggregates…frastructure.Services…n.Aggregates.Entities….Application.Services…s.Consumers.Consumers…Kernel.Infrastructure…lueObjects.Properties…tes.Shelters.Entities…lueObjects.PropertiesAccount.Services….Application.Services…ure.Services.Keycloak…ion.Domain.Aggregates….AnimalKinds.Entities…n.Aggregates.Shelters…s.Volunteers.EntitiesConversation.Services…ggregates.AnimalKinds…Aggregates.Volunteers…ent.Services.Shelters…ers.MappingExtensions…s.Consumers.Consumers…Common.Configurations…cture.Common.Contexts….Services.AnimalKinds…t.Services.Volunteers…s.Volunteers.Adoption…vices.Volunteers.Pets…ers.Pets.Commands.AddAuth.Contracts.Dtos1…Infrastructure.Common2….Application.Services3…ification.Core.Models4…Contracts.Events.Auth5…nel.Domain.Primitives6…tructure.Abstractions7…nfrastructure.Caching8…ucture.Configurations9…ernel.WebApi.Services10…vices.Volunteers.Dtos11…unt.Domain.Aggregates12…frastructure.Services13…n.Aggregates.Entities14….Application.Services15…s.Consumers.Consumers16…Kernel.Infrastructure17…lueObjects.Properties18…tes.Shelters.Entities19…lueObjects.Properties20Account.Services21….Application.Services22…ure.Services.Keycloak23…ion.Domain.Aggregates24….AnimalKinds.Entities25…n.Aggregates.Shelters26…s.Volunteers.Entities27Conversation.Services28…ggregates.AnimalKinds29…Aggregates.Volunteers30…ent.Services.Shelters31…ers.MappingExtensions32…s.Consumers.Consumers33…Common.Configurations34…cture.Common.Contexts35….Services.AnimalKinds36…t.Services.Volunteers37…s.Volunteers.Adoption38…vices.Volunteers.Pets39…ers.Pets.Commands.Add4011111111112191241111111111316121111211221111111331111111111121231224111121+169 more modules (most-connected shown)

At a glance — Code Health · 98% · Exemplary

At a glance — Architecture · 85% · Strong

At a glance — Maturity · 70% · Strong

At a glance — Readiness · 65% · Adequate · gated by P3

At a glance — Security · 44% · Weak · gated by D30, C1

At a glance — Event-Driven · 80% · Strong

At a glance — Performance · 60% · 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
A05:2021 — Security Misconfiguration28High / Critical
A06:2021 — Vulnerable & Outdated Components22High / Critical
A02:2021 — Cryptographic Failures6High / Critical
A03:2021 — Injection3High / Critical

Roadmap

Begin by encrypting sensitive data at rest and managing keys in a vault, while ensuring HTTPS is enforced and metadata is secured in production. Next, address the twelve medium-severity dependency vulnerabilities to reduce external risk. Then, remove five exposed secrets from configuration files and the Docker environment. Finally, resolve the three high-severity static analysis findings in the CI and dependency management files.

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

Do thisHelpsEffortDimension
Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).+10.7 ptsMediumData Protection
Set RequireHttpsMetadata = true in prod (or pin MetadataAddress to a localhost URL the API can hit directly).+10.3 ptsMediumWeb-Security Posture
Resolve the 5 Secret finding(s) in Secrets (history) — start with appsettings.json (3), appsettings.Docker.json (2).+4.8 ptsLowSecrets (history)
Resolve the 3 High finding(s) in Static Analysis (SAST) — start with ci.yml (2), dependabot.yml.+4.6 ptsLowStatic Analysis (SAST)
Resolve the 12 Medium CVE finding(s) in Dependency Vulnerabilities.+5.3 ptsMediumDependency Vulnerabilities
Resolve the 10 High CVE finding(s) in Dependency Vulnerabilities.+4.4 ptsMediumDependency Vulnerabilities
Resolve the 17 High IaC finding(s) in IaC & Container Security — start with Dockerfile (12), Dockerfile.consumers (5).+4.1 ptsMediumIaC & Container Security
Add a benchmarking harness for the hot paths and run it in CI to catch regressions (for .NET, a BenchmarkDotNet project with [MemoryDiagnoser] to track allocations).+3.2 ptsMediumBenchmark discipline

File quality

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

FileScoreBandWorst signal
Solution/Auth/Hosts/Auth.Endpoints/appsettings.Docker.json5.8MixedSecrets (history): Secret: generic-api-key
Solution/Auth/Hosts/Auth.Endpoints/appsettings.json5.8MixedSecrets (history): Secret: generic-api-key
.github/workflows/ci.yml5.8MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
Solution/Account/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/ApiGateway/ApiGateway/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/ApiGateway/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/Auth/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/Conversation/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/FileStorage/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/FileStorage/Hosts/FileStorage.Endpoints/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/Notification/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/Notification/Hosts/Notification.Hosts.Endpoints/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/VolunteerManagement/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/appsettings.json7.2MixedSecrets (history): Secret: generic-api-key
.github/dependabot.yml7.2MixedStatic Analysis (SAST): High: dependabot-missing-cooldown
Solution/Account/Dockerfile.consumers7.2MixedIaC & Container Security: High IaC: DS-0002
Solution/Conversation/Dockerfile.consumers7.2MixedIaC & Container Security: High IaC: DS-0002
Solution/FileStorage/Dockerfile.consumers7.2MixedIaC & Container Security: High IaC: DS-0002
Solution/FileStorage/Hosts/FileStorage.Consumers/Dockerfile7.2MixedIaC & Container Security: High IaC: DS-0002

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. 62 of 66 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.6 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 66 dimensions across the health lenses
D1D2D3D4D5D6D9D10D11D12D13D14D15D17D18D19D20D21D22D24D26D27D28D29D30D31D35AX1AX10AX2AX3AX4AX5AX6AX8AX9C1C2C4ED1ED3ED4ED5GD1IC1M1M2M3M4P1P10P2P3P4P6P7P8PF1PF2PF3S1X1X2X3X4X5

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, 89 of 135 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 019fc82d-9412-71f6-9e79-c70147390524.

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

A clean run — every tool resolved and ran, and every applicable dimension was measured at full confidence. No scanner was unavailable, no analysis timed out or crashed, and nothing fell back to a degraded estimate.

When something does degrade — a missing scanner, a shallow clone, an LLM hiccup — it is named here explicitly and its exact cause recorded in diagnostics.md, never absorbed silently into the score.

Repo exclusion declarations: 1 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.

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.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
  • D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement.
  • 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.
  • D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
  • D24 Comment Value: Comment value (WHY vs WHAT) is an LLM judgement over a bounded sample — it is advisory and cannot weigh a comment against the precise code change it was written to explain.
  • 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.
  • 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.
  • 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.
  • ED5 Idempotency: Idempotency is judged from the handler body's visible writes and guards — a guard enforced by a database unique constraint, a broker's exactly-once delivery, or a domain method whose no-op-when-applied logic the scan can't follow may read as at-risk; the at-risk candidates are confirmed by a SAMPLED LLM verdict (advisory, not exhaustive) and degrade to heuristic-only when no model is configured. It flags the at-least-once double-apply SHAPE, not a runtime proof of a duplicate effect.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (7): D19, D20, D21, D22, D24, ED5, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 · Cyclomatic Complexity9.5 / 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.5 / 10 · rule-coverage 100% · ceiling Prevented

1 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor at 23.

GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor (cyclomatic 23)Solution/VolunteerManagement/Application/VolunteerManagement.Services/Volunteers/Pets/Specifications/GetPetsWithFilterSpecification.cs:32

✓ On the Gold path — maintain.

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

D2 · Cognitive Complexity9.2 / 10Exemplary✓ 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 9.2 / 10 · rule-coverage 100% · ceiling Prevented

1 method(s) exceeded the cognitive complexity threshold of 15; the worst was GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor at 29.

GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor (cognitive 29)Solution/VolunteerManagement/Application/VolunteerManagement.Services/Volunteers/Pets/Specifications/GetPetsWithFilterSpecification.cs:32

✓ On the Gold path — maintain.

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

D3 · God Classes10.0 / 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 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 god class(es) detected.

✓ On the Gold path — maintain.

Detailed fixes: d3_recommendation.md.

D4 · Code Duplication10.0 / 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 10.0 / 10 · rule-coverage 100% · ceiling Verified

2 duplicated block group(s) detected.

Duplicated block (13 lines × 2)Solution/VolunteerManagement/Application/VolunteerManagement.Services/Sagas/PetAdoptionStateMachine.cs:185
Duplicated block (12 lines × 2)Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Controllers/VolunteerController.cs:501

✓ On the Gold path — maintain.

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

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

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

Layer violation: Application → Infrastructure · ×2
Off the main sequence: Auth.Core · ×10

✓ On the Gold path — maintain.

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

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

0 of 41 classes have LCOM4 above 3.

✓ On the Gold path — maintain.

Detailed fixes: d6_recommendation.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

149 test methods: 103 unit, 46 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

0 skipped, 0 zero-assertion, 2 mock references across 149 tests.

Mock framework: NSubstitute · ×2

✓ 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 Hygiene10.0 / 10Exemplary✓ 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 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 outdated, 0 vulnerable, 0 deprecated packages.

✓ On the Gold path — maintain.

Detailed fixes: d12_recommendation.md.

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

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

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

What it measures: Whether the licenses of third-party packages are compatible with your policy.

Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.

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

0 of 71 packages use a banned license.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

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

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

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

No churn × complexity hotspots in the window.

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md.

D17 · Explicit Debt10.0 / 10Exemplary○ Nothing flagged

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

0 deducted debt markers + 0 dead symbols across 18654 LoC (0.0/KLoC) → score 10.0.

✓ On the Gold path — maintain.

Detailed fixes: d17_recommendation.md.

D18 · Solution Shape8.6 / 10Strong✓ 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 8.6 / 10 · rule-coverage 100% · ceiling Documented

49 projects, 469 source files, 21941 hand-written lines of code (18654 production / 3287 test), plus 4352 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 260 inter-project edges.

Monorepo: only 1 of 2 solutions was scored
Shell project: Conversation.Contracts · ×2Solution/Conversation/Conversation.Contracts/Conversation.Contracts.csproj
Thin analysable surface across projects

What to do

  1. Resolve the 2 Shell project finding(s) in Solution Shape — start with Conversation.Contracts.csproj, Notification.Contracts.csproj. — One of this dimension's main actionable groups (2 recommendation-level).
  2. Resolve the 1 Monorepo finding(s) in Solution Shape. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 Thin analysable surface across projects finding(s) in Solution Shape. — One of this dimension's main actionable groups (1 recommendation-level).

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

D19 · Documentation Quality / 10Strong◐ Sampled · advisory

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

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

The PetFamily backend project is well documented: a single README with an impressive table of contents and a detailed architecture diagram (a Mermaid flowchart showing the client/API gateway/Ocelot, subgraph Services, and the outline sections), plus coverage across every package in XML documentation for 390 total files. The README itself is clear and rich but does not yet cover all outlined topics such as requirements/configure-secrets/run-with-docker-compose locally; the clipped architecture diagram leaves those unverified.

XML-doc coverage: Account.Domain · ×46Solution/Account/Account.Domain/Account.Domain.csproj

What to do

  1. Improve Documentation Quality — currently 8.0/10. — The PetFamily backend project is well documented: a single README with an impressive table of contents and a detailed architecture diagram (a Mermaid flowchart showing the client/API gateway/Ocelot, subgraph Services, and the outline sections), plus coverage across every package in XML documentation for 390 total files. The README itself is clear and rich but does not yet cover all outlined topics such as requirements/configure-secrets/run-with-docker-compose locally; the clipped architecture diagram leaves those unverified.

Detailed fixes: d19_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.

D22 · Internal API Consistency / 10Strong◐ Sampled · advisory

What it measures: Whether the internal API surface is consistent and coherent.

Method: Judged by language model at low temperature over a sample of the public API surface (IsPackable or .Contracts types). Sampled, advisory; confidence discounted by model uncertainty.

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

2 API inconsistencies across 29 exposed types.

Redundant data in DTOs: Both types contain FileName, FileSize, and ContentType. FileInfoDto is a read-model, while FileUploadResponse is a write-result, but they share significant overlap in file metadata.
Duplicate intent: Both events represent a request to delete a file/photo. They share identical properties (FileId, BucketName) but have different names and types.

What to do

  1. Resolve the 1 Redundant data in DTOs finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 Duplicate intent finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).

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

D24 · Comment Value / 10Exemplary◐ Sampled · advisory

What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).

Method: Judged by language model at low temperature (0.0-0.1) on deterministically sampled inline comments with surrounding code; findings verified back to sampled comments by substring match. Advisory, sampled.

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

42 valuable / 1 redundant across 121 sampled comments; 1 shown with locations.

redundant commentSolution/VolunteerManagement/Tests/IntegrationTests/Handlers/AnimalKinds/SpeciesHandlerTests.cs:26

✓ On the Gold path — maintain.

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

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

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

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

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

0 of 49 projects flagged as possibly oversized/incoherent.

✓ On the Gold path — maintain.

Detailed fixes: d26_recommendation.md.

D27 · Navigability9.6 / 10Exemplary✓ 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 9.6 / 10 · rule-coverage 100% · ceiling Documented

92 % of calls cross a namespace and 4 % 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.

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

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

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

Secret: generic-api-key · ×5Solution/Auth/Hosts/Auth.Endpoints/appsettings.Docker.json:16detected by gitleaks finding
Rotate the exposed credentials — git history can't be un-committed

What to do

  1. Resolve the 5 Secret finding(s) in Secrets (history) — start with appsettings.json (3), appsettings.Docker.json (2). — One of this dimension's main actionable groups (5 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)6.0 / 10Adequate✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

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

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

High: dependabot-missing-cooldown · ×3.github/dependabot.yml:3detected by semgrep finding

What to do

  1. Resolve the 3 High finding(s) in Static Analysis (SAST) — start with ci.yml (2), dependabot.yml. — One of this dimension's main actionable groups (3 issue-level).

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

D30 · Dependency Vulnerabilities1.5 / 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 1.5 / 10 · rule-coverage 100% · ceiling Documented

22 vulnerable package(s): 0 critical, 10 high, 12 medium, 0 low.

High CVE: System.Security.Cryptography.Xml 9.0.0 · ×10detected by dotnet list package --vulnerable
Medium CVE: OpenTelemetry.Api 1.15.0 · ×12detected by dotnet list package --vulnerable

What to do

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

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

D31 · IaC & Container Security4.0 / 10Weak✓ 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 4.0 / 10 · rule-coverage 100% · ceiling Documented

28 finding(s): 0 critical, 17 high, 0 medium, 11 low.

High IaC: DS-0002 · ×17Solution/Account/Dockerfiledetected by trivy finding
Low IaC: DS-0026 · ×11Solution/Account/Dockerfiledetected by trivy finding

What to do

  1. Resolve the 17 High IaC finding(s) in IaC & Container Security — start with Dockerfile (12), Dockerfile.consumers (5). — One of this dimension's main actionable groups (17 issue-level).
  2. Resolve the 11 Low IaC finding(s) in IaC & Container Security — start with Dockerfile (11). — One of this dimension's main actionable groups (11 recommendation-level).

Detailed fixes: d31_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.

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 composition6.8 / 10Adequate✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

AX2 · Stateful singletons10.0 / 10Exemplary✓ 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.

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 direction7.0 / 10Strong✓ 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.

  • `Auth.Application` is a Application project but references `Auth.Infrastructure`, a Infrastructure project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.

What to do

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

Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.

Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.

AX6 · Interface 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.

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 Protection0.0 / 10Critical✓ 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.

  • No data-protection or encryption usage (ASP.NET Data Protection, AES, column encryption, PBKDF2) was found — sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore.

What to do

  • Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
  • Enforce HTTPS (UseHttpsRedirection / RequireHttpsMetadata) so data in transit is always encrypted.
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.

C4 · Data Retention9.0 / 10Exemplary✓ 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 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.
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.

ED3 · Event naming9.5 / 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.

  • `NotificationEvent` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. — NotificationEvent.cs:8

What to do

  • Name events in the past tense — they record facts that already happened.
ED4 · Outbox / dual-write6.6 / 10Adequate✓ Tool-verified

Other · Event-Driven — Whether state changes and message publishes are atomic (a transactional outbox) rather than a crash-unsafe dual write.

Method: Roslyn semantic scan (event-driven gated): event-handler methods scanned for DB-save plus bus-publish without a transactional outbox reference. Deterministic, semantic-resolved.

  • `NotificationEventConsumer.Consume` writes to the database AND publishes to the message bus in the same flow, with no outbox referenced in this path. These two writes aren't atomic — a crash between them either loses the message (DB committed, publish failed) or emits a phantom event (publish succeeded, DB rolled back). Use the transactional outbox pattern — write the message to an outbox table in the SAME transaction as the state change, and dispatch it from there afterwards — or your platform's equivalent (a broker transaction, or an outbox library from your own ecosystem). — NotificationEventConsumer.cs:22
  • `UserCreatedEventConsumer.Consume` writes to the database AND publishes to the message bus in the same flow, with no outbox referenced in this path. These two writes aren't atomic — a crash between them either loses the message (DB committed, publish failed) or emits a phantom event (publish succeeded, DB rolled back). Use the transactional outbox pattern — write the message to an outbox table in the SAME transaction as the state change, and dispatch it from there afterwards — or your platform's equivalent (a broker transaction, or an outbox library from your own ecosystem). — UserCreatedEventConsumer.cs:20

What to do

  • Adopt the transactional outbox pattern so DB writes and message publishes commit atomically — no lost or phantom events on a crash.
ED5 · Idempotency10.0 / 10Exemplary◐ Sampled · advisory

Other · Readiness — Whether retry-prone mutations (command handlers + message/event consumers) are idempotent so an at-least-once redelivery or client retry doesn't double-apply the effect — heuristic at-risk detection confirmed by language model, advisory.

Method: Roslyn heuristic (any mutation, ungated): command handlers and message/event consumers that mutate persistent state without a visible idempotency guard (exists/dedup check, upsert, idempotency-key/inbox, conditional/versioned write, fixed-value set) flagged as at-risk; each at-risk candidate then confirmed or cleared by a language model as genuinely non-idempotent versus naturally-idempotent. Advisory without a model (heuristic-only, degraded), per-candidate judged with one.

Coverage: Population: retry-prone mutations — command handlers (CQRS write side) + message/event consumers (IConsumer/I*EventHandler) — that mutate persistent state; runs on any repo with mutations, not only event-driven ones. The at-risk subset (no obvious guard) is a HEURISTIC candidate set, each then LLM-JUDGED non-idempotent vs safe; a handler outside those conventions, or a guard the LLM can't confirm, is bounded by the sample. Degrades to heuristic-only when no model is configured.

GD1 · Unfinished & placeholder 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 & stubs10.0 / 10Exemplary○ Nothing flagged

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.

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 49 of 49 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation5.0 / 10Adequate✓ Tool-verified

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

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

  • No Architecture Decision Records found — 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 structure6.0 / 10Adequate✓ 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.

  • Production code isn't grouped under a src/ folder — it's spread across several top-level directories, so there's no one place that says 'this is the product'.
  • Only 9/49 projects share a common root namespace — the code's module identity is inconsistent.

What to do

  • Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
  • Adopt a consistent root-namespace convention (a shared prefix, e.g. Acme.*); short project-file/directory names are fine as long as the RootNamespace is uniform.
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.

  • 432/578 types (75%) 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 · Observability9.0 / 10Exemplary✓ Tool-verified

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

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

  • Only 23/34 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 34, 7 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 tooling3.0 / 10Weak✓ 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.
  • 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.
P6 · Release Hygiene10.0 / 10Exemplary✓ 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.

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 discipline6.0 / 10Adequate✓ 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.

  • No benchmark suite was found. Where code is performance-sensitive, a benchmark guards against silent regressions — but it's a bonus here, not a deduction.

What to do

  • Add a benchmarking harness for the hot paths and run it in CI to catch regressions (for .NET, a BenchmarkDotNet project with [MemoryDiagnoser] to track allocations).
PF2 · Allocation hygiene6.2 / 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 10 use(s) across 24,046 production line(s) (~0.4/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 0/433 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.0 / 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.

  • `RequireHttpsMetadata = false` allows the OIDC discovery doc to be fetched over plain HTTP. Safe for loopback-only fetches (Aspire / on-host); risky for any other path. — AuthenticationExtensions.cs:60
  • No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
  • No UseHttpsRedirection/UseHsts and no reverse-proxy signal — transport security is unverified at the app layer. (−2.0 on this card.)

What to do

  • Set RequireHttpsMetadata = true in prod (or pin MetadataAddress to a localhost URL the API can hit directly).
  • Add security response headers (Content-Security-Policy, X-Frame-Options, X-Content-Type-Options) — defense in depth, even when a reverse proxy could set them.
  • Enforce HTTPS at the app layer (UseHttpsRedirection / UseHsts) — only skip this if a reverse proxy demonstrably terminates TLS.
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 propagation10.0 / 10Exemplary○ Nothing flagged

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.

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

  • ~0.4 `!` suppressions per 1k syntax nodes — 42 suppression(s) across the 95676 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 Health98%ExemplaryStrongest area.
Architecture85%StrongSolid.
Maturity70%StrongSolid.
Readiness65%Adequate — gated by P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security44%Weak — gated by D30, C1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Event-Driven80%StrongSolid.
Performance60%AdequateAcceptable, with room to improve.
Not included — 35 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C3 Audit Trail — Repo shows no audit-logging mechanism (IAuditable, an immutable audit log, an EF SaveChanges interceptor) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
  • 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.
  • D16 Bus Factor — early-stage repository — too few commits for a meaningful bus factor
  • D23 Boundary Type-Coupling — Bounded contexts not declared
  • 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.
  • D34 Knowledge Freshness — early-stage repository — too little history to judge knowledge freshness
  • 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).
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D38 OSV Dependency Vulnerabilities — No supported non-.NET dependency lockfile found outside build output (npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven pom.xml, Gradle lockfiles, Python requirements.txt/poetry.lock/Pipfile.lock/pdm.lock, PHP composer.lock, Ruby Gemfile.lock, Elixir mix.lock, Dart pubspec.lock, Swift Package.resolved); nothing for OSV to scan. A NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain.
  • D39 IL Efficiency — The target did not build, so no IL was available to measure.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • D8 Code Coverage — Coverage not measured — analyzer environment
  • DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 9 strongly-typed id(s); a Domain/Aggregates/ValueObjects layer
  • ED2 Event/command shape — no command-shaped messages detected — single-handler-per-command 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 — and nothing was matched here. The coverage check applies to any stack, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
  • SC1 Supply-chain hygiene — 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 — 37 finding(s)
D31 · IaC & Container Security · High IaC · ×17
  • High IaC: DS-0002 Solution/Account/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/Account/Dockerfile.consumers — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/ApiGateway/ApiGateway/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/ApiGateway/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/Auth/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/Conversation/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/Conversation/Dockerfile.consumers — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/FileStorage/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/FileStorage/Dockerfile.consumers — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/FileStorage/Hosts/FileStorage.Consumers/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/FileStorage/Hosts/FileStorage.Endpoints/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/Notification/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/Notification/Dockerfile.consumers — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/Notification/Hosts/Notification.Hosts.Endpoints/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/VolunteerManagement/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/VolunteerManagement/Dockerfile.consumers — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
D30 · Dependency Vulnerabilities · High CVE · ×10
  • High CVE: System.Security.Cryptography.Xml 9.0.0 — System.Security.Cryptography.Xml 9.0.0 (transitive) has a High advisory; affects 13 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Security.Cryptography.Xml 9.0.0 — System.Security.Cryptography.Xml 9.0.0 (transitive) has a High advisory; affects 13 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Security.Cryptography.Xml 9.0.0 — System.Security.Cryptography.Xml 9.0.0 (transitive) has a High advisory; affects 13 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Security.Cryptography.Xml 9.0.0 — System.Security.Cryptography.Xml 9.0.0 (transitive) has a High advisory; affects 13 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Security.Cryptography.Xml 9.0.0 — System.Security.Cryptography.Xml 9.0.0 (transitive) has a High advisory; affects 13 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Security.Cryptography.Xml 9.0.0 — System.Security.Cryptography.Xml 9.0.0 (transitive) has a High advisory; affects 13 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Security.Cryptography.Xml 9.0.0 — System.Security.Cryptography.Xml 9.0.0 (transitive) has a High advisory; affects 13 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Security.Cryptography.Xml 9.0.0 — System.Security.Cryptography.Xml 9.0.0 (transitive) has a High advisory; affects 13 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: Microsoft.OpenApi 2.4.1 — Microsoft.OpenApi 2.4.1 (transitive) has a High advisory; affects 23 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: Azure.Identity 1.3.0 — Azure.Identity 1.3.0 (transitive) has a High advisory; affects 3 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
D28 · Secrets (history) · Secret · ×5
  • Secret: generic-api-key Solution/Auth/Hosts/Auth.Endpoints/appsettings.Docker.json:16 — matched rule 'generic-api-key'
  • Secret: generic-api-key Solution/Auth/Hosts/Auth.Endpoints/appsettings.json:23 — matched rule 'generic-api-key'
  • Secret: generic-api-key Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/appsettings.json:23 — matched rule 'generic-api-key'
  • Secret: generic-api-key Solution/Auth/Hosts/Auth.Endpoints/appsettings.Docker.json:16 — matched rule 'generic-api-key'
  • Secret: generic-api-key Solution/Auth/Hosts/Auth.Endpoints/appsettings.json:23 — matched rule 'generic-api-key'
D29 · Static Analysis (SAST) · High · ×3
  • High: dependabot-missing-cooldown .github/dependabot.yml:3 — This Dependabot configuration does not set a cooldown period. Newly published packages can be malicious or unstable. Add a `cooldown` block with `default-days: 7` to each `package-ecosystem` entry under `updates` to wait 7 days before proposing updates to newly published package versions. Reference: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#cooldown. This is a semgrep security-AUDIT rule reporting a POLICY that is absent or weaker than its recommendation, not an exploitable defect. Confirm whether the current setting is a deliberate decision for this repository — and apply the change where it is not; where it is (a policy your release process already enforces elsewhere, or one this repository has consciously opted out of), record the decision and leave the configuration as it is. This configuration file has 2 such entries; one cooldown decision clears them all — reported once.
  • High: github-actions-mutable-action-tag .github/workflows/ci.yml:15 — 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/ci.yml:18 — 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`.
D5 · Coupling · Layer violation · ×2
  • Layer violation: Application → Infrastructure — Auth.Application (Application) references Auth.Infrastructure (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Infrastructure — Notification.Application (Application) references PetFamily.SharedKernel.Infrastructure (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
Warning — 30 finding(s)
D30 · Dependency Vulnerabilities · Medium CVE · ×12
  • Medium CVE: OpenTelemetry.Api 1.15.0 — OpenTelemetry.Api 1.15.0 (transitive) has a Medium advisory; affects 23 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0 — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0 (transitive) has a Medium advisory; affects 23 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0 — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0 (transitive) has a Medium advisory; affects 23 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0 — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.0 (transitive) has a Medium advisory; affects 23 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Microsoft.IdentityModel.JsonWebTokens 6.10.0 — Microsoft.IdentityModel.JsonWebTokens 6.10.0 (transitive) has a Medium advisory; affects 2 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: System.IdentityModel.Tokens.Jwt 6.10.0 — System.IdentityModel.Tokens.Jwt 6.10.0 (transitive) has a Medium advisory; affects 2 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MailKit 4.14.1 — MailKit 4.14.1 (direct) has a Medium advisory; affects 4 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: MimeKit 4.14.0 — MimeKit 4.14.0 (transitive) has a Medium advisory; affects 4 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Azure.Identity 1.3.0 — Azure.Identity 1.3.0 (transitive) has a Medium advisory; affects 3 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Azure.Identity 1.3.0 — Azure.Identity 1.3.0 (transitive) has a Medium advisory; affects 3 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: Microsoft.IdentityModel.JsonWebTokens 6.8.0 — Microsoft.IdentityModel.JsonWebTokens 6.8.0 (transitive) has a Medium advisory; affects 2 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: System.IdentityModel.Tokens.Jwt 6.8.0 — System.IdentityModel.Tokens.Jwt 6.8.0 (transitive) has a Medium advisory; affects 2 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
D5 · Coupling · Off the main sequence · ×10
  • Off the main sequence: Auth.Core — Auth.Core: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: Notification.Core — Notification.Core: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 5 project(s), so it's rigid to change.
  • Off the main sequence: PetFamily.SharedKernel.Application — PetFamily.SharedKernel.Application: abstractness 0.00, instability 0.00, distance 1.00 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.
  • Off the main sequence: PetFamily.SharedKernel.WebApi — PetFamily.SharedKernel.WebApi: abstractness 0.05, instability 0.00, distance 0.95 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.
  • Off the main sequence: PetFamily.SharedKernel.Contracts — PetFamily.SharedKernel.Contracts: abstractness 0.05, instability 0.00, distance 0.95 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.
  • Off the main sequence: Account.Domain — Account.Domain: abstractness 0.00, instability 0.14, distance 0.86 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
  • Off the main sequence: Conversation.Domain — Conversation.Domain: abstractness 0.00, instability 0.14, distance 0.86 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
  • Off the main sequence: VolunteerManagement.Domain — VolunteerManagement.Domain: abstractness 0.00, instability 0.14, distance 0.86 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
  • Off the main sequence: Notification.Contracts — Notification.Contracts: abstractness 0.00, instability 0.18, distance 0.82 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.
  • Off the main sequence: Auth.Contracts — Auth.Contracts: abstractness 0.00, instability 0.25, distance 0.75 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.
D1 · Cyclomatic Complexity · GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor (cyclomatic 23) · ×1
  • GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor (cyclomatic 23) Solution/VolunteerManagement/Application/VolunteerManagement.Services/Volunteers/Pets/Specifications/GetPetsWithFilterSpecification.cs:32 — GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D18 · Solution Shape · Monorepo · ×1
  • Monorepo: only 1 of 2 solutions was scored — This repository contains 2 .NET solutions, but a scan analyzes ONE. Every score, lens, and finding here reflects only `Solution/Solution.slnx` — the other 1 (`Solution/FileStorage/FileStorage.slnx`) were not analyzed and are not represented in the headline. To cover them, scan each solution as its own target and group them in a Solution or Product for a portfolio roll-up. If a secondary solution is an archived or vendored tree, declare it — `.gitattributes` (`path/** linguist-vendored`) or `.editorconfig` (`[path/**] generated_code = true`) — to exclude it from discovery the same way generated code is.
D2 · Cognitive Complexity · GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor (cognitive 29) · ×1
  • GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor (cognitive 29) Solution/VolunteerManagement/Application/VolunteerManagement.Services/Volunteers/Pets/Specifications/GetPetsWithFilterSpecification.cs:32 — GetPetsWithFilterSpecification.GetPetsWithFilterSpecification.ctor has cognitive complexity 29 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D22 · Internal API Consistency · Redundant data in DTOs · ×1
  • Redundant data in DTOs: Both types contain FileName, FileSize, and ContentType. FileInfoDto is a read-model, while FileUploadResponse is a write-result, but they share significant overlap in file metadata. — Consider if FileUploadResponse needs to return all these fields or if a shared base type/record could reduce duplication. (signatures: FileStorage.Contracts.Dtos.FileInfoDto | FileStorage.Contracts.Dtos.FileUploadResponse)
D22 · Internal API Consistency · Duplicate intent · ×1
  • Duplicate intent: Both events represent a request to delete a file/photo. They share identical properties (FileId, BucketName) but have different names and types. — Unify into a single FileDeleteRequestedEvent or use a generic DeleteRequestedEvent<T> to avoid confusion about when to use which. (signatures: PetFamily.SharedKernel.Contracts.Events.FileStorage.FileDeleteRequestedEvent | PetFamily.SharedKernel.Contracts.Events.FileStorage.PhotoDeleteRequestedEvent)
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×1
  • Duplicated block (13 lines × 2) Solution/VolunteerManagement/Application/VolunteerManagement.Services/Sagas/PetAdoptionStateMachine.cs:185 — Solution/VolunteerManagement/Application/VolunteerManagement.Services/Sagas/PetAdoptionStateMachine.cs:185-197 | Solution/VolunteerManagement/Application/VolunteerManagement.Services/Sagas/PetAdoptionStateMachine.cs:238-250 — 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 `Solution/VolunteerManagement/Application/VolunteerManagement.Services/Sagas/PetAdoptionStateMachine.cs:185` 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.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×1
  • Duplicated block (12 lines × 2) Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Controllers/VolunteerController.cs:501 — Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Controllers/VolunteerController.cs:501-512 | Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Controllers/VolunteerController.cs:548-559 — 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 `Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Controllers/VolunteerController.cs:501` 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.
D8 · Code Coverage · Coverage not measured · ×1
  • Coverage not measured — analyzer environment — Coverage NOT MEASURED: the analyzer environment could not build/run the test suite (a target framework / SDK band or targeting pack the analyzer image doesn't carry). This is OUR limitation, not a defect in the repo — coverage is excluded from the score rather than counted as a near-zero. We track the analyzer-image gap so it can be closed; in the meantime, no coverage collector was found in your CI either, so there is no existing report to hand us — add a collector to your test run and commit (or publish into the working tree) its Cobertura/OpenCover/lcov output, and real coverage will be read.
Recommendation — 20 finding(s)
D31 · IaC & Container Security · Low IaC · ×11
  • Low IaC: DS-0026 Solution/Account/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/ApiGateway/ApiGateway/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/ApiGateway/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/Auth/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/Conversation/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/FileStorage/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/FileStorage/Hosts/FileStorage.Endpoints/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/Notification/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/Notification/Hosts/Notification.Hosts.Endpoints/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/VolunteerManagement/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 8080`, so a request to `localhost:8080` 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.
  • Low IaC: DS-0026 Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/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 8080`, so a request to `localhost:8080` 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.
D18 · Solution Shape · Shell project · ×2
  • Shell project: Conversation.Contracts Solution/Conversation/Conversation.Contracts/Conversation.Contracts.csproj — `Conversation.Contracts` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: Notification.Contracts Solution/Notification/Notification.Contracts/Notification.Contracts.csproj — `Notification.Contracts` contributes only 9 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
D16 · Bus Factor · early-stage repository · ×1
  • early-stage repository — too few commits for a meaningful bus factor — early-stage repository — too few commits for a meaningful bus factor (3 author(s) across 36 commit(s) sampled).
D18 · Solution Shape · Thin analysable surface across projects · ×1
  • Thin analysable surface across projects — 8 project(s) carry only a thin slice of real code (e.g. `FileStorage.DI` with 16 significant line(s)). The mean analysable-surface weight is 82 %, lowering Solution Shape by about 1.43 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 18654 LoC across 49 projects the codebase is both 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"]`.
D24 · Comment Value · redundant comment · ×1
  • redundant comment Solution/VolunteerManagement/Tests/IntegrationTests/Handlers/AnimalKinds/SpeciesHandlerTests.cs:26 — "Assert - new scope" — weak keep; minor but mostly restates Assert, borderline on the edge
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • Rotate the exposed credentials — git history can't be un-committed — Some of these secrets are in git HISTORY: deleting the file does not remove them (the commit persists on every clone, fork and backup). The remediation is to ROTATE each historically-exposed credential and treat it as compromised — not to delete the file. Rewriting history is disruptive and unreliable across existing forks. (Working-tree-only secrets — no commit — can instead be removed from the file and moved to a secret store.)
D34 · Knowledge Freshness · early-stage repository · ×1
  • early-stage repository — too little history to judge knowledge freshness — early-stage repository — too little history to judge knowledge freshness (36 commit(s) sampled).
Info — 48 finding(s)
D19 · Documentation Quality · XML-doc coverage · ×46
  • XML-doc coverage: Account.Domain Solution/Account/Account.Domain/Account.Domain.csproj — Account.Domain: 100 % XML-doc coverage (38/38).
  • XML-doc coverage: Account.Infrastructure Solution/Account/Account.Infrastructure/Account.Infrastructure.csproj — Account.Infrastructure: 100 % XML-doc coverage (13/13).
  • XML-doc coverage: Account.Handlers Solution/Account/Application/Account.Handlers/Account.Handlers.csproj — Account.Handlers: 100 % XML-doc coverage (21/21).
  • XML-doc coverage: Account.Services Solution/Account/Application/Account.Services/Account.Services.csproj — Account.Services: 100 % XML-doc coverage (14/14).
  • XML-doc coverage: Account.Hosts.Consumers Solution/Account/Hosts/Account.Hosts.Consumers/Account.Hosts.Consumers.csproj — Account.Hosts.Consumers: 100 % XML-doc coverage (4/4).
  • XML-doc coverage: Account.Hosts.DI Solution/Account/Hosts/Account.Hosts.DI/Account.Hosts.DI.csproj — Account.Hosts.DI: 100 % XML-doc coverage (2/2).
  • XML-doc coverage: Account.Hosts.Endpoints Solution/Account/Hosts/Account.Hosts.Endpoints/Account.Hosts.Endpoints.csproj — Account.Hosts.Endpoints: 100 % XML-doc coverage (8/8).
  • XML-doc coverage: ApiGateway Solution/ApiGateway/ApiGateway/ApiGateway.csproj — ApiGateway: 100 % XML-doc coverage (2/2).
  • XML-doc coverage: Conversation.Contracts Solution/Conversation/Conversation.Contracts/Conversation.Contracts.csproj — Conversation.Contracts: 100 % XML-doc coverage (0/0).
  • XML-doc coverage: Conversation.Domain Solution/Conversation/Conversation.Domain/Conversation.Domain.csproj — Conversation.Domain: 100 % XML-doc coverage (49/49).
  • XML-doc coverage: Conversation.Infrastructure Solution/Conversation/Conversation.Infrastructure/Conversation.Infrastructure.csproj — Conversation.Infrastructure: 100 % XML-doc coverage (15/15).
  • XML-doc coverage: Conversation.Handlers Solution/Conversation/Application/Conversation.Handlers/Conversation.Handlers.csproj — Conversation.Handlers: 100 % XML-doc coverage (22/22).
  • XML-doc coverage: Conversation.Services Solution/Conversation/Application/Conversation.Services/Conversation.Services.csproj — Conversation.Services: 100 % XML-doc coverage (18/18).
  • XML-doc coverage: Conversation.Hosts.Consumers Solution/Conversation/Hosts/Conversation.Hosts.Consumers/Conversation.Hosts.Consumers.csproj — Conversation.Hosts.Consumers: 100 % XML-doc coverage (4/4).
  • XML-doc coverage: Conversation.Hosts.DI Solution/Conversation/Hosts/Conversation.Hosts.DI/Conversation.Hosts.DI.csproj — Conversation.Hosts.DI: 100 % XML-doc coverage (2/2).
  • XML-doc coverage: Conversation.Hosts.Endpoints Solution/Conversation/Hosts/Conversation.Hosts.Endpoints/Conversation.Hosts.Endpoints.csproj — Conversation.Hosts.Endpoints: 100 % XML-doc coverage (9/9).
  • XML-doc coverage: FileStorage.Application Solution/FileStorage/FileStorage.Application/FileStorage.Application.csproj — FileStorage.Application: 100 % XML-doc coverage (15/15).
  • XML-doc coverage: FileStorage.Contracts Solution/FileStorage/FileStorage.Contracts/FileStorage.Contracts.csproj — FileStorage.Contracts: 100 % XML-doc coverage (12/12).
  • XML-doc coverage: FileStorage.Infrastructure Solution/FileStorage/FileStorage.Infrastructure/FileStorage.Infrastructure.csproj — FileStorage.Infrastructure: 100 % XML-doc coverage (16/16).
  • XML-doc coverage: FileStorage.Consumers Solution/FileStorage/Hosts/FileStorage.Consumers/FileStorage.Consumers.csproj — FileStorage.Consumers: 100 % XML-doc coverage (4/4).
  • XML-doc coverage: FileStorage.DI Solution/FileStorage/Hosts/FileStorage.DI/FileStorage.DI.csproj — FileStorage.DI: 100 % XML-doc coverage (2/2).
  • XML-doc coverage: FileStorage.Endpoints Solution/FileStorage/Hosts/FileStorage.Endpoints/FileStorage.Endpoints.csproj — FileStorage.Endpoints: 100 % XML-doc coverage (7/7).
  • XML-doc coverage: Auth.Application Solution/Auth/Auth.Application/Auth.Application.csproj — Auth.Application: 100 % XML-doc coverage (10/10).
  • XML-doc coverage: Auth.Contracts Solution/Auth/Auth.Contracts/Auth.Contracts.csproj — Auth.Contracts: 100 % XML-doc coverage (2/2).
  • XML-doc coverage: Auth.Core Solution/Auth/Auth.Core/Auth.Core.csproj — Auth.Core: 100 % XML-doc coverage (18/18).
  • + 21 more in this group — see findings.md.
D10 · Test Quality · Mock framework · ×2
  • Mock framework: NSubstitute — PetFamily.SharedKernel.Tests references NSubstitute.
  • Mock framework: NSubstitute — IntegrationTests references NSubstitute.

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 .5artifacts/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 .3artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesdotnetdotnet list Solution/Solution.slnx package --vulnerable --include-transitive --format json22artifacts/raw/dotnet-vulnerable.json
D31 · IaC & Container Securitytrivytrivy config --format json --quiet .28artifacts/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
D37 · Vulnerability-disclosure Policydisclosuredisclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner: not applicable — No supported non-.NET dependency lockfile found outside build output (npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven pom.xml, Gradle lockfiles, Python requirements.txt/poetry.lock/Pipfile.lock/pdm.lock, PHP composer.lock, Ruby Gemfile.lock, Elixir mix.lock, Dart pubspec.lock, Swift Package.resolved); nothing for OSV to scan. A NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain.0
D40 · Network Egress Confinementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0
D41 · Kernel & Syscall Confinementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0
D42 · Runtime Threat Enforcementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0

Run 019fc82d-9412-71f6-9e79-c70147390524 · 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 — 67 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 — 20 field(s)
  • UserCreatedEvent.Email Shared/PetFamily.SharedKernel.Contracts/Events/Auth/UserCreatedEvent.cs:24
  • HttpContextCurrentUser.Email Shared/PetFamily.SharedKernel.WebApi/Services/HttpContextCurrentUser.cs:39
  • ICurrentUser.Email Shared/PetFamily.SharedKernel.WebApi/Services/ICurrentUser.cs:25
  • UserDto.Email Solution/Auth/Auth.Contracts/Dtos/UserDto.cs:16
  • UserDto.EmailVerified Solution/Auth/Auth.Contracts/Dtos/UserDto.cs:21
  • User.Email Solution/Auth/Auth.Core/Models/User.cs:16
  • User.EmailVerified Solution/Auth/Auth.Core/Models/User.cs:41
  • SeedUser.Email Solution/Auth/Auth.Infrastructure/Services/DevDataSeeder.cs:20
  • CreateUserRequest.Email Solution/Auth/Auth.Infrastructure/Services/Keycloak/Models/CreateUserRequest.cs:14
  • CreateUserRequest.EmailVerified Solution/Auth/Auth.Infrastructure/Services/Keycloak/Models/CreateUserRequest.cs:20
  • KeycloakUserRepresentation.Email Solution/Auth/Auth.Infrastructure/Services/Keycloak/Models/KeycloakUserRepresentation.cs:21
  • KeycloakUserRepresentation.EmailVerified Solution/Auth/Auth.Infrastructure/Services/Keycloak/Models/KeycloakUserRepresentation.cs:41
  • UserLoginRequest.Email Solution/Auth/Hosts/Auth.Endpoints/Requests/UserLoginRequest.cs:8
  • UserRegisterRequest.Email Solution/Auth/Hosts/Auth.Endpoints/Requests/UserRegisterRequest.cs:12
  • EmailSettingsDto.Email Solution/Notification/Notification.Application/Dtos/EmailSettingsDto.cs:9
  • UserNotificationSettingsDto.EmailSettings Solution/Notification/Notification.Application/Dtos/UserNotificationSettingsDto.cs:18
  • EmailSettings.Email Solution/Notification/Notification.Core/Models/EmailSettings.cs:21
  • UserNotificationSettings.EmailSettings Solution/Notification/Notification.Core/Models/UserNotificationSettings.cs:36
  • NotificationDbContext.EmailSettings Solution/Notification/Notification.Infrastructure/Common/NotificationDbContext.cs:20
  • SmtpOptions.SenderEmail Solution/Notification/Notification.Infrastructure/Settings/SmtpOptions.cs:41
Name — 20 field(s)
  • UserCreatedEvent.FirstName Shared/PetFamily.SharedKernel.Contracts/Events/Auth/UserCreatedEvent.cs:29
  • UserCreatedEvent.LastName Shared/PetFamily.SharedKernel.Contracts/Events/Auth/UserCreatedEvent.cs:34
  • UserDto.FirstName Solution/Auth/Auth.Contracts/Dtos/UserDto.cs:17
  • UserDto.LastName Solution/Auth/Auth.Contracts/Dtos/UserDto.cs:18
  • User.FirstName Solution/Auth/Auth.Core/Models/User.cs:21
  • User.LastName Solution/Auth/Auth.Core/Models/User.cs:26
  • SeedUser.FirstName Solution/Auth/Auth.Infrastructure/Services/DevDataSeeder.cs:20
  • SeedUser.LastName Solution/Auth/Auth.Infrastructure/Services/DevDataSeeder.cs:20
  • CreateUserRequest.FirstName Solution/Auth/Auth.Infrastructure/Services/Keycloak/Models/CreateUserRequest.cs:16
  • CreateUserRequest.LastName Solution/Auth/Auth.Infrastructure/Services/Keycloak/Models/CreateUserRequest.cs:17
  • KeycloakUserRepresentation.FirstName Solution/Auth/Auth.Infrastructure/Services/Keycloak/Models/KeycloakUserRepresentation.cs:26
  • KeycloakUserRepresentation.LastName Solution/Auth/Auth.Infrastructure/Services/Keycloak/Models/KeycloakUserRepresentation.cs:31
  • UserRegisterRequest.FirstName Solution/Auth/Hosts/Auth.Endpoints/Requests/UserRegisterRequest.cs:14
  • UserRegisterRequest.LastName Solution/Auth/Hosts/Auth.Endpoints/Requests/UserRegisterRequest.cs:15
  • AddVolunteerCommand.Surname Solution/VolunteerManagement/Application/VolunteerManagement.Handlers/Volunteers/Commands/Add/AddVolunteerCommand.cs:18
  • FullNameDto.Surname Solution/VolunteerManagement/Application/VolunteerManagement.Services/Volunteers/Dtos/FullNameDto.cs:9
  • VolunteerDto.FullName Solution/VolunteerManagement/Application/VolunteerManagement.Services/Volunteers/Dtos/VolunteerDto.cs:11
  • AddVolunteerRequest.FullName Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Requests/AddVolunteerRequest.cs:9
  • FullName.Surname Solution/VolunteerManagement/VolunteerManagement.Domain/Aggregates/Volunteers/ValueObjects/Properties/FullName.cs:20
  • Volunteer.FullName Solution/VolunteerManagement/VolunteerManagement.Domain/Aggregates/Volunteers/Volunteer.cs:37
Phone — 14 field(s)
  • Account.PhoneNumber Solution/Account/Account.Domain/Aggregates/Account.cs:43
  • PhoneNumber.PhoneRegex Solution/Account/Account.Domain/Aggregates/ValueObjects/Properties/PhoneNumber.cs:20
  • UpdateProfileCommand.PhoneNumber Solution/Account/Application/Account.Handlers/Commands/UpdateProfile/UpdateProfileCommand.cs:18
  • AccountDto.PhoneNumber Solution/Account/Application/Account.Services/Dtos/AccountDto.cs:15
  • UpdateProfileRequest.PhoneNumber Solution/Account/Hosts/Account.Hosts.Endpoints/Requests/UpdateProfileRequest.cs:10
  • AddShelterCommand.PhoneNumber Solution/VolunteerManagement/Application/VolunteerManagement.Handlers/Shelters/Commands/Add/AddShelterCommand.cs:38
  • UpdateShelterCommand.PhoneNumber Solution/VolunteerManagement/Application/VolunteerManagement.Handlers/Shelters/Commands/Update/UpdateShelterCommand.cs:23
  • AddPetCommand.PhoneNumber Solution/VolunteerManagement/Application/VolunteerManagement.Handlers/Volunteers/Pets/Commands/Add/AddPetCommand.cs:59
  • ShelterDto.PhoneNumber Solution/VolunteerManagement/Application/VolunteerManagement.Services/Shelters/Dtos/ShelterDto.cs:26
  • AddPetRequest.PhoneNumber Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Requests/AddPetRequest.cs:31
  • AddShelterRequest.PhoneNumber Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Requests/AddShelterRequest.cs:22
  • UpdateShelterRequest.PhoneNumber Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Requests/UpdateShelterRequest.cs:14
  • Shelter.PhoneNumber Solution/VolunteerManagement/VolunteerManagement.Domain/Aggregates/Shelters/Shelter.cs:58
  • PhoneNumber.PhoneRegex Solution/VolunteerManagement/VolunteerManagement.Domain/Aggregates/Volunteers/ValueObjects/Properties/PhoneNumber.cs:20
Address — 7 field(s)
  • AddShelterCommand.ZipCode Solution/VolunteerManagement/Application/VolunteerManagement.Handlers/Shelters/Commands/Add/AddShelterCommand.cs:33
  • UpdateShelterAddressCommand.ZipCode Solution/VolunteerManagement/Application/VolunteerManagement.Handlers/Shelters/Commands/UpdateAddress/UpdateShelterAddressCommand.cs:33
  • ShelterDto.ZipCode Solution/VolunteerManagement/Application/VolunteerManagement.Services/Shelters/Dtos/ShelterDto.cs:25
  • AddressDto.ZipCode Solution/VolunteerManagement/Application/VolunteerManagement.Services/Volunteers/Dtos/AddressDto.cs:10
  • AddShelterRequest.ZipCode Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Requests/AddShelterRequest.cs:21
  • UpdateShelterAddressRequest.ZipCode Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Requests/UpdateShelterAddressRequest.cs:14
  • Address.ZipCode Solution/VolunteerManagement/VolunteerManagement.Domain/Aggregates/Volunteers/ValueObjects/Properties/Address.cs:29
Date of birth — 6 field(s)
  • AddPetCommand.BirthDate Solution/VolunteerManagement/Application/VolunteerManagement.Handlers/Volunteers/Pets/Commands/Add/AddPetCommand.cs:64
  • SearchPetsQuery.BirthDateFrom Solution/VolunteerManagement/Application/VolunteerManagement.Handlers/Volunteers/Pets/Queries/SearchPets/SearchPetsQuery.cs:31
  • SearchPetsQuery.BirthDateTo Solution/VolunteerManagement/Application/VolunteerManagement.Handlers/Volunteers/Pets/Queries/SearchPets/SearchPetsQuery.cs:32
  • PetDto.BirthDate Solution/VolunteerManagement/Application/VolunteerManagement.Services/Volunteers/Dtos/PetDto.cs:34
  • AddPetRequest.BirthDate Solution/VolunteerManagement/Hosts/VolunteerManagement.Hosts.Endpoints/Requests/AddPetRequest.cs:32
  • Pet.BirthDate Solution/VolunteerManagement/VolunteerManagement.Domain/Aggregates/Volunteers/Entities/Pet.cs:60

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