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.
iliasHamdaoui/SolenLms carries serious risk (42%). Several issues below can materially affect reliability, security, or the cost of change and warrant near-term attention.
It is strongest in Event-Driven (91%) — its messaging keeps components properly decoupled. Code Health (83%) is solid too.
Most urgent: a critical security exposure was detected (see the Security & Compliance lens). Treat it as a priority regardless of the overall grade.
The area that most needs attention is Readiness (31%) — operating, monitoring and recovering the system safely is harder. Accessibility (47%) is the next concern — it raises ongoing delivery and operational cost.
Leadership focus, highest impact first: Codify backups + geo-recovery in IaC and document RTO/RPO… (DR & Backup); `AddStandardResilienceHandler()` (or Polly policies) to your… (Outbound HTTP resilience); 9 Deprecated finding(s) in Dependency Hygiene (Dependency Hygiene).
For scale: Small (~16,325 production lines); rebuilding it from scratch would take roughly ~0.2 person-years (~1 engineer). Approximate, ±~30%.
It builds on a genuinely strong Event-Driven foundation (91%); the priorities above are the highest-leverage way to bring the rest up to that level.
Raise Readiness 31 → 70 (the Healthy floor) ⇒ headline 42 → ~51.
Rebuild cost & value ~ Modeled — €11,000–€53,000
| Cost to rebuild | €11,000–€53,000 |
| Domain complexity | Very high |
| Quality factor | 0.7× (at 42% quality) |
| Size & shape | Small · 38% boilerplate · 47% straight-line · 16% branching logic |
This codebase represents roughly ~0.2 person-years of build effort (about ~€32,000 to rebuild). Its weakest lens is Readiness at 31% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Trajectory
Architecture — bounded-context 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
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A06:2021 — Vulnerable & Outdated Components | 17 | High / Critical |
| A05:2021 — Security Misconfiguration | 10 | High / Critical |
| A02:2021 — Cryptographic Failures | 7 | High / Critical |
Roadmap
First, codify backups and geo-recovery in infrastructure-as-code while documenting recovery time and point objectives to ensure true disaster resilience. Next, implement HTTP resilience handlers to protect the application from flaky dependencies. Then, address all nine deprecated dependencies and resolve the three leaked secrets, specifically api.key, idp.key, and web.key. Finally, extend structured logging across all service-like projects to ensure full production observability.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 9 Deprecated finding(s) in Dependency Hygiene. | +9.2 pts | Low | Dependency Hygiene |
| Resolve the 3 Leaked secret finding(s) in Secret Scanning — start with api.key, idp.key, web.key. | +9.2 pts | Low | Secret Scanning |
| Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery. | +9.5 pts | Medium | DR & Backup |
| Add `AddStandardResilienceHandler()` (or Polly policies) to your HttpClient registrations so a flaky dependency can't take the app down. | +9.5 pts | Medium | Outbound HTTP resilience |
| Extend structured logging to the remaining service-like projects so the whole executable surface is diagnosable in production. | +8.6 pts | Medium | Observability |
| Add an approval/environment gate (required reviewers / protection rules) before production promotion. | +7.6 pts | Medium | Deployment & Rollback |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +1.7 pts | Low | ADR Quality |
| Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href. | +2.5 pts | Medium | Keyboard semantics |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| nginx/web.key | 4.4 | Mixed | Secret Scanning: Leaked secret: private-key |
| nginx/idp.key | 4.4 | Mixed | Secret Scanning: Leaked secret: private-key |
| nginx/api.key | 4.4 | Mixed | Secret Scanning: Leaked secret: private-key |
| nginx/nginx.Dockerfile | 4.4 | Mixed | IaC & Container Security: High IaC: DS-0002 |
| SolenLmsApp/Api/Startup/WebApi/Dockerfile | 5.1 | Mixed | IaC & Container Security: High IaC: DS-0002 |
| SolenLmsApp/Api/Startup/WebApi/WebApi.Startup.csproj | 5.3 | Mixed | Explicit Debt: NoWarnInCsproj |
| SolenLmsApp/Api/CourseManagement/Src/CourseManagement.csproj | 5.3 | Mixed | Explicit Debt: NoWarnInCsproj |
| IdentityProvider/Src/Presentation/WebApi/IdentityProvider.WebApi.csproj | 5.3 | Mixed | Explicit Debt: NoWarnInCsproj |
| IdentityProvider/Src/Presentation/Web/Dockerfile | 6.5 | Mixed | IaC & Container Security: High IaC: DS-0002 |
| SolenLmsApp/WebClient/Server/Dockerfile | 6.5 | Mixed | IaC & Container Security: High IaC: DS-0002 |
| SolenLmsApp/WebClient/Client/Learning/Courses/UI/FiltersComponent.razor | 7.4 | Mixed | Code Duplication: Duplicated block (17 lines × 2) |
| SolenLmsApp/Api/CourseManagement/Src/Infrastructure/Data/CourseManagementDbContext.cs | 7.8 | Mixed | Code Duplication: Duplicated block (14 lines × 3) |
| SolenLmsApp/Api/Shared/Presentation/WebApi/RoutePrefixConvention.cs | 7.8 | Mixed | Code Duplication: Duplicated block (8 lines × 2) |
| IdentityProvider/Src/Presentation/Web/Pages/Account/Login/Index.cshtml.cs | 8.5 | Near-clean | Cognitive Complexity: Index.OnPost (cognitive 22) |
| IdentityProvider/Src/Infrastructure/Data/SeedData.cs | 8.5 | Near-clean | Cognitive Complexity: SeedData.EnsureSeedData (cognitive 17) |
| SolenLmsApp/Api/Learning/Src/Features/Courses/Queries/GetAllCourses.cs | 8.5 | Near-clean | Cognitive Complexity: GetAllCoursesSpec.GetAllCoursesSpec.ctor (cognitive 16) |
| SolenLmsApp/WebClient/Client/Administration/Organization/UI/Index.razor | 8.5 | Near-clean | God Classes: TooManyMethods: Index.razor › __RazorCode_Index_1 |
| SolenLmsApp/Api/Resources/Src/Infrastructure/Data/ResourcesDbContext.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (17 lines × 2) |
| SolenLmsApp/Api/Shared/Infrastructure/MediatR/Pipelines/RequestValidationBehavior.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (15 lines × 2) |
| SolenLmsApp/Api/CourseManagement/Src/Infrastructure/EventHandlers/Instructors/UserAddedHandler.cs | 8.5 | Near-clean | Code Duplication: Duplicated block (15 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. 71 of 74 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.6 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 74 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, 53 of 165 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 | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- 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.
- 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.
- D33 JS/npm Dependency Vulnerabilities — 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.
- D37 Vulnerability-disclosure Policy — 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.
- D38 OSV Dependency Vulnerabilities — 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.
- 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.
- 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.
- D24 Comment Value: Comment value (WHY vs WHAT) is an LLM judgement over a bounded sample — it is advisory and cannot weigh a comment against the precise code change it was written to explain.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and the advisory database — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- 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. 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.
- 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 — 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.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
- ED5 Idempotency: Idempotency is judged from the handler body's visible writes and guards — a guard enforced by a database unique constraint, a broker's exactly-once delivery, or a domain method whose no-op-when-applied logic the scan can't follow may read as at-risk; the at-risk candidates are confirmed by a SAMPLED LLM verdict (advisory, not exhaustive) and degrade to heuristic-only when no model is configured. It flags the at-least-once double-apply SHAPE, not a runtime proof of a duplicate effect.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
3 method(s) exceeded the cognitive complexity threshold of 15; the worst was Index.OnPost at 22.
D3 · God Classes
1 god class(es) detected.
D4 · Code Duplication
13 duplicated block group(s) detected.
D5 · Coupling
16 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
D6 · Cohesion (LCOM4)
1 of 91 classes have LCOM4 above 3.
D9 · Test Distribution
163 test methods: 163 unit, 0 integration, 0 BDD, 0 e2e.
D10 · Test Quality
0 skipped, 0 zero-assertion, 1 mock references across 163 tests.
D12 · Dependency Hygiene
66 outdated, 0 vulnerable, 9 deprecated packages.
What to do
- Resolve the 9 Deprecated finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (9 warning-level).
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · Secret Scanning
3 secret(s) detected.
What to do
- Resolve the 3 Leaked secret finding(s) in Secret Scanning — start with api.key, idp.key, web.key. — One of this dimension's main actionable groups (3 issue-level).
- Enforce Secret Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D14 · License Compliance
0 of 4 packages use a banned license.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
18 deducted debt markers + 0 dead symbols across 12779 LoC (1.2/KLoC) → score 7.6.
What to do
- Resolve the 18 NoWarnInCsproj finding(s) in Explicit Debt — start with CourseManagement.csproj (6), IdentityProvider.WebApi.csproj (6), WebApi.Startup.csproj (6). — One of this dimension's main actionable groups (18 issue-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D18 · Solution Shape
16 projects, 388 .cs files, 15574 hand-written lines of code (12779 production / 2795 test), plus 5431 generated (EF migrations / designer / snapshots, excluded from quality), 52 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).
D21 · Naming Consistency
0 naming inconsistencies across 200 sampled symbols.
D24 · Comment Value
26 valuable / 1 redundant across 151 sampled comments; 1 shown with locations.
D26 · Project Cohesion
1 of 16 projects flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Split WebClient finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D27 · Navigability
98 % of calls cross a namespace and 4 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: medium — clean/modular boundaries expected.
D28 · Secrets (history)
3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What to do
- Resolve the 3 Secret finding(s) in Secrets (history) — start with api.key, idp.key, web.key. — One of this dimension's main actionable groups (3 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
semgrep found no security issues.
D30 · Dependency Vulnerabilities
17 vulnerable package(s): 1 critical, 10 high, 5 medium, 1 low.
What to do
- Resolve the 10 High CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (10 issue-level).
- Resolve the 5 Medium CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (5 warning-level).
- Resolve the 1 Critical CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (1 issue-level).
D31 · IaC & Container Security
10 finding(s): 0 critical, 5 high, 1 medium, 4 low.
What to do
- Resolve the 5 High IaC finding(s) in IaC & Container Security — start with Dockerfile (4), nginx.Dockerfile. — One of this dimension's main actionable groups (5 issue-level).
- Resolve the 4 Low IaC finding(s) in IaC & Container Security — start with Dockerfile (3), nginx.Dockerfile. — One of this dimension's main actionable groups (4 recommendation-level).
- Resolve the 1 Medium IaC finding(s) in IaC & Container Security — start with nginx.Dockerfile. — One of this dimension's main actionable groups (1 warning-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
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).
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. (×6) — Index.cshtml:29, CategoriesListComponent.razor:22, ArticleLecture.razor:8, …
- A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label. — LoggedOut.cshtml:7
- A fieldset groups related controls but has no <legend> to name the group. Add a <legend> as its first child. (×3) — Index.cshtml:19, Index.cshtml:18, Index.cshtml:21
- This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. (×4) — Index.cshtml:22, Index.cshtml:21, Index.cshtml:25, …
- A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one). (×7) — ArticleLecture.razor:17, ArticleLecture.razor:18, ArticleLecture.razor:19, …
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
- An iframe with no title (or an empty one) is announced only as "frame". Add a non-empty title describing its content, or an aria-label. — LoggedOut.cshtml:12
- The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). (×2) — Callback.cshtml:0, Challenge.cshtml:0
- A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>. (×3) — Callback.cshtml:0, Challenge.cshtml:0, _Layout.cshtml:0
- No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×3) — Callback.cshtml:0, Challenge.cshtml:0, _Layout.cshtml:0
- Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. (×4) — CourseInfoComponent.razor:13, CourseInfoComponent.razor:32, CourseComponent.razor:14, …
- 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. — 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
- A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×22) — UsersListComponent.razor:43, UsersListComponent.razor:47, CategoriesListComponent.razor:28, …
- An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action. — index.html:29
What to do
- Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
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
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 singletons
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
- `IWebApiClient` declares 60 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. — CourseManagementApiClient.g.cs:20
- `IWebApiClient` declares 18 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. — LearningApiClient.g.cs:20
What to do
- Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX7 · Slice cohesion
AX8 · Test isolation
AX9 · CQS / query purity
C1 · Data Protection
- No data-protection or encryption usage (ASP.NET Data Protection, AES, column encryption, PBKDF2) was found — sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore.
- 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. — HostingExtensions.cs:51
What to do
- Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
C2 · Access Controls
DM1 · Aggregate boundaries
- `Course` references the aggregate root `CourseCategory` directly (via `_categories`) — hold its `CourseCategoryId` instead. (×2) — Course.cs:11, Course.cs:10
- `Course` references the aggregate root `LearnerCourseProgress` directly (via `_learnersProgress`) — hold its `LearnerCourseProgressId` instead. (×2) — Course.cs:12, Course.cs:13
- `Course` references the aggregate root `Instructor` directly (via `Instructor`) — hold its `InstructorId` instead. (×2) — Course.cs:27, Course.cs:32
- `Course` references the aggregate root `CourseCategory` directly (via `Categories`) — hold its `CourseCategoryId` instead. (×2) — Course.cs:30, Course.cs:29
- `Course` references the aggregate root `LearnerCourseProgress` directly (via `LearnersProgress`) — hold its `LearnerCourseProgressId` instead. (×2) — Course.cs:31, Course.cs:31
- `CourseCategory` references the aggregate root `Course` directly (via `Course`) — hold its `CourseId` instead. (×2) — CourseCategory.cs:8, CourseCategory.cs:9
- `CourseCategory` references the aggregate root `Category` directly (via `Category`) — hold its `CategoryId` instead. (×2) — CourseCategory.cs:10, CourseCategory.cs:11
- `Learner` references the aggregate root `LearnerCourseProgress` directly (via `_coursesProgress`) — hold its `LearnerCourseProgressId` instead. — Learner.cs:6
- `Learner` references the aggregate root `LearnerCourseProgress` directly (via `CoursesProgress`) — hold its `LearnerCourseProgressId` instead. — Learner.cs:25
- `Category` references the aggregate root `Course` directly (via `_courses`) — hold its `CourseId` instead. — Category.cs:7
- `Category` references the aggregate root `Course` directly (via `Courses`) — hold its `CourseId` instead. — Category.cs:19
- `Course` references the aggregate root `BookmarkedCourse` directly (via `_learnersBookmarks`) — hold its `BookmarkedCourseId` instead. — Course.cs:12
- `Course` references the aggregate root `BookmarkedCourse` directly (via `LearnersBookmarks`) — hold its `BookmarkedCourseId` instead. — Course.cs:30
- `LearnerCourseAccess` references the aggregate root `Learner` directly (via `Learner`) — hold its `LearnerId` instead. — LearnerCourseAccess.cs:9
- `LearnerCourseProgress` references the aggregate root `Learner` directly (via `Learner`) — hold its `LearnerId` instead. — LearnerCourseProgress.cs:9
- `LearnerCourseProgress` references the aggregate root `Course` directly (via `Course`) — hold its `CourseId` instead. — LearnerCourseProgress.cs:11
What to do
- Reference other aggregates by their strongly-typed id, never by object reference, so each aggregate stays an independent consistency boundary.
DM2 · Strongly-typed ids
- `CategoryCreated.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — CategoryCreated.cs:4
- `CategoryCreated.CategoryId` is a raw `Int32` — give it a strongly-typed id (`readonly record struct CategoryId { Int32 Value }`). — CategoryCreated.cs:4
- `CategoryDeleted.CategoryId` is a raw `Int32` — give it a strongly-typed id (`readonly record struct CategoryId { Int32 Value }`). — CategoryDeleted.cs:3
- `CategoryUpdated.CategoryId` is a raw `Int32` — give it a strongly-typed id (`readonly record struct CategoryId { Int32 Value }`). — CategoryUpdated.cs:4
- `CourseDeleted.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — CourseDeleted.cs:5
- `CourseDeleted.CourseId` is a raw `String` — give it a strongly-typed id (`readonly record struct CourseId { String Value }`). — CourseDeleted.cs:6
- `CourseUnpublished.CourseId` is a raw `String` — give it a strongly-typed id (`readonly record struct CourseId { String Value }`). — CourseUnpublished.cs:4
- `LectureDeleted.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — LectureDeleted.cs:5
- `LectureDeleted.CourseId` is a raw `String` — give it a strongly-typed id (`readonly record struct CourseId { String Value }`). — LectureDeleted.cs:6
- `LectureDeleted.ModuleId` is a raw `String` — give it a strongly-typed id (`readonly record struct ModuleId { String Value }`). — LectureDeleted.cs:7
- `LectureDeleted.LectureId` is a raw `String` — give it a strongly-typed id (`readonly record struct LectureId { String Value }`). — LectureDeleted.cs:8
- `LectureWithResourceCreated.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — LectureWithResourceCreated.cs:9
- `LectureWithResourceCreated.CourseId` is a raw `String` — give it a strongly-typed id (`readonly record struct CourseId { String Value }`). — LectureWithResourceCreated.cs:10
- `LectureWithResourceCreated.ModuleId` is a raw `String` — give it a strongly-typed id (`readonly record struct ModuleId { String Value }`). — LectureWithResourceCreated.cs:11
- `LectureWithResourceCreated.LectureId` is a raw `String` — give it a strongly-typed id (`readonly record struct LectureId { String Value }`). — LectureWithResourceCreated.cs:12
- `ModuleDeleted.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — ModuleDeleted.cs:5
- `ModuleDeleted.CourseId` is a raw `String` — give it a strongly-typed id (`readonly record struct CourseId { String Value }`). — ModuleDeleted.cs:6
- `ModuleDeleted.ModuleId` is a raw `String` — give it a strongly-typed id (`readonly record struct ModuleId { String Value }`). — ModuleDeleted.cs:7
- `OrganizationDeleted.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — OrganizationDeleted.cs:2
- `UserDeleted.UserId` is a raw `String` — give it a strongly-typed id (`readonly record struct UserId { String Value }`). — UserDeleted.cs:3
- `LearnerCourseProgressUpdated.LearnerId` is a raw `String` — give it a strongly-typed id (`readonly record struct LearnerId { String Value }`). — LearnerCourseProgressUpdated.cs:7
- `LearnerCourseProgressUpdated.CourseId` is a raw `String` — give it a strongly-typed id (`readonly record struct CourseId { String Value }`). — LearnerCourseProgressUpdated.cs:8
- `Category.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — Category.cs:16
- `Course.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — Course.cs:23
- `Course.InstructorId` is a raw `String` — give it a strongly-typed id (`readonly record struct InstructorId { String Value }`). — Course.cs:28
- `Lecture.ModuleId` is a raw `Int32` — give it a strongly-typed id (`readonly record struct ModuleId { Int32 Value }`). — Lecture.cs:19
- `Lecture.ResourceId` is a raw `String` — give it a strongly-typed id (`readonly record struct ResourceId { String Value }`). — Lecture.cs:24
- `Module.CourseId` is a raw `Int32` — give it a strongly-typed id (`readonly record struct CourseId { Int32 Value }`). — Module.cs:19
- `CourseCategory.CourseId` is a raw `Int32` — give it a strongly-typed id (`readonly record struct CourseId { Int32 Value }`). — CourseCategory.cs:7
- `CourseCategory.CategoryId` is a raw `Int32` — give it a strongly-typed id (`readonly record struct CategoryId { Int32 Value }`). — CourseCategory.cs:9
- `Instructor.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — Instructor.cs:21
- `Learner.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — Learner.cs:22
- `LearnerCourseProgress.LearnerId` is a raw `String` — give it a strongly-typed id (`readonly record struct LearnerId { String Value }`). — LearnerCourseProgress.cs:6
- `LearnerCourseProgress.CourseId` is a raw `Int32` — give it a strongly-typed id (`readonly record struct CourseId { Int32 Value }`). — LearnerCourseProgress.cs:7
- `LectureResource.OrganizationId` is a raw `String` — give it a strongly-typed id (`readonly record struct OrganizationId { String Value }`). — LectureResource.cs:24
- `LectureResource.CourseId` is a raw `String` — give it a strongly-typed id (`readonly record struct CourseId { String Value }`). — LectureResource.cs:25
- `LectureResource.ModuleId` is a raw `String` — give it a strongly-typed id (`readonly record struct ModuleId { String Value }`). — LectureResource.cs:26
- `LectureResource.LectureId` is a raw `String` — give it a strongly-typed id (`readonly record struct LectureId { String Value }`). — LectureResource.cs:27
- `BookmarkedCourse.LearnerId` is a raw `String` — give it a strongly-typed id (`readonly record struct LearnerId { String Value }`). — BookmarkedCourse.cs:5
- `BookmarkedCourse.CourseId` is a raw `String` — give it a strongly-typed id (`readonly record struct CourseId { String Value }`). — BookmarkedCourse.cs:6
- 13 further occurrence(s) are not listed individually; the score already reflects all 53.
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
- `BaseAuditEntity` is an aggregate/entity with 5 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. (×2) — BaseEntity.cs:15, BaseEntity.cs:28
- `CourseCategory` is an aggregate/entity with 4 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. (×2) — CourseCategory.cs:5, CourseCategory.cs:6
- `Instructor` is an aggregate/entity with 6 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Instructor.cs:3
- `Learner` is an aggregate/entity with 6 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Learner.cs:4
- `BookmarkedCourse` 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. — BookmarkedCourse.cs:3
- `Instructor` is an aggregate/entity with 5 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — Instructor.cs:3
- `Learner` 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. — Learner.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
- `BaseAuditEntity` exposes public setter(s) (CreatedBy, CreatedAt, LastModifiedBy, LastModifiedAt, Version). (×2) — BaseEntity.cs:15, BaseEntity.cs:28
What to do
- Make entity setters private/init-only; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters).
DM6 · Domain ↔ infrastructure boundary
DM8 · Value-object opportunities
ED1 · Handler temporal coupling
ED2 · Event/command shape
ED3 · Event naming
- `BaseIntegrationEvent` 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. — BaseIntegrationEvent.cs:5
What to do
- Name events in the past tense — they record facts that already happened.
ED4 · Outbox / dual-write
- `CreateCategoryCommandHandler.AddTheNewCategoryToRepository` writes to the database while `AzureServiceBusEventsListener.MessageHandler` publishes to the message bus in the same command-handling flow, with no outbox referenced on either path. Splitting the persist and the publish across sibling methods (or two collaborating actors) doesn't make them atomic — a crash between the two either loses the message or emits a phantom event. Use the transactional outbox pattern so the message is committed in the same transaction as the state change and dispatched afterwards. — CreateCategory.cs:97
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 · Idempotency
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
- `OnActionExecuting` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×2) — ErrorResponseFilter.cs:29, ErrorResponseFilter.cs:30
- `ExecuteAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — RabbitMqIntegrationEventBroker.cs:55
- A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers). (×3) — IEmailService.cs:5, Index.cshtml.cs:21, Helpers.cs:16
- `OnGet` has an empty body — confirm it's an intentional no-op and not an unfinished method. (×5) — AccessDenied.cshtml.cs:7, Index.cshtml.cs:26, PasswordResetRequestSent.cshtml.cs:7, …
What to do
- Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
- Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
M1 · Documentation (README)
What to do
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Add a 'Testing' section to the root README — how to run the test suite.
- Add a README to the 16 of 16 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.
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.
M4 · Documentation accuracy
P1 · CI/CD gates
P2 · Observability
- Only 10/12 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.
- Consider OpenTelemetry tracing/metrics and a health-check endpoint for operability.
P3 · Security & performance tooling
- No static application security testing (CodeQL / security analyzers / codehealth) detected.
What to do
- Add a SAST step (e.g. CodeQL) or a security analyzer package.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
What to do
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
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
- The app makes outbound HTTP calls but no resilience handler was detected (Polly / AddStandardResilienceHandler / circuit-breaker). A slow or failing dependency will cascade — add timeouts, retries with back-off, and a circuit breaker.
What to do
- Add `AddStandardResilienceHandler()` (or Polly policies) to your HttpClient registrations so a flaky dependency can't take the app down.
P8 · Schema migrations
S1 · Web-Security Posture
X1 · Async correctness
X2 · Cancellation propagation
- Only 232/353 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. (×25) — AzureServiceBusEventsListener.cs:40, UserScopeMiddleware.cs:18, RabbitMqIntegrationEventListener.cs:74, …
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
- 11/13 projects enable <Nullable>enable</Nullable>. NRTs catch a whole class of null-deref bugs at compile time.
- ~1.0 `!` 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 | 83% | Strong | Solid. |
| Architecture | 82% | Strong | Solid. |
| Maturity | 51% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 31% | Weak — gated by D13, P3, P5, P7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 62% | Adequate — gated by D30, D36, C1 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 47% | Weak — gated by DM1, DM2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Event-Driven | 91% | Exemplary | Strongest area. |
| Accessibility | 47% | Weak — gated by AC4 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
Not included — 30 check(s) not relevant to this codebase
- AXB2 Runtime readiness — no data
- C3 Audit Trail — Repo shows no audit-logging mechanism (IAuditable, an immutable audit log, an EF SaveChanges interceptor) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
- C4 Data Retention — Repo shows no data-retention / TTL / cleanup mechanism for personal data — absence of evidence is not evidence of a working control. Define retention periods and a purge/cleanup job (or TTL) in code, or document where retention is enforced, so this dimension can be scored.
- C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
- D11 Test Reliability — No tests discovered
- D16 Bus Factor — early-stage repository — too few commits for a meaningful bus factor
- D19 Documentation Quality — LLM evaluation failed
- D22 Internal API Consistency — No exposed public API
- D23 Boundary Type-Coupling — Bounded contexts not declared
- D25 ADR Conformance — no ADRs to check
- D32 Data Compliance (PII/GDPR) — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess.
- D33 JS/npm Dependency Vulnerabilities — No JS/npm manifest or lockfile found outside bin/obj (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
- D34 Knowledge Freshness — early-stage repository — too little history to judge knowledge freshness
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md, .github/SECURITY.md, docs/SECURITY.md, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D38 OSV Dependency Vulnerabilities — No JS/npm lockfile found outside bin/obj (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); nothing for OSV to scan.
- D39 IL Efficiency — The target did not build, so no IL was available to measure.
- D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
- D8 Code Coverage — Coverage not measured — test suite did not build
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
- ES1 Event Sourcing — not run — 0/3 markers found
- 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
- PF1 Benchmark discipline — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
- PF2 Allocation hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
- PF3 Async & latency hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
- SC1 Supply-chain hygiene — no data
- X6 Hand-rolled structured-format parsing — no data
- X7 Silent fallback defaults — no data
Appendix A — Findings (grouped)
Issue — 40 finding(s)
- NoWarnInCsproj SolenLmsApp/Api/Startup/WebApi/WebApi.Startup.csproj:12
- NoWarnInCsproj SolenLmsApp/Api/Startup/WebApi/WebApi.Startup.csproj:16
- NoWarnInCsproj SolenLmsApp/Api/CourseManagement/Src/CourseManagement.csproj:21
- NoWarnInCsproj SolenLmsApp/Api/CourseManagement/Src/CourseManagement.csproj:25
- NoWarnInCsproj IdentityProvider/Src/Presentation/WebApi/IdentityProvider.WebApi.csproj:11
- NoWarnInCsproj IdentityProvider/Src/Presentation/WebApi/IdentityProvider.WebApi.csproj:15
- NoWarnInCsproj SolenLmsApp/Api/Startup/WebApi/WebApi.Startup.csproj:12
- NoWarnInCsproj SolenLmsApp/Api/Startup/WebApi/WebApi.Startup.csproj:16
- NoWarnInCsproj SolenLmsApp/Api/CourseManagement/Src/CourseManagement.csproj:21
- NoWarnInCsproj SolenLmsApp/Api/CourseManagement/Src/CourseManagement.csproj:25
- NoWarnInCsproj IdentityProvider/Src/Presentation/WebApi/IdentityProvider.WebApi.csproj:11
- NoWarnInCsproj IdentityProvider/Src/Presentation/WebApi/IdentityProvider.WebApi.csproj:15
- NoWarnInCsproj SolenLmsApp/Api/Startup/WebApi/WebApi.Startup.csproj:12
- NoWarnInCsproj SolenLmsApp/Api/Startup/WebApi/WebApi.Startup.csproj:16
- NoWarnInCsproj SolenLmsApp/Api/CourseManagement/Src/CourseManagement.csproj:21
- NoWarnInCsproj SolenLmsApp/Api/CourseManagement/Src/CourseManagement.csproj:25
- NoWarnInCsproj IdentityProvider/Src/Presentation/WebApi/IdentityProvider.WebApi.csproj:11
- NoWarnInCsproj IdentityProvider/Src/Presentation/WebApi/IdentityProvider.WebApi.csproj:15
- High CVE: SQLitePCLRaw.lib.e_sqlite3 2.1.4
- High CVE: System.Formats.Asn1 5.0.0
- High CVE: System.Net.Http 4.3.0
- High CVE: System.Text.Json 7.0.0
- High CVE: System.Text.RegularExpressions 4.3.0
- High CVE: Newtonsoft.Json 10.0.1
- High CVE: System.Text.Json 6.0.0
- High CVE: Newtonsoft.Json 9.0.1
- High CVE: Yarp.ReverseProxy 1.1.0
- High CVE: AutoMapper 12.0.0
- High IaC: DS-0002 IdentityProvider/Src/Presentation/Web/Dockerfile
- High IaC: DS-0002 SolenLmsApp/Api/Startup/WebApi/Dockerfile
- High IaC: DS-0029 SolenLmsApp/Api/Startup/WebApi/Dockerfile
- High IaC: DS-0002 SolenLmsApp/WebClient/Server/Dockerfile
- High IaC: DS-0002 nginx/nginx.Dockerfile
- Leaked secret: private-key nginx/web.key:1
- Leaked secret: private-key nginx/idp.key:1
- Leaked secret: private-key nginx/api.key:1
- Secret: private-key nginx/api.key:1
- Secret: private-key nginx/idp.key:1
- Secret: private-key nginx/web.key:1
- Critical CVE: System.Text.Encodings.Web 4.5.0
Warning — 39 finding(s)
- Deprecated: xunit
- Deprecated: IdentityModel
- Deprecated: Microsoft.ApplicationInsights.AspNetCore
- Deprecated: Microsoft.AspNetCore.Mvc.Core
- Deprecated: Duende.BFF
- Deprecated: Duende.BFF.Yarp
- Deprecated: Blazored.Video
- Deprecated: Duende.IdentityServer.AspNetIdentity
- Deprecated: Duende.IdentityServer.EntityFramework
- Medium CVE: Azure.Identity 1.10.3
- Medium CVE: Azure.Identity 1.10.3
- Medium CVE: Microsoft.Identity.Client 4.56.0
- Medium CVE: Duende.AccessTokenManagement 1.0.0
- Medium CVE: Duende.IdentityServer 6.2.3
- Duplicated block (17 lines × 2) SolenLmsApp/WebClient/Client/Learning/Courses/UI/FiltersComponent.razor:129
- Duplicated block (17 lines × 2) SolenLmsApp/WebClient/Client/Learning/Courses/UI/FiltersComponent.razor:160
- Duplicated block (17 lines × 2) SolenLmsApp/Api/Resources/Src/Infrastructure/Data/ResourcesDbContext.cs:53
- Off the main sequence: WebClient
- Off the main sequence: Shared.WebApi
- Off the main sequence: CourseManagement
- Duplicated block (15 lines × 2) SolenLmsApp/Api/Shared/Infrastructure/MediatR/Pipelines/RequestValidationBehavior.cs:24
- Duplicated block (15 lines × 2) SolenLmsApp/Api/CourseManagement/Src/Infrastructure/EventHandlers/Instructors/UserAddedHandler.cs:30
- Duplicated block (8 lines × 2) SolenLmsApp/Api/Shared/Presentation/WebApi/RoutePrefixConvention.cs:9
- Duplicated block (8 lines × 2) SolenLmsApp/Api/Shared/Presentation/WebApi/RoutePrefixConvention.cs:31
- LLM evaluation failed
- Index.OnPost (cognitive 22) IdentityProvider/Src/Presentation/Web/Pages/Account/Login/Index.cshtml.cs:58
- SeedData.EnsureSeedData (cognitive 17) IdentityProvider/Src/Infrastructure/Data/SeedData.cs:13
- GetAllCoursesSpec.GetAllCoursesSpec.ctor (cognitive 16) SolenLmsApp/Api/Learning/Src/Features/Courses/Queries/GetAllCourses.cs:106
- TooManyMethods: Index.razor › __RazorCode_Index_1 SolenLmsApp/WebClient/Client/Administration/Organization/UI/Index.razor:0
- Medium IaC: DS-0001 nginx/nginx.Dockerfile
- Unpinned build actions
- Duplicated block (14 lines × 3) SolenLmsApp/Api/CourseManagement/Src/Infrastructure/Data/CourseManagementDbContext.cs:62
- Duplicated block (14 lines × 2) SolenLmsApp/Api/Shared/Presentation/WebApi/ErrorsController.cs:32
- Duplicated block (12 lines × 2) SolenLmsApp/Api/Shared/Infrastructure/AzureServiceBus/AzureServiceBusEventsListener.cs:67
- Duplicated block (11 lines × 2) SolenLmsApp/WebClient/Client/CourseManagement/CourseDetail/UI/General/GeneralComponent.razor:155
- Duplicated block (7 lines × 2) SolenLmsApp/WebClient/Client/Learning/Courses/UI/FiltersComponent.razor:114
- Duplicated block (5 lines × 2) SolenLmsApp/Api/CourseManagement/Src/Infrastructure/Data/CourseManagementDbContext.cs:44
- Low cohesion: Course (LCOM4 6) SolenLmsApp/Api/Learning/Src/Domain/Courses/Course.cs:8
- Coverage not measured — test suite did not build
Recommendation — 17 finding(s)
- Low IaC: DS-0026 IdentityProvider/Src/Presentation/Web/Dockerfile
- Low IaC: DS-0026 SolenLmsApp/Api/Startup/WebApi/Dockerfile
- Low IaC: DS-0026 SolenLmsApp/WebClient/Server/Dockerfile
- Low IaC: DS-0026 nginx/nginx.Dockerfile
- No tests discovered
- early-stage repository — too few commits for a meaningful bus factor
- Thin analysable surface across projects
- No ADRs found
- Bounded contexts not declared
- redundant comment IdentityProvider/Src/Infrastructure/DI/OpenApi.cs:29
- Split WebClient
- Rotate the exposed credentials — git history can't be un-committed
- Low CVE: Microsoft.Identity.Client 4.56.0
- early-stage repository — too little history to judge knowledge freshness
- No build provenance
- No artifact signing
- No SBOM
Info — 69 finding(s)
- Outdated: AutoFixture
- Outdated: AutoFixture.Xunit2
- Outdated: coverlet.collector
- Outdated: FluentAssertions
- Outdated: Microsoft.AspNetCore.Mvc.Testing
- Outdated: Microsoft.EntityFrameworkCore.Sqlite
- Outdated: Microsoft.NET.Test.Sdk
- Outdated: Moq
- Outdated: System.Net.Http.Json
- Outdated: Testcontainers
- Outdated: xunit
- Outdated: xunit.runner.visualstudio
- Outdated: Ardalis.Specification
- Outdated: FluentValidation
- Outdated: Hashids.net
- Outdated: MediatR
- Outdated: Azure.Messaging.ServiceBus
- Outdated: FluentValidation.DependencyInjectionExtensions
- Outdated: IdentityModel
- Outdated: MicroElements.Swashbuckle.FluentValidation
- Outdated: Microsoft.ApplicationInsights.AspNetCore
- Outdated: Microsoft.AspNetCore.Authentication.JwtBearer
- Outdated: NSwag.AspNetCore
- Outdated: RabbitMQ.Client
- Outdated: Scrutor
- Mock framework: Moq
- Build did not complete in the analyzer
- No exposed public API
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 . | 3 | artifacts/raw/gitleaks-history.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config auto --json --quiet --timeout 0 --metrics off . | 0 | — |
| D30 · Dependency Vulnerabilities | dotnet | — | dotnet list SolenLmsSolution.sln package --vulnerable --include-transitive --format json | 17 | artifacts/raw/dotnet-vulnerable.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 10 | 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: not applicable — No JS/npm manifest or lockfile found outside bin/obj (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md, .github/SECURITY.md, docs/SECURITY.md, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D38 · OSV Dependency Vulnerabilities | osv-scanner | — | osv-scanner: not applicable — No JS/npm lockfile found outside bin/obj (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); nothing for OSV to scan. | 0 | — |
Appendix C — Personal-data map
Name — 20 field(s)
- User.GivenName IdentityProvider/Src/Core/Domain/Entities/User.cs:27
- User.FamilyName IdentityProvider/Src/Core/Domain/Entities/User.cs:28
- User.FullName IdentityProvider/Src/Core/Domain/Entities/User.cs:33
- AddUserCommand.FamilyName IdentityProvider/Src/Core/UseCases/Users/Commands/AddUser/AddUserCommand.cs:8
- AddUserCommand.GivenName IdentityProvider/Src/Core/UseCases/Users/Commands/AddUser/AddUserCommand.cs:9
- UserForGetUsersQueryResult.GivenName IdentityProvider/Src/Core/UseCases/Users/Queries/GetUsersQueryResult.cs:16
- UserForGetUsersQueryResult.FamilyName IdentityProvider/Src/Core/UseCases/Users/Queries/GetUsersQueryResult.cs:17
- InputModel.GivenName IdentityProvider/Src/Presentation/Web/Pages/Account/OrganizationRegistration/InputModel.cs:10
- InputModel.FamilyName IdentityProvider/Src/Presentation/Web/Pages/Account/OrganizationRegistration/InputModel.cs:15
- RegistrationInput.GivenName IdentityProvider/Src/Presentation/Web/Pages/Account/UserRegistration/PasswordInput.cs:11
- RegistrationInput.FamilyName IdentityProvider/Src/Presentation/Web/Pages/Account/UserRegistration/PasswordInput.cs:16
- Instructor.GivenName SolenLmsApp/Api/CourseManagement/Src/Domain/Instructors/Instructor.cs:23
- Instructor.FamilyName SolenLmsApp/Api/CourseManagement/Src/Domain/Instructors/Instructor.cs:24
- Instructor.FullName SolenLmsApp/Api/CourseManagement/Src/Domain/Instructors/Instructor.cs:25
- Learner.GivenName SolenLmsApp/Api/CourseManagement/Src/Domain/Learners/Learner.cs:23
- Learner.FamilyName SolenLmsApp/Api/CourseManagement/Src/Domain/Learners/Learner.cs:24
- Learner.FullName SolenLmsApp/Api/CourseManagement/Src/Domain/Learners/Learner.cs:26
- Instructor.GivenName SolenLmsApp/Api/Learning/Src/Domain/Instructors/Instructor.cs:15
- Instructor.FamilyName SolenLmsApp/Api/Learning/Src/Domain/Instructors/Instructor.cs:16
- Instructor.FullName SolenLmsApp/Api/Learning/Src/Domain/Instructors/Instructor.cs:17
Email — 17 field(s)
- AddUserCommand.Email IdentityProvider/Src/Core/UseCases/Users/Commands/AddUser/AddUserCommand.cs:7
- DeleteUserCommand.UserEmail IdentityProvider/Src/Core/UseCases/Users/Commands/DeleteUser/DeleteUserCommand.cs:7
- RegenerateRegistrationCodeCommand.Email IdentityProvider/Src/Core/UseCases/Users/Commands/RegenerateRegistrationCode/RegenerateRegistrationCodeCommand.cs:7
- UserForGetUsersQueryResult.Email IdentityProvider/Src/Core/UseCases/Users/Queries/GetUsersQueryResult.cs:18
- AccountService._emailService IdentityProvider/Src/Infrastructure/Services/AccountService.cs:22
- EmailBackgroundService._emailSettings IdentityProvider/Src/Infrastructure/Services/EmailBackgroundService.cs:18
- InputModel.Email IdentityProvider/Src/Presentation/Web/Pages/Account/Login/InputModel.cs:13
- Index._emailService IdentityProvider/Src/Presentation/Web/Pages/Account/OrganizationRegistration/Index.cshtml.cs:11
- InputModel.Email IdentityProvider/Src/Presentation/Web/Pages/Account/OrganizationRegistration/InputModel.cs:32
- IndexModel._emailService IdentityProvider/Src/Presentation/Web/Pages/Account/PasswordResetRequest/Index.cshtml.cs:11
- IndexModel.Email IdentityProvider/Src/Presentation/Web/Pages/Account/PasswordResetRequest/Index.cshtml.cs:18
- InputModel.Email IdentityProvider/Src/Presentation/Web/Pages/Account/ResendConfirmationEmail/InputModel.cs:11
- ResetPasswordInput.Email IdentityProvider/Src/Presentation/Web/Pages/Account/ResetPassword/ResetPasswordInput.cs:23
- IndexModel._emailService IdentityProvider/Src/Presentation/Web/Pages/Account/UserActivation/Index.cshtml.cs:12
- RegistrationInput.Email IdentityProvider/Src/Presentation/Web/Pages/Account/UserRegistration/PasswordInput.cs:34
- Instructor.Email SolenLmsApp/Api/CourseManagement/Src/Domain/Instructors/Instructor.cs:22
- UserAdded.Email SolenLmsApp/Api/Shared/Core/Events/IdentityProvider/UserAdded.cs:8