Executive summary
Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.
platformplatform/PlatformPlatform carries serious risk (46%). Several issues below can materially affect reliability, security, or the cost of change and warrant near-term attention.
It is strongest in Event-Driven (100%) — its messaging keeps components properly decoupled.
The area that most needs attention is Maturity (41%) — onboarding is slow — key decisions and the architecture aren't written down, so contributors have to reverse-engineer the intent. Readiness (43%) is the next concern — operating, monitoring and recovering the system safely is harder.
Leadership focus, highest impact first: 1 No ADRs found finding(s) in ADR Quality (ADR Quality); Start an ADR log (docs/adr/) recording significant decisions… (Architecture documentation); Group production code under src/ (or split deliberately (Folder & project structure).
For scale: Medium (~25,032 production lines); rebuilding it from scratch would take roughly ~1.1 person-years (~1–3 engineers). Approximate, ±~30%.
It builds on a genuinely strong Event-Driven foundation (100%); the priorities above are the highest-leverage way to bring the rest up to that level.
Rebuild cost & value ~ Modeled — €51,000–€260,000
| Cost to rebuild | €51,000–€260,000 |
| Domain complexity | Very high |
| Quality factor | 0.7× (at 46% quality) |
| Size & shape | Medium · 43% boilerplate · 19% straight-line · 39% branching logic |
| Dead frontend code | ~50886 LoC unreachable (524 file(s)) |
This codebase represents roughly ~1.1 person-years of build effort (about ~€160,000 to rebuild). Its weakest lens is Maturity at 41% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Architecture — module dependency graph
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Domain Modelling
At a glance — Event-Driven
At a glance — Accessibility
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A06:2021 — Vulnerable & Outdated Components | 23 | High / Critical |
| A05:2021 — Security Misconfiguration | 5 | Medium |
Roadmap
Top priorities: Resolve the 1 No ADRs found finding(s) in ADR Quality; Start an ADR log (docs/adr/) recording significant decisions and their rationale; Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +2.8 pts | Low | ADR Quality |
| Start an ADR log (docs/adr/) recording significant decisions and their rationale. | +2.8 pts | Medium | Architecture documentation |
| Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root. | +1.7 pts | Medium | Folder & project structure |
| Add a BenchmarkDotNet project for the hot paths (with [MemoryDiagnoser] to track allocations), and run it in CI to catch regressions. | +1.5 pts | Medium | Benchmark discipline |
| Raise allocation-aware density on the hot paths — currently 22 use(s) across 25,244 production line(s) (~0.9/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10. | +1.3 pts | Medium | Allocation hygiene |
| Enforce authorization at every handler — call the guard method (throw-on-violation) from each one, or adopt [Authorize] so protected-by-default is demonstrable. | +1.3 pts | Medium | Access Controls |
| Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs. | +1.1 pts | Medium | Strongly-typed ids |
| Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y (or vuejs-accessibility), assert with jest-axe / playwright-axe in tests, then gate axe/pa11y/Lighthouse in CI. | +1.0 pts | Medium | A11y enforcement |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| application/package-lock.json | 0.0 | Slop | JS/npm Dependency Vulnerabilities: High CVE: [CVE redacted] |
| application/account/Core/Integrations/Stripe/StripeClient.cs | 6.0 | Mixed | Explicit Debt: TodoComment |
| application/account/Tests/Subscriptions/AcknowledgeStripeWebhookTests.cs | 6.5 | Mixed | Test Quality: No assertions: AcknowledgeStripeWebhook_WhenCheckoutSessionCompleted_ShouldSyncSubscription |
| application/account/Core/Integrations/Stripe/MockStripeClient.cs | 6.7 | Mixed | Explicit Debt: TodoComment |
| application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs | 7.0 | Mixed | Cyclomatic Complexity: StripeEventReplayer.MapSubscriptionUpdated (cyclomatic 22) |
| application/account/Core/Features/Subscriptions/Shared/ProcessPendingStripeEvents.cs | 7.2 | Mixed | Cyclomatic Complexity: ProcessPendingStripeEvents.SyncStateFromStripe (cyclomatic 67) |
| application/account/Core/Features/Users/Domain/UserRepository.cs | 7.4 | Mixed | Cyclomatic Complexity: UserRepository.Search (cyclomatic 30) |
| application/account/Core/Features/ExternalAuthentication/Shared/ExternalAuthenticationHelper.cs | 7.8 | Mixed | Cyclomatic Complexity: ExternalAuthenticationHelper.ValidateCallback (cyclomatic 17) |
| application/account/Core/Features/Authentication/Commands/RefreshAuthenticationTokens.cs | 7.8 | Mixed | Cyclomatic Complexity: RefreshAuthenticationTokensHandler.Handle (cyclomatic 16) |
| application/account/Workers/FeatureFlagDefinitionReconciler.cs | 7.8 | Mixed | Cyclomatic Complexity: FeatureFlagDefinitionReconciler.ReconcileInternalAsync (cyclomatic 16) |
| application/account/Core/Features/Subscriptions/Shared/StripeEventPayloadResolver.cs | 8.2 | Near-clean | Explicit Debt: TodoComment |
| application/shared-kernel/SharedKernel/Configuration/SharedInfrastructureConfiguration.cs | 8.2 | Near-clean | Explicit Debt: HackComment |
| application/account/Core/Features/Tenants/BackOffice/Queries/GetTenants.cs | 8.5 | Near-clean | Cyclomatic Complexity: GetTenantsHandler.Handle (cyclomatic 27) |
| application/account/Core/Features/ExternalAuthentication/Commands/CompleteExternalLogin.cs | 8.5 | Near-clean | Cyclomatic Complexity: CompleteExternalLoginHandler.Handle (cyclomatic 16) |
| application/AppGateway/Middleware/AuthenticationCookieMiddleware.cs | 8.5 | Near-clean | Cognitive Complexity: AuthenticationCookieMiddleware.HandleOutgoingResponseAsync (cognitive 19) |
| application/shared-kernel/SharedKernel/FeatureFlags/FeatureFlagsRegistry.cs | 8.5 | Near-clean | Cognitive Complexity: FeatureFlags.ValidateFlags (cognitive 18) |
| application/shared-webapp/config/jsPlugins/no-misplaced-tanstack-query-options.js | 8.5 | Near-clean | Cognitive Complexity: CallExpression (cognitive 16) |
| application/account/Core/Features/Tenants/Domain/TenantRepository.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (15 lines × 2) |
| application/account/Core/Features/FeatureFlags/Queries/GetFeatureFlagUsers.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (9 lines × 2) |
| application/account/Api/Endpoints/EmailAuthenticationEndpoints.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (7 lines × 2) |
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 89 of 89 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. 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.
What we checked — 89 dimensions across the health lenses
- 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, 92 of 124 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- 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.
- 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.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| jscpd | Code duplication | — | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.301 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.301 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | openai-compatible | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D19 Documentation Quality — LLM provider failed — The model provider was unreachable or errored, 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.
- D21 Naming Consistency — LLM provider failed — The model provider was unreachable or errored, 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.
- D23 Boundary Type-Coupling — evaluation did not complete — Dimension evaluation failed — excluded from the score.
- D24 Comment Value — LLM provider failed — The model provider was unreachable or errored, 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.
- D26 Project Cohesion — evaluation did not complete — Dimension evaluation failed — excluded from the score.
- D32 Data Compliance (PII/GDPR) — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
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
- 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 (EF migration scaffolds, *.Designer.cs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only; the generated footprint is reported separately under Solution Shape.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (EF migrations, designer files, snapshots) 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.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
- D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and the advisory database — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- 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.
- AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
- 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, and component-wrapped fields (e.g. a <TextField>) are 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. Static readiness, not conformance.
- AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
- AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them.
- AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — only literal inline colours and in-repo <style>-block CSS are read; external stylesheets, CSS-in-JS, computed/runtime/theme colour, and image contrast are all out of reach, so a clean result is bounded by what the markup 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 ADVISORY: an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being unhealthy.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- C3 Audit Trail: This control is scored from in-repo evidence only — a working control configured outside the repository leaves no signal a static scan can credit.
- C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- 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.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
14 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ProcessPendingStripeEvents.SyncStateFromStripe at 67.
What to do
- Resolve the 1 ProcessPendingStripeEvents.SyncStateFromStripe (cyclomatic 67) finding(s) in Cyclomatic Complexity — start with ProcessPendingStripeEvents.cs. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 UserRepository.Search (cyclomatic 30) finding(s) in Cyclomatic Complexity — start with UserRepository.cs. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 GetTenantsHandler.Handle (cyclomatic 27) finding(s) in Cyclomatic Complexity — start with GetTenants.cs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
12 method(s) exceeded the cognitive complexity threshold of 15; the worst was ProcessPendingStripeEvents.SyncStateFromStripe at 64.
What to do
- Resolve the 1 ProcessPendingStripeEvents.SyncStateFromStripe (cognitive 64) finding(s) in Cognitive Complexity — start with ProcessPendingStripeEvents.cs. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 ProcessPendingStripeEvents.EmitBillingEventsFromEventsListAsync… finding(s) in Cognitive Complexity — start with ProcessPendingStripeEvents.cs. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 UserRepository.Search (cognitive 28) finding(s) in Cognitive Complexity — start with UserRepository.cs. — One of this dimension's main actionable groups (1 warning-level).
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
3 god class(es) detected.
D4 · Code Duplication
8 duplicated block group(s) detected.
D5 · Coupling
13 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
D6 · Cohesion (LCOM4)
7 of 31 classes have LCOM4 above 3.
What to do
- Resolve the 7 Low cohesion finding(s) in Cohesion (LCOM4) — start with ExternalAuthenticationService.cs, FeatureFlag.cs, Result.cs. — One of this dimension's main actionable groups (7 warning-level).
- Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D9 · Test Distribution
909 test methods: 909 unit, 0 integration, 0 BDD, 0 e2e.
D10 · Test Quality
0 skipped, 3 zero-assertion, 1 mock references across 909 tests.
D11 · Test Reliability
0 flaky across 1 measured tier(s). unit: measured (0 flaky).
D12 · Dependency Hygiene
0 outdated, 0 vulnerable, 0 deprecated packages.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 60 packages use a banned license.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
5 deducted debt markers + 0 dead symbols across 24590 LoC (0.0/KLoC) → score 10.0.
D18 · Solution Shape
13 projects, 556 .cs files, 48849 hand-written lines of code (24590 production / 24259 test), plus 442 generated (EF migrations / designer / snapshots, excluded from quality), 25 inter-project edges (build failed).
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D22 · Internal API Consistency
No public API surface exposed; nothing to be inconsistent.
D27 · Navigability
93 % of calls cross a namespace and 15 % go through an interface, but 97 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: medium — clean/modular boundaries expected.
What to do
- Improve Navigability — currently 8.2/10. — 93 % of calls cross a namespace and 15 % go through an interface, but 97 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: medium — clean/modular boundaries expected.
D28 · Secrets (history)
gitleaks scanned the full history and found no secrets.
D29 · Static Analysis (SAST)
semgrep found no security issues.
D30 · Dependency Vulnerabilities
3 vulnerable package(s): 0 critical, 3 high, 0 medium, 0 low.
What to do
- Resolve the 3 High CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (3 issue-level).
D31 · IaC & Container Security
5 finding(s): 0 critical, 0 high, 0 medium, 5 low.
D33 · JS/npm Dependency Vulnerabilities
8 finding(s): 0 critical, 4 high, 2 medium, 2 low.
What to do
- Resolve the 4 High CVE finding(s) in JS/npm Dependency Vulnerabilities — start with package-lock.json (4). — One of this dimension's main actionable groups (4 issue-level).
- Resolve the 2 Medium CVE finding(s) in JS/npm Dependency Vulnerabilities — start with package-lock.json (2). — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 2 Low CVE finding(s) in JS/npm Dependency Vulnerabilities — start with package-lock.json (2). — One of this dimension's main actionable groups (2 recommendation-level).
D36 · Supply-chain Provenance & Signing
0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 No artifact signing finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (.github/SECURITY.md) is published with a reporting contact.
D38 · OSV Dependency Vulnerabilities
12 finding(s): 0 critical, 4 high, 4 medium, 4 low.
What to do
- Resolve the 4 High CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (4). — One of this dimension's main actionable groups (4 issue-level).
- Resolve the 4 Medium CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (4). — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 4 Low CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (4). — One of this dimension's main actionable groups (4 recommendation-level).
Frontend & cross-cutting dimensions
AC1 · Text alternatives
AC2 · Forms & labels
- This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×3) — AvatarUpload.tsx:25, TenantLogoPicker.tsx:112, UserAvatarPicker.tsx:105
- A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child. — Field.tsx:10
What to do
- Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure
- No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×2) — index.html:2, index.html:2
- user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta. (×2) — index.html:6, index.html:6
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.
AC4 · Keyboard semantics
AC5 · ARIA correctness
AC6 · Visual & motion safety
AC7 · A11y enforcement
- No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time.
What to do
- Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y (or vuejs-accessibility), assert with jest-axe / playwright-axe in tests, then gate axe/pa11y/Lighthouse in CI.
AX1 · Captive dependencies
AX10 · Code composition
AX2 · Stateful singletons
- `SinglePageAppConfiguration` is a singleton (one shared instance) but mutates instance state outside any lock (_htmlTemplate, _remoteEntryJsContent; e.g. `_htmlTemplate` at line 133). — SinglePageAppConfiguration.cs:10
What to do
- Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
- `IUserRepository` declares 21 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — UserRepository.cs:13
- `IStripeClient` declares 28 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IStripeClient.cs:5
What to do
- Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX7 · Slice cohesion
- `BillingEventSummary` (slice 'BackOffice') depends on `BillingEventId` from slice 'Subscriptions'. — GetBackOfficeBillingEvents.cs:32
- `BackOfficeDashboardPlanDistributionEntry` (slice 'BackOffice') depends on `SubscriptionPlan` from slice 'Subscriptions'. — GetDashboardPlanDistribution.cs:17
- `BackOfficeDashboardLogin` (slice 'BackOffice') depends on `LoginMethod` from slice 'Authentication'. — GetDashboardRecentLogins.cs:20
- `LoginEntry` (slice 'BackOffice') depends on `LoginMethod` from slice 'Authentication'. — GetDashboardRecentLogins.cs:114
- `BackOfficeDashboardPayment` (slice 'BackOffice') depends on `PaymentTransactionId` from slice 'Subscriptions'. — GetDashboardRecentPayments.cs:17
- `BackOfficeDashboardStripeEvent` (slice 'BackOffice') depends on `BillingEventId` from slice 'Subscriptions'. — GetDashboardRecentStripeEvents.cs:17
- `BackOfficeInvoiceSummary` (slice 'BackOffice') depends on `PaymentTransactionId` from slice 'Subscriptions'. — GetBackOfficeInvoices.cs:29
- `PaymentTransactionResponse` (slice 'Billing') depends on `PaymentTransactionId` from slice 'Subscriptions'. — GetPaymentHistory.cs:15
- `FeatureFlagTenantInfo` (slice 'FeatureFlags') depends on `SubscriptionPlan` from slice 'Subscriptions'. — GetFeatureFlagTenants.cs:63
- `FeatureFlagUserInfo` (slice 'FeatureFlags') depends on `UserRole` from slice 'Users'. — GetFeatureFlagUsers.cs:63
- `TenantDetailResponse` (slice 'Tenants') depends on `SubscriptionPlan` from slice 'Subscriptions'. — GetTenantDetail.cs:14
- `TenantPaymentTransaction` (slice 'Tenants') depends on `PaymentTransactionId` from slice 'Subscriptions'. — GetTenantPaymentHistory.cs:21
- `TenantSummary` (slice 'Tenants') depends on `SubscriptionPlan` from slice 'Subscriptions'. — GetTenants.cs:35
- `TenantUserSummary` (slice 'Tenants') depends on `UserRole` from slice 'Users'. — GetTenantUsers.cs:29
- `Tenant` (slice 'Tenants') depends on `SubscriptionPlan` from slice 'Subscriptions'. — Tenant.cs:7
- `BackOfficeUserTenantMembership` (slice 'Users') depends on `SubscriptionPlan` from slice 'Subscriptions'. — GetBackOfficeUserDetail.cs:39
- `BackOfficeUserLoginEntry` (slice 'Users') depends on `LoginMethod` from slice 'Authentication'. — GetBackOfficeUserLoginHistory.cs:21
- `BackOfficeUserSummary` (slice 'Users') depends on `SubscriptionPlan` from slice 'Subscriptions'. — GetBackOfficeUsers.cs:32
- `BackOfficeUserSession` (slice 'Users') depends on `LoginMethod` from slice 'Authentication'. — GetBackOfficeUserSessions.cs:22
- `ExternalIdentity` (slice 'Users') depends on `ExternalProviderType` from slice 'ExternalAuthentication'. — User.cs:126
What to do
- Keep slices independent: share cross-slice needs via an explicit contract/shared-kernel, not direct references between slices.
AX8 · Test isolation
AX9 · CQS / query purity
C1 · Data Protection
- No in-app HTTPS enforcement, but ForwardedHeaders / 127.0.0.1 binding indicates a reverse-proxy topology — adding UseHttpsRedirection in the app would be wrong in this layout. Verify the reverse proxy enforces TLS. — Program.cs:98
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 Controls
- Authorization machinery exists but no [Authorize] usage and no imperative guard calls were found at handlers.
What to do
- Enforce authorization at every handler — call the guard method (throw-on-violation) from each one, or adopt [Authorize] so protected-by-default is demonstrable.
C3 · Audit Trail
C4 · Data Retention
DM1 · Aggregate boundaries
DM2 · Strongly-typed ids
- `FeatureFlag.FlagKey` is a raw `String` — give it a strongly-typed id (`readonly record struct FlagKey { String Value }`). — FeatureFlag.cs:31
- `BillingEvent.StripeEventId` is a raw `String` — give it a strongly-typed id (`readonly record struct StripeEventId { String Value }`). — BillingEvent.cs:50
What to do
- Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
DM4 · Rich vs anemic model
- `AggregateRoot` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — AggregateRoot.cs:22
- `AudibleEntity` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — AudibleEntity.cs:9
- `SoftDeletableAggregateRoot` is an aggregate/entity with 1 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — SoftDeletableAggregateRoot.cs:3
What to do
- Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM5 · Encapsulated state
DM6 · Domain ↔ infrastructure boundary
- `SessionConfiguration` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — SessionConfiguration.cs:10
- `SessionRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — SessionRepository.cs:64
- `EmailLoginRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — EmailLoginRepository.cs:28
- `ExternalLoginRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — ExternalLoginRepository.cs:26
- `FeatureFlagConfiguration` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — FeatureFlagConfiguration.cs:9
- `FeatureFlagRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — FeatureFlagRepository.cs:55
- `BillingEventConfiguration` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — BillingEventConfiguration.cs:8
- `BillingEventRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — BillingEventRepository.cs:57
- `StripeEventConfiguration` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — StripeEventConfiguration.cs:8
- `StripeEventRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — StripeEventRepository.cs:69
- `SubscriptionConfiguration` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — SubscriptionConfiguration.cs:12
- `SubscriptionRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — SubscriptionRepository.cs:88
- `TenantConfiguration` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — TenantConfiguration.cs:8
- `TenantRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — TenantRepository.cs:69
- `UserConfiguration` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — UserConfiguration.cs:12
- `UserRepository` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — UserRepository.cs:130
- `DomainEventCollector` (domain layer) uses `EF Core` inside a method body — infrastructure reached without it appearing in any signature. — DomainEventCollector.cs:6
What to do
- Invert domain→infrastructure dependencies: declare interfaces in the domain, implement them in infrastructure (Dependency Inversion).
DM7 · Repository granularity
DM8 · Value-object opportunities
- The parameters [pageoffset, pagesize, search] travel together across 6 signatures — that's a missing value object. Extracting them into one type (e.g. `Address`, `Money`, `Coordinate`) removes repetition, prevents argument-order mistakes, and gives the concept a home for its rules. — UserRepository.cs:45
What to do
- Extract recurring primitive parameter clusters into value objects so the concept (and its rules) lives in one place.
ED1 · Handler temporal coupling
ED2 · Event/command shape
ED3 · Event naming
- `TenantCreatedEvent` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. — TenantEvents.cs:6
- `IDomainEvent` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. — IDomainEvent.cs:16
What to do
- Name events in the past tense — they record facts that already happened.
ED4 · Outbox / dual-write
ED5 · Idempotency
- `Commands.LogoutHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — Logout.cs:21
- `Commands.RefreshAuthenticationTokensHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — RefreshAuthenticationTokens.cs:32
- `Commands.RevokeSessionHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — RevokeSession.cs:26
- `Commands.UpdateBillingInfoHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — UpdateBillingInfo.cs:46
- `Commands.CompleteEmailSignupHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — CompleteEmailSignup.cs:36
- `Commands.ResendEmailLoginCodeHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — ResendEmailLoginCode.cs:36
- `Commands.CompleteExternalSignupHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — CompleteExternalSignup.cs:44
- `Commands.ActivateFeatureFlagHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — ActivateFeatureFlag.cs:26
- `Commands.DeactivateFeatureFlagHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — DeactivateFeatureFlag.cs:26
- `Commands.DeleteFeatureFlagHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — DeleteFeatureFlag.cs:26
- `Commands.SetTenantFeatureFlagInternalHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — SetTenantFeatureFlagInternal.cs:38
- `Commands.SetTenantFeatureFlagOwnerHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — SetTenantFeatureFlagOwner.cs:35
- `Commands.SetUserFeatureFlagHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — SetUserFeatureFlag.cs:34
- `Commands.SetUserFeatureFlagInternalHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — SetUserFeatureFlagInternal.cs:39
- `Commands.AcknowledgeBillingDriftHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — AcknowledgeBillingDrift.cs:22
- `Commands.SetTenantAbInclusionPinHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — SetTenantAbInclusionPin.cs:22
- `Commands.CreateTenantHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — CreateTenant.cs:19
- `Commands.RemoveTenantLogoHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — RemoveTenantLogo.cs:21
- `Commands.UpdateTenantHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — UpdateCurrentTenant.cs:32
- `Commands.UpdateTenantLogoHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — UpdateTenantLogo.cs:42
- `Commands.SetUserAbInclusionPinHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — SetUserAbInclusionPin.cs:22
- `Commands.ChangeLocaleHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — ChangeLocale.cs:26
- `Commands.ChangeUserRoleHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — ChangeUserRole.cs:22
- `Commands.RemoveAvatarHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — RemoveAvatar.cs:14
- `Commands.UpdateCurrentUserHandler.Handle` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) — UpdateCurrentUser.cs:33
What to do
- Make retry-prone mutations idempotent — guard each write with an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write, so a re-run doesn't double-apply.
GD1 · Unfinished & placeholder code
- A placeholder string ("billing@example.com") is still in shipped code — typical of generated boilerplate that was never filled in. — MockStripeClient.cs:285
What to do
- Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
IC1 · Incompleteness & stubs
- `StopAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — PlatformCurrencyStartupResolver.cs:45
- `GetEventsForCustomerAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — StripeClient.cs:1122
- `GetPlatformCurrencyAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — UnconfiguredStripeClient.cs:73
- `BuildCustomerDashboardUrl` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — UnconfiguredStripeClient.cs:170
What to do
- Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
M1 · Documentation (README)
What to do
- Add a 'Testing' section to the root README — how to run the test suite.
- Add a README to the 13 of 13 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation
- No Architecture Decision Records found — decisions aren't captured for future maintainers.
- No C4/PlantUML/Mermaid diagram or architecture.md — the high-level shape isn't documented.
What to do
- Start an ADR log (docs/adr/) recording significant decisions and their rationale.
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
- Projects aren't grouped under a src/ folder — production and tooling code are mixed at the root.
- Test projects aren't grouped under a tests/ folder — the test surface isn't separable from production code at a glance.
- Only 4/13 projects share a common root namespace — the code's module identity is inconsistent.
What to do
- Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
- Group test projects under tests/ (or test/, spec/) so the test surface is discoverable and CI can scope it.
- Adopt a consistent root-namespace convention (a shared prefix, e.g. Acme.*); short project-file/directory names are fine as long as the RootNamespace is uniform.
P1 · CI/CD gates
P2 · Observability
- Only 4/9 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log).
What to do
- Extend structured logging to the remaining service-like projects so the whole executable surface is diagnosable in production.
P3 · Security & performance tooling
What to do
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced — a bad release is harder to detect and reverse.
What to do
- Add readiness/liveness probes and a rolling-update (or blue/green) strategy so a bad release is caught and rolled back automatically.
P5 · DR & Backup
- A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.
What to do
- Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
P7 · Outbound HTTP resilience
P8 · Schema migrations
PF1 · Benchmark discipline
- No BenchmarkDotNet suite was found. For a performance-sensitive library, a benchmark guards against silent regressions — but it's a bonus here, not a deduction.
What to do
- Add a BenchmarkDotNet project for the hot paths (with [MemoryDiagnoser] to track allocations), and run it in CI to catch regressions.
PF2 · Allocation hygiene
What to do
- Raise allocation-aware density on the hot paths — currently 22 use(s) across 25,244 production line(s) (~0.9/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.
PF3 · Async & latency hygiene
R1 · Type Safety
What to do
- Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication
- application/account/WebApp/tests/e2e/back-office-flows.spec.ts:62 · application/account/WebApp/tests/e2e/feature-flag-flows.spec.ts:374 — back-office-flows.spec.ts:62
- application/account/WebApp/tests/e2e/permission-based-ui-flows.spec.ts:5 · application/main/WebApp/tests/e2e/federated-navigation-flows.spec.ts:5 — permission-based-ui-flows.spec.ts:5
- application/account/WebApp/routes/account/billing/-components/usePlansPageState.ts:77 · application/shared-webapp/ui/hooks/useDateRangeField.ts:334 — usePlansPageState.ts:77
- application/account/WebApp/tests/e2e/back-office-flows.spec.ts:9 · application/account/WebApp/tests/e2e/back-office-flows.spec.ts:64 · application/account/WebApp/tests/e2e/billing-events-flows.spec.ts:7 · application/account/WebApp/tests/e2e/feature-flag-flows.spec.ts:379 — back-office-flows.spec.ts:9
- application/account/WebApp/tests/e2e/localization-flows.spec.ts:3 · application/account/WebApp/tests/e2e/permission-based-ui-flows.spec.ts:3 · application/account/WebApp/tests/e2e/signup-flows.spec.ts:7 — localization-flows.spec.ts:3
- application/account/WebApp/tests/e2e/login-flows.spec.ts:5 · application/account/WebApp/tests/e2e/permission-based-ui-flows.spec.ts:3 · application/account/WebApp/tests/e2e/signup-flows.spec.ts:6 — login-flows.spec.ts:5
- application/account/WebApp/tests/e2e/mobile-view-flows.spec.ts:5 · application/account/WebApp/tests/e2e/permission-based-ui-flows.spec.ts:4 · application/main/WebApp/tests/e2e/federated-navigation-flows.spec.ts:4 — mobile-view-flows.spec.ts:5
- application/shared-webapp/ui/components/Sidebar.tsx:654 · application/shared-webapp/ui/components/Sidebar.tsx:683 — Sidebar.tsx:654
What to do
- Extract the duplicated blocks into shared functions/components.
R11 · Import Boundaries
- application/account/WebApp/tests/e2e/back-office-flows.spec.ts:2 imports @shared/e2e/fixtures/page-auth, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — back-office-flows.spec.ts:2
- application/account/WebApp/tests/e2e/back-office-flows.spec.ts:3 imports @shared/e2e/utils/constants, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — back-office-flows.spec.ts:3
- application/account/WebApp/tests/e2e/back-office-flows.spec.ts:4 imports @shared/e2e/utils/test-assertions, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — back-office-flows.spec.ts:4
- application/account/WebApp/tests/e2e/back-office-flows.spec.ts:5 imports @shared/e2e/utils/test-data, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — back-office-flows.spec.ts:5
- application/account/WebApp/tests/e2e/back-office-flows.spec.ts:6 imports @shared/e2e/utils/test-step-wrapper, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — back-office-flows.spec.ts:6
- application/account/WebApp/tests/e2e/billing-events-flows.spec.ts:2 imports @shared/e2e/fixtures/page-auth, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — billing-events-flows.spec.ts:2
- application/account/WebApp/tests/e2e/billing-events-flows.spec.ts:3 imports @shared/e2e/utils/constants, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — billing-events-flows.spec.ts:3
- application/account/WebApp/tests/e2e/billing-events-flows.spec.ts:4 imports @shared/e2e/utils/test-assertions, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — billing-events-flows.spec.ts:4
What to do
- Fix the listed violations: import through public entries (package exports / slice index), never reach into another layer or package's internals.
R2 · Cyclomatic Complexity
- Branch-heavy code is where defects cluster — extract decisions into smaller functions. (×8) — labels.ts:1, CurrentPlanDetails.tsx:21, DatePicker.tsx:44, …
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
What to do
- Split the oversized components into smaller, focused ones.
R6 · Tooling
- test ✓ · lint ✓ · typecheck ✗
What to do
- Add the missing scripts (eslint, tsc --noEmit) and run them in CI.
R7 · Dead Code
- 7 file(s) (~106 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package. — utils
- Unreachable from the 20 application, 17 tooling and 30 test entry point(s) detected in this repo. Gate removals on your build/type-check — an undetected custom entry would make these reachable.
- no import path from any entry point (20 application, 17 tooling, 30 test roots considered) (×6) — Sidebar.tsx, Calendar.tsx, Table.tsx, …
What to do
- Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene
- Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×3) — lingui.config.ts:1, lingui.factory.ts:1, createLinguiConfig.ts:1
- Declared in application/package.json but never imported anywhere in that package or its workspace members — dead weight and attack surface. Verify against build tooling before removing. (×3)
What to do
- Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports
S1 · Web-Security Posture
- MD5/SHA1 is broken for security purposes (collision-vulnerable). Use SHA-256+ for content integrity; for password storage, use a KDF (PBKDF2/Argon2/BCrypt). — UpdateTenantLogo.cs:79
What to do
- Replace MD5/SHA1 with SHA-256+ for content hashing; switch to a KDF (PBKDF2/Argon2/BCrypt) for password storage.
X1 · Async correctness
X2 · Cancellation propagation
- Only 265/278 async methods accept a CancellationToken, so requests can't be cancelled cleanly under load or on client disconnect. In Blazor Server circuits and other short-write hosts, omitting it can be an accepted convention — judge against your hosting model.
- No CancellationToken parameter — work can't be cancelled cleanly on disconnect/shutdown. (×13) — ApiAggregationService.cs:16, ApiAggregationService.cs:25, ApiAggregationService.cs:65, …
What to do
- Thread a CancellationToken through async methods so work stops promptly on cancellation.
X3 · Exception handling
X4 · Structured logging
X5 · Nullable reference types
- ~1.7 `!` suppressions per 1k syntax nodes — 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
| Dimension | WCAG 2.2 A/AA criteria | Coverage |
|---|---|---|
| AC1 · Text alternatives | 1.1.1, 1.2.2, 1.2.5 | Partial signal |
| AC2 · Forms & labels | 1.3.1, 3.3.2, 4.1.2 | Partial signal |
| AC3 · Page structure | 1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2 | Partial signal |
| AC4 · Keyboard semantics | 2.1.1, 2.4.3 | Partial signal |
| AC5 · ARIA correctness | 4.1.2 | Partial signal |
| AC6 · Visual & motion safety | 1.4.3, 2.4.7 | Partial — literal CSS only |
| AC7 · A11y enforcement | enforcement — no page criterion | Enforcement posture (process) |
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 53% | Fair — gated by R10, R7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 49% | Poor — gated by R11, AX7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 41% | Poor — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 43% | Poor — gated by R8, P5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 70% | Fair — gated by D36, C2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 65% | Fair — gated by DM2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Event-Driven | 100% | Exemplary | Strongest area. |
| Accessibility | 67% | Fair | Acceptable, with room to improve. |
| Performance | 71% | Healthy | Solid. |
Not included — 23 check(s) not relevant to this codebase
- 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. A delete/anonymise identifier was seen but did not co-occur with GDPR vocabulary or a subject-id shape, so it was not credited (e.g. a save-slot DeleteAccount()). 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
- D21 Naming Consistency — LLM evaluation failed
- D23 Boundary Type-Coupling — Dimension evaluation failed
- D24 Comment Value — LLM evaluation failed
- D25 ADR Conformance — no ADRs to check
- D26 Project Cohesion — Dimension evaluation failed
- D32 Data Compliance (PII/GDPR) — Not applicable
- D34 Knowledge Freshness — early-stage repository — too little history to judge knowledge freshness
- D35 Change Coupling — no production change history to mine for change-coupling
- D7 Architectural Integrity — No checkable ADRs to assess
- D8 Code Coverage — Coverage not measured
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- ES1 Event Sourcing — not run — 0/3 markers found
- M4 Documentation accuracy — LLM accuracy check could not reach the model — accuracy is advisory and stays neutral.
- P12 CI test-gate honesty — no data
- P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
- P9 Domain vs controller coverage — no coverage report found on disk — run tests with `--collect:"XPlat Code Coverage"` (or in CI) to enable this cross-layer check
- R4 Test Coverage — 30 test file(s) reach none of 550 production file(s) via imports — exercised outside the JS import graph (integration/bundled), not import-reachable
- R5 Dependency Freshness — npm is not installed — dependency freshness not measured; JS/npm CVEs are scored in D33 (JS/npm Dependency Vulnerabilities)
- X6 Hand-rolled structured-format parsing — no data
- X7 Silent fallback defaults — no data
Appendix A — Findings (grouped)
Issue — 16 finding(s)
- High CVE: [CVE redacted] application/package-lock.json
- High CVE: [CVE redacted] application/package-lock.json
- High CVE: [CVE redacted] application/package-lock.json
- High CVE: [CVE redacted] application/package-lock.json
- High CVE: [GHSA redacted] application/package-lock.json
- High CVE: [GHSA redacted] application/package-lock.json
- High CVE: [GHSA redacted] application/package-lock.json
- High CVE: [GHSA redacted] application/package-lock.json
- No assertions: AcknowledgeStripeWebhook_WhenCheckoutSessionCompleted_ShouldSyncSubscription application/account/Tests/Subscriptions/AcknowledgeStripeWebhookTests.cs:94
- No assertions: AcknowledgeStripeWebhook_WhenCustomerSubscriptionUpdated_ShouldSyncState application/account/Tests/Subscriptions/AcknowledgeStripeWebhookTests.cs:384
- No assertions: AcknowledgeStripeWebhook_WhenNoCustomerId_ShouldStoreAsIgnored application/account/Tests/Subscriptions/AcknowledgeStripeWebhookTests.cs:403
- High CVE: Scriban 7.1.0
- High CVE: SQLitePCLRaw.lib.e_sqlite3 2.1.11
- High CVE: MessagePack 2.5.192
- Dimension evaluation failed
- Dimension evaluation failed
Warning — 66 finding(s)
- Low cohesion: User (LCOM4 10) application/account/Core/Features/Users/Domain/User.cs:9
- Low cohesion: Result (LCOM4 9) application/shared-kernel/SharedKernel/Cqrs/Result.cs:109
- Low cohesion: Subscription (LCOM4 8) application/account/Core/Features/Subscriptions/Domain/Subscription.cs:30
- Low cohesion: FeatureFlag (LCOM4 6) application/account/Core/Features/FeatureFlags/Domain/FeatureFlag.cs:9
- Low cohesion: Tenant (LCOM4 6) application/account/Core/Features/Tenants/Domain/Tenant.cs:7
- Low cohesion: SinglePageAppConfiguration (LCOM4 6) application/shared-kernel/SharedKernel/SinglePageApp/SinglePageAppConfiguration.cs:10
- Low cohesion: ExternalAuthenticationService (LCOM4 5) application/account/Core/Features/ExternalAuthentication/ExternalAuthenticationService.cs:15
- Medium CVE: [GHSA redacted] application/package-lock.json
- Medium CVE: [GHSA redacted] application/package-lock.json
- Medium CVE: [GHSA redacted] application/package-lock.json
- Medium CVE: [GHSA redacted] application/package-lock.json
- TodoComment application/account/Core/Features/Subscriptions/Shared/StripeEventPayloadResolver.cs:30
- TodoComment application/account/Core/Integrations/Stripe/MockStripeClient.cs:102
- TodoComment application/account/Core/Integrations/Stripe/StripeClient.cs:1260
- Off the main sequence: SharedKernel
- Off the main sequence: Main
- Off the main sequence: Account
- TooManyMethods: MockStripeClient application/account/Core/Integrations/Stripe/MockStripeClient.cs:0
- TooManyMethods: StripeClient application/account/Core/Integrations/Stripe/StripeClient.cs:0
- Medium CVE: [CVE redacted] application/package-lock.json
- Medium CVE: [CVE redacted] application/package-lock.json
- Duplicated block (7 lines × 2) application/account/Api/Endpoints/EmailAuthenticationEndpoints.cs:21
- Duplicated block (7 lines × 2) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:574
- Duplicated block (5 lines × 2) application/account/Core/Features/FeatureFlags/Queries/GetFeatureFlagTenants.cs:244
- Duplicated block (5 lines × 2) application/account/Core/Features/FeatureFlags/Queries/GetTenantFeatureFlags.cs:127
- ProcessPendingStripeEvents.SyncStateFromStripe (cyclomatic 67) application/account/Core/Features/Subscriptions/Shared/ProcessPendingStripeEvents.cs:148
- UserRepository.Search (cyclomatic 30) application/account/Core/Features/Users/Domain/UserRepository.cs:260
- GetTenantsHandler.Handle (cyclomatic 27) application/account/Core/Features/Tenants/BackOffice/Queries/GetTenants.cs:139
- UserRepository.SearchAllUsersUnfilteredAsync (cyclomatic 27) application/account/Core/Features/Users/Domain/UserRepository.cs:455
- ProcessPendingStripeEvents.EmitBillingEventsFromEventsListAsync (cyclomatic 24) application/account/Core/Features/Subscriptions/Shared/ProcessPendingStripeEvents.cs:437
- StripeEventReplayer.MapSubscriptionUpdated (cyclomatic 22) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:209
- StripeEventReplayer.MapEvent (cyclomatic 18) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:88
- StripeEventReplayer.ExtractCurrencyFromPayload (cyclomatic 18) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:682
- ExternalAuthenticationHelper.ValidateCallback (cyclomatic 17) application/account/Core/Features/ExternalAuthentication/Shared/ExternalAuthenticationHelper.cs:38
- StripeEventReplayer.ResolveScheduledTargetPlan (cyclomatic 17) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:603
- RefreshAuthenticationTokensHandler.Handle (cyclomatic 16) application/account/Core/Features/Authentication/Commands/RefreshAuthenticationTokens.cs:32
- CompleteExternalLoginHandler.Handle (cyclomatic 16) application/account/Core/Features/ExternalAuthentication/Commands/CompleteExternalLogin.cs:44
- StripeEventReplayer.ExtractUnitAmountFromPayload (cyclomatic 16) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:722
- FeatureFlagDefinitionReconciler.ReconcileInternalAsync (cyclomatic 16) application/account/Workers/FeatureFlagDefinitionReconciler.cs:82
- git history depth insufficient
- single-maintainer — knowledge-concentration (bus factor) risk
- HackComment application/shared-kernel/SharedKernel/Configuration/SharedInfrastructureConfiguration.cs:62
- Monorepo: only 1 of 2 solutions was scored
- LLM evaluation failed
- ProcessPendingStripeEvents.SyncStateFromStripe (cognitive 64) application/account/Core/Features/Subscriptions/Shared/ProcessPendingStripeEvents.cs:148
- ProcessPendingStripeEvents.EmitBillingEventsFromEventsListAsync (cognitive 28) application/account/Core/Features/Subscriptions/Shared/ProcessPendingStripeEvents.cs:437
- UserRepository.Search (cognitive 28) application/account/Core/Features/Users/Domain/UserRepository.cs:260
- FeatureFlagDefinitionReconciler.ReconcileInternalAsync (cognitive 28) application/account/Workers/FeatureFlagDefinitionReconciler.cs:82
- StripeEventReplayer.ResolveScheduledTargetPlan (cognitive 23) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:603
- StripeEventReplayer.MapSubscriptionUpdated (cognitive 22) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:209
- AuthenticationCookieMiddleware.HandleOutgoingResponseAsync (cognitive 19) application/AppGateway/Middleware/AuthenticationCookieMiddleware.cs:68
- RefreshAuthenticationTokensHandler.Handle (cognitive 18) application/account/Core/Features/Authentication/Commands/RefreshAuthenticationTokens.cs:32
- FeatureFlags.ValidateFlags (cognitive 18) application/shared-kernel/SharedKernel/FeatureFlags/FeatureFlagsRegistry.cs:48
- ExternalAuthenticationHelper.ValidateCallback (cognitive 16) application/account/Core/Features/ExternalAuthentication/Shared/ExternalAuthenticationHelper.cs:38
- StripeEventReplayer.ResolvePlanFromSubscriptionPayload (cognitive 16) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:563
- CallExpression (cognitive 16) application/shared-webapp/config/jsPlugins/no-misplaced-tanstack-query-options.js:29
- LLM evaluation failed
- LLM evaluation failed
- FileTooLong: Stripe/StripeClient.cs application/account/Core/Integrations/Stripe/StripeClient.cs:0
- ClassTooLong: StripeEventReplayer application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:0
- Unpinned build actions
- Duplicated block (15 lines × 2) application/account/Core/Features/Tenants/Domain/TenantRepository.cs:180
- Duplicated block (9 lines × 2) application/account/Core/Features/FeatureFlags/Queries/GetFeatureFlagUsers.cs:89
- Duplicated block (6 lines × 2) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:685
- Duplicated block (5 lines × 5) application/account/Core/Features/Subscriptions/Shared/StripeEventReplayer.cs:337
- Coverage not measured
Recommendation — 20 finding(s)
- Low IaC: DS-0026 application/AppGateway/Dockerfile
- Low IaC: DS-0026 application/account/Api/Dockerfile
- Low IaC: DS-0026 application/account/Workers/Dockerfile
- Low IaC: DS-0026 application/main/Api/Dockerfile
- Low IaC: DS-0026 application/main/Workers/Dockerfile
- Low CVE: [GHSA redacted] application/package-lock.json
- Low CVE: [GHSA redacted] application/package-lock.json
- Low CVE: [GHSA redacted] application/package-lock.json
- Low CVE: [GHSA redacted] application/package-lock.json
- Low CVE: [CVE redacted] application/package-lock.json
- Low CVE: [GHSA redacted] application/package-lock.json
- ObsoleteWithoutCallers application/shared-kernel/Tests/Persistence/SqliteConnectionExtensions.cs:9
- No ADRs found
- no ADRs to check
- Not applicable
- early-stage repository — too little history to judge knowledge freshness
- No build provenance
- No artifact signing
- No SBOM
- No checkable ADRs to assess
Info — 22 finding(s)
- Mock framework: NSubstitute
- Licenses scanned
- Justified suppression application/shared-kernel/SharedKernel/Emails/EmailHelpers.cs:70
- Build did not complete in the analyzer
- AppGateway.Tests (Test) application/AppGateway.Tests/AppGateway.Tests.csproj
- AppGateway (Production) application/AppGateway/AppGateway.csproj
- AppHost (Production) application/AppHost/AppHost.csproj
- Account.Api (Production) application/account/Api/Account.Api.csproj
- Account (Production) application/account/Core/Account.csproj
- Account.Tests (Test) application/account/Tests/Account.Tests.csproj
- Account.Workers (Production) application/account/Workers/Account.Workers.csproj
- Main.Api (Production) application/main/Api/Main.Api.csproj
- Main (Production) application/main/Core/Main.csproj
- Main.Tests (Test) application/main/Tests/Main.Tests.csproj
- Main.Workers (Production) application/main/Workers/Main.Workers.csproj
- SharedKernel (Production) application/shared-kernel/SharedKernel/SharedKernel.csproj
- SharedKernel.Tests (Test) application/shared-kernel/Tests/SharedKernel.Tests.csproj
- No exposed public API
- Unit tests
- Integration tests
- BDD tests
- E2E tests
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source . | 0 | artifacts/raw/gitleaks.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config auto --json --quiet --timeout 0 --metrics off . | 0 | — |
| D30 · Dependency Vulnerabilities | dotnet | — | dotnet list application/PlatformPlatform.slnx package --vulnerable --include-transitive --format json | 3 | artifacts/raw/dotnet-vulnerable.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 5 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess. | 0 | — |
| D33 · JS/npm Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . | 8 | artifacts/raw/trivy-fs.json |
| D38 · OSV Dependency Vulnerabilities | osv-scanner | — | osv-scanner --format json --recursive . | 12 | artifacts/raw/osv-scanner.json |
Appendix C — Personal-data map
Email — 55 field(s)
- BackOfficeDashboardLogin.Email application/account/Core/Features/BackOffice/Dashboard/Queries/GetDashboardRecentLogins.cs:23
- LoginEntry.Email application/account/Core/Features/BackOffice/Dashboard/Queries/GetDashboardRecentLogins.cs:114
- BackOfficeDashboardRecentSignupOwner.Email application/account/Core/Features/BackOffice/Dashboard/Queries/GetDashboardRecentSignups.cs:27
- MeResponse.Email application/account/Core/Features/BackOffice/Queries/GetMe.cs:14
- UpdateBillingInfoCommand.Email application/account/Core/Features/Billing/Commands/UpdateBillingInfo.cs:20
- CompleteEmailSignupCommand.EmailLoginId application/account/Core/Features/EmailAuthentication/Commands/CompleteEmailSignup.cs:20
- StartEmailLoginCommand.Email application/account/Core/Features/EmailAuthentication/Commands/StartEmailLogin.cs:18
- StartEmailLoginCommand.Email application/account/Core/Features/EmailAuthentication/Commands/StartEmailLogin.cs:20
- StartEmailLoginResponse.EmailLoginId application/account/Core/Features/EmailAuthentication/Commands/StartEmailLogin.cs:24
- StartEmailSignupCommand.Email application/account/Core/Features/EmailAuthentication/Commands/StartEmailSignup.cs:14
- StartEmailSignupCommand.Email application/account/Core/Features/EmailAuthentication/Commands/StartEmailSignup.cs:16
- StartEmailSignupResponse.EmailLoginId application/account/Core/Features/EmailAuthentication/Commands/StartEmailSignup.cs:20
- EmailLogin.Email application/account/Core/Features/EmailAuthentication/Domain/EmailLogin.cs:22
- UnknownUserEmailModel.Email application/account/Core/Features/EmailAuthentication/EmailTemplates/UnknownUserEmailTemplate.cs:8
- CompleteEmailConfirmationResponse.Email application/account/Core/Features/EmailAuthentication/Shared/CompleteEmailConfirmation.cs:8
- ExternalLogin.Email application/account/Core/Features/ExternalAuthentication/Domain/ExternalLogin.cs:32
- FeatureFlagUserInfo.Email application/account/Core/Features/FeatureFlags/Queries/GetFeatureFlagUsers.cs:67
- BillingInfo.Email application/account/Core/Features/Subscriptions/Domain/Subscription.cs:254
- TenantUserSummary.Email application/account/Core/Features/Tenants/BackOffice/Queries/GetTenantUsers.cs:32
- TenantUserSummary.EmailConfirmed application/account/Core/Features/Tenants/BackOffice/Queries/GetTenantUsers.cs:37
- TenantOwnerSummary.Email application/account/Core/Features/Tenants/BackOffice/Queries/GetTenants.cs:89
- CreateTenantCommand.EmailConfirmed application/account/Core/Features/Tenants/Commands/CreateTenant.cs:11
- CreateTenantCommand.OwnerEmail application/account/Core/Features/Tenants/Commands/CreateTenant.cs:11
- TenantCreatedEvent.Email application/account/Core/Features/Tenants/Domain/TenantEvents.cs:6
- BackOfficeUserDetailResponse.Email application/account/Core/Features/Users/BackOffice/Queries/GetBackOfficeUserDetail.cs:20
- BackOfficeUserDetailResponse.EmailConfirmed application/account/Core/Features/Users/BackOffice/Queries/GetBackOfficeUserDetail.cs:25
- BackOfficeUserTenantMembership.EmailConfirmed application/account/Core/Features/Users/BackOffice/Queries/GetBackOfficeUserDetail.cs:54
- BackOfficeUserSummary.Email application/account/Core/Features/Users/BackOffice/Queries/GetBackOfficeUsers.cs:40
- BackOfficeUserSummary.EmailConfirmed application/account/Core/Features/Users/BackOffice/Queries/GetBackOfficeUsers.cs:45
- CreateUserCommand.Email application/account/Core/Features/Users/Commands/CreateUser.cs:14
- CreateUserCommand.EmailConfirmed application/account/Core/Features/Users/Commands/CreateUser.cs:14
- CreateUserCommand.Email application/account/Core/Features/Users/Commands/CreateUser.cs:17
- InviteUserCommand.Email application/account/Core/Features/Users/Commands/InviteUser.cs:18
- InviteUserCommand.Email application/account/Core/Features/Users/Commands/InviteUser.cs:20
- User.Email application/account/Core/Features/Users/Domain/User.cs:24
- User.EmailConfirmed application/account/Core/Features/Users/Domain/User.cs:38
- InviteUserEmailModel.Email application/account/Core/Features/Users/EmailTemplates/InviteUserEmailTemplate.cs:8
- CurrentUserResponse.Email application/account/Core/Features/Users/Queries/GetCurrentUser.cs:17
- DeletedUserDetails.Email application/account/Core/Features/Users/Queries/GetDeletedUsers.cs:23
- DeletedUserDetails.EmailConfirmed application/account/Core/Features/Users/Queries/GetDeletedUsers.cs:28
Name — 32 field(s)
- BackOfficeDashboardLogin.FirstName application/account/Core/Features/BackOffice/Dashboard/Queries/GetDashboardRecentLogins.cs:24
- BackOfficeDashboardLogin.LastName application/account/Core/Features/BackOffice/Dashboard/Queries/GetDashboardRecentLogins.cs:25
- BackOfficeDashboardRecentSignupOwner.FirstName application/account/Core/Features/BackOffice/Dashboard/Queries/GetDashboardRecentSignups.cs:27
- BackOfficeDashboardRecentSignupOwner.LastName application/account/Core/Features/BackOffice/Dashboard/Queries/GetDashboardRecentSignups.cs:27
- FeatureFlagUserInfo.FirstName application/account/Core/Features/FeatureFlags/Queries/GetFeatureFlagUsers.cs:68
- FeatureFlagUserInfo.LastName application/account/Core/Features/FeatureFlags/Queries/GetFeatureFlagUsers.cs:69
- TenantUserSummary.FirstName application/account/Core/Features/Tenants/BackOffice/Queries/GetTenantUsers.cs:33
- TenantUserSummary.LastName application/account/Core/Features/Tenants/BackOffice/Queries/GetTenantUsers.cs:34
- TenantOwnerSummary.FirstName application/account/Core/Features/Tenants/BackOffice/Queries/GetTenants.cs:89
- TenantOwnerSummary.LastName application/account/Core/Features/Tenants/BackOffice/Queries/GetTenants.cs:89
- BackOfficeUserDetailResponse.FirstName application/account/Core/Features/Users/BackOffice/Queries/GetBackOfficeUserDetail.cs:21
- BackOfficeUserDetailResponse.LastName application/account/Core/Features/Users/BackOffice/Queries/GetBackOfficeUserDetail.cs:22
- BackOfficeUserSummary.FirstName application/account/Core/Features/Users/BackOffice/Queries/GetBackOfficeUsers.cs:41
- BackOfficeUserSummary.LastName application/account/Core/Features/Users/BackOffice/Queries/GetBackOfficeUsers.cs:42
- UpdateCurrentUserCommand.FirstName application/account/Core/Features/Users/Commands/UpdateCurrentUser.cs:10
- UpdateCurrentUserCommand.LastName application/account/Core/Features/Users/Commands/UpdateCurrentUser.cs:10
- UpdateCurrentUserCommand.FirstName application/account/Core/Features/Users/Commands/UpdateCurrentUser.cs:13
- UpdateCurrentUserCommand.LastName application/account/Core/Features/Users/Commands/UpdateCurrentUser.cs:15
- User.FirstName application/account/Core/Features/Users/Domain/User.cs:30
- User.LastName application/account/Core/Features/Users/Domain/User.cs:32
- CurrentUserResponse.FirstName application/account/Core/Features/Users/Queries/GetCurrentUser.cs:19
- CurrentUserResponse.LastName application/account/Core/Features/Users/Queries/GetCurrentUser.cs:20
- DeletedUserDetails.FirstName application/account/Core/Features/Users/Queries/GetDeletedUsers.cs:25
- DeletedUserDetails.LastName application/account/Core/Features/Users/Queries/GetDeletedUsers.cs:26
- UserDetails.FirstName application/account/Core/Features/Users/Queries/GetUsers.cs:35
- UserDetails.LastName application/account/Core/Features/Users/Queries/GetUsers.cs:36
- OAuthUserProfile.FirstName application/account/Core/Integrations/OAuth/IOAuthProvider.cs:22
- OAuthUserProfile.LastName application/account/Core/Integrations/OAuth/IOAuthProvider.cs:23
- MockOAuthProvider.MockFirstName application/account/Core/Integrations/OAuth/Mock/MockOAuthProvider.cs:11
- MockOAuthProvider.MockLastName application/account/Core/Integrations/OAuth/Mock/MockOAuthProvider.cs:12
- UserInfo.FirstName application/shared-kernel/SharedKernel/Authentication/UserInfo.cs:40
- UserInfo.LastName application/shared-kernel/SharedKernel/Authentication/UserInfo.cs:42
Address — 4 field(s)
- UpdateBillingInfoCommand.PostalCode application/account/Core/Features/Billing/Commands/UpdateBillingInfo.cs:16
- BillingAddress.PostalCode application/account/Core/Features/Subscriptions/Domain/Subscription.cs:247
- TenantDetailResponse.BillingAddress application/account/Core/Features/Tenants/BackOffice/Queries/GetTenantDetail.cs:29
- BillingAddressResponse.PostalCode application/account/Core/Features/Tenants/BackOffice/Queries/GetTenantDetail.cs:49
Government ID (SSN / passport / tax) — 3 field(s)
- UpdateBillingInfoCommand.TaxId application/account/Core/Features/Billing/Commands/UpdateBillingInfo.cs:21
- BillingInfo.TaxId application/account/Core/Features/Subscriptions/Domain/Subscription.cs:254
- TenantDetailResponse.TaxId application/account/Core/Features/Tenants/BackOffice/Queries/GetTenantDetail.cs:28
Phone — 1 field(s)
- Phone.PhoneMaxLength application/shared-kernel/SharedKernel/Validation/SharedValidations.cs:38