Public report — freshcart-backend, 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:19 UTC Public
Code Health Audit

Amasen02/freshcart-Backend

67% Strong
CriticalWeakAdequateStrongExemplary
upper third — near Strong

Medium · 25,072 LoC · 46 projects · rebuild ~0.6 person-years · weakest lens: Readiness (63%)

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

79/82dimensions tool-verifieddeterministic · confidence 1.0 · 3 LLM-assisted, advisory
80findings with an exact file:lineof 114 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
82/107dimensions across the health lenses25072 LoC · 46 projects — wide & deep

Executive summary

Read through the Preview lens: this repo is pre-1.0 / in development, so the colour bands are relaxed to what a preview needs — *green* means good enough for a preview, not yet production-stable. Code correctness and security stay near-strict even here; the score itself is absolute and comparable across repos.

amasen02/freshcart-backend is in good overall health (67%), but at least one category below sits in Adequate-or-worse territory — most items are improvements, and the weakest category contains work to schedule, not shelve.

It is strongest in Code Health (99%) — the code is clean and low-risk to change. Event-Driven (88%) is solid too.

The area that most needs attention is Readiness (63%) — operating, monitoring and recovering the system safely is harder. Domain Modelling (66%) is the next concern — the domain model leaks and drifts, so business rules are harder to trust and change.

Leadership focus, highest impact first: Stamp a version in your build/package manifest (e.g. csproj <Version> (Release Hygiene); EnsureCreated() with a versioned schema-migration mechanism (EF… (Schema migrations); Document RTO/RPO and a tested restore procedure (a backup… (DR & Backup).

For scale: Medium (~25,072 production lines); rebuilding it from scratch would take roughly ~0.6 person-years (~1–2 engineers). Approximate, ±~30%.

It builds on a genuinely strong Code Health foundation (99%); the priorities above are the highest-leverage way to bring the rest up to that level.

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

Raise Readiness 63 → 70 (the Healthy floor) ⇒ headline 67 → ~69.

Code composition — where the lines go
Business logic 11%Plumbing 54%Tests 35%
New since the last scan (86+)

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

  • D4 · Duplicated block (22 lines × 2) src/Services/Basket/FreshCart.Basket.Api/Pricing/PricingGrpcChannelFactory.cs
  • D4 · Duplicated block (15 lines × 2) src/BuildingBlocks/FreshCart.ServiceDefaults/DevelopmentCertificateValidation.cs
  • D4 · Duplicated block (15 lines × 2) src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandValidator.cs
  • D4 · Duplicated block (15 lines × 2) src/Services/Identity/FreshCart.Identity.Api/Configuration/AuthenticationConfiguration.cs
  • D4 · Duplicated block (14 lines × 4) src/Services/Catalog/FreshCart.Catalog.Api/DependencyInjection.cs
  • D4 · Duplicated block (11 lines × 2) src/Services/Basket/FreshCart.Basket.Api/Persistence/MartenOutboxStore.cs
  • D4 · Duplicated block (10 lines × 2) src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandValidator.cs
  • D5 · Off the main sequence: FreshCart.ServiceDefaults
  • D5 · Off the main sequence: FreshCart.Reporting.Domain
  • D5 · Off the main sequence: FreshCart.Identity.Domain
  • D5 · Off the main sequence: FreshCart.BuildingBlocks.Messaging
  • D5 · Off the main sequence: FreshCart.Delivery.Domain
  • D5 · Off the main sequence: FreshCart.BuildingBlocks
  • D6 · Low cohesion: CancelOrderOnPaymentFailureActivity (LCOM4 4) src/Services/Ordering/FreshCart.Ordering.Application/Checkout/Activities/CancelOrderOnPaymentFailureActivity.cs
  • D6 · Low cohesion: CancelOrderOnStockFailureActivity (LCOM4 4) src/Services/Ordering/FreshCart.Ordering.Application/Checkout/Activities/CancelOrderOnStockFailureActivity.cs
  • D6 · Low cohesion: ConfirmOrderActivity (LCOM4 4) src/Services/Ordering/FreshCart.Ordering.Application/Checkout/Activities/ConfirmOrderActivity.cs
  • D8 · Coverage not measured — analyzer environment
  • D16 · single-maintainer — knowledge-concentration (bus factor) risk
  • D17 · NoWarnInCsproj Directory.Build.props
  • D17 · NoWarnInCsproj Directory.Build.props
  • D17 · NoWarnInCsproj Directory.Build.props
  • D17 · NoWarnInCsproj Directory.Build.props
  • D19 · LLM evaluation failed
  • D24 · LLM evaluation failed
  • D29 · High: dependabot-missing-cooldown .github/dependabot.yml
  • D29 · High: github-actions-mutable-action-tag .github/workflows/codeql.yml
  • D29 · High: github-actions-mutable-action-tag .github/workflows/codeql.yml
  • D29 · High: github-actions-mutable-action-tag .github/workflows/codeql.yml
  • D29 · High: github-actions-mutable-action-tag .github/workflows/infrastructure.yml
  • D29 · High: github-actions-mutable-action-tag .github/workflows/infrastructure.yml
  • D29 · High: run-shell-injection .github/workflows/infrastructure.yml
  • D31 · High IaC: KSV-0109 deploy/helm/identity/templates/configmap.yaml
  • D31 · High IaC: KSV-0109 deploy/k8s/identity/configmap.yaml
  • D31 · High IaC: DS-0002 src/ApiGateways/FreshCart.Gateway.Yarp/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Basket/FreshCart.Basket.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Catalog/FreshCart.Catalog.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/CustomerSupport/FreshCart.CustomerSupport.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Delivery/FreshCart.Delivery.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Identity/FreshCart.Identity.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Inventory/FreshCart.Inventory.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Notification/FreshCart.Notification.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Ordering/FreshCart.Ordering.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Payment/FreshCart.Payment.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Pricing/FreshCart.Pricing.Grpc/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Reporting/FreshCart.Reporting.Api/Dockerfile
  • D31 · High IaC: DS-0002 src/Services/Reviews/FreshCart.Reviews.Api/Dockerfile
  • D31 · Medium IaC: KSV-0013 deploy/helm/identity/templates/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/basket/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/basket/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/catalog/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/catalog/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/customersupport/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/customersupport/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/delivery/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/delivery/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/gateway/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/gateway/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/identity/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/identity/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/inventory/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/inventory/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/notification/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/notification/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/ordering/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/ordering/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/payment/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/payment/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/pricing/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/pricing/deployment.yaml
  • D31 · Medium IaC: KSV-01010 deploy/k8s/reviews/configmap.yaml
  • D31 · Medium IaC: KSV-0013 deploy/k8s/reviews/deployment.yaml
  • D36 · Unpinned build actions
  • D36 · PR-triggered workflow without a permissions block
  • ED4 · Dual write (no outbox): CreateProductCommandHandler.Handle src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandHandler.cs
  • ED4 · Dual write (no outbox): UpdateProductCommandHandler.Handle src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/UpdateProduct/UpdateProductCommandHandler.cs
  • P8 · Schema created with EnsureCreated() (no migration path) src/Services/Pricing/FreshCart.Pricing.Grpc/Persistence/PricingDatabaseInitializer.cs
  • DM6 · Domain depends on infrastructure: ApplicationRole src/Services/Identity/FreshCart.Identity.Domain/Roles/ApplicationRole.cs
  • DM6 · Domain depends on infrastructure: ApplicationUser src/Services/Identity/FreshCart.Identity.Domain/Users/ApplicationUser.cs
  • AC3 · Page without a main landmark index.html
  • AC3 · Heading level jumps from h2 to h4 index.html
  • AC3 · Heading level jumps from h2 to h4 index.html
  • AC3 · Heading level jumps from h2 to h4 index.html
  • AC3 · Heading level jumps from h2 to h4 index.html
  • AC3 · Heading level jumps from h2 to h4 index.html
  • AC3 · Heading level jumps from h2 to h4 index.html
  • AC7 · Accessibility enforcement below the top rung

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 — €27,000–€130,000
Cost to rebuild€27,000–€130,000 (0.3–0.8 person-years (447–1,416 h), ~1–2 engineers)
Domain complexityVery high — harder problems cost more per line
Quality factor0.9× (at 67% quality) — the last 20% of quality is most of the work
Size & shapeMedium · 52% boilerplate · 31% straight-line · 17% branching logic

This codebase represents roughly ~0.6 person-years of build effort (about ~€81,000 to rebuild). Its weakest lens is Readiness at 63% — 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.1) — microservices, DDD/clean architecture, CQRS, domain model, event-driven integration × a 0.9× 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
Stamp a version in your build/package manifest (e.g. csproj <Version>, package.json, pyproject.toml, Cargo.toml, or a VERSION file) or tag releases with semver so builds and releases are traceable.
+3.4 pts · Medium effort · Release Hygiene
2
Replace EnsureCreated() with a versioned schema-migration mechanism (EF Core migrations) so the production schema can evolve safely and reproducibly.
+3.4 pts · Medium effort · Schema migrations
3
Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
+3.4 pts · Medium effort · DR & Backup

Diagnosis — what's actually going on

Value concentrated against a weak lens · Medium · Value at risk
This is a Medium asset (~0.6 person-years to rebuild), and its weakest lens is Readiness at 63%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Medium, ~0.6 person-years rebuild (25,072 LoC) · weakest lens: Readiness 63%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Stamp a version in your build/package manifest (e.g. csproj <Version>, package.json, pyproject.toml, Cargo.toml, or a VERSION file) or tag releases with semver so builds and releases are traceable. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Stamp a version in your build/package manifest (e.g. csproj <Version>, package.json, pyproject.toml, Cargo.toml, or a VERSION file) or tag releases with semver so builds and releases are traceable.

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 AppHost AppHost Basket.Api Basket.Api ctx:BuildingBlocks BuildingBlocks BuildingBlocks Basket.Api->ctx:BuildingBlocks ctx:BuildingBlocks.Messaging BuildingBlocks.Messaging Messaging Basket.Api->ctx:BuildingBlocks.Messaging ctx:ServiceDefaults ServiceDefaults ServiceDefaults Basket.Api->ctx:ServiceDefaults Basket.Tests Basket.Tests BuildingBlocks.Tests BuildingBlocks.Tests Catalog.Api Catalog.Api Catalog.Api->ctx:BuildingBlocks Catalog.Api->ctx:BuildingBlocks.Messaging Catalog.Api->ctx:ServiceDefaults Catalog.Tests Catalog.Tests CustomerSupport.Api CustomerSupport.Api CustomerSupport.Api->ctx:BuildingBlocks CustomerSupport.Api->ctx:ServiceDefaults CustomerSupport.Tests CustomerSupport.Tests Delivery.Api Delivery.Api Delivery.Api->ctx:BuildingBlocks ctx:Delivery Delivery Application · Domain · Infrastructure Delivery.Api->ctx:Delivery Delivery.Api->ctx:ServiceDefaults Delivery.Tests Delivery.Tests Gateway.Tests Gateway.Tests Gateway.Yarp Gateway.Yarp Gateway.Yarp->ctx:BuildingBlocks Gateway.Yarp->ctx:ServiceDefaults Identity.Api Identity.Api Identity.Api->ctx:BuildingBlocks ctx:Identity Identity Application · Domain · Infrastructure Identity.Api->ctx:Identity Identity.Api->ctx:ServiceDefaults Identity.Tests Identity.Tests Inventory.Api Inventory.Api Inventory.Api->ctx:BuildingBlocks Inventory.Api->ctx:BuildingBlocks.Messaging Inventory.Api->ctx:ServiceDefaults Inventory.Tests Inventory.Tests Notification.Api Notification.Api Notification.Api->ctx:BuildingBlocks Notification.Api->ctx:BuildingBlocks.Messaging Notification.Api->ctx:ServiceDefaults Notification.Tests Notification.Tests Ordering.Api Ordering.Api Ordering.Api->ctx:BuildingBlocks Ordering.Api->ctx:BuildingBlocks.Messaging ctx:Ordering Ordering Application · Domain · Infrastructure Ordering.Api->ctx:Ordering Ordering.Api->ctx:ServiceDefaults Ordering.Tests Ordering.Tests Payment.Api Payment.Api Payment.Api->ctx:BuildingBlocks ctx:Payment Payment Application · Domain · Infrastructure Payment.Api->ctx:Payment Payment.Api->ctx:ServiceDefaults Payment.Tests Payment.Tests Pricing.Grpc Pricing.Grpc Pricing.Grpc->ctx:BuildingBlocks Pricing.Grpc->ctx:ServiceDefaults Pricing.Tests Pricing.Tests Reporting.Api Reporting.Api Reporting.Api->ctx:BuildingBlocks ctx:Reporting Reporting Application · Domain · Infrastructure Reporting.Api->ctx:Reporting Reporting.Api->ctx:ServiceDefaults Reporting.Tests Reporting.Tests Reviews.Api Reviews.Api Reviews.Api->ctx:BuildingBlocks Reviews.Api->ctx:BuildingBlocks.Messaging Reviews.Api->ctx:ServiceDefaults Reviews.Tests Reviews.Tests ctx:Delivery->ctx:BuildingBlocks ctx:Delivery->ctx:BuildingBlocks.Messaging ctx:Identity->ctx:BuildingBlocks ctx:Ordering->ctx:BuildingBlocks ctx:Ordering->ctx:BuildingBlocks.Messaging ctx:Payment->ctx:BuildingBlocks ctx:Reporting->ctx:BuildingBlocks ctx:Reporting->ctx:BuildingBlocks.Messaging

Architecture — module dependency matrix

211 modules, 343 dependencies — 2 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.)

…art.Basket.Api.Domain…t.BuildingBlocks.CQRS…ocks.Messaging.Events…dingBlocks.Pagination…rt.Catalog.Api.Models…ery.Domain.Deliveries…Delivery.Domain.Slots…Delivery.Domain.Zones…Identity.Domain.Users…rdering.Domain.Orders…shCart.Payment.Domain…rting.Domain.Invoices…Reporting.Domain.Kpis…eporting.Domain.Sales…asket.Api.Persistence…rt.Basket.Api.Pricing…ing.IntegrationEvents…Cart.Catalog.Api.Data…n.Common.Abstractions…nventory.Api.Services…lication.Abstractions…ation.Payments.Models…ication.Common.Models…views.Api.Persistence…oppingBaskets.AddItem…ngBaskets.ApplyCoupon…ppingBaskets.Checkout…pingBaskets.GetBasket…Application.Shipments…structure.Persistence…ion.Api.Notifications…lication.Abstractions…n.Common.Abstractions…lication.Abstractions…e.Persistence.Mapping…tion.Products.Queries…ication.Sales.Queries…Persistence.Warehouse…structure.Persistence…sistence.Repositories…art.Basket.Api.Domain1…t.BuildingBlocks.CQRS2…ocks.Messaging.Events3…dingBlocks.Pagination4…rt.Catalog.Api.Models5…ery.Domain.Deliveries6…Delivery.Domain.Slots7…Delivery.Domain.Zones8…Identity.Domain.Users9…rdering.Domain.Orders10…shCart.Payment.Domain11…rting.Domain.Invoices12…Reporting.Domain.Kpis13…eporting.Domain.Sales14…asket.Api.Persistence15…rt.Basket.Api.Pricing16…ing.IntegrationEvents17…Cart.Catalog.Api.Data18…n.Common.Abstractions19…nventory.Api.Services20…lication.Abstractions21…ation.Payments.Models22…ication.Common.Models23…views.Api.Persistence24…oppingBaskets.AddItem25…ngBaskets.ApplyCoupon26…ppingBaskets.Checkout27…pingBaskets.GetBasket28…Application.Shipments29…structure.Persistence30…ion.Api.Notifications31…lication.Abstractions32…n.Common.Abstractions33…lication.Abstractions34…e.Persistence.Mapping35…tion.Products.Queries36…ication.Sales.Queries37…Persistence.Warehouse38…structure.Persistence39…sistence.Repositories40911361422214121121122324221322111272242651313121312111162835626511111112155+171 more modules (most-connected shown)

At a glance — Code Health · 99% · Exemplary

At a glance — Architecture · 83% · Strong

At a glance — Maturity · 84% · Exemplary

At a glance — Readiness · 63% · Adequate · gated by P8

At a glance — Security · 78% · Adequate · gated by D29, D31, D36

At a glance — Domain Modelling · 66% · Adequate · gated by DM2

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

At a glance — Accessibility · 69% · Strong

At a glance — Performance · 72% · 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
A05:2021 — Security Misconfiguration50High / Critical
A03:2021 — Injection16High / Critical

Roadmap

First, stamp a version in your build manifests or tag releases with semver to ensure builds and releases are traceable. Next, replace EnsureCreated() with a versioned schema-migration mechanism so the production schema can evolve safely and reproducibly. Then, document RTO/RPO and a tested restore procedure, as a backup configuration alone is not disaster recovery. After that, confirm that required reviewers and protection rules are enforced on the deployment pipeline before production promotion. Finally, adopt strongly-typed ids across the domain to prevent transposed-argument bugs.

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

Do thisHelpsEffortDimension
Stamp a version in your build/package manifest (e.g. csproj <Version>, package.json, pyproject.toml, Cargo.toml, or a VERSION file) or tag releases with semver so builds and releases are traceable.+3.4 ptsMediumRelease Hygiene
Replace EnsureCreated() with a versioned schema-migration mechanism (EF Core migrations) so the production schema can evolve safely and reproducibly.+3.4 ptsMediumSchema migrations
Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).+3.4 ptsMediumDR & Backup
The pipeline declares a deployment environment, but whether required reviewers / protection rules are attached to it lives in repository settings we cannot read — confirm the gate is enforced before production promotion.+3.3 ptsMediumDeployment & Rollback
Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.+2.0 ptsMediumStrongly-typed ids
Invert domain→infrastructure dependencies: declare interfaces in the domain, implement them in infrastructure (Dependency Inversion).+2.0 ptsMediumDomain ↔ infrastructure boundary
Resolve the 1 Inverted test pyramid finding(s) in Test Distribution.+0.8 ptsLowTest Distribution
Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.+1.1 ptsMediumPage structure

File quality

Per-file score 0–10 — a quality signature. Of 53 files carrying findings, judged against the Preview bar: 0% slop · 9% mixed · 91% near-clean.

FileScoreBandWorst signal
.github/workflows/codeql.yml5.1MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
.github/workflows/infrastructure.yml5.1MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
deploy/k8s/identity/configmap.yaml5.1MixedIaC & Container Security: High IaC: KSV-0109
Directory.Build.props5.5MixedExplicit Debt: NoWarnInCsproj
deploy/helm/identity/templates/deployment.yaml6.9MixedIaC & Container Security: Medium IaC: KSV-0013
.github/dependabot.yml7.2Near-cleanStatic Analysis (SAST): High: dependabot-missing-cooldown
deploy/helm/identity/templates/configmap.yaml7.2Near-cleanIaC & Container Security: High IaC: KSV-0109
src/ApiGateways/FreshCart.Gateway.Yarp/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Basket/FreshCart.Basket.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Catalog/FreshCart.Catalog.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/CustomerSupport/FreshCart.CustomerSupport.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Delivery/FreshCart.Delivery.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Identity/FreshCart.Identity.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Inventory/FreshCart.Inventory.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Notification/FreshCart.Notification.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Ordering/FreshCart.Ordering.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Payment/FreshCart.Payment.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Pricing/FreshCart.Pricing.Grpc/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Reporting/FreshCart.Reporting.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002
src/Services/Reviews/FreshCart.Reviews.Api/Dockerfile7.2Near-cleanIaC & Container Security: High IaC: DS-0002

Methodology & how to trust this report

Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 79 of 82 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 3 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.8 — 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 — 82 dimensions across the health lenses
D1D2D3D4D5D6D7D9D10D11D12D13D14D15D17D18D20D21D25D26D27D28D29D31D33D35D36D37D38D40D41AC2AC3AC6AC7AX1AX10AX2AX3AX4AX5AX6AX7AX8AX9C1C2C3C4DM2DM3DM5DM6DM8ED1ED2ED3ED4ED5GD1IC1M1M2M3M4P1P2P3P4P5P6P7P8PF1PF2PF3S1X1X2X3X4X5

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, 80 of 114 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-4362-7ff4-9ef3-79cc11015167.

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

Run transparency — what happened this run

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

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

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

Limitations & what we did not check

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

Per-dimension blind spots

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

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • 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.
  • 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.
  • 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.
  • D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles — risk from how a dependency is used, and advisories not yet published, fall outside this scan.
  • 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.
  • D40 Network Egress Confinement: Egress confinement is read from committed Kubernetes manifests — a policy applied out-of-band (cluster-default deny, a service mesh, or a cloud firewall/security group off-repo) is invisible, and a present NetworkPolicy is declared config, not proof the cluster admission-controller actually enforces it at runtime.
  • D41 Kernel & Syscall Confinement: Syscall/MAC confinement is read from committed manifests — a profile applied by a cluster-wide PodSecurity default or a mutating webhook off-repo isn't seen, and a declared seccomp/AppArmor profile is config presence, not proof the node's kernel actually loaded and enforced it.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A clean result is "no unlabelled native control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • C3 Audit Trail: This control is scored from in-repo evidence only — a working control configured outside the repository leaves no signal a static scan can credit.
  • C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
  • 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.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (5): D20, D21, 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 Duplication9.9 / 10Exemplary✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

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

7 duplicated block group(s) detected.

Duplicated block (15 lines × 2) · ×3src/BuildingBlocks/FreshCart.ServiceDefaults/DevelopmentCertificateValidation.cs:25
Duplicated block (22 lines × 2)src/Services/Basket/FreshCart.Basket.Api/Pricing/PricingGrpcChannelFactory.cs:21
Duplicated block (14 lines × 4)src/Services/Catalog/FreshCart.Catalog.Api/DependencyInjection.cs:131
Duplicated block (11 lines × 2)src/Services/Basket/FreshCart.Basket.Api/Persistence/MartenOutboxStore.cs:21
Duplicated block (10 lines × 2)src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandValidator.cs:24

✓ 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

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

Off the main sequence: FreshCart.ServiceDefaults · ×6

✓ On the Gold path — maintain.

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

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

3 of 126 classes have LCOM4 above 3.

Low cohesion: CancelOrderOnPaymentFailureActivity (LCOM4 4) · ×3src/Services/Ordering/FreshCart.Ordering.Application/Checkout/Activities/CancelOrderOnPaymentFailureActivity.cs:14

✓ On the Gold path — maintain.

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

D7 · Architectural Integrity8.0 / 10Strong✓ 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 8.0 / 10 · rule-coverage 100% · ceiling Prevented

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

What to do

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

Detailed fixes: d7_recommendation.md.

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

734 test methods: 138 unit, 596 integration, 0 BDD, 0 e2e.

Inverted test pyramid

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md · top locations in Appendix A, every location in findings.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, 14 mock references across 734 tests.

Mock framework: NSubstitute · ×14

✓ On the Gold path — maintain.

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

D12 · Dependency Hygiene10.0 / 10Exemplary✓ Tool-verified

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

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

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

0 outdated, 0 vulnerable, 0 deprecated packages.

✓ On the Gold path — maintain.

Detailed fixes: d12_recommendation.md.

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

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

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

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

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

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

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

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

0 of 87 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 Debt9.7 / 10Exemplary✓ Tool-verified

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

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

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

4 deducted debt markers + 0 dead symbols across 25072 LoC (0.1/KLoC) → score 9.7.

NoWarnInCsproj · ×4Directory.Build.props:23

✓ On the Gold path — maintain.

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

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

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

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

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

46 projects, 959 source files, 38613 hand-written lines of code (25072 production / 13541 test), 142 inter-project edges.

✓ On the Gold path — maintain.

Detailed fixes: d18_recommendation.md.

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

Evaluated 4 ADR(s) individually; mean quality 9.8/10 (consistently complete and clear). 0 flagged with a specific gap.

✓ On the Gold path — maintain.

Detailed fixes: d20_recommendation.md.

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

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

0 naming inconsistencies across 200 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

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 46 projects flagged as possibly oversized/incoherent.

✓ On the Gold path — maintain.

Detailed fixes: d26_recommendation.md.

D27 · Navigability9.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

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

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)2.6 / 10Weak✓ Tool-verified

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

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

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

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

16 finding(s): 0 critical, 7 high, 0 medium, 9 low.

High: dependabot-missing-cooldown · ×7.github/dependabot.yml:5detected by semgrep finding
Low: plaintext-http-link · ×9index.html:266detected by semgrep finding

What to do

  1. Resolve the 9 Low finding(s) in Static Analysis (SAST) — start with index.html (9). — One of this dimension's main actionable groups (9 recommendation-level).
  2. Resolve the 7 High finding(s) in Static Analysis (SAST) — start with codeql.yml (3), infrastructure.yml (3), dependabot.yml. — One of this dimension's main actionable groups (7 issue-level).

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

D31 · IaC & Container Security1.8 / 10Critical✓ 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 1.8 / 10 · rule-coverage 100% · ceiling Documented

67 finding(s): 0 critical, 15 high, 25 medium, 27 low.

High IaC: KSV-0109 · ×15deploy/helm/identity/templates/configmap.yamldetected by trivy finding
Medium IaC: KSV-0013 · ×25deploy/helm/identity/templates/deployment.yamldetected by trivy finding
Low IaC: KSV-0020 · ×10deploy/helm/identity/templates/deployment.yamldetected by trivy finding

What to do

  1. Resolve the 25 Medium IaC finding(s) in IaC & Container Security — start with deployment.yaml (13), configmap.yaml (12). — One of this dimension's main actionable groups (25 warning-level).
  2. Resolve the 15 High IaC finding(s) in IaC & Container Security — start with Dockerfile (13), configmap.yaml (2). — One of this dimension's main actionable groups (15 issue-level).
  3. Resolve the 10 Low IaC finding(s) in IaC & Container Security — start with deployment.yaml (10). — One of this dimension's main actionable groups (10 recommendation-level).

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

D33 · JS/npm Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether JavaScript/npm dependencies have known published vulnerabilities (CVEs) — the npm ecosystem's biggest risk.

Method: JS/npm CVE scan via trivy fs --scanners vuln over JS manifests (package.json/yarn.lock/pnpm-lock/bun.lockb); 0-10 tight normalizer. NotApplicable without JS manifests. Exhaustive, deterministic.

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

No known-vulnerable JS/npm dependencies.

✓ On the Gold path — maintain.

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

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

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

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

0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

Unpinned build actions
PR-triggered workflow without a permissions block
No build provenance
No artifact signing
No SBOM

What to do

  1. Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 PR-triggered workflow without a permissions block finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

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

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

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

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

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

A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D38 · OSV Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — read natively from whatever lockfile the repository ships (Cargo, npm, Go, Python, Maven, RubyGems, …). D33 and D30 add ecosystem-specific scanners on top for npm and .NET.

Method: Multi-ecosystem dependency-CVE scan via osv-scanner --recursive (queries the osv.dev database + parses lockfiles natively across ecosystems: npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven/Gradle pom.xml/gradle.lockfile, PyPI requirements.txt/poetry.lock/Pipfile.lock, Composer composer.lock, RubyGems Gemfile.lock, Hex mix.lock, pub pubspec.lock, Swift Package.resolved); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable only when the repo declares no supported non-.NET dependency lockfile (a NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain); coverage needs a resolved lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.

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

No known-vulnerable dependencies (OSV).

✓ On the Gold path — maintain.

Detailed fixes: d38_recommendation.md.

D40 · Network Egress Confinement10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether Kubernetes workloads restrict network EGRESS with a NetworkPolicy (or Cilium policy), limiting where a compromised pod can send data or reach a command-and-control server. Presence of committed egress-restricting policy, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn — language-agnostic): Kubernetes workloads gate applicability; credits a NetworkPolicy / Cilium policy that restricts egress (policyTypes: [Egress] / egress rules). Reward-leaning (neutral floor climbing to 10, never a deduction — baseline misconfigs stay with D31). Deterministic.

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

Kubernetes workloads are covered by a network policy that restricts egress.

✓ On the Gold path — maintain.

Detailed fixes: d40_recommendation.md.

D41 · Kernel & Syscall Confinement8.0 / 10Strong✓ Tool-verified

What it measures: Whether Kubernetes workloads confine the kernel boundary — a seccomp profile (RuntimeDefault/Localhost) plus an AppArmor/SELinux mandatory-access-control layer — shrinking the syscall attack surface a container escape would use. Presence of committed confinement config, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn): on Kubernetes workloads, credits a seccomp profile (RuntimeDefault/Localhost) and an AppArmor/SELinux MAC layer. Reward-leaning (neutral floor climbing to 10); NotApplicable without workloads. Deterministic.

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

1/2 syscall-confinement controls present (seccomp, AppArmor/SELinux).

No AppArmor/SELinux confinement

What to do

  1. Resolve the 1 No AppArmor/SELinux confinement finding(s) in Kernel & Syscall Confinement. — One of this dimension's main actionable groups (1 recommendation-level).

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

Frontend & cross-cutting dimensions

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

AC2 · Forms & labels10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.

AC3 · Page structure6.8 / 10Strong✓ Tool-verified

Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — index.html:2
  • Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. (×6) — index.html:654, index.html:1055, index.html:1069, …

What to do

  • Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC6 · Visual & motion safety10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

AC7 · A11y enforcement4.0 / 10Weak✓ Tool-verified

Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an accessibility checker configured over the markup (an a11y lint rule set, e.g. eslint-plugin-jsx-a11y or vuejs-accessibility where the project lints JavaScript) and an automated accessibility assertion wired into tests or CI (axe/pa11y/Lighthouse or an equivalent) — on the Documented→Verified→Prevented ladder.

Method: Repo config/CI scan: an accessibility checker configured over the markup (an a11y lint rule set such as eslint-plugin-jsx-a11y / vuejs-accessibility where JavaScript is linted) and an automated accessibility assertion in tests or CI (axe/pa11y/Lighthouse or equivalent), graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.

  • No accessibility enforcement found — no automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge.

What to do

  • Enforce accessibility in the test suite you already have: assert the accessibility invariants over the HTML your app renders — parse the rendered output in an existing test, or drive a real browser from one — and gate that test in CI so a regression blocks the merge.
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 composition4.0 / 10Weak✓ 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.

What to do

  • The domain core is a small share of production code — check that business logic isn't leaking into the application/infrastructure layers (a thin domain is the anemic-domain smell).
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 direction10.0 / 10Exemplary✓ 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.

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 isolation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

AX9 · CQS / query purity10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

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

What to do

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

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

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

C3 · Audit Trail10.0 / 10Exemplary✓ Tool-verified

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

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

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.
DM2 · Strongly-typed ids3.0 / 10Weak✓ Tool-verified

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

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

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

  • `OrderCancelledDomainEvent.OrderId` 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. — OrderCancelledDomainEvent.cs:6
  • `OrderCancelledDomainEvent.CustomerId` 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. — OrderCancelledDomainEvent.cs:7
  • `OrderConfirmedDomainEvent.OrderId` 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. — OrderConfirmedDomainEvent.cs:7
  • `OrderConfirmedDomainEvent.CustomerId` 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. — OrderConfirmedDomainEvent.cs:9
  • `OrderRefundedDomainEvent.OrderId` 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. — OrderRefundedDomainEvent.cs:6
  • `OrderSubmittedDomainEvent.OrderId` 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. — OrderSubmittedDomainEvent.cs:6
  • `OrderSubmittedDomainEvent.CustomerId` 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. — OrderSubmittedDomainEvent.cs:7

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.

DM5 · Encapsulated state10.0 / 10Exemplary✓ 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.

DM6 · Domain ↔ infrastructure boundary6.9 / 10Strong✓ 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:14
  • `ApplicationUser` (domain layer) references `Microsoft.AspNetCore.Identity` — an infrastructure concern (persistence/HTTP/web). — ApplicationUser.cs:14

What to do

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

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

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

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

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

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

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

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

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

ED3 · Event naming10.0 / 10Exemplary✓ Tool-verified

Other · Event-Driven — Whether events are named in the past tense (a clarity nudge — low weight).

Method: Roslyn scan (event-driven gated): domain and integration events checked for past-tense naming (-ed/-en suffix or irregular set). Naming nudge, low-weight advisory.

ED4 · Outbox / dual-write7.3 / 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.

  • `CreateProductCommandHandler.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). — CreateProductCommandHandler.cs:26
  • `UpdateProductCommandHandler.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). — UpdateProductCommandHandler.cs:24

What to do

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

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

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

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

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

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

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

IC1 · Incompleteness & stubs10.0 / 10Exemplary○ Nothing flagged

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

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

M1 · Documentation (README)7.3 / 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 README to the 46 of 46 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 structure10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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

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

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

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

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

  • Only 26/28 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 28, 14 ship a process this repository operates; the rest are libraries their consumer hosts, where the logging decision belongs to the host.

What to do

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

  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback8.0 / 10Strong✓ 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.

What to do

  • The pipeline declares a deployment environment, but whether required reviewers / protection rules are attached to it lives in repository settings we cannot read — confirm the gate is enforced before production promotion.
P5 · DR & Backup7.0 / 10Strong✓ 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.

What to do

  • Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

What to do

  • Stamp a version in your build/package manifest (e.g. csproj <Version>, package.json, pyproject.toml, Cargo.toml, or a VERSION file) or tag releases with semver so builds and releases are traceable.
P7 · Outbound HTTP resilience10.0 / 10Exemplary○ Nothing flagged

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

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

P8 · Schema migrations3.0 / 10Weak✓ Tool-verified

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.

  • `EnsureCreated()` builds the schema once and can't evolve it — there's no upgrade path for an existing production database, and it bypasses the migrations history. Adopt a versioned schema-migration mechanism (with EF Core: `dotnet ef migrations add` + `Migrate()` on startup) so schema changes are versioned and applied safely. — PricingDatabaseInitializer.cs:7

What to do

  • Replace EnsureCreated() with a versioned schema-migration mechanism (EF Core migrations) so the production schema can evolve safely and reproducibly.
PF1 · Benchmark discipline6.0 / 10Adequate✓ Tool-verified

Readiness · Performance — Whether the library protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.

Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.

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

What to do

  • Add a benchmarking harness for the hot paths and run it in CI to catch regressions (for .NET, a BenchmarkDotNet project with [MemoryDiagnoser] to track allocations).
PF2 · Allocation hygiene6.6 / 10Strong✓ Tool-verified

Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.

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

What to do

  • Raise allocation-aware density on the hot paths — currently 37 use(s) across 32,298 production line(s) (~1.1/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.
PF3 · Async & latency hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Performance — Whether asynchronous code keeps its host responsive — a library awaits with ConfigureAwait(false) (so it never captures and stalls the host's context) and avoids sync-over-async blocking (.Wait()/.GetAwaiter().GetResult()) that wastes threads and risks deadlock.

Method: Production-source scan: sync-over-async blocking (.Wait()/.GetAwaiter().GetResult()) counted everywhere, and — for a library with ≥5 awaits — the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

S1 · Web-Security Posture10.0 / 10Exemplary○ Nothing flagged

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.

X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

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

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

X2 · Cancellation propagation9.9 / 10Exemplary✓ Tool-verified

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

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

  • Only 284/288 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. (×4) — IdentityDataSeeder.cs:69, IdentityDataSeeder.cs:92, AntiforgeryConfiguration.cs:71, …

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.8 / 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.2 `!` suppressions per 1k syntax nodes — 31 suppression(s) across the 124189 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 `!`.

WCAG coverage — what static analysis assessed

Statically assessed 10 of 55 WCAG 2.2 Level A/AA success criteria (18%; ≈20% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 45 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only
AC7 · A11y enforcementenforcement — no page criterionEnforcement posture (process)

Not statically assessed — these 45 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.1, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

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 Health99%ExemplaryStrongest area.
Architecture83%StrongSolid.
Maturity84%ExemplarySolid.
Readiness63%Adequate — gated by P8Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security78%Adequate — gated by D29, D31, D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling66%Adequate — gated by DM2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Event-Driven88%ExemplarySolid.
Accessibility69%StrongSolid.
Performance72%StrongSolid.
Not included — 25 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 image/media element found in the parsed markup — AC1 not applicable here.
  • AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
  • AC5 ARIA correctness — No ARIA usage found in the parsed markup — AC5 not applicable here.
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
  • D16 Bus Factor — single-maintainer — knowledge-concentration (bus factor) risk
  • D19 Documentation Quality — LLM evaluation failed
  • D22 Internal API Consistency — No exposed public API
  • D23 Boundary Type-Coupling — Bounded contexts not declared
  • D24 Comment Value — LLM evaluation failed
  • 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.
  • D34 Knowledge Freshness — early-stage repository — too little history to judge knowledge freshness
  • D39 IL Efficiency — The target did not build, so no IL was available to measure.
  • D42 Runtime Threat Enforcement — The repository ships application workloads but no cluster-governance resources (CRDs, admission webhooks, or a committed policy engine). Runtime threat-detection (Falco/Tetragon) and admission control (Kyverno/OPA-Gatekeeper/PodSecurity) are cluster-OPERATOR controls owned by the platform, not shipped by an application repo/chart — nothing for this repo to assess.
  • D8 Code Coverage — Coverage not measured — analyzer environment
  • DM1 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
  • DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
  • DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
  • ES1 Event Sourcing — applicable but not scored (2 of 3 signals for this style — below the bar we score at): an event-store package (Marten/EventStore); an append-only event-store seam (IEventStore/Append-of-events)
  • 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'.
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X6 Hand-rolled structured-format parsing — Reported, not scored — this card publishes what it found rather than grading it. Its content is the findings and the key metric above.
  • X7 Silent fallback defaults — Reported, not scored — this card publishes what it found rather than grading it. Its content is the findings and the key metric above.

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Issue — 26 finding(s)
D31 · IaC & Container Security · High IaC · ×15
  • High IaC: KSV-0109 deploy/helm/identity/templates/configmap.yaml — ConfigMap with secrets
  • High IaC: KSV-0109 deploy/k8s/identity/configmap.yaml — ConfigMap with secrets
  • High IaC: DS-0002 src/ApiGateways/FreshCart.Gateway.Yarp/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Basket/FreshCart.Basket.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Catalog/FreshCart.Catalog.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/CustomerSupport/FreshCart.CustomerSupport.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Delivery/FreshCart.Delivery.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Identity/FreshCart.Identity.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Inventory/FreshCart.Inventory.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Notification/FreshCart.Notification.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Ordering/FreshCart.Ordering.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Payment/FreshCart.Payment.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Pricing/FreshCart.Pricing.Grpc/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Reporting/FreshCart.Reporting.Api/Dockerfile — Image user should not be 'root' A container that starts as root runs your process with root's capabilities inside the namespace, so a compromise of the process starts from there. The step: create an unprivileged account in the image (`RUN useradd -r -M app` — or whatever this base image's account tooling is, `adduser` and `useradd` are not both present everywhere`), give it ownership of the paths the process writes at runtime (`COPY --chown=` on those layers, or a `RUN chown -R`), and end the final stage with `USER app` so it is the default at start. Build stages that only compile can stay root; it is the stage that RUNS that needs the account. If the process genuinely requires root — it manages the container runtime, ptraces another process or opens raw devices — say so here rather than making a change that breaks it.
  • High IaC: DS-0002 src/Services/Reviews/FreshCart.Reviews.Api/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.
D29 · Static Analysis (SAST) · High · ×7
  • High: dependabot-missing-cooldown .github/dependabot.yml:5 — This Dependabot configuration does not set a cooldown period. Newly published packages can be malicious or unstable. Add a `cooldown` block with `default-days: 7` to each `package-ecosystem` entry under `updates` to wait 7 days before proposing updates to newly published package versions. Reference: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#cooldown. This is a semgrep security-AUDIT rule reporting a POLICY that is absent or weaker than its recommendation, not an exploitable defect. Confirm whether the current setting is a deliberate decision for this repository — and apply the change where it is not; where it is (a policy your release process already enforces elsewhere, or one this repository has consciously opted out of), record the decision and leave the configuration as it is. This configuration file has 4 such entries; one cooldown decision clears them all — reported once.
  • High: github-actions-mutable-action-tag .github/workflows/codeql.yml:27 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/codeql.yml:30 — 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: github/codeql-action/init@<40-character SHA>`. This step references `github/codeql-action/init@v3`; resolve the SHA it points at today with `gh api repos/github/codeql-action/commits/v3 --jq .sha`. `github/codeql-action/init` is hosted INSIDE the `github/codeql-action` repository (a subdirectory action or a reusable workflow), so the SHA to pin is that repository's commit — keep the full `github/codeql-action/init` path in `uses:` and query only `github/codeql-action`.
  • High: github-actions-mutable-action-tag .github/workflows/codeql.yml:37 — 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: github/codeql-action/analyze@<40-character SHA>`. This step references `github/codeql-action/analyze@v3`; resolve the SHA it points at today with `gh api repos/github/codeql-action/commits/v3 --jq .sha`. `github/codeql-action/analyze` is hosted INSIDE the `github/codeql-action` repository (a subdirectory action or a reusable workflow), so the SHA to pin is that repository's commit — keep the full `github/codeql-action/analyze` path in `uses:` and query only `github/codeql-action`.
  • High: github-actions-mutable-action-tag .github/workflows/infrastructure.yml:42 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/infrastructure.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: azure/login@<40-character SHA>`. This step references `azure/login@v2`; resolve the SHA it points at today with `gh api repos/azure/login/commits/v2 --jq .sha`.
  • High: run-shell-injection .github/workflows/infrastructure.yml:53 — Using variable interpolation `${{...}}` with `github` context data in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
D17 · Explicit Debt · NoWarnInCsproj · ×4
  • NoWarnInCsproj Directory.Build.props:23 — CA1014 — 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:23 — CA1716 — 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:23 — CA1707 — 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:26 — CS1591 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
Warning — 47 finding(s)
D31 · IaC & Container Security · Medium IaC · ×25
  • Medium IaC: KSV-0013 deploy/helm/identity/templates/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/basket/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/basket/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/catalog/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/catalog/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/customersupport/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/customersupport/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/delivery/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/delivery/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/gateway/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/gateway/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/identity/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/identity/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/inventory/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/inventory/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/notification/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/notification/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/ordering/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/ordering/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/payment/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/payment/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/pricing/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/pricing/deployment.yaml — Image tag ":latest" used
  • Medium IaC: KSV-01010 deploy/k8s/reviews/configmap.yaml — ConfigMap with sensitive content
  • Medium IaC: KSV-0013 deploy/k8s/reviews/deployment.yaml — Image tag ":latest" used
D5 · Coupling · Off the main sequence · ×6
  • Off the main sequence: FreshCart.ServiceDefaults — FreshCart.ServiceDefaults: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 13 project(s), so it's rigid to change.
  • Off the main sequence: FreshCart.Reporting.Domain — FreshCart.Reporting.Domain: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: FreshCart.Identity.Domain — FreshCart.Identity.Domain: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: FreshCart.BuildingBlocks.Messaging — FreshCart.BuildingBlocks.Messaging: abstractness 0.08, instability 0.00, distance 0.92 — 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: FreshCart.Delivery.Domain — FreshCart.Delivery.Domain: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: FreshCart.BuildingBlocks — FreshCart.BuildingBlocks: abstractness 0.27, instability 0.00, distance 0.73 — 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.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×3
  • Duplicated block (15 lines × 2) src/BuildingBlocks/FreshCart.ServiceDefaults/DevelopmentCertificateValidation.cs:25 — src/BuildingBlocks/FreshCart.ServiceDefaults/DevelopmentCertificateValidation.cs:25-39 | src/Services/Ordering/FreshCart.Ordering.Infrastructure/Inventory/DevelopmentCertificateValidation.cs:25-39 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/BuildingBlocks/FreshCart.ServiceDefaults/DevelopmentCertificateValidation.cs:25` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandValidator.cs:39 — src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandValidator.cs:39-53 | src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/UpdateProduct/UpdateProductCommandValidator.cs:32-46 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandValidator.cs:39` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/Services/Identity/FreshCart.Identity.Api/Configuration/AuthenticationConfiguration.cs:62 — src/Services/Identity/FreshCart.Identity.Api/Configuration/AuthenticationConfiguration.cs:62-77 | src/ApiGateways/FreshCart.Gateway.Yarp/Configuration/GatewayAuthenticationConfiguration.cs:40-54 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Services/Identity/FreshCart.Identity.Api/Configuration/AuthenticationConfiguration.cs:62` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D6 · Cohesion (LCOM4) · Low cohesion · ×3
  • Low cohesion: CancelOrderOnPaymentFailureActivity (LCOM4 4) src/Services/Ordering/FreshCart.Ordering.Application/Checkout/Activities/CancelOrderOnPaymentFailureActivity.cs:14 — CancelOrderOnPaymentFailureActivity's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: CancelOrderOnStockFailureActivity (LCOM4 4) src/Services/Ordering/FreshCart.Ordering.Application/Checkout/Activities/CancelOrderOnStockFailureActivity.cs:13 — CancelOrderOnStockFailureActivity's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: ConfirmOrderActivity (LCOM4 4) src/Services/Ordering/FreshCart.Ordering.Application/Checkout/Activities/ConfirmOrderActivity.cs:13 — ConfirmOrderActivity's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
D16 · Bus Factor · single-maintainer · ×1
  • single-maintainer — knowledge-concentration (bus factor) risk — single-maintainer — knowledge-concentration (bus factor) risk (1 author(s) across 40 commit(s) sampled).
D19 · Documentation Quality · LLM evaluation failed · ×1
  • LLM evaluation failed — JSON parse error: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. Path: $.findings[1].docPath | LineNumber: 0 | BytePositionInLine: 1139.
D24 · Comment Value · LLM evaluation failed · ×1
  • LLM evaluation failed — JSON parse error: Expected end of string, but instead reached end of data. Path: $.notable[5] | LineNumber: 0 | BytePositionInLine: 1069.
D36 · Supply-chain Provenance & Signing · Unpinned build actions · ×1
  • Unpinned build actions — CI references GitHub Actions by a floating ref (@main / @tag) rather than a pinned commit SHA, weakening build integrity. 10 floating ref(s) across 4 workflow file(s). Each floating ref is itemized at file:line by the SAST (D29) lens.
D36 · Supply-chain Provenance & Signing · PR-triggered workflow without a permissions block · ×1
  • PR-triggered workflow without a permissions block — 13 workflow(s) triggered by pull_request declare no `permissions:` block (reviews-ci.yml, reporting-ci.yml, pricing-ci.yml …) and so run with the repository's default GITHUB_TOKEN scope, while 4 sibling workflows in the same repository are already scoped. Pull-request runs build the least-trusted code in the repository; give each of these workflows its own least-privilege block — `permissions: {contents: read}` at the top of the workflow, widened per job only where a job genuinely writes.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×1
  • Duplicated block (22 lines × 2) src/Services/Basket/FreshCart.Basket.Api/Pricing/PricingGrpcChannelFactory.cs:21 — src/Services/Basket/FreshCart.Basket.Api/Pricing/PricingGrpcChannelFactory.cs:21-42 | src/Services/Ordering/FreshCart.Ordering.Infrastructure/Inventory/InventoryGrpcChannelFactory.cs:21-42 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Services/Basket/FreshCart.Basket.Api/Pricing/PricingGrpcChannelFactory.cs:21` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14 lines × 4) · ×1
  • Duplicated block (14 lines × 4) src/Services/Catalog/FreshCart.Catalog.Api/DependencyInjection.cs:131 — src/Services/Catalog/FreshCart.Catalog.Api/DependencyInjection.cs:131-144 | src/Services/Basket/FreshCart.Basket.Api/DependencyInjection.cs:170-183 | src/Services/Notification/FreshCart.Notification.Api/Configuration/NotificationHealthChecks.cs:53-66 | src/Services/Reviews/FreshCart.Reviews.Api/DependencyInjection.cs:93-106 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/Services/Catalog/FreshCart.Catalog.Api/DependencyInjection.cs:131` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×1
  • Duplicated block (11 lines × 2) src/Services/Basket/FreshCart.Basket.Api/Persistence/MartenOutboxStore.cs:21 — src/Services/Basket/FreshCart.Basket.Api/Persistence/MartenOutboxStore.cs:21-31 | src/Services/Ordering/FreshCart.Ordering.Infrastructure/Persistence/EntityFrameworkOutboxStore.cs:19-29 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Services/Basket/FreshCart.Basket.Api/Persistence/MartenOutboxStore.cs:21` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×1
  • Duplicated block (10 lines × 2) src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandValidator.cs:24 — src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandValidator.cs:24-33 | src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/UpdateProduct/UpdateProductCommandValidator.cs:20-29 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Services/Catalog/FreshCart.Catalog.Api/Features/Products/CreateProduct/CreateProductCommandValidator.cs:24` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D8 · Code Coverage · Coverage not measured · ×1
  • Coverage not measured — analyzer environment — Coverage NOT MEASURED: the analyzer environment could not build/run the test suite (a target framework / SDK band or targeting pack the analyzer image doesn't carry). This is OUR limitation, not a defect in the repo — coverage is excluded from the score rather than counted as a near-zero. We track the analyzer-image gap so it can be closed; in the meantime, no coverage collector was found in your CI either, so there is no existing report to hand us — add a collector to your test run and commit (or publish into the working tree) its Cobertura/OpenCover/lcov output, and real coverage will be read.
Recommendation — 26 finding(s)
D31 · IaC & Container Security · Low IaC · ×10
  • Low IaC: KSV-0020 deploy/helm/identity/templates/deployment.yaml — Runs with UID <= 10000 One securityContext edit clears this facet's near-duplicate rules together: KSV-0020, KSV-0021. This file is a Helm chart TEMPLATE and it already renders its `securityContext` from the chart's values (`.Values.securityContext`), so it is not the file to edit — writing the block in here would override whatever the chart's users pass in. The value that ships is the one in `deploy/helm/identity/values.yaml`: set `securityContext` there and every installation gets it by default.
  • Low IaC: KSV-0110 deploy/helm/identity/templates/deployment.yaml — Workloads in the default namespace This file is a Helm chart TEMPLATE: a template must not hard-code `namespace:` — the namespace comes from the install (`-n`) or from the release values, so writing one here overrides the choice every installation makes. Treat this as an install-time control: document (or default) the target namespace with the chart, rather than editing the manifest.
  • Low IaC: KSV-0020 deploy/k8s/basket/deployment.yaml — Runs with UID <= 10000 One securityContext edit clears this facet's near-duplicate rules together: KSV-0020, KSV-0021.
  • Low IaC: KSV-0020 deploy/k8s/catalog/deployment.yaml — Runs with UID <= 10000 One securityContext edit clears this facet's near-duplicate rules together: KSV-0020, KSV-0021.
  • Low IaC: KSV-0020 deploy/k8s/customersupport/deployment.yaml — Runs with UID <= 10000 One securityContext edit clears this facet's near-duplicate rules together: KSV-0020, KSV-0021.
  • Low IaC: KSV-0020 deploy/k8s/delivery/deployment.yaml — Runs with UID <= 10000 One securityContext edit clears this facet's near-duplicate rules together: KSV-0020, KSV-0021.
  • Low IaC: KSV-0020 deploy/k8s/gateway/deployment.yaml — Runs with UID <= 10000 One securityContext edit clears this facet's near-duplicate rules together: KSV-0020, KSV-0021.
  • Low IaC: KSV-0020 deploy/k8s/identity/deployment.yaml — Runs with UID <= 10000 One securityContext edit clears this facet's near-duplicate rules together: KSV-0020, KSV-0021.
  • Low IaC: KSV-0020 deploy/k8s/inventory/deployment.yaml — Runs with UID <= 10000 One securityContext edit clears this facet's near-duplicate rules together: KSV-0020, KSV-0021.
  • Low IaC: KSV-0020 deploy/k8s/notification/deployment.yaml — Runs with UID <= 10000 One securityContext edit clears this facet's near-duplicate rules together: KSV-0020, KSV-0021.
D29 · Static Analysis (SAST) · Low · ×9
  • Low: plaintext-http-link index.html:266 — This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
  • Low: plaintext-http-link index.html:271 — This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
  • Low: plaintext-http-link index.html:276 — This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
  • Low: plaintext-http-link index.html:281 — This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
  • Low: plaintext-http-link index.html:296 — This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
  • Low: plaintext-http-link index.html:301 — This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
  • Low: plaintext-http-link index.html:306 — This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
  • Low: plaintext-http-link index.html:344 — This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
  • Low: plaintext-http-link index.html:1411 — This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.
D23 · Boundary Type-Coupling · Bounded contexts not declared · ×1
  • Bounded contexts not declared — At 250k LoC spread over 46 projects the codebase is both large and multi-module, so explicit bounded contexts are warranted. Name this codebase's bounded contexts (≥2 module groups, e.g. per subsystem) so cross-boundary type coupling can be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D34 · Knowledge Freshness · early-stage repository · ×1
  • early-stage repository — too little history to judge knowledge freshness — early-stage repository — too little history to judge knowledge freshness (40 commit(s) sampled).
D36 · Supply-chain Provenance & Signing · No build provenance · ×1
  • No build provenance — No SLSA provenance generation or build attestation found in CI — nothing binds a released artifact to the build that produced it, so a consumer cannot tell your artifact from a substituted one. On GitHub Actions, `actions/attest-build-provenance` (or slsa-github-generator) emits one from the job's own OIDC identity; elsewhere, run `cosign attest` over the released artifact from the release pipeline and publish the attestation beside it.
D36 · Supply-chain Provenance & Signing · No artifact signing · ×1
  • No artifact signing — No artifact signing found in CI — sign your released artifacts with whatever your ecosystem ships (a GPG/minisign detached signature — or `cosign sign-blob` — over the release archives, or over a checksum file published alongside them, Authenticode via signtool, or `dotnet nuget sign` for packages) so consumers can verify what you built.
D36 · Supply-chain Provenance & Signing · No SBOM · ×1
  • No SBOM — No SBOM generation or committed SBOM found — produce one with what your ecosystem ships (`sbom-tool generate` (install it with `dotnet tool install --global Microsoft.Sbom.DotNetTool`) or `dotnet CycloneDX` over the solution, `syft` (or `anchore/sbom-action` in CI) over the source tree or released image). Publish it as a release asset (`*.spdx.json` / `*.cdx.json`) so consumers can see what they are installing.
D41 · Kernel & Syscall Confinement · No AppArmor/SELinux confinement · ×1
  • No AppArmor/SELinux confinement — Workloads declare no AppArmor or SELinux profile. A mandatory-access-control profile confines what a compromised container can touch on the host, complementing seccomp's syscall filter.
D9 · Test Distribution · Inverted test pyramid · ×1
  • Inverted test pyramid — Only 19 % of tests are unit tests (138 unit vs 596 integration, 0 BDD); a broader unit base gives faster, more localised feedback.
Info — 15 finding(s)
D10 · Test Quality · Mock framework · ×14
  • Mock framework: NSubstitute — FreshCart.BuildingBlocks.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Catalog.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Basket.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Pricing.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Ordering.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Inventory.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Payment.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Delivery.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Notification.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Reporting.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.CustomerSupport.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Reviews.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Identity.Tests references NSubstitute.
  • Mock framework: NSubstitute — FreshCart.Gateway.Tests references NSubstitute.
D22 · Internal API Consistency · No exposed public API · ×1
  • No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaksgitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source .0artifacts/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 .16artifacts/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 .67artifacts/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 fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner --format json --recursive .0artifacts/raw/osv-scanner.json
D42 · Runtime Threat Enforcementruntime-hardeningruntime-hardening: not applicable — The repository ships application workloads but no cluster-governance resources (CRDs, admission webhooks, or a committed policy engine). Runtime threat-detection (Falco/Tetragon) and admission control (Kyverno/OPA-Gatekeeper/PodSecurity) are cluster-OPERATOR controls owned by the platform, not shipped by an application repo/chart — nothing for this repo to assess.0

Run 019fc7fe-4362-7ff4-9ef3-79cc11015167 · 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 — 49 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.

Email — 26 field(s)
  • DownstreamPrincipal.Email src/ApiGateways/FreshCart.Gateway.Yarp/Auth/DownstreamPrincipal.cs:10
  • DownstreamTokenClaim.Email src/ApiGateways/FreshCart.Gateway.Yarp/Auth/DownstreamTokenClaim.cs:14
  • BasketCheckoutStartedIntegrationEvent.CustomerEmail src/BuildingBlocks/FreshCart.BuildingBlocks.Messaging/IntegrationEvents/BasketCheckoutStartedIntegrationEvent.cs:9
  • OrderPlacedIntegrationEvent.CustomerEmail src/BuildingBlocks/FreshCart.BuildingBlocks.Messaging/IntegrationEvents/OrderPlacedIntegrationEvent.cs:9
  • ClaimsPrincipalExtensions.EmailClaimName src/Services/Basket/FreshCart.Basket.Api/Authentication/ClaimsPrincipalExtensions.cs:13
  • CheckoutCommand.CustomerEmail src/Services/Basket/FreshCart.Basket.Api/Features/ShoppingBaskets/Checkout/CheckoutCommand.cs:8
  • CurrentUserResponse.Email src/Services/Identity/FreshCart.Identity.Api/Endpoints/Account/CurrentUserResponse.cs:8
  • AuthenticationProfileDto.Email src/Services/Identity/FreshCart.Identity.Api/Endpoints/Authentication/AuthenticationProfileDto.cs:8
  • SignInRequest.Email src/Services/Identity/FreshCart.Identity.Api/Endpoints/Authentication/SignInRequest.cs:7
  • SignUpRequest.Email src/Services/Identity/FreshCart.Identity.Api/Endpoints/Authentication/SignUpRequest.cs:8
  • SignUpResponse.Email src/Services/Identity/FreshCart.Identity.Api/Endpoints/Authentication/SignUpResponse.cs:8
  • SignInCommand.Email src/Services/Identity/FreshCart.Identity.Application/Authentication/Commands/SignIn/SignInCommand.cs:11
  • SignUpCommand.Email src/Services/Identity/FreshCart.Identity.Application/Authentication/Commands/SignUp/SignUpCommand.cs:11
  • SignUpResult.Email src/Services/Identity/FreshCart.Identity.Application/Authentication/Commands/SignUp/SignUpResult.cs:10
  • AuthenticationProfile.Email src/Services/Identity/FreshCart.Identity.Application/Common/Models/AuthenticationProfile.cs:9
  • DemoAccount.Email src/Services/Identity/FreshCart.Identity.Infrastructure/Persistence/IdentityDataSeeder.cs:133
  • OrderDetailDto.CustomerEmail src/Services/Ordering/FreshCart.Ordering.Application/Orders/Dtos/OrderDetailDto.cs:11
  • OrderSubmittedDomainEvent.CustomerEmail src/Services/Ordering/FreshCart.Ordering.Domain/Orders/Events/OrderSubmittedDomainEvent.cs:8
  • Order.CustomerEmail src/Services/Ordering/FreshCart.Ordering.Domain/Orders/Order.cs:26
  • OrderSubmission.CustomerEmail src/Services/Ordering/FreshCart.Ordering.Domain/Orders/OrderSubmission.cs:14
  • OrderingFieldLengths.Email src/Services/Ordering/FreshCart.Ordering.Infrastructure/Persistence/OrderingFieldLengths.cs:11
  • OrderDetailRow.CustomerEmail src/Services/Ordering/FreshCart.Ordering.Infrastructure/Persistence/Reads/OrderDetailRow.cs:17
  • GenerateInvoiceRequest.CustomerEmail src/Services/Reporting/FreshCart.Reporting.Api/Endpoints/Invoices/GenerateInvoiceRequest.cs:13
  • GenerateInvoiceCommand.CustomerEmail src/Services/Reporting/FreshCart.Reporting.Application/Invoices/Commands/GenerateInvoice/GenerateInvoiceCommand.cs:13
  • Invoice.CustomerEmail src/Services/Reporting/FreshCart.Reporting.Domain/Invoices/Invoice.cs:24
  • InvoiceRecord.CustomerEmail src/Services/Reporting/FreshCart.Reporting.Infrastructure/Persistence/Warehouse/InvoiceRecord.cs:15
Address — 21 field(s)
  • BasketCheckoutStartedIntegrationEvent.BillingAddress src/BuildingBlocks/FreshCart.BuildingBlocks.Messaging/IntegrationEvents/BasketCheckoutStartedIntegrationEvent.cs:19
  • CheckoutAddress.PostalCode src/BuildingBlocks/FreshCart.BuildingBlocks.Messaging/IntegrationEvents/CheckoutAddress.cs:3
  • CheckoutAddressValidator.MaxPostalCodeLength src/Services/Basket/FreshCart.Basket.Api/Features/ShoppingBaskets/Checkout/CheckoutAddressValidator.cs:10
  • CheckoutCommand.BillingAddress src/Services/Basket/FreshCart.Basket.Api/Features/ShoppingBaskets/Checkout/CheckoutCommand.cs:11
  • CheckoutRequest.BillingAddress src/Services/Basket/FreshCart.Basket.Api/Features/ShoppingBaskets/Checkout/CheckoutRequest.cs:7
  • DeliveryAddressDto.PostalCode src/Services/Delivery/FreshCart.Delivery.Application/Tracking/DeliveryAddressDto.cs:11
  • DeliveryAddress.PostalCode src/Services/Delivery/FreshCart.Delivery.Domain/Deliveries/DeliveryAddress.cs:29
  • AddressDocument.PostalCode src/Services/Delivery/FreshCart.Delivery.Infrastructure/Persistence/Documents/AddressDocument.cs:14
  • OrderAddressDto.PostalCode src/Services/Ordering/FreshCart.Ordering.Application/Orders/Dtos/OrderAddressDto.cs:7
  • OrderDetailDto.BillingAddress src/Services/Ordering/FreshCart.Ordering.Application/Orders/Dtos/OrderDetailDto.cs:29
  • Address.PostalCode src/Services/Ordering/FreshCart.Ordering.Domain/Orders/Address.cs:7
  • Order.BillingAddress src/Services/Ordering/FreshCart.Ordering.Domain/Orders/Order.cs:46
  • OrderSubmission.BillingAddress src/Services/Ordering/FreshCart.Ordering.Domain/Orders/OrderSubmission.cs:32
  • OrderingFieldLengths.PostalCode src/Services/Ordering/FreshCart.Ordering.Infrastructure/Persistence/OrderingFieldLengths.cs:27
  • OrderDetailRow.BillingPostalCode src/Services/Ordering/FreshCart.Ordering.Infrastructure/Persistence/Reads/OrderDetailRow.cs:49
  • OrderDetailRow.ShippingPostalCode src/Services/Ordering/FreshCart.Ordering.Infrastructure/Persistence/Reads/OrderDetailRow.cs:59
  • GenerateInvoiceRequest.BillingAddress src/Services/Reporting/FreshCart.Reporting.Api/Endpoints/Invoices/GenerateInvoiceRequest.cs:16
  • GenerateInvoiceCommand.BillingAddress src/Services/Reporting/FreshCart.Reporting.Application/Invoices/Commands/GenerateInvoice/GenerateInvoiceCommand.cs:16
  • Invoice.BillingAddress src/Services/Reporting/FreshCart.Reporting.Domain/Invoices/Invoice.cs:28
  • InvoiceAddress.PostalCode src/Services/Reporting/FreshCart.Reporting.Domain/Invoices/InvoiceAddress.cs:12
  • InvoiceRecord.BillingAddress src/Services/Reporting/FreshCart.Reporting.Infrastructure/Persistence/Warehouse/InvoiceRecord.cs:17
Financial (card / IBAN) — 1 field(s)
  • PaymentMethods.CreditCard src/Services/Basket/FreshCart.Basket.Api/Features/ShoppingBaskets/Checkout/PaymentMethods.cs:10
Name — 1 field(s)
  • InvoiceAddress.FullName src/Services/Reporting/FreshCart.Reporting.Domain/Invoices/InvoiceAddress.cs:7

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