Public report — Modular-monolith-by-example, 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 @ 14:20 UTC Public
Code Health Audit

Kamilbaczek/Modular-Monolith-By-Example

Regression detected dormant codebase
47% Weak
CriticalWeakAdequateStrongExemplary
upper third — near Adequate

Small · 14,167 LoC · 69 projects · rebuild ~0.2 person-years · weakest lens: Readiness (29%)

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

73/77dimensions tool-verifieddeterministic · confidence 1.0 · 4 LLM-assisted, advisory
83findings with an exact file:lineof 243 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
77/110dimensions across the health lenses14167 LoC · 69 projects — wide & deep

Executive summary

Read through the Template lens: this is a template / kata / sample / demo — code meant to be read or copied, not operated. The ship-it and operate-it dimensions (CI/CD, observability, ADRs, architecture docs, deployment security) are N/A, and the colour bands on what remains are relaxed to what an example needs. Code correctness stays near-strict; the score is absolute and comparable across repos.

kamilbaczek/Modular-monolith-by-example carries serious risk (47%). Several issues below can materially affect reliability, security, or the cost of change and warrant near-term attention.

The area that most needs attention is Readiness (29%) — operating, monitoring and recovering the system safely is harder. Architecture (59%) is the next concern — the code resists change, so features cost more over time.

Leadership focus, highest impact first: Codify backups + geo-recovery in IaC and document RTO/RPO… (DR & Backup); `AddStandardResilienceHandler()` (or Polly policies) to your… (Outbound HTTP resilience); readiness/liveness probes and a rolling-update (or blue/green)… (Deployment & Rollback).

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

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Readiness 29% · 45% weightArchitecture 59% · 25% weightSecurity 63% · 14% weightMaturity 64% · 8% weightEvent Sourcing 66% · 4% weightDomain Modelling 72% · 2% weightCode Health 80% · 1% weightEvent-Driven 84% · 1% weight

Raise Readiness 29 → 70 (the Healthy floor) ⇒ headline 47 → ~62.

Code composition — where the lines go Plumbing-heavy — business logic is 5% 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 4%Plumbing 76%Tests 15%Generated 5%
New since the last scan (100+)

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

  • D4 · Duplicated block (9 lines × 2) Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Persistance/Migrations/Init_users_module.cs
  • D5 · Layer violation: Application → Infrastructure
  • D5 · Layer violation: Domain → Infrastructure
  • D5 · Layer violation: Application → Infrastructure
  • D5 · Layer violation: Application → Infrastructure
  • D5 · Off the main sequence: Divstack.Company.Estimation.Tool.Shared.Infrastructure.Azure
  • D5 · Off the main sequence: Divstack.Company.Estimation.Tool.Shared.DDD.ValueObjects
  • D5 · Off the main sequence: Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents
  • D5 · Off the main sequence: Divstack.Company.Estimation.Tool.Shared.Persistance
  • D5 · Off the main sequence: Divstack.Company.Estimation.Tool.Payments.IntegrationsEvents
  • D5 · Off the main sequence: Divstack.Company.Estimation.Tool.Services.Core
  • D5 · Off the main sequence: Divstack.Company.Estimation.Tool.Valuations.Domain
  • D5 · Off the main sequence: Divstack.Company.Estimation.Tool.Inquiries.Domain
  • D5 · Off the main sequence: Divstack.Company.Estimation.Tool.Users.Domain
  • D6 · Low cohesion: UserAccount (LCOM4 6) Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Users/UserAccount.cs
  • D12 · Vulnerable: IdentityServer4
  • D12 · Vulnerable: MailKit
  • D12 · Vulnerable: MimeKit
  • D12 · Vulnerable: Marten
  • D12 · Vulnerable: Microsoft.Data.SqlClient
  • D12 · Vulnerable: Azure.Identity
  • D12 · Deprecated: Microsoft.AspNetCore.Mvc
  • D12 · Deprecated: IdentityServer4
  • D12 · Deprecated: IdentityServer4.AccessTokenValidation
  • D12 · Deprecated: Microsoft.AspNetCore.Http.Abstractions
  • D12 · Deprecated: Microsoft.AspNetCore.Mvc.Core
  • D12 · Deprecated: Microsoft.AspNetCore.Mvc.Abstractions
  • D12 · Deprecated: Microsoft.Data.SqlClient
  • D12 · Deprecated: Microsoft.AspNetCore.SignalR.Core
  • D12 · Deprecated: Microsoft.AspNetCore
  • D12 · Deprecated: Twilio.AspNet.Core
  • D12 · Deprecated: FluentValidation.AspNetCore
  • D12 · Deprecated: Azure.Identity
  • D12 · Deprecated: Microsoft.ApplicationInsights
  • D12 · Deprecated: Microsoft.ApplicationInsights.AspNetCore
  • D12 · Deprecated: Microsoft.Azure.Services.AppAuthentication
  • D12 · Deprecated: SpecFlow.NUnit
  • D12 · Prerelease dependency: Pomelo.EntityFrameworkCore.MySql
  • D12 · Prerelease dependency: Hangfire
  • D12 · Prerelease dependency: MassTransit
  • D12 · Prerelease dependency: MassTransit.Azure.ServiceBus.Core
  • D12 · Prerelease dependency: Microsoft.Data.SqlClient
  • D12 · Prerelease dependency: Hangfire.Core
  • D12 · Prerelease dependency: Stripe.net
  • D12 · Prerelease dependency: Azure.Identity
  • D12 · Prerelease dependency: Microsoft.ApplicationInsights
  • D12 · Prerelease dependency: Microsoft.ApplicationInsights.AspNetCore
  • D12 · Prerelease dependency: Microsoft.FeatureManagement
  • D12 · Prerelease dependency: SpecFlow.NUnit
  • D12 · Prerelease dependency: Azure.Security.KeyVault.Secrets
  • D13 · Leaked secret: signing-key Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/users-appsettings.json
  • D16 · dormant codebase — no living knowledge left to concentrate
  • D17 · BarePragmaDisable repeated across 21 files Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Commands/Make/MakeInquiryCommand.cs
  • D17 · CommentedOutCode Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/Controllers/AuthenticationController.cs
  • D17 · TodoComment Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Users/Services/RoleManagementService.cs
  • D17 · TodoComment Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/CompanyFinderHttpClient.cs
  • D17 · TodoComment Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/CompanyFinderHttpClient.cs
  • D17 · CommentedOutCode Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/CompanyFinderHttpClient.cs
  • D17 · CommentedOutCode Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/CompanyFinderHttpClient.cs
  • D17 · NoWarnInCsproj Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Divstack.Company.Estimation.Tool.Valuations.Domain.csproj
  • D17 · NoWarnInCsproj Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Divstack.Company.Estimation.Tool.Valuations.Domain.csproj
  • D17 · NoWarnInCsproj Directory.Build.props
  • D17 · NoWarnInCsproj Directory.Build.props
  • D17 · NoWarnInCsproj Directory.Build.props
  • D17 · Dead code: ProposalApprovedEventHandler Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Approved/ProposalApprovedEventHandler.cs
  • D17 · Dead code: CategoryPersistanceConfiguration Src/Modules/Services/Divstack.Company.Estimation.Tool.Services.Core/Services/Categories/Configurations/PaymentPersistanceConfiguration.cs
  • D17 · Dead code: Customer Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Customers/Customer.cs
  • D17 · Dead code: Employee Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Employees/Employee.cs
  • D17 · Dead code: GetChangedBy Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Users/Services/ApplicationUserManager.cs
  • D17 · Dead code: UsersContextFactory Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Persistance/DataAccess/UsersContextFactory.cs
  • D17 · Dead code: Cancel Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/Proposals/Proposal.cs
  • D17 · Dead code: When Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/States/ValuationApproved.cs
  • D17 · Dead code: When Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/States/ValuationCompleted.cs
  • D17 · Dead code: When Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/States/ValuationNegotiation.cs
  • D17 · Dead code: When Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/States/ValuationRequested.cs
  • D17 · Dead code: WithPrice Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain.Tests/Valuations/Common/Builders/Proposals/ValuationSuggestedBuilder.cs
  • D17 · Dead code: WithDescription Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain.Tests/Valuations/Common/Builders/Proposals/ValuationSuggestedBuilder.cs
  • D17 · Dead code: IsLocal Src/Shared/Divstack.Company.Estimation.Tool.Shared.Infrastructure/Api/Environments/EnvironmentExtensions.cs
  • D17 · Dead code: UseMongoAsStorage Src/Shared/Divstack.Company.Estimation.Tool.Shared.Infrastructure/BackgroundProcessing/Storage/BackgroundJobsStorageExtensions.cs
  • D17 · Dead code: PriorityCloseToDeadlineScheduler Src/Modules/Reminders/Divstack.Company.Estimation.Tool.Reminders.Priorities/DeadlineClose/Scheduler/PriorityCloseToDeadlineScheduler.cs
  • D17 · Dead code: PriorityCloseToDeadlineUnScheduler Src/Modules/Reminders/Divstack.Company.Estimation.Tool.Reminders.Priorities/DeadlineClose/Scheduler/PriorityCloseToDeadlineUnScheduler.cs
  • D17 · Dead code: FindProfileRequest Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/Requests/FindProfileRequest.cs
  • D17 · Dead code: InquiriesController Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Api/Controllers/InquiriesController.cs
  • D17 · Dead code: Formatting Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Common/Constants/Formatting.cs
  • D17 · Dead code: InquiriesContextFactory Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Persistance/DataAccess/InquiriesContextFactory.cs
  • D17 · Dead code: InitializePaymentEventHandler Src/Modules/Payments/Divstack.Company.Estimation.Tool.Payments.Application/Payments/Commands/Initalize/InitializePaymentEventHandler.cs
  • D17 · Dead code: PaymentCompletedEventHandler Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentCompleted/PaymentCompletedEventHandler.cs
  • D17 · Dead code: ProposalApprovedEventHandler Src/Modules/Push/Divstack.Company.Estimation.Tool.Push.Valuations/Notifications/ProposalApprovedEventHandler.cs
  • D17 · Dead code: ValuationRequestEventHandler Src/Modules/Push/Divstack.Company.Estimation.Tool.Push.Valuations/Notifications/ValuationRequestEventHandler.cs
  • D17 · Dead code: NotificationPersistanceConfiguration Src/Modules/Push/Divstack.Company.Estimation.Tool.Push.DataAccess/DataAccess/Configuration/NotificationPersistanceConfiguration.cs
  • D17 · Dead code: PaymentCompletedEventHandler Src/Modules/Push/Divstack.Company.Estimation.Tool.Push.Payments/Notifications/PaymentCompletedEventHandler.cs
  • D17 · Dead code: PaymentCompletedEventHandler Src/Modules/Sms/Divstack.Company.Estimation.Tool.Sms.Payments/Notifications/PaymentCompletedEventHandler.cs
  • D17 · Dead code: ArchivePriorityCommandCommandHandler Src/Modules/Priorities/Divstack.Company.Estimation.Tool.Priorities.Application/Priorities/Commands/Archive/ArchivePriorityCommandCommandHandler.cs
  • D17 · Dead code: WithValuation Src/Modules/Priorities/Tests/Divstack.Company.Estimation.Tool.Priorities.Domain.Tests/Common/Builders/PrioritiesBuilder.cs
  • D17 · Dead code: WithInquiry Src/Modules/Priorities/Tests/Divstack.Company.Estimation.Tool.Priorities.Domain.Tests/Common/Builders/PrioritiesBuilder.cs
  • D17 · Dead code: PriorityCloseToDeadlineRemindEventHandler Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Priorities/DeadlineClose/PriorityCloseToDeadlineRemindEventHandler.cs
  • D17 · Dead code: BeCompleted Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Application.AcceptanceTests/Features/Common/ValuationAssertions.cs
  • D17 · Dead code: BeWaitingForProposal Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Application.AcceptanceTests/Features/Common/ValuationAssertions.cs
  • D17 · Dead code: BeApproved Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Application.AcceptanceTests/Features/Common/ValuationAssertions.cs
  • D17 · Dead code: BeWaitForClientDecision Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Application.AcceptanceTests/Features/Common/ValuationAssertions.cs

A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.

Rebuild cost & value ~ Modeled — €7,900–€39,000
Cost to rebuild€7,900–€39,000 (0.1–0.2 person-years (131–408 h), ~1 engineer)
Domain complexityVery high — harder problems cost more per line
Quality factor0.7× (at 47% quality) — the last 20% of quality is most of the work
Size & shapeSmall · 54% boilerplate · 41% straight-line · 5% branching logic

This codebase represents roughly ~0.2 person-years of build effort (about ~€23,000 to rebuild). Its weakest lens is Readiness at 29% — 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.4) — microservices, DDD/clean architecture, CQRS, domain model, event-driven integration, event sourcing × a 0.7× quality factor, at €60–95/h; indicative, ±~30%. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Resolve the 1 Leaked secret finding(s) in Secret Scanning — start with users-appsettings.json.
+11.3 pts · Low effort · Secret Scanning
2
Resolve the 6 Vulnerable finding(s) in Dependency Hygiene.
+9.1 pts · Low effort · Dependency Hygiene
3
Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
+15.7 pts · Medium effort · DR & Backup

Diagnosis — what's actually going on

Value concentrated against a weak lens · High · Value at risk
This is a Small asset (~0.2 person-years to rebuild), and its weakest lens is Readiness at 29%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Small, ~0.2 person-years rebuild (14,167 LoC) · weakest lens: Readiness 29%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Root cause: an un-encapsulated domain · Medium · Root cause
10 findings across public setters, anemic types and primitive ids share one root cause — the domain layer doesn't protect its own invariants. Fixing the encapsulation pattern resolves them together, rather than chasing each finding.
Evidence: DM5 setters: 5 · DM4 anemic: 4 · DM2 primitive ids: 1
→ Address encapsulation as one pattern (private setters + behaviour + strongly-typed ids), not 100 separate findings.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.

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 Company.Estimation.Tool.Bootstrapper Company.Estimation.Tool.Bootstrapper ctx:Company.Estimation.Tool.Emails Company.Estimation.Tool.Emails Emails Company.Estimation.Tool.Bootstrapper->ctx:Company.Estimation.Tool.Emails ctx:Company.Estimation.Tool.Inquiries Company.Estimation.Tool.Inquiries Api · Application · Domain · Infrastructure Company.Estimation.Tool.Bootstrapper->ctx:Company.Estimation.Tool.Inquiries ctx:Company.Estimation.Tool.Payments Company.Estimation.Tool.Payments Api · Application · Domain · Infrastructure Company.Estimation.Tool.Bootstrapper->ctx:Company.Estimation.Tool.Payments ctx:Company.Estimation.Tool.Priorities Company.Estimation.Tool.Priorities Api · Application · Domain · Infrastructure Company.Estimation.Tool.Bootstrapper->ctx:Company.Estimation.Tool.Priorities ctx:Company.Estimation.Tool.Shared Company.Estimation.Tool.Shared Infrastructure Company.Estimation.Tool.Bootstrapper->ctx:Company.Estimation.Tool.Shared ctx:Company.Estimation.Tool.Users Company.Estimation.Tool.Users Api · Application · Domain · Infrastructure Company.Estimation.Tool.Bootstrapper->ctx:Company.Estimation.Tool.Users ctx:Company.Estimation.Tool.Valuations Company.Estimation.Tool.Valuations Api · Application · Domain · Infrastructure Company.Estimation.Tool.Bootstrapper->ctx:Company.Estimation.Tool.Valuations Company.Estimation.Tool.Inquiries.Domain.Tests Company.Estimation.Tool.Inquiries.Domain.Tests Company.Estimation.Tool.Priorities.Domain.Tests Company.Estimation.Tool.Priorities.Domain.Tests Company.Estimation.Tool.Priorities.IntegrationTests Company.Estimation.Tool.Priorities.IntegrationTests Company.Estimation.Tool.Services.IntegrationsTests Company.Estimation.Tool.Services.IntegrationsTests Company.Estimation.Tool.Shared.Testing Company.Estimation.Tool.Shared.Testing Company.Estimation.Tool.Users.Infrastructure.Tests Company.Estimation.Tool.Users.Infrastructure.Tests Company.Estimation.Tool.Valuations.Application.AcceptanceTests Company.Estimation.Tool.Valuations.Application.AcceptanceTests Company.Estimation.Tool.Valuations.ArchTests Company.Estimation.Tool.Valuations.ArchTests Company.Estimation.Tool.Valuations.Domain.Tests Company.Estimation.Tool.Valuations.Domain.Tests Estimation.Tool.Deployment.Infrastructure Estimation.Tool.Deployment.Infrastructure ctx:Company.Estimation.Tool.Emails.Core Company.Estimation.Tool.Emails.Core Core ctx:Company.Estimation.Tool.Emails->ctx:Company.Estimation.Tool.Emails.Core ctx:Company.Estimation.Tool.Emails.Valuations Company.Estimation.Tool.Emails.Valuations Valuations ctx:Company.Estimation.Tool.Emails->ctx:Company.Estimation.Tool.Emails.Valuations ctx:Company.Estimation.Tool.Shared.Abstractions Company.Estimation.Tool.Shared.Abstractions Abstractions ctx:Company.Estimation.Tool.Emails.Core->ctx:Company.Estimation.Tool.Shared.Abstractions ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks Company.Estimation.Tool.Shared.DDD.BuildingBlocks BuildingBlocks ctx:Company.Estimation.Tool.Emails.Core->ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks ctx:Company.Estimation.Tool.Emails.Valuations->ctx:Company.Estimation.Tool.Emails.Core ctx:Company.Estimation.Tool.Emails.Valuations->ctx:Company.Estimation.Tool.Inquiries ctx:Company.Estimation.Tool.Reminders.Priorities Company.Estimation.Tool.Reminders.Priorities Priorities ctx:Company.Estimation.Tool.Emails.Valuations->ctx:Company.Estimation.Tool.Reminders.Priorities ctx:Company.Estimation.Tool.Shared.DDD.ValueObjects Company.Estimation.Tool.Shared.DDD.ValueObjects ValueObjects ctx:Company.Estimation.Tool.Emails.Valuations->ctx:Company.Estimation.Tool.Shared.DDD.ValueObjects ctx:Company.Estimation.Tool.Emails.Valuations->ctx:Company.Estimation.Tool.Users ctx:Company.Estimation.Tool.Valuations.IntegrationsEvents Company.Estimation.Tool.Valuations.IntegrationsEvents IntegrationsEvents ctx:Company.Estimation.Tool.Emails.Valuations->ctx:Company.Estimation.Tool.Valuations.IntegrationsEvents ctx:Company.Estimation.Tool.Inquiries->ctx:Company.Estimation.Tool.Shared ctx:Company.Estimation.Tool.Inquiries->ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks ctx:Company.Estimation.Tool.Inquiries->ctx:Company.Estimation.Tool.Shared.DDD.ValueObjects ctx:Company.Estimation.Tool.Payments->ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks ctx:Company.Estimation.Tool.Payments->ctx:Company.Estimation.Tool.Shared.DDD.ValueObjects ctx:Company.Estimation.Tool.Payments->ctx:Company.Estimation.Tool.Valuations ctx:Company.Estimation.Tool.Payments->ctx:Company.Estimation.Tool.Valuations.IntegrationsEvents ctx:Company.Estimation.Tool.Priorities->ctx:Company.Estimation.Tool.Inquiries ctx:Company.Estimation.Tool.Priorities->ctx:Company.Estimation.Tool.Shared ctx:Company.Estimation.Tool.Priorities->ctx:Company.Estimation.Tool.Shared.Abstractions ctx:Company.Estimation.Tool.Priorities->ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks ctx:Company.Estimation.Tool.Priorities->ctx:Company.Estimation.Tool.Valuations ctx:Company.Estimation.Tool.Priorities->ctx:Company.Estimation.Tool.Valuations.IntegrationsEvents ctx:Company.Estimation.Tool.Reminders.Priorities->ctx:Company.Estimation.Tool.Priorities ctx:Company.Estimation.Tool.Reminders.Priorities->ctx:Company.Estimation.Tool.Shared ctx:Company.Estimation.Tool.Reminders.Priorities->ctx:Company.Estimation.Tool.Shared.Abstractions ctx:Company.Estimation.Tool.Reminders.Priorities->ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks ctx:Company.Estimation.Tool.Reminders.Priorities->ctx:Company.Estimation.Tool.Valuations.IntegrationsEvents ctx:Company.Estimation.Tool.Shared->ctx:Company.Estimation.Tool.Shared.Abstractions ctx:Company.Estimation.Tool.Shared->ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks ctx:Company.Estimation.Tool.Shared->ctx:Company.Estimation.Tool.Valuations.IntegrationsEvents ctx:Company.Estimation.Tool.Shared.DDD.ValueObjects->ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks ctx:Company.Estimation.Tool.Users->ctx:Company.Estimation.Tool.Shared ctx:Company.Estimation.Tool.Users->ctx:Company.Estimation.Tool.Shared.Abstractions ctx:Company.Estimation.Tool.Valuations->ctx:Company.Estimation.Tool.Inquiries ctx:Company.Estimation.Tool.Valuations->ctx:Company.Estimation.Tool.Shared ctx:Company.Estimation.Tool.Valuations->ctx:Company.Estimation.Tool.Shared.Abstractions ctx:Company.Estimation.Tool.Valuations->ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks ctx:Company.Estimation.Tool.Valuations->ctx:Company.Estimation.Tool.Shared.DDD.ValueObjects ctx:Company.Estimation.Tool.Valuations.IntegrationsEvents->ctx:Company.Estimation.Tool.Shared.DDD.BuildingBlocks ctx:Company.Estimation.Tool.Valuations.IntegrationsEvents->ctx:Company.Estimation.Tool.Valuations __more__ +31 more contexts

Architecture — module dependency matrix

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

…tion.Tool.Emails.Core…Sender.TemplateReader…tion.Common.Contracts…tion.Common.Contracts…ss.Repositories.Write…e.Services.Categories…actions.Configuration…ed.DDD.BuildingBlocks…tructure.FeatureFlags…Application.Contracts…ol.Users.Domain.Users…tion.Common.Contracts…ion.Common.Interfaces…ain.Inquiries.Clients…uiries.Items.Services…ationsEvents.External…ties.Domain.Deadlines…ervices.Core.Services…vices.Categories.Dtos…ared.DDD.ValueObjects…Users.Api.Controllers…s.Queries.GetAllUsers…ion.Common.Interfaces…Events.ExternalEvents…ries.Domain.Inquiries…ments.Domain.Payments…ool.Priorities.Domain…adlineClose.Scheduler…ore.Services.Services…cation.Authentication…ain.Valuations.Events….Valuations.Proposals…quiries.Commands.Make…Payments.Commands.Pay…vices.Api.Controllers…ity.Jwt.RefreshTokens…ions.Proposals.Events…entity.Users.Services…ain.Valuations.States…ons.Domain.Valuations…tion.Tool.Emails.Core1…Sender.TemplateReader2…tion.Common.Contracts3…tion.Common.Contracts4…ss.Repositories.Write5…e.Services.Categories6…actions.Configuration7…ed.DDD.BuildingBlocks8…tructure.FeatureFlags9…Application.Contracts10…ol.Users.Domain.Users11…tion.Common.Contracts12…ion.Common.Interfaces13…ain.Inquiries.Clients14…uiries.Items.Services15…ationsEvents.External16…ties.Domain.Deadlines17…ervices.Core.Services18…vices.Categories.Dtos19…ared.DDD.ValueObjects20…Users.Api.Controllers21…s.Queries.GetAllUsers22…ion.Common.Interfaces23…Events.ExternalEvents24…ries.Domain.Inquiries25…ments.Domain.Payments26…ool.Priorities.Domain27…adlineClose.Scheduler28…ore.Services.Services29…cation.Authentication30…ain.Valuations.Events31….Valuations.Proposals32…quiries.Commands.Make33…Payments.Commands.Pay34…vices.Api.Controllers35…ity.Jwt.RefreshTokens36…ions.Proposals.Events37…entity.Users.Services38…ain.Valuations.States39…ons.Domain.Valuations4012121111211162115211222121531112111213224359818294553131+331 more modules (most-connected shown)

At a glance — Code Health · 80% · Strong

At a glance — Architecture · 59% · Adequate · gated by AX8

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

At a glance — Readiness · 29% · Weak · gated by D8, D12, P5, P7

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

At a glance — Domain Modelling · 72% · Strong

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

At a glance — Event Sourcing · 66% · Strong

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A03:2021 — Injection21High / Critical
A02:2021 — Cryptographic Failures7High / Critical
A05:2021 — Security Misconfiguration2High / Critical

Roadmap

First, codify backups and geo-recovery in your infrastructure code and document recovery time and data loss objectives to ensure true disaster resilience. Next, implement HTTP resilience policies to prevent external service failures from taking down the application, and introduce automated health checks and rollback strategies to safely manage deployments. Then, extend structured logging across all projects and provide a diagnostics seam for libraries to avoid forcing logging dependencies on consumers. Finally, resolve the deprecated dependencies to maintain system hygiene.

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

Do thisHelpsEffortDimension
Resolve the 1 Leaked secret finding(s) in Secret Scanning — start with users-appsettings.json.+11.3 ptsLowSecret Scanning
Resolve the 6 Vulnerable finding(s) in Dependency Hygiene.+9.1 ptsLowDependency Hygiene
Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.+15.7 ptsMediumDR & Backup
Add `AddStandardResilienceHandler()` (or Polly policies) to your HttpClient registrations so a flaky dependency can't take the app down.+15.7 ptsMediumOutbound HTTP resilience
Add readiness/liveness probes and a rolling-update (or blue/green) strategy so a bad release is caught and rolled back automatically.+15.6 ptsMediumDeployment & Rollback
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.+15.5 ptsMediumObservability
Resolve the 16 Deprecated finding(s) in Dependency Hygiene.+15.5 ptsMediumDependency Hygiene
Resolve the 13 Prerelease dependency finding(s) in Dependency Hygiene.+15.1 ptsMediumDependency Hygiene

File quality

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

FileScoreBandWorst signal
.github/workflows/main.yml4.4MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
Directory.Build.props5.8MixedExplicit Debt: NoWarnInCsproj
Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Api/valuations-appsettings.json5.8MixedSecrets (history): Secret: generic-api-key
Divstack.Company.Estimation.Tool.Bootstrapper/appsettings.json5.8MixedSecrets (history): Secret: generic-api-key
Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Divstack.Company.Estimation.Tool.Valuations.Domain.csproj6.4Near-cleanExplicit Debt: NoWarnInCsproj
Dockerfile6.5Near-cleanIaC & Container Security: High IaC: DS-0002
Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/CompanyFinderHttpClient.cs6.6Near-cleanExplicit Debt: TodoComment
Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Application.AcceptanceTests/Features/Common/ValuationAssertions.cs6.6Near-cleanExplicit Debt: Dead code: BeCompleted
Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/users-appsettings.json7.2Near-cleanSecret Scanning: Leaked secret: signing-key
Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure/Events/IntegrationEventPublisher.cs7.2Near-cleanSecrets (history): Secret: generic-api-key
Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain.Tests/Valuations/Common/Builders/Proposals/ValuationSuggestedBuilder.cs7.3Near-cleanExplicit Debt: Dead code: WithPrice
Src/Modules/Priorities/Tests/Divstack.Company.Estimation.Tool.Priorities.Domain.Tests/Common/Builders/PrioritiesBuilder.cs7.3Near-cleanExplicit Debt: Dead code: WithValuation
Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Jwt/JwtTokenAuthorizationModule.cs7.9Near-cleanStatic Analysis (SAST): Medium: jwt-tokenvalidationparameters-no-expiry-validation
Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Jwt/RefreshTokens/JwtTokenManagementService.cs7.9Near-cleanStatic Analysis (SAST): Medium: jwt-tokenvalidationparameters-no-expiry-validation
Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Commands/Make/MakeInquiryCommand.cs8.2Near-cleanExplicit Debt: BarePragmaDisable repeated across 21 files
Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/Controllers/AuthenticationController.cs8.2Near-cleanExplicit Debt: CommentedOutCode
Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Users/Services/RoleManagementService.cs8.2Near-cleanExplicit Debt: TodoComment
Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Approved/ProposalApprovedEventHandler.cs8.2Near-cleanExplicit Debt: Dead code: ProposalApprovedEventHandler
Src/Modules/Services/Divstack.Company.Estimation.Tool.Services.Core/Services/Categories/Configurations/PaymentPersistanceConfiguration.cs8.2Near-cleanExplicit Debt: Dead code: CategoryPersistanceConfiguration
Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Customers/Customer.cs8.2Near-cleanExplicit Debt: Dead code: Customer

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. 73 of 77 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.7 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

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

What we checked — 77 dimensions across the health lenses
D1D2D3D4D5D6D7D8D9D10D11D12D13D14D15D17D18D20D21D23D24D25D26D27D28D29D31D34D35AX1AX10AX2AX3AX4AX5AX6AX7AX8AX9C1C2C4DM1DM2DM3DM4DM5DM6DM8ED1ED2ED3ED4ED5ES1ES2ES3GD1IC1M1M2M3M4P1P11P2P3P4P5P7P8S1X1X2X3X4X5

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, 83 of 243 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 019fc7fe-f496-7cc3-b74e-b3b78cf19164.

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

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D19 Documentation Quality — LLM provider failed — The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
  • D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • 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.
  • 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.
  • D23 Boundary Type-Coupling: Boundary leakage is detected from type references across detected contexts — leaks that flow through primitives, serialization or shared infrastructure may not surface as a typed reference.
  • 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.
  • D25 ADR Conformance: ADR conformance is the LLM-scored fraction of sampled code that follows recorded decisions — it checks the decisions that were written down and the slices it sampled, not unrecorded rules or the whole tree.
  • 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").
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
  • DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
  • DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
  • 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".
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.

The LLM boundary

LLM-set scores this run (6): D20, D21, D24, D25, 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 Complexity10.0 / 10Exemplary✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

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

0 method(s) exceeded the cyclomatic complexity threshold of 15.

✓ On the Gold path — maintain.

Detailed fixes: d1_recommendation.md.

D2 · Cognitive Complexity10.0 / 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 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 method(s) exceeded the cognitive complexity threshold of 15.

✓ On the Gold path — maintain.

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

1 duplicated block group(s) detected.

Duplicated block (9 lines × 2)Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Persistance/Migrations/Init_users_module.cs:104

✓ On the Gold path — maintain.

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

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

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

Layer violation: Application → Infrastructure · ×4
Off the main sequence: Divstack.Company.Estimation.Tool.Shared.Infrastructure.Azure · ×9

✓ On the Gold path — maintain.

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

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

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

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

1 of 57 classes have LCOM4 above 3.

Low cohesion: UserAccount (LCOM4 6)Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Users/UserAccount.cs:10

✓ On the Gold path — maintain.

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

D7 · Architectural Integrity10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the code respects its intended layering / architecture rules.

Method: Enforcement rung (Prevented/Verified/Documented) per checkable ADR via Roslyn, plus dependency cycles via the engine shared with D5/AX3. Deterministic, exact.

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

Of 1 mechanizable ADRs, 1 are prevented by analyzers, 0 by tests, 0 exist only in prose. Coverage: 100 %. Cycles found: 0.

✓ On the Gold path — maintain.

Detailed fixes: d7_recommendation.md.

D8 · Code Coverage1.0 / 10Critical✓ Tool-verified

What it measures: How much of the code is actually exercised by tests.

Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.

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

Line coverage 0.0%, branch coverage 0.0%.

What to do

  1. Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d8_recommendation.md.

D9 · Test Distribution9.2 / 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 9.2 / 10 · rule-coverage 100% · ceiling Documented

36 test methods: 29 unit, 4 integration, 3 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, 4 mock references across 37 tests.

Mock framework: Moq · ×4

✓ 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 4 measured tier(s). unit: measured (0 flaky); integration: measured (0 flaky); BDD: measured (0 flaky); other: measured (0 flaky).

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

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

What it measures: Whether dependencies are current, secure, and not bloated.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.

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

96 outdated, 6 vulnerable, 16 deprecated, 13 prerelease packages.

Vulnerable: IdentityServer4 · ×6
Deprecated: Microsoft.AspNetCore.Mvc · ×16
Prerelease dependency: Pomelo.EntityFrameworkCore.MySql · ×13
Outdated: Microsoft.Extensions.DependencyInjection.Abstractions · ×96

What to do

  1. Resolve the 16 Deprecated finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (16 warning-level).
  2. Resolve the 13 Prerelease dependency finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (13 warning-level).
  3. Resolve the 6 Vulnerable finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (6 issue-level).

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

D13 · Secret Scanning5.0 / 10Adequate✓ Tool-verified

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

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

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

1 secret(s) detected.

Leaked secret: signing-keySrc/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/users-appsettings.json:3

What to do

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

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

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

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

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

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

0 of 116 packages use a banned license.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

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

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

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

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

No churn × complexity hotspots in the window.

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md.

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

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

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

32 deducted debt markers + 36 dead symbols across 13624 LoC (1.6/KLoC) → score 6.7.

NoWarnInCsproj · ×5Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Divstack.Company.Estimation.Tool.Valuations.Domain.csproj:4
Dead code: ProposalApprovedEventHandler · ×36Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Approved/ProposalApprovedEventHandler.cs:9
CommentedOutCode · ×3Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/Controllers/AuthenticationController.cs:95
TodoComment · ×3Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Users/Services/RoleManagementService.cs:28
BarePragmaDisable repeated across 21 filesSrc/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Commands/Make/MakeInquiryCommand.cs:1

What to do

  1. Resolve the 36 Dead code finding(s) in Explicit Debt — start with ValuationAssertions.cs (4), PaymentCompletedEventHandler.cs (3), ProposalApprovedEventHandler.cs (2). — One of this dimension's main actionable groups (36 warning-level).
  2. Resolve the 5 NoWarnInCsproj finding(s) in Explicit Debt — start with Directory.Build.props (3), Divstack.Company.Estimation.Tool.Valuations.Domain.csproj (2). — One of this dimension's main actionable groups (5 issue-level).
  3. Resolve the 3 CommentedOutCode finding(s) in Explicit Debt — start with CompanyFinderHttpClient.cs (2), AuthenticationController.cs. — One of this dimension's main actionable groups (3 warning-level).
  4. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D18 · Solution Shape9.2 / 10Exemplary✓ Tool-verified

What it measures: Whether the solution is laid out in a sensible, conventional structure.

Method: Solution structure: project count, decomposition, shell-project detection, build success (confirmed failures cap the score); traced to actual .sln files and binaries. Deterministic.

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

69 projects, 845 source files, 15712 hand-written lines of code (13624 production / 2088 test), plus 935 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 834 inter-project edges.

Shell project: Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents · ×2Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents/Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents.csproj
Thin analysable surface across projects

✓ On the Gold path — maintain.

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

D20 · ADR Quality / 10Adequate◐ 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 Adequate / 10 · rule-coverage 100% · ceiling Documented

Evaluated 4 ADR(s) individually; mean quality 6.1/10 (mixed — many ADRs miss context or consequences). 1 flagged with a specific gap.

Context and consequences are both citations to an external source (Michael Nygard + adr-tools), with no context/problem statement or explicit decision bodyDocumentation/Architecture/Decisions/0001-record-architecture-decisions.md

What to do

  1. Resolve the 1 Context and consequences are both citations to an external source… finding(s) in ADR Quality — start with 0001-record-architecture-decisions.md. — One of this dimension's main actionable groups (1 warning-level).

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

D21 · Naming Consistency / 10Strong◐ 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 Strong / 10 · rule-coverage 100% · ceiling Verified

1 naming inconsistencies across 200 sampled symbols.

Inconsistent spelling of 'Persistence' in namespace/type names. Some modules use 'Persistance' (missing 'e'), while others use 'Persistence' or 'Persistance' inconsistently.

What to do

  1. Resolve the 1 Inconsistent spelling of 'Persistence' in namespace/type names. Some… finding(s) in Naming Consistency. — One of this dimension's main actionable groups (1 recommendation-level).

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

D23 · Boundary Type-Coupling9.9 / 10Exemplary✓ Tool-verified

What it measures: Whether domain types (IDs, enums, value objects) leak across bounded-context boundaries.

Method: Cross-context domain-type leakage via Roslyn structural classification (strongly-typed IDs / value objects) over every public surface. Exhaustive, deterministic, type-level aggregate-boundary check.

Coverage: Bounded contexts derived from NAMESPACE prefix (or graph-inferred where available); cross-boundary domain-type leakage then checked exhaustively over every public member of every type.

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

1 domain type(s) cross context boundaries across 14 contexts.

Cross-context type InquiryMadeEvent (Inquiries → Valuations)
Inquiries: 2 contract type(s) expose producer-owned ids/enums
Payments: 2 contract type(s) expose producer-owned ids/enums
Priorities: 4 contract type(s) expose producer-owned ids/enums
Valuations: 6 contract type(s) expose producer-owned ids/enums

✓ On the Gold path — maintain.

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

D24 · Comment Value / 10Weak◐ 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 Weak / 10 · rule-coverage 100% · ceiling Documented

5 valuable / 1 redundant across 77 sampled comments; 1 shown with locations.

redundant commentDeployment/Infrastructure/GlobalUsings.cs:1

What to do

  1. Resolve the 1 redundant comment finding(s) in Comment Value — start with GlobalUsings.cs. — One of this dimension's main actionable groups (1 recommendation-level).

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

D25 · ADR Conformance / 10Exemplary◐ Sampled · advisory

What it measures: Whether the code actually follows the decisions recorded in the project's ADRs.

Method: Judged by language model at low temperature against ADRs plus a deterministic structural code summary; findings linked to repo-rooted ADR paths for traceability. Advisory.

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

4 conform / 0 violate across 4 ADRs.

✓ On the Gold path — maintain.

Detailed fixes: d25_recommendation.md.

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

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

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

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

0 of 69 projects flagged as possibly oversized/incoherent.

✓ On the Gold path — maintain.

Detailed fixes: d26_recommendation.md.

D27 · Navigability7.6 / 10Strong✓ Tool-verified

What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.

Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps.

Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.

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

90 % of calls cross a namespace and 24 % go through an interface, but 100 % of collaborators are co-located — so following a call takes several hops. Baseline: medium — clean/modular boundaries expected.

What to do

  1. Improve Navigability — currently 7.6/10. — 90 % of calls cross a namespace and 24 % go through an interface, but 100 % of collaborators are co-located — so following a call takes several hops. Baseline: medium — clean/modular boundaries expected.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)2.0 / 10Critical✓ Tool-verified

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.

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

8 finding(s): 0 critical, 8 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 · ×5Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure/Events/IntegrationEventPublisher.cs:28detected 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 valuations-appsettings.json (2), appsettings.json (2), IntegrationEventPublisher.cs. — 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)0.3 / 10Critical✓ 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 0.3 / 10 · rule-coverage 100% · ceiling Documented

21 finding(s): 0 critical, 19 high, 2 medium, 0 low.

High: github-actions-mutable-action-tag · ×19.github/workflows/main.yml:17detected by semgrep finding
Medium: jwt-tokenvalidationparameters-no-expiry-validation · ×2Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Jwt/JwtTokenAuthorizationModule.cs:50detected by semgrep finding

What to do

  1. Resolve the 19 High finding(s) in Static Analysis (SAST) — start with main.yml (19). — One of this dimension's main actionable groups (19 issue-level).
  2. Resolve the 2 Medium finding(s) in Static Analysis (SAST) — start with JwtTokenAuthorizationModule.cs, JwtTokenManagementService.cs. — One of this dimension's main actionable groups (2 warning-level).

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

D31 · IaC & Container Security9.6 / 10Exemplary✓ Tool-verified

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

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

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

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

High IaC: DS-0002Dockerfiledetected by trivy finding
Low IaC: DS-0026Dockerfiledetected by trivy finding

✓ On the Gold path — maintain.

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

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

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

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

26 of 26 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Persistance/Migrations/Init_users_module.cs.

Dormant codebase

What to do

  1. Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

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

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling; coupling through a build step, config, or non-source file isn't seen.

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

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

Frontend & cross-cutting dimensions

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

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

Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.

Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.

AX10 · Code composition5.1 / 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.3 / 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.

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

What to do

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

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

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

AX6 · Interface segregation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').

Method: Roslyn scan: public interface member counts; fat-interface threshold (over 15 members) flagged per type. Deterministic, type-level.

AX7 · Slice cohesion10.0 / 10Exemplary✓ Tool-verified

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

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

AX8 · Test isolation0.0 / 10Critical✓ 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.

  • `Divstack.Company.Estimation.Tool.Inquiries.Domain.Tests` (production) references the test project `Divstack.Company.Estimation.Tool.Shared.Testing`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference.
  • `Divstack.Company.Estimation.Tool.Priorities.Domain.Tests` (production) references the test project `Divstack.Company.Estimation.Tool.Shared.Testing`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference.
  • `Divstack.Company.Estimation.Tool.Priorities.IntegrationTests` (production) references the test project `Divstack.Company.Estimation.Tool.Shared.Testing`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference.
  • `Divstack.Company.Estimation.Tool.Services.IntegrationsTests` (production) references the test project `Divstack.Company.Estimation.Tool.Shared.Testing`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference.
  • `Divstack.Company.Estimation.Tool.Users.Infrastructure.Tests` (production) references the test project `Divstack.Company.Estimation.Tool.Shared.Testing`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference.
  • `Divstack.Company.Estimation.Tool.Valuations.Domain.Tests` (production) references the test project `Divstack.Company.Estimation.Tool.Shared.Testing`. Production must never depend on test code — it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference.

What to do

  • Remove every production → test project reference: extract any shared test helper into a production support library (which the tests reference), or invert the dependency so the test project depends on production — not the reverse.
AX9 · CQS / query purity10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.

Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.

Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.

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

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

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

What to do

  • Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
C2 · Access Controls10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether access is authorized by default — a framework authorization attribute/decorator or policy, or imperative guard methods (throw-on-violation) called from handlers.

Method: Roslyn scan: [Authorize] usage and authorization policies, plus imperative throw-on-violation guard methods detected via syntax. Deterministic.

C4 · Data Retention7.5 / 10Strong✓ Tool-verified

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

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

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

What to do

  • Complete the data-lifecycle story: an expiry limit (a declared maximum age for the stored data — a retention-age setting, or a store-level TTL where your storage offers one), a scheduled purge/cleanup job that enforces it, and a documented retention period covering the personal data.
DM1 · Aggregate boundaries10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether aggregates reference each other by identity (id) rather than by direct object reference — the core DDD consistency-boundary rule.

Method: Roslyn (DDD-gated): aggregate roots identified by convention; each aggregate field checked for direct references to other aggregates versus id-only. Deterministic, DDD-native.

Coverage: Population: aggregate roots identified by AggregateRoot/IAggregateRoot base/interface NAME convention; reference-by-identity then checked exhaustively within that set — a root not using those names is invisible.

DM2 · Strongly-typed ids9.6 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — How much of the domain uses strongly-typed ids vs raw Guid/string/int — adoption curve, not all-or-nothing.

Method: Roslyn (DDD-gated): strongly-typed id adoption on domain entities/events; raw Guid/int/string ids counted versus wrapped types. Deterministic, adoption percentage.

Coverage: Population: id-like members by *Id/*Key NAME suffix; strongly-typed-ID shape then checked semantically — non-suffixed identifiers are not seen.

  • `UserCreatedEvent.UserPublicId` is a raw `Guid` — give it a strongly-typed id: a dedicated single-field type wrapping the `Guid`, in whatever form your language spells that. — UserCreatedEvent.cs:20

What to do

  • Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
DM3 · Integration-event coupling10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether cross-context integration events stay loosely coupled — no producer-owned enums/domain types leaking to consumers. Shared-kernel/contracts types are allowed.

Method: Roslyn (DDD-gated): integration-event properties scanned for producer-domain type/enum leaks versus primitives and shared-kernel types. Deterministic, hard fact.

DM4 · Rich vs anemic model6.5 / 10Strong✓ Tool-verified

Other · Domain Modelling — Whether aggregates/entities carry the behaviour that protects their invariants, rather than being data bags driven by external services.

Method: Roslyn (DDD-gated): entity method BODIES classified mutator-vs-query — only methods that mutate the entity's own declared state count as invariant-protecting behaviour, so a getter/passthrough doesn't rescue an anemic class. Deterministic, exhaustive over domain-layer entities.

Coverage: Population: entities by name/base convention; rich-vs-anemic judged by classifying each method body mutator-vs-query — logic-bearing domain types outside the convention are invisible.

  • `ValuationApproved` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — ValuationApproved.cs:7
  • `ValuationCompleted` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — ValuationCompleted.cs:5
  • `ValuationRequested` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — ValuationRequested.cs:6
  • `Inquiry` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Inquiry.cs:12

What to do

  • Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM5 · Encapsulated state7.5 / 10Strong✓ Tool-verified

Other · Domain Modelling — Whether entities protect their state (private/init-only setters) instead of exposing public setters that bypass invariants. Softened when a rehydration framework (Marten/EF) is present.

Method: Roslyn (DDD-gated): public setters on entities detected; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.

Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.

  • `Proposal` exposes publicly writable state (CancelledBy). — Proposal.cs:5
  • `ValuationApproved` exposes publicly writable state (Id). — ValuationApproved.cs:7
  • `ValuationCompleted` exposes publicly writable state (Id). — ValuationCompleted.cs:5
  • `ValuationNegotiation` exposes publicly writable state (Id). — ValuationNegotiation.cs:9
  • `ValuationRequested` exposes publicly writable state (Id). — ValuationRequested.cs:6

What to do

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

Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies (EF/Marten/HTTP/ASP.NET) — the clean-architecture dependency rule.

Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.

Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.

  • `ApplicationRole` (domain layer) references `Microsoft.AspNetCore.Identity` — an infrastructure concern (persistence/HTTP/web). — ApplicationRole.cs:5
  • `UserAccount` (domain layer) references `Microsoft.AspNetCore.Identity` — an infrastructure concern (persistence/HTTP/web). — UserAccount.cs:10
  • `ApplicationRoleEntityConfiguration` (domain layer) references `Microsoft.EntityFrameworkCore.Metadata.Builders` — an infrastructure concern (persistence/HTTP/web). — ApplicationRoleEntityConfiguration.cs:7
  • `IdentityRoleClaimsEntityConfiguration` (domain layer) references `Microsoft.EntityFrameworkCore.Metadata.Builders` — an infrastructure concern (persistence/HTTP/web). — IdentityRoleClaimsEntityConfiguration.cs:7
  • `IdentityTokenEntityTypeConfiguration` (domain layer) references `Microsoft.EntityFrameworkCore.Metadata.Builders` — an infrastructure concern (persistence/HTTP/web). — IdentityTokenEntityTypeConfiguration.cs:7
  • `RefreshTokenConfiguration` (domain layer) references `Microsoft.EntityFrameworkCore.Metadata.Builders` — an infrastructure concern (persistence/HTTP/web). — RefreshTokenConfiguration.cs:7
  • `UserAccountEntityTypeConfiguration` (domain layer) references `Microsoft.EntityFrameworkCore.Metadata.Builders` — an infrastructure concern (persistence/HTTP/web). — UserAccountEntityTypeConfiguration.cs:7
  • `UserRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — UserRepository.cs:7
  • `GetValuationsQueryHandler` (domain layer) references `Marten` — an infrastructure concern (persistence/HTTP/web). — GetValuationsQueryHandler.cs:7
  • `ValuationInformationAggregation` (domain layer) references `Marten.Events.Aggregation` — an infrastructure concern (persistence/HTTP/web). — ValuationInformationAggregation.cs:10
  • `GetAllValuationsQueryHandler` (domain layer) references `Marten` — an infrastructure concern (persistence/HTTP/web). — GetAllValuationsQueryHandler.cs:6
  • `ValuationListItemAggregation` (domain layer) references `Marten.Events.Aggregation` — an infrastructure concern (persistence/HTTP/web). — ValuationListItemAggregation.cs:10
  • `GetValuationHistoryByIdQueryHandler` (domain layer) references `Marten` — an infrastructure concern (persistence/HTTP/web). — GetValuationHistoryByIdQueryHandler.cs:7
  • `HistoryAggregation` (domain layer) references `Marten.Events.Aggregation` — an infrastructure concern (persistence/HTTP/web). — HistoryAggregation.cs:10
  • `GetValuationProposalsByIdQueryHandler` (domain layer) references `Marten` — an infrastructure concern (persistence/HTTP/web). — GetValuationProposalsByIdQueryHandler.cs:7
  • `ProposalsAggregation` (domain layer) references `Marten.Events.Aggregation` — an infrastructure concern (persistence/HTTP/web). — ProposalsAggregation.cs:9
  • `ProjectionsModule` (domain layer) uses `Marten` inside a method body — infrastructure reached without it appearing in any signature. — ProjectionsModule.cs:11
  • `ValuationsRepository` (domain layer) references `Marten` — an infrastructure concern (persistence/HTTP/web). — ValuationsRepository.cs:6
  • `InquiriesRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — InquiriesRepository.cs:6
  • `InquiryEntityTypeConfiguration` (domain layer) references `Microsoft.EntityFrameworkCore.Metadata.Builders` — an infrastructure concern (persistence/HTTP/web). — InquiryEntityTypeConfiguration.cs:13
  • `PaymentsRepository` (domain layer) uses `Mongo` inside a method body — infrastructure reached without it appearing in any signature. — PaymentsRepository.cs:7
  • `GetPrioritiesQueryHandler` (domain layer) uses `Mongo` inside a method body — infrastructure reached without it appearing in any signature. — GetPrioritiesQueryHandler.cs:10
  • `PrioritiesRepository` (domain layer) uses `Mongo` inside a method body — infrastructure reached without it appearing in any signature. — PrioritiesRepository.cs:7

What to do

  • Invert domain→infrastructure dependencies: declare interfaces in the domain, implement them in infrastructure (Dependency Inversion).
DM8 · Value-object opportunities10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether clusters of primitives that travel together (a missing value object) are extracted — a low-weight suggestion, LLM-confirmed when configured.

Method: Roslyn (DDD-gated): primitive parameter clusters recurring three or more times across signatures extracted, then confirmed by language model when configured. Advisory, low-weight.

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

Other · Event-Driven — Whether event handlers stay asynchronous (no blocking remote HTTP/gRPC calls awaited inside a handler).

Method: Roslyn semantic scan (event-driven gated): event-handler bodies scanned for HTTP/gRPC invocations by resolved symbol type, not substring. Deterministic, semantic-resolved.

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

Other · Event-Driven — Whether commands have a single handler (one owner of the decision) and fan-out is modelled with events.

Method: Roslyn scan (event-driven gated): command-shaped messages identified by convention; handler count per command checked for the exactly-one rule. Deterministic, hard fact.

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

  • `PriorityCloseToDeadlineRemind` 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. — PriorityCloseToDeadlineRemind.cs:5

What to do

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

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

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

  • `RequestValuationEventHandler.Handle` 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). — RequestValuationEventHandler.cs:19
  • `MakeInquiryCommandHandler.Handle` 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). — MakeInquiryCommandHandler.cs:33
  • `InitializePaymentEventHandler.Handle` 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). — InitializePaymentEventHandler.cs:22

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 · Idempotency8.1 / 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.

  • `Request.RequestValuationEventHandler.Handle` mutates persistent state (a repository write) with no idempotency guard, and the model confirms a re-run would double-apply it. A retry or at-least-once redelivery means it can run twice — add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. — RequestValuationEventHandler.cs:19
  • `Pay.PayCommandHandler.Handle` mutates persistent state (an event publish) with no idempotency guard, and the model confirms a re-run would double-apply it. A retry or at-least-once redelivery means it can run twice — add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. — PayCommandHandler.cs:21
  • `Notifications.PaymentCompletedEventHandler.Handle` mutates persistent state (a repository write) with no idempotency guard, and the model confirms a re-run would double-apply it. A retry or at-least-once redelivery means it can run twice — add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. — PaymentCompletedEventHandler.cs:27

What to do

  • Make retry-prone mutations idempotent — guard each write with an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write, so a re-run doesn't double-apply.
ES1 · Fold determinism10.0 / 10Exemplary✓ Tool-verified

Other · Event Sourcing — Whether Apply/When folds reconstruct state purely from the event (no DateTime.Now, Guid.NewGuid, Random or IO) so replay is reproducible.

Method: Roslyn syntax scan (event-sourcing gated): Apply/When folds checked for forbidden tokens (DateTime.Now, Guid.NewGuid, Random, IO), stripped of comments/strings. Deterministic, hard fact per fold.

ES2 · Immutable events4.7 / 10Adequate✓ Tool-verified

Other · Event Sourcing — Whether persisted events are immutable facts (init-only/readonly) — a settable event member lets stored history be rewritten.

Method: Roslyn scan (event-sourcing gated): persisted events checked for public setters; immutability verified per property/field. Deterministic, hard fact.

  • This persisted event exposes settable member(s) (ValuationId, ProposalId, SuggestedBy, Currency, Value) — an event is an immutable historical fact. A public setter lets stored history be rewritten after the fact. Use `{ get; init; }` (records) or readonly fields. — ProposalApproved.cs:5
  • This persisted event exposes settable member(s) (CancelledBy, ProposalId, ValuationId) — an event is an immutable historical fact. A public setter lets stored history be rewritten after the fact. Use `{ get; init; }` (records) or readonly fields. — ProposalCancelled.cs:5
  • This persisted event exposes settable member(s) (ValuationId, ProposalId, Value, Currency) — an event is an immutable historical fact. A public setter lets stored history be rewritten after the fact. Use `{ get; init; }` (records) or readonly fields. — ProposalRejected.cs:5
  • This persisted event exposes settable member(s) (ValuationId, ProposalId, InquiryId, Value, Currency, Description) — an event is an immutable historical fact. A public setter lets stored history be rewritten after the fact. Use `{ get; init; }` (records) or readonly fields. — ProposalSuggested.cs:5
  • This persisted event exposes settable member(s) (InquiryId, ValuationId, AmountToPayValue, AmountToPayCurrency) — an event is an immutable historical fact. A public setter lets stored history be rewritten after the fact. Use `{ get; init; }` (records) or readonly fields. — ValuationCompleted.cs:5
  • This persisted event exposes settable member(s) (InquiryId, ValuationId) — an event is an immutable historical fact. A public setter lets stored history be rewritten after the fact. Use `{ get; init; }` (records) or readonly fields. — ValuationRequested.cs:5
  • This persisted event exposes settable member(s) (ValuationId, PriorityId, DeadlineDate) — an event is an immutable historical fact. A public setter lets stored history be rewritten after the fact. Use `{ get; init; }` (records) or readonly fields. — PriorityDefined.cs:5

What to do

  • Make every event type immutable: records with init-only properties, or classes with readonly fields set only in the constructor.
ES3 · PII in the event store6.6 / 10Strong✓ Tool-verified

Other · Event Sourcing — Whether the append-only event log avoids un-erasable personal data (or has a crypto-shredding strategy) — a GDPR right-to-erasure risk.

Method: Roslyn (event-sourcing gated): high-confidence PII flagged Warning; ambiguous name-like fields adjudicated by language model as person versus fictional. Advisory without model, definitive with.

  • Persisted event carries personal data (Email) — no crypto-shredding strategy covers it, so it collides with the GDPR right-to-erasure. — UserCreatedEvent.cs:6

What to do

  • Adopt crypto-shredding (store PII encrypted with a per-subject key you can throw away) or keep PII out of events and reference it by id so erasure stays possible.
GD1 · Unfinished & placeholder code10.0 / 10Exemplary✓ Tool-verified

Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

  • A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface. — RoleManagementService.cs:28

What to do

  • Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
IC1 · Incompleteness & stubs8.4 / 10Exemplary✓ Tool-verified

Other · Code Health — Unfinished work detected by code SHAPE, not keywords: members that only throw a "not implemented" exception, methods that take inputs and return a constant, async methods that never await, dead `if (false)` / `#if false` branches, and skeleton types most of whose members are holes. A real, objective slice of technical debt.

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

  • `UsePersistanceModule` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — PersistanceModule.cs:27
  • `UseDataAccess` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — DataAccessModule.cs:21
  • A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers). (×2) — CompanyFinderHttpClient.cs:23, CompanyFinderHttpClient.cs:28

What to do

  • Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
  • Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
M1 · Documentation (README)6.7 / 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 build/run (quick start) section to the root README — the first thing a newcomer needs.
  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add a README to the 69 of 69 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation7.0 / 10Strong✓ 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.

What to do

  • Grow the ADR log (currently 4) — reach 8 to raise the maturity tier; document significant decisions as they're made.
M3 · Folder & project structure8.0 / 10Exemplary✓ Tool-verified

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

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

  • Tests aren't grouped in a dedicated test folder — the test surface isn't separable from production code at a glance.

What to do

  • Group tests in the folder your build system expects (tests/, test/, spec/, or your module's test source set) so the test surface is discoverable and CI can scope it.
M4 · Documentation accuracy7.0 / 10Strong◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

  • README omits the Estimation Tool's main API surface (Inquiries, Payments, Valuations)

What to do

  • Reconcile the README with reality: README omits the Estimation Tool's main API surface (Inquiries, Payments, Valuations).
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.

P11 · BDD / executable specs10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether behaviour is captured as executable Gherkin specifications (a plus for shared understanding) — only assessed when a BDD framework is present.

Method: Filesystem scan: BDD framework presence (SpecFlow, Gherkin files) when a project references a BDD tool. Exhaustive, deterministic.

P2 · Observability5.1 / 10Adequate✓ 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 2/54 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 54, 2 ship a process this repository operates; the rest are libraries their consumer hosts, where the logging decision belongs to the host.

What to do

  • Extend structured logging across the projects you operate, and give the library ones a diagnostics seam instead — an `EventSource`/`ActivitySource` the host can subscribe to, or an optional logger on your options object — rather than taking a logging dependency on your consumers' behalf.
  • Add OpenTelemetry tracing/metrics (ActivitySource / AddMetrics) so requests are traceable across the system, not just health-probable.
P3 · Security & performance tooling4.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

What to do

  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

  • Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced — a bad release is harder to detect and reverse.

What to do

  • Add readiness/liveness probes and a rolling-update (or blue/green) strategy so a bad release is caught and rolled back automatically.
  • Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup0.0 / 10Critical✓ Tool-verified

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

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

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

What to do

  • Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

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.

  • The app makes outbound HTTP calls but no resilience handler was detected (Polly / AddStandardResilienceHandler / circuit-breaker). A slow or failing dependency will cascade — add timeouts, retries with back-off, and a circuit breaker.

What to do

  • Add `AddStandardResilienceHandler()` (or Polly policies) to your HttpClient registrations so a flaky dependency can't take the app down.
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.

S1 · Web-Security Posture8.0 / 10Strong✓ Tool-verified

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

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

  • No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)

What to do

  • Add security response headers (Content-Security-Policy, X-Frame-Options, X-Content-Type-Options) — defense in depth, even when a reverse proxy could set them.
X1 · Async correctness7.0 / 10Strong✓ Tool-verified

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

  • Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process. (×5) — UsersSeeder.cs:41, AsyncUtil.cs:21, AsyncUtil.cs:39, …

What to do

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

Other · Code Health — Whether async methods accept a CancellationToken so work can be cancelled (adoption curve).

Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage.

  • Only 106/149 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
  • No CancellationToken parameter — this work can't be stopped early once started. (×25) — EmailSender.cs:29, ProposalSuggestedEventHandler.cs:37, AttributesController.cs:18, …

What to do

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

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

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

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. Deterministic.

X5 · Nullable reference types9.5 / 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.6 `!` suppressions per 1k syntax nodes — 46 suppression(s) across the 72315 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 Health80%StrongSolid.
Architecture59%Adequate — gated by AX8Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity64%Adequate — gated by D34Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness29%Weak — gated by D8, D12, P5, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security63%Adequate — gated by D28, D29Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling72%StrongSolid.
Event-Driven84%ExemplaryStrongest area.
Event Sourcing66%StrongSolid.
Not included — 33 check(s) not relevant to this codebase

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

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • 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 — dormant codebase — no living knowledge left to concentrate
  • D19 Documentation Quality — LLM evaluation failed
  • D22 Internal API Consistency — No exposed public API
  • D30 Dependency Vulnerabilities — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution
  • D32 Data Compliance (PII/GDPR) — Data compliance (PII/GDPR) was not assessed in this scan — no ruleset is currently available for it. This says nothing about how this repository handles personal data, in either direction.
  • D33 JS/npm Dependency Vulnerabilities — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
  • D36 Supply-chain Provenance & Signing — The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release).
  • 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.
  • DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
  • 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'.
  • P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
  • P9 Domain vs controller coverage — coverage data present but no domain-layer files were identified (no /Domain//Aggregates/ paths)
  • PF1 Benchmark discipline — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF2 Allocation hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF3 Async & latency hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • 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 — 41 finding(s)
D29 · Static Analysis (SAST) · High · ×19
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:17 — 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@v2`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v2 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:22 — 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@v2`; resolve the SHA it points at today with `gh api repos/actions/setup-dotnet/commits/v2 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:40 — 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@v2`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v2 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:45 — 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: zyborg/dotnet-tests-report@<40-character SHA>`. This step references `zyborg/dotnet-tests-report@v1`; resolve the SHA it points at today with `gh api repos/zyborg/dotnet-tests-report/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:55 — 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: zyborg/dotnet-tests-report@<40-character SHA>`. This step references `zyborg/dotnet-tests-report@v1`; resolve the SHA it points at today with `gh api repos/zyborg/dotnet-tests-report/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:65 — 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: zyborg/dotnet-tests-report@<40-character SHA>`. This step references `zyborg/dotnet-tests-report@v1`; resolve the SHA it points at today with `gh api repos/zyborg/dotnet-tests-report/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:75 — 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: zyborg/dotnet-tests-report@<40-character SHA>`. This step references `zyborg/dotnet-tests-report@v1`; resolve the SHA it points at today with `gh api repos/zyborg/dotnet-tests-report/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:85 — 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: zyborg/dotnet-tests-report@<40-character SHA>`. This step references `zyborg/dotnet-tests-report@v1`; resolve the SHA it points at today with `gh api repos/zyborg/dotnet-tests-report/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:95 — 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: zyborg/dotnet-tests-report@<40-character SHA>`. This step references `zyborg/dotnet-tests-report@v1`; resolve the SHA it points at today with `gh api repos/zyborg/dotnet-tests-report/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:113 — 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@v2`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v2 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:116 — 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@v1`; resolve the SHA it points at today with `gh api repos/actions/setup-dotnet/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:132 — 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/download-artifact@<40-character SHA>`. This step references `actions/download-artifact@v3.0.2`; resolve the SHA it points at today with `gh api repos/actions/download-artifact/commits/v3.0.2 --jq .sha`. Note that `v3.0.2` is an exact release tag rather than a floating major: it is still mutable (a tag can be repointed), but by convention it moves only on a force-push, so pin the floating-major and branch references in this file first.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:140 — 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@v2`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v2 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:147 — 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: snyk/actions/dotnet@<40-character SHA>`. This step references `snyk/actions/dotnet@master`; resolve the SHA it points at today with `gh api repos/snyk/actions/commits/master --jq .sha`. `snyk/actions/dotnet` is hosted INSIDE the `snyk/actions` repository (a subdirectory action or a reusable workflow), so the SHA to pin is that repository's commit — keep the full `snyk/actions/dotnet` path in `uses:` and query only `snyk/actions`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:159 — 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@v2`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v2 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:160 — 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: pulumi/actions@<40-character SHA>`. This step references `pulumi/actions@v3`; resolve the SHA it points at today with `gh api repos/pulumi/actions/commits/v3 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:179 — 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@v2`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v2 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:189 — 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: holowinski/plantuml-github-action@<40-character SHA>`. This step references `holowinski/plantuml-github-action@main`; resolve the SHA it points at today with `gh api repos/holowinski/plantuml-github-action/commits/main --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:195 — 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: stefanzweifel/git-auto-commit-action@<40-character SHA>`. This step references `stefanzweifel/git-auto-commit-action@v4.1.2`; resolve the SHA it points at today with `gh api repos/stefanzweifel/git-auto-commit-action/commits/v4.1.2 --jq .sha`. Note that `v4.1.2` is an exact release tag rather than a floating major: it is still mutable (a tag can be repointed), but by convention it moves only on a force-push, so pin the floating-major and branch references in this file first.
D12 · Dependency Hygiene · Vulnerable · ×6
  • Vulnerable: IdentityServer4 — IdentityServer4 4.1.2 — Moderate severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: MailKit — MailKit 3.4.3 — Moderate severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: MimeKit — MimeKit 3.4.3 — High severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: Marten — Marten 5.11.0 — Critical severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: Microsoft.Data.SqlClient — Microsoft.Data.SqlClient 5.1.0-preview2.22314.2 — High severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: Azure.Identity — Azure.Identity 1.9.0-beta.1 — Moderate severity. https://github.com/advisories/[GHSA redacted]
D17 · Explicit Debt · NoWarnInCsproj · ×5
  • NoWarnInCsproj Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Divstack.Company.Estimation.Tool.Valuations.Domain.csproj:4 — CS8618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Divstack.Company.Estimation.Tool.Valuations.Domain.csproj:12 — 1591 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Directory.Build.props:10 — 1591 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Directory.Build.props:10 — 1701 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Directory.Build.props:10 — 1702 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
D28 · Secrets (history) · Secret · ×5
  • Secret: generic-api-key Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure/Events/IntegrationEventPublisher.cs:28 — matched rule 'generic-api-key'
  • Secret: generic-api-key Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Api/valuations-appsettings.json:12 — matched rule 'generic-api-key'
  • Secret: generic-api-key Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Api/valuations-appsettings.json:13 — matched rule 'generic-api-key'
  • Secret: generic-api-key Divstack.Company.Estimation.Tool.Bootstrapper/appsettings.json:40 — matched rule 'generic-api-key'
  • Secret: generic-api-key Divstack.Company.Estimation.Tool.Bootstrapper/appsettings.json:41 — matched rule 'generic-api-key'
D5 · Coupling · Layer violation · ×4
  • Layer violation: Application → Infrastructure — Divstack.Company.Estimation.Tool.Priorities.Application (Application) references Divstack.Company.Estimation.Tool.Shared.Infrastructure (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Domain → Infrastructure — Divstack.Company.Estimation.Tool.Sms.Core (Domain) references Divstack.Company.Estimation.Tool.Shared.Infrastructure (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Infrastructure — Divstack.Company.Estimation.Tool.Users.Application (Application) references Divstack.Company.Estimation.Tool.Shared.Infrastructure (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Application → Infrastructure — Divstack.Company.Estimation.Tool.Valuations.Application (Application) references Divstack.Company.Estimation.Tool.Shared.Infrastructure (Infrastructure) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
D13 · Secret Scanning · Leaked secret · ×1
  • Leaked secret: signing-key Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/users-appsettings.json:3 — signing-key detected. Treat the value as compromised: it is readable by everyone who has ever had the repository, and deleting the line does not un-publish it. In order — (1) REVOKE it at whatever issued it and issue a replacement, which is the only step that actually closes the exposure; (2) load the replacement at run time from your platform's secret store or the process environment instead of from the tree, so no future value is committable; (3) remove the file or line and add its path to the repository's ignore rules, so it cannot come back; (4) if the value was ever live, purge it from the history as well, since a clone taken before the deletion still carries it. If this is instead a FIXTURE — key material generated for tests and valid nowhere — then the exposure is nil and the fix is to make that legible: generate it in test setup, or keep it under a test-data path, so a reader (and this scan) can tell it from the real thing.
D31 · IaC & Container Security · High IaC · ×1
  • High IaC: DS-0002 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.
Warning — 89 finding(s)
D17 · Explicit Debt · Dead code · ×36
  • Dead code: ProposalApprovedEventHandler Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Approved/ProposalApprovedEventHandler.cs:9 — NamedType ProposalApprovedEventHandler — no references found in solution.
  • Dead code: CategoryPersistanceConfiguration Src/Modules/Services/Divstack.Company.Estimation.Tool.Services.Core/Services/Categories/Configurations/PaymentPersistanceConfiguration.cs:6 — NamedType CategoryPersistanceConfiguration — no references found in solution.
  • Dead code: Customer Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Customers/Customer.cs:5 — NamedType Customer — no references found in solution.
  • Dead code: Employee Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Employees/Employee.cs:5 — NamedType Employee — no references found in solution.
  • Dead code: GetChangedBy Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Users/Services/ApplicationUserManager.cs:97 — Method GetChangedBy — no references found in solution.
  • Dead code: UsersContextFactory Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Persistance/DataAccess/UsersContextFactory.cs:5 — NamedType UsersContextFactory — no references found in solution.
  • Dead code: Cancel Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/Proposals/Proposal.cs:64 — Method Cancel — no references found in solution.
  • Dead code: When Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/States/ValuationApproved.cs:52 — Method When — no references found in solution.
  • Dead code: When Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/States/ValuationCompleted.cs:40 — Method When — no references found in solution.
  • Dead code: When Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/States/ValuationNegotiation.cs:128 — Method When — no references found in solution.
  • Dead code: When Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain/Valuations/States/ValuationRequested.cs:48 — Method When — no references found in solution.
  • Dead code: WithPrice Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain.Tests/Valuations/Common/Builders/Proposals/ValuationSuggestedBuilder.cs:31 — Method WithPrice — no references found in solution.
  • Dead code: WithDescription Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain.Tests/Valuations/Common/Builders/Proposals/ValuationSuggestedBuilder.cs:45 — Method WithDescription — no references found in solution.
  • Dead code: IsLocal Src/Shared/Divstack.Company.Estimation.Tool.Shared.Infrastructure/Api/Environments/EnvironmentExtensions.cs:11 — Method IsLocal — no references found in solution.
  • Dead code: UseMongoAsStorage Src/Shared/Divstack.Company.Estimation.Tool.Shared.Infrastructure/BackgroundProcessing/Storage/BackgroundJobsStorageExtensions.cs:25 — Method UseMongoAsStorage — no references found in solution.
  • Dead code: PriorityCloseToDeadlineScheduler Src/Modules/Reminders/Divstack.Company.Estimation.Tool.Reminders.Priorities/DeadlineClose/Scheduler/PriorityCloseToDeadlineScheduler.cs:9 — NamedType PriorityCloseToDeadlineScheduler — no references found in solution.
  • Dead code: PriorityCloseToDeadlineUnScheduler Src/Modules/Reminders/Divstack.Company.Estimation.Tool.Reminders.Priorities/DeadlineClose/Scheduler/PriorityCloseToDeadlineUnScheduler.cs:9 — NamedType PriorityCloseToDeadlineUnScheduler — no references found in solution.
  • Dead code: FindProfileRequest Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/Requests/FindProfileRequest.cs:3 — NamedType FindProfileRequest — no references found in solution.
  • Dead code: InquiriesController Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Api/Controllers/InquiriesController.cs:12 — NamedType InquiriesController — no references found in solution.
  • Dead code: Formatting Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Common/Constants/Formatting.cs:3 — NamedType Formatting — no references found in solution.
  • Dead code: InquiriesContextFactory Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Persistance/DataAccess/InquiriesContextFactory.cs:5 — NamedType InquiriesContextFactory — no references found in solution.
  • Dead code: InitializePaymentEventHandler Src/Modules/Payments/Divstack.Company.Estimation.Tool.Payments.Application/Payments/Commands/Initalize/InitializePaymentEventHandler.cs:8 — NamedType InitializePaymentEventHandler — no references found in solution.
  • Dead code: PaymentCompletedEventHandler Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentCompleted/PaymentCompletedEventHandler.cs:10 — NamedType PaymentCompletedEventHandler — no references found in solution.
  • Dead code: ProposalApprovedEventHandler Src/Modules/Push/Divstack.Company.Estimation.Tool.Push.Valuations/Notifications/ProposalApprovedEventHandler.cs:10 — NamedType ProposalApprovedEventHandler — no references found in solution.
  • Dead code: ValuationRequestEventHandler Src/Modules/Push/Divstack.Company.Estimation.Tool.Push.Valuations/Notifications/ValuationRequestEventHandler.cs:12 — NamedType ValuationRequestEventHandler — no references found in solution.
  • + 11 more in this group — see findings.md.
D12 · Dependency Hygiene · Deprecated · ×16
  • Deprecated: Microsoft.AspNetCore.Mvc — Microsoft.AspNetCore.Mvc 2.2.0 — Other,Legacy
  • Deprecated: IdentityServer4 — IdentityServer4 4.1.2 — Legacy,CriticalBugs — the publisher's replacement is `Duende.IdentityServer`; migrate the reference to it.
  • Deprecated: IdentityServer4.AccessTokenValidation — IdentityServer4.AccessTokenValidation 3.0.1 — Legacy — the publisher's replacement is `Duende.AccessTokenManagement`; migrate the reference to it.
  • Deprecated: Microsoft.AspNetCore.Http.Abstractions — Microsoft.AspNetCore.Http.Abstractions 2.2.0 — Other,Legacy
  • Deprecated: Microsoft.AspNetCore.Mvc.Core — Microsoft.AspNetCore.Mvc.Core 2.2.5 — Other,Legacy
  • Deprecated: Microsoft.AspNetCore.Mvc.Abstractions — Microsoft.AspNetCore.Mvc.Abstractions 2.2.0 — Other,Legacy
  • Deprecated: Microsoft.Data.SqlClient — Microsoft.Data.SqlClient 5.1.0-preview2.22314.2 — CriticalBugs
  • Deprecated: Microsoft.AspNetCore.SignalR.Core — Microsoft.AspNetCore.SignalR.Core 1.1.0 — Other,Legacy
  • Deprecated: Microsoft.AspNetCore — Microsoft.AspNetCore 2.2.0 — Other,Legacy
  • Deprecated: Twilio.AspNet.Core — Twilio.AspNet.Core 7.0.0 — Other,CriticalBugs — the publisher's replacement is `Twilio.AspNet.Core` >= 8.0.0; migrate the reference to it.
  • Deprecated: FluentValidation.AspNetCore — FluentValidation.AspNetCore 11.2.2 — Legacy
  • Deprecated: Azure.Identity — Azure.Identity 1.9.0-beta.1 — Other
  • Deprecated: Microsoft.ApplicationInsights — Microsoft.ApplicationInsights 2.22.0-beta1 — Other
  • Deprecated: Microsoft.ApplicationInsights.AspNetCore — Microsoft.ApplicationInsights.AspNetCore 2.22.0-beta1 — Other
  • Deprecated: Microsoft.Azure.Services.AppAuthentication — Microsoft.Azure.Services.AppAuthentication 1.6.2 — Legacy — the publisher's replacement is `Azure.Identity`; migrate the reference to it.
  • Deprecated: SpecFlow.NUnit — SpecFlow.NUnit 4.0.16-beta — Legacy
D12 · Dependency Hygiene · Prerelease dependency · ×13
  • Prerelease dependency: Pomelo.EntityFrameworkCore.MySql — Pomelo.EntityFrameworkCore.MySql resolves to 7.0.0-silver.1, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: Hangfire — Hangfire resolves to 1.8.0-rc2, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: MassTransit — MassTransit resolves to 8.0.10-develop.696, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: MassTransit.Azure.ServiceBus.Core — MassTransit.Azure.ServiceBus.Core resolves to 8.0.10-develop.696, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: Microsoft.Data.SqlClient — Microsoft.Data.SqlClient resolves to 5.1.0-preview2.22314.2, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: Hangfire.Core — Hangfire.Core resolves to 1.8.0-rc2, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: Stripe.net — Stripe.net resolves to 41.3.0-beta.2, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: Azure.Identity — Azure.Identity resolves to 1.9.0-beta.1, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: Microsoft.ApplicationInsights — Microsoft.ApplicationInsights resolves to 2.22.0-beta1, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: Microsoft.ApplicationInsights.AspNetCore — Microsoft.ApplicationInsights.AspNetCore resolves to 2.22.0-beta1, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: Microsoft.FeatureManagement — Microsoft.FeatureManagement resolves to 3.0.0-preview, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: SpecFlow.NUnit — SpecFlow.NUnit resolves to 4.0.16-beta, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
  • Prerelease dependency: Azure.Security.KeyVault.Secrets — Azure.Security.KeyVault.Secrets resolves to 4.5.0-beta.1, a prerelease build. Prerelease packages carry no support policy, may change breaking between previews and can be unlisted — pin a stable release before shipping, or record the reason this preview is required.
D5 · Coupling · Off the main sequence · ×9
  • Off the main sequence: Divstack.Company.Estimation.Tool.Shared.Infrastructure.Azure — Divstack.Company.Estimation.Tool.Shared.Infrastructure.Azure: 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: Divstack.Company.Estimation.Tool.Shared.DDD.ValueObjects — Divstack.Company.Estimation.Tool.Shared.DDD.ValueObjects: abstractness 0.00, instability 0.02, distance 0.98 — 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: Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents — Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents: abstractness 0.00, instability 0.03, distance 0.97 — zone of pain — concrete and depended on by 36 project(s), so it's rigid to change.
  • Off the main sequence: Divstack.Company.Estimation.Tool.Shared.Persistance — Divstack.Company.Estimation.Tool.Shared.Persistance: abstractness 0.00, instability 0.05, 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: Divstack.Company.Estimation.Tool.Payments.IntegrationsEvents — Divstack.Company.Estimation.Tool.Payments.IntegrationsEvents: abstractness 0.00, instability 0.10, distance 0.90 — zone of pain — concrete and depended on by 9 project(s), so it's rigid to change.
  • Off the main sequence: Divstack.Company.Estimation.Tool.Services.Core — Divstack.Company.Estimation.Tool.Services.Core: abstractness 0.19, instability 0.00, distance 0.81 — zone of pain — concrete and depended on by 44 project(s), so it's rigid to change.
  • Off the main sequence: Divstack.Company.Estimation.Tool.Valuations.Domain — Divstack.Company.Estimation.Tool.Valuations.Domain: abstractness 0.12, instability 0.07, distance 0.81 — zone of pain — concrete and depended on by 40 project(s), so it's rigid to change.
  • Off the main sequence: Divstack.Company.Estimation.Tool.Inquiries.Domain — Divstack.Company.Estimation.Tool.Inquiries.Domain: abstractness 0.13, instability 0.12, distance 0.75 — zone of pain — concrete and depended on by 23 project(s), so it's rigid to change.
  • Off the main sequence: Divstack.Company.Estimation.Tool.Users.Domain — Divstack.Company.Estimation.Tool.Users.Domain: abstractness 0.27, instability 0.00, distance 0.73 — zone of pain — concrete and depended on by 12 project(s), so it's rigid to change.
D17 · Explicit Debt · CommentedOutCode · ×3
  • CommentedOutCode Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/Controllers/AuthenticationController.cs:95 — 3 consecutive commented-code lines
  • CommentedOutCode Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/CompanyFinderHttpClient.cs:10 — 4 consecutive commented-code lines
  • CommentedOutCode Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/CompanyFinderHttpClient.cs:40 — 8 consecutive commented-code lines
D17 · Explicit Debt · TodoComment · ×3
  • TodoComment Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Users/Services/RoleManagementService.cs:28 — // todo — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/CompanyFinderHttpClient.cs:22 — //TODO implement real snov.io integration and remove mock — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/CompanyFinderHttpClient.cs:39 — //TODO implement real snov.io integration and remove mock — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
D29 · Static Analysis (SAST) · Medium · ×2
  • Medium: jwt-tokenvalidationparameters-no-expiry-validation Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Jwt/JwtTokenAuthorizationModule.cs:50 — The TokenValidationParameters.ValidateLifetime is set to false, this means the JWT tokens lifetime is not validated. This can lead to an JWT token being used after it has expired, which has security implications. It is recommended to validate the JWT lifetime to ensure only valid tokens are used. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: jwt-tokenvalidationparameters-no-expiry-validation Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Jwt/RefreshTokens/JwtTokenManagementService.cs:43 — The TokenValidationParameters.ValidateLifetime is set to false, this means the JWT tokens lifetime is not validated. This can lead to an JWT token being used after it has expired, which has security implications. It is recommended to validate the JWT lifetime to ensure only valid tokens are used. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
D16 · Bus Factor · dormant codebase · ×1
  • dormant codebase — no living knowledge left to concentrate — All 25 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains — nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness).
D17 · Explicit Debt · BarePragmaDisable repeated across 21 files · ×1
  • BarePragmaDisable repeated across 21 files Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Commands/Make/MakeInquiryCommand.cs:1 — The identical BarePragmaDisable (`#pragma warning disable CS8618`) appears in 21 files (21 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 21 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
D19 · Documentation Quality · LLM evaluation failed · ×1
  • LLM evaluation failed — JSON parse error: Expected end of string, but instead reached end of data. Path: $.findings[0].suggestion | LineNumber: 0 | BytePositionInLine: 1255.
D20 · ADR Quality · Context and consequences are both citations to an external source (Michael Nygard + adr-tools), with no context/problem statement or explicit decision body · ×1
  • Context and consequences are both citations to an external source (Michael Nygard + adr-tools), with no context/problem statement or explicit decision body Documentation/Architecture/Decisions/0001-record-architecture-decisions.md — Replace the placeholder Context with a real problem/decision being recorded (e.g. "We need to document trade-offs between microservices and shared data") and flesh out Consequences with actual trade-offs
D23 · Boundary Type-Coupling · Cross-context type InquiryMadeEvent (Inquiries → Valuations) · ×1
  • Cross-context type InquiryMadeEvent (Inquiries → Valuations) — InquiryMadeEvent (context Inquiries) is exposed in Valuations's public surface via RequestValuationEventHandler.Handle — couples the contexts.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×1
  • Duplicated block (9 lines × 2) Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Persistance/Migrations/Init_users_module.cs:104 — Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Persistance/Migrations/Init_users_module.cs:104-112 | Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Persistance/Migrations/Init_users_module.cs:129-137 — these copies are in TOOL-SCAFFOLDED MIGRATIONS, so no extraction is available here: the migration tool regenerates these files verbatim from the model, and a migration that has already been applied must not be edited at all — its recorded history row would stop describing it. Treat the repetition as generated output rather than duplication to remove; if the SHAPE itself is what repeats, factor it in the MODEL (a shared base entity or configuration) so future migrations are scaffolded from one definition.
D6 · Cohesion (LCOM4) · Low cohesion · ×1
  • Low cohesion: UserAccount (LCOM4 6) Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Users/UserAccount.cs:10 — UserAccount's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Recommendation — 8 finding(s)
D18 · Solution Shape · Shell project · ×2
  • Shell project: Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents/Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents.csproj — `Divstack.Company.Estimation.Tool.Inquiries.IntegrationsEvents` contributes only 5 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: Divstack.Company.Estimation.Tool.Priorities.IntegrationsEvents Src/Modules/Priorities/Divstack.Company.Estimation.Tool.Priorities.IntegrationsEvents/Divstack.Company.Estimation.Tool.Priorities.IntegrationsEvents.csproj — `Divstack.Company.Estimation.Tool.Priorities.IntegrationsEvents` contributes only 3 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
D18 · Solution Shape · Thin analysable surface across projects · ×1
  • Thin analysable surface across projects — 9 project(s) carry only a thin slice of real code (e.g. `Divstack.Company.Estimation.Tool.Payments.IntegrationsEvents` with 13 significant line(s)). The mean analysable-surface weight is 90 %, lowering Solution Shape by about 0.76 point(s). Consolidate thin projects or grow them into substantial, well-scoped assemblies.
D21 · Naming Consistency · Inconsistent spelling of 'Persistence' in namespace/type names. Some modules use 'Persistance' (missing 'e'), while others use 'Persistence' or 'Persistance' inconsistently. · ×1
  • Inconsistent spelling of 'Persistence' in namespace/type names. Some modules use 'Persistance' (missing 'e'), while others use 'Persistence' or 'Persistance' inconsistently. — Standardize to 'Persistence' (correct English spelling) across all modules and namespaces. (symbols: Divstack.Company.Estimation.Tool.Valuations.Persistance.DataAccess.DataAccessModule, Divstack.Company.Estimation.Tool.Inquiries.Persistance.Repositories.RepositoriesModule, Divstack.Company.Estimation.Tool.Valuations.Persistance.DataAccess)
D24 · Comment Value · redundant comment · ×1
  • redundant comment Deployment/Infrastructure/GlobalUsings.cs:1 — "Global using directives" — ignore - boilerplate file-level comment restating the global usings
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.)
D31 · IaC & Container Security · Low IaC · ×1
  • Low IaC: DS-0026 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 80`, so a request to `localhost:80` on the service's own health or root route, exiting non-zero when it does not answer, is the probe — and give it an `--interval`, a `--timeout` and a `--start-period` long enough to cover startup. If the image ships no HTTP client, probe with whatever the runtime already has, or declare the check in the orchestrator instead and say so here.
D34 · Knowledge Freshness · Dormant codebase · ×1
  • Dormant codebase — 26 of 26 significant files have no living knowledge — the codebase as a whole is dormant, not 26 separate risks. Re-engage owners or document before change.
Info — 105 finding(s)
D12 · Dependency Hygiene · Outdated · ×96
  • Outdated: Microsoft.Extensions.DependencyInjection.Abstractions — Microsoft.Extensions.DependencyInjection.Abstractions 7.0.0 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Emails).
  • Outdated: Microsoft.Extensions.Configuration.Abstractions — Microsoft.Extensions.Configuration.Abstractions 7.0.0 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Emails.Core).
  • Outdated: SendGrid — SendGrid 9.28.1 → 9.29.3 available (referenced by Divstack.Company.Estimation.Tool.Emails.Core).
  • Outdated: Ardalis.GuardClauses — Ardalis.GuardClauses 4.0.1 → 5.0.0 available (referenced by Divstack.Company.Estimation.Tool.Emails.Users).
  • Outdated: MediatR — MediatR 11.1.0 → 14.2.0 available (referenced by Divstack.Company.Estimation.Tool.Emails.Users).
  • Outdated: MediatR.Extensions.Microsoft.DependencyInjection — MediatR.Extensions.Microsoft.DependencyInjection 11.0.0 → 11.1.0 available (referenced by Divstack.Company.Estimation.Tool.Emails.Users).
  • Outdated: Microsoft.Extensions.Configuration.Binder — Microsoft.Extensions.Configuration.Binder 7.0.1 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Emails.Users).
  • Outdated: Microsoft.AspNetCore.Authentication.JwtBearer — Microsoft.AspNetCore.Authentication.JwtBearer 7.0.1 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Services.Api).
  • Outdated: Microsoft.AspNetCore.Mvc — Microsoft.AspNetCore.Mvc 2.2.0 → 2.3.11 available (referenced by Divstack.Company.Estimation.Tool.Services.Api).
  • Outdated: Newtonsoft.Json — Newtonsoft.Json 13.0.2 → 13.0.4 available (referenced by Divstack.Company.Estimation.Tool.Services.Api).
  • Outdated: MongoDB.Bson — MongoDB.Bson 2.18.0 → 3.10.0 available (referenced by Divstack.Company.Estimation.Tool.Services.Core).
  • Outdated: Scrutor — Scrutor 4.2.0 → 7.0.0 available (referenced by Divstack.Company.Estimation.Tool.Services.Core).
  • Outdated: AspNetCore.HealthChecks.MongoDb — AspNetCore.HealthChecks.MongoDb 6.0.2 → 9.0.0 available (referenced by Divstack.Company.Estimation.Tool.Services.DataAccess).
  • Outdated: Microsoft.Extensions.Configuration — Microsoft.Extensions.Configuration 7.0.0 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Services.DataAccess).
  • Outdated: Microsoft.Extensions.Configuration.EnvironmentVariables — Microsoft.Extensions.Configuration.EnvironmentVariables 7.0.0 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Services.DataAccess).
  • Outdated: Microsoft.Extensions.Configuration.FileExtensions — Microsoft.Extensions.Configuration.FileExtensions 7.0.0 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Services.DataAccess).
  • Outdated: Microsoft.Extensions.Configuration.Json — Microsoft.Extensions.Configuration.Json 7.0.0 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Services.DataAccess).
  • Outdated: Microsoft.Extensions.Diagnostics.HealthChecks — Microsoft.Extensions.Diagnostics.HealthChecks 7.0.1 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Services.DataAccess).
  • Outdated: Microsoft.Extensions.Hosting.Abstractions — Microsoft.Extensions.Hosting.Abstractions 7.0.0 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Services.DataAccess).
  • Outdated: MongoDB.Driver — MongoDB.Driver 2.19.0 → 3.10.0 available (referenced by Divstack.Company.Estimation.Tool.Services.DataAccess).
  • Outdated: Swashbuckle.AspNetCore — Swashbuckle.AspNetCore 6.4.0 → 10.2.3 available (referenced by Divstack.Company.Estimation.Tool.Users.Api).
  • Outdated: Dapper — Dapper 2.0.123 → 2.1.79 available (referenced by Divstack.Company.Estimation.Tool.Users.Application).
  • Outdated: FluentValidation — FluentValidation 11.4.0 → 12.1.1 available (referenced by Divstack.Company.Estimation.Tool.Users.Application).
  • Outdated: FluentValidation.DependencyInjectionExtensions — FluentValidation.DependencyInjectionExtensions 11.4.0 → 12.1.1 available (referenced by Divstack.Company.Estimation.Tool.Users.Application).
  • Outdated: Microsoft.AspNetCore.Identity.EntityFrameworkCore — Microsoft.AspNetCore.Identity.EntityFrameworkCore 7.0.1 → 10.0.10 available (referenced by Divstack.Company.Estimation.Tool.Users.Domain).
  • + 71 more in this group — see findings.md.
D10 · Test Quality · Mock framework · ×4
  • Mock framework: Moq — Divstack.Company.Estimation.Tool.Valuations.Application.AcceptanceTests references Moq.
  • Mock framework: Moq — Divstack.Company.Estimation.Tool.Valuations.ArchTests references Moq.
  • Mock framework: Moq — Divstack.Company.Estimation.Tool.Shared.Testing references Moq.
  • Mock framework: NSubstitute — Divstack.Company.Estimation.Tool.Shared.Testing references NSubstitute.
D22 · Internal API Consistency · No exposed public API · ×1
  • No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.
D23 · Boundary Type-Coupling · Inquiries · ×1
  • Inquiries: 2 contract type(s) expose producer-owned ids/enums — In Inquiries, 2 contract type(s) (InquiryDetailsDto, InquiryMadeDomainEvent) expose strong-typed ids/value objects (InquiriesServiceItemDto, InquiryId); a serialized contract could expose the underlying primitive instead. Advisory — a deliberate strong-ID style is fine.
D23 · Boundary Type-Coupling · Payments · ×1
  • Payments: 2 contract type(s) expose producer-owned ids/enums — In Payments, 2 contract type(s) (PaymentCompletedDomainEvent, PaymentInitializedDomainEvent) expose strong-typed ids/value objects (InquiryId, PaymentId, ValuationId); a serialized contract could expose the underlying primitive instead. Advisory — a deliberate strong-ID style is fine.
D23 · Boundary Type-Coupling · Priorities · ×1
  • Priorities: 4 contract type(s) expose producer-owned ids/enums — In Priorities, 4 contract type(s) (PriorityArchivedDomainEvent, PriorityDefinedDomainEvent, PriorityForcedDomainEvent, PriorityIncreasedDomainEvent) expose strong-typed ids/value objects (PriorityId, ValuationId); a serialized contract could expose the underlying primitive instead. Advisory — a deliberate strong-ID style is fine.
D23 · Boundary Type-Coupling · Valuations · ×1
  • Valuations: 6 contract type(s) expose producer-owned ids/enums — In Valuations, 6 contract type(s) (ProposalApprovedDomainEvent, ProposalCancelledDomainEvent, ProposalRejectedDomainEvent, ProposalSuggestedDomainEvent, ValuationCompletedDomainEvent, ValuationRequestedDomainEvent) expose strong-typed ids/value objects (EmployeeId, InquiryId, ProposalDescription, ProposalId, ValuationId); a serialized contract could expose the underlying primitive instead. Advisory — a deliberate strong-ID style is fine.

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 .8artifacts/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 .21artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesdotnetdotnet: not applicable — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution0
D31 · IaC & Container Securitytrivytrivy config --format json --quiet .2artifacts/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 019fc7fe-f496-7cc3-b74e-b3b78cf19164 · 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 — 81 field(s) across 4 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.

Name — 43 field(s)
  • PaymentCompletedEmailRequest.FirstName Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentCompleted/Sender/PaymentCompletedEmailRequest.cs:4
  • PaymentCompletedEmailRequest.LastName Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentCompleted/Sender/PaymentCompletedEmailRequest.cs:5
  • PaymentCompletedEmailRequest.ClientFullName Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentCompleted/Sender/PaymentCompletedEmailRequest.cs:9
  • PaymentInitializedEmailRequest.FirstName Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentInitialized/Sender/PaymentInitializedEmailRequest.cs:4
  • PaymentInitializedEmailRequest.LastName Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentInitialized/Sender/PaymentInitializedEmailRequest.cs:5
  • PaymentInitializedEmailRequest.ClientFullName Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentInitialized/Sender/PaymentInitializedEmailRequest.cs:12
  • PaymentInitializedSender.ClientFullNamePlaceholder Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentInitialized/Sender/PaymentInitializedSender.cs:14
  • ValuationProposalSuggestedEmailRequest.FullName Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Suggested/Sender/ValuationProposalSuggestedEmailRequest.cs:7
  • ValuationProposalSuggestedMailSender.FullNamePlaceholder Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Suggested/Sender/ValuationProposalSuggestedMailSender.cs:16
  • MakeInquiryCommand.FirstName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Commands/Make/MakeInquiryCommand.cs:9
  • MakeInquiryCommand.LastName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Commands/Make/MakeInquiryCommand.cs:10
  • InquiryInformationDto.FirstName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/Get/Dtos/InquiryInformationDto.cs:17
  • InquiryInformationDto.LastName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/Get/Dtos/InquiryInformationDto.cs:18
  • InquiryInformationDto.FullName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/Get/Dtos/InquiryInformationDto.cs:21
  • InquiryListItemDto.FirstName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/GetAll/InquiryListItemDto.cs:15
  • InquiryListItemDto.LastName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/GetAll/InquiryListItemDto.cs:16
  • InquiryListItemDto.FullName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/GetAll/InquiryListItemDto.cs:17
  • InquiryClientDto.FirstName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/GetClient/Dtos/InquiryClientDto.cs:3
  • InquiryClientDto.LastName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/GetClient/Dtos/InquiryClientDto.cs:3
  • InquiryClientDto.FullName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/GetClient/Dtos/InquiryClientDto.cs:14
  • Client.FullName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Domain/Inquiries/Clients/Client.cs:24
  • Client.FirstName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Domain/Inquiries/Clients/Client.cs:25
  • Client.LastName Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Domain/Inquiries/Clients/Client.cs:26
  • UpdateUserDto.FirstName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Authentication/DTOs/UpdateUserDto.cs:9
  • UpdateUserDto.LastName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Authentication/DTOs/UpdateUserDto.cs:10
  • UserDetailsDto.FirstName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Authentication/DTOs/UserDetailsDto.cs:8
  • UserDetailsDto.LastName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Authentication/DTOs/UserDetailsDto.cs:9
  • CreateUserCommand.FirstName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Commands/CreateUser/CreateUserCommand.cs:6
  • CreateUserCommand.LastName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Commands/CreateUser/CreateUserCommand.cs:6
  • CreateUserRequest.FirstName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Commands/CreateUser/Requests/CreateUserRequest.cs:14
  • CreateUserRequest.LastName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Commands/CreateUser/Requests/CreateUserRequest.cs:15
  • UserDto.FirstName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Queries/GetAllUsers/UserDto.cs:6
  • UserDto.LastName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Queries/GetAllUsers/UserDto.cs:7
  • UserDetailVm.FirstName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Queries/GetUser/UserDetailVm.cs:5
  • UserDetailVm.LastName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Queries/GetUser/UserDetailVm.cs:5
  • Customer.FirstName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Customers/Customer.cs:15
  • Customer.LastName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Customers/Customer.cs:16
  • Employee.FirstName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Employees/Employee.cs:15
  • Employee.LastName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Employees/Employee.cs:16
  • UserAccount.FirstName Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Domain/Users/UserAccount.cs:35
  • + 3 more field(s) in this category.
Email — 32 field(s)
  • EmailSender.EmailType Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Core/Sender/EmailSender.cs:11
  • PaymentCompletedEmailRequest.ClientEmail Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentCompleted/Sender/PaymentCompletedEmailRequest.cs:6
  • PaymentCompletedSender._emailSender Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentCompleted/Sender/PaymentCompletedSender.cs:12
  • PaymentInitializedEmailRequest.ClientEmail Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentInitialized/Sender/PaymentInitializedEmailRequest.cs:8
  • PaymentInitializedSender._emailSender Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Payments/PaymentInitialized/Sender/PaymentInitializedSender.cs:16
  • PriorityCloseToDeadlineRemindEventHandler._priorityCloseToDeadlineMailSender Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Priorities/DeadlineClose/PriorityCloseToDeadlineRemindEventHandler.cs:12
  • PriorityCloseToDeadlineEmailRequest.EmployeeEmail Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Priorities/DeadlineClose/Sender/PriorityCloseToDeadlineEmailRequest.cs:5
  • PriorityCloseToDeadlineMailSender._emailSender Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Priorities/DeadlineClose/Sender/PriorityCloseToDeadlineMailSender.cs:13
  • ForgotPasswordMailSender._emailSender Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Users/ForgotPassword/ForgotPasswordMailSender.cs:11
  • PasswordExpiredMailSender._emailSender Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Users/PasswordExpired/PasswordExpiredMailSender.cs:10
  • ValuationProposalApprovedEmailRequest.SuggestedByEmployeeEmail Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Approved/Sender/ValuationProposalApprovedEmailRequest.cs:4
  • ValuationProposalApprovedMailSender.ClientEmailPlaceholder Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Approved/Sender/ValuationProposalApprovedMailSender.cs:12
  • ValuationProposalApprovedMailSender._emailSender Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Approved/Sender/ValuationProposalApprovedMailSender.cs:20
  • ValuationProposalSuggestedEmailRequest.Email Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Suggested/Sender/ValuationProposalSuggestedEmailRequest.cs:8
  • ValuationProposalSuggestedMailSender._emailSender Src/Modules/Emails/Divstack.Company.Estimation.Tool.Emails.Valuations/Proposals/Suggested/Sender/ValuationProposalSuggestedMailSender.cs:22
  • MakeInquiryCommand.Email Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Commands/Make/MakeInquiryCommand.cs:11
  • InquiryInformationDto.Email Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/Get/Dtos/InquiryInformationDto.cs:19
  • InquiryClientDto.Email Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/GetClient/Dtos/InquiryClientDto.cs:3
  • Client.Email Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Domain/Inquiries/Clients/Client.cs:22
  • SignInRequest.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Api/Controllers/Common/DTO/Authentication/SignInRequest.cs:17
  • UpdateUserDto.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Authentication/DTOs/UpdateUserDto.cs:8
  • UserDetailsDto.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Authentication/DTOs/UserDetailsDto.cs:7
  • CreateUserCommand.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Commands/CreateUser/CreateUserCommand.cs:6
  • CreateUserRequest.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Commands/CreateUser/Requests/CreateUserRequest.cs:17
  • UserCreatedEvent.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Commands/CreateUser/UserCreatedEvent.cs:21
  • UserDto.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Queries/GetAllUsers/UserDto.cs:9
  • UserDetailVm.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Queries/GetUser/UserDetailVm.cs:5
  • UserAccountDto.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Application/Users/Queries/GetUserByUsername/UserAccountDto.cs:16
  • AdminAccountConfiguration.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Users/Configuration/AdminAccountConfiguration.cs:20
  • IAdminAccountConfiguration.Email Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Users/Configuration/IAdminAccountConfiguration.cs:7
  • IndentityErrorsCodes.EmailAlreadyTaken Src/Modules/Users/Divstack.Company.Estimation.Tool.Users.Infrastructure/Identity/Users/Errors/IndentityErrorsCodes.cs:5
  • FindProfileRequest.Email Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Inquiries.Infrastructure.Snov/FindClientCompany/ApiConsumer/Requests/FindProfileRequest.cs:3
Phone — 5 field(s)
  • MakeInquiryCommand.PhoneNumber Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Commands/Make/MakeInquiryCommand.cs:12
  • InquiryClientDto.PhoneNumber Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Application/Inquiries/Queries/GetClient/Dtos/InquiryClientDto.cs:3
  • Client.PhoneNumber Src/Modules/Inquiries/Divstack.Company.Estimation.Tool.Inquiries.Domain/Inquiries/Clients/Client.cs:23
  • SmsClient._phoneNumbersConfiguration Src/Modules/Sms/Divstack.Company.Estimation.Tool.Sms.Core/Clients/SmsClient.cs:10
  • PhoneNumbersConfiguration.PhoneNumbers Src/Modules/Sms/Divstack.Company.Estimation.Tool.Sms.Core/Configurations/PhoneNumbers/PhoneNumbersConfiguration.cs:7
Financial (card / IBAN) — 1 field(s)
  • CreditCardDto.CardNumber Src/Modules/Payments/Divstack.Company.Estimation.Tool.Payments.Application/Payments/Commands/Pay/Dtos/CreditCard/CreditCardDto.cs:3

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