Event-native database for event sourcing and event-driven apps
Public report — KurrentDB, published 20 Jun 2026.
Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version;
ask the repo owner for the full report.
1112findings with an exact file:lineof 1681 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
65/99dimensions across the health lenses83342 LoC · 94 projects — wide & deep
Executive summary
Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.
kurrent-io/KurrentDB is in a workable but fragile state (56%). It is not in crisis, but it carries material risk that makes change slower and incidents harder to contain if left unaddressed.
The area that most needs attention is Accessibility (47%) — it raises ongoing delivery and operational cost. Readiness (58%) is the next concern — operating, monitoring and recovering the system safely is harder.
Leadership focus, highest impact first: Make custom controls keyboard-operable (role + tabindex + key handler) (Keyboard semantics); accessibility in the toolchain (A11y enforcement); Declare <html lang>, a document <title> and a <main> landmark,… (Page structure).
For scale: Medium (~83,342 production lines); rebuilding it from scratch would take roughly ~4.2 person-years (~2–8 engineers). Approximate, ±~30%.
How the score is built — each lens's share of the headlineWidth is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.
Rebuild cost & value ~ Modeled — €200,000–€1,000,000
This codebase represents roughly ~4.2 person-years of build effort (about ~€610,000 to rebuild). Its weakest lens is Accessibility at 47% — the part of that asset most exposed by the findings below.
How we model this: boilerplate at a scaffolding rate + logic × domain High (×1.5) — service/app, DDD/clean architecture, domain model, high decision density × a 0.8× quality factor, at €60–95/h; indicative, ±~30%. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).
Top priorities
The highest-leverage moves; the full ranked list is in the Roadmap below.
1
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
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.
Value concentrated against a weak lens · Medium · Value at risk
This is a Medium asset (~4.2 person-years to rebuild), and its weakest lens is Accessibility at 47%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
→ Direct remediation budget at Accessibility first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
Improving trajectory · Info · Trajectory
The headline is improving steadily (+10.2 pts/run over 5 runs) — whatever you're doing is working; keep the gate.
Evidence: trajectory: +10.2 pts/run over 5 runs
Trajectory
Where this codebase is heading — something a one-shot snapshot cannot show. 56 ▲ 20 over 5 runs.
Each box is a bounded context (its layer projects grouped, or a project count when large); arrows show dependencies between contexts. A shared kernel is where many arrows converge.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A02:2021 — Cryptographic Failures
3
High / Critical
A06:2021 — Vulnerable & Outdated Components
1
High / Critical
A05:2021 — Security Misconfiguration
1
High / Critical
Roadmap
Top priorities: Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href; 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; Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
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.
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. 65 of 65 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.7 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 65 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
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, 1112 of 1681 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
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.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
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.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (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.
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.
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.
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.
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 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.
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.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
+ 43 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 2 CheckpointTag.OperatorDeclaration (cyclomatic 23) finding(s) in Cyclomatic Complexity — start with CheckpointTag.cs (2). — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 CoreProjection.GoToState (cyclomatic 50) finding(s) in Cyclomatic Complexity — start with CoreProjection.cs. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 SchemaApplication.SchemaApplication.ctor (cyclomatic 47) finding(s) in Cyclomatic Complexity — start with SchemaApplication.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.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 91 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 2 CheckpointTag.OperatorDeclaration (cognitive 18) finding(s) in Cognitive Complexity — start with CheckpointTag.cs (2). — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 TFChunkDbCreationHelper.CreateDb (cognitive 106) finding(s) in Cognitive Complexity — start with TFChunkDbCreationHelper.cs. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 SchemaApplication.SchemaApplication.ctor (cognitive 80) finding(s) in Cognitive Complexity — start with SchemaApplication.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.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes9.1 / 10Exemplary✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
+ 12 more group(s) — more in Appendix A; the complete list is findings.md.
✓ On the Gold path — maintain.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling8.9 / 10Strong✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
Off the main sequence: KurrentDB.BufferManagement · ×12
Unstable project KurrentDB
Unstable project KurrentDB.Plugins.Kontext
What to do
Resolve the 12 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (12 warning-level).
Resolve the 1 Unstable project KurrentDB finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Unstable project KurrentDB.Plugins.Kontext finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 61 Low cohesion finding(s) in Cohesion (LCOM4) — start with DiagnosticsListeners.cs (2), Feed.cs (2), UriTemplate.cs (2). — One of this dimension's main actionable groups (61 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.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
6937 test methods: 6937 unit, 0 integration, 0 BDD, 0 e2e.
Unit tests
Integration tests
BDD tests
E2E tests
✓ On the Gold path — maintain.
Detailed fixes: d9_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D10 · Test Quality9.3 / 10Exemplary✓ Tool-verified
What it measures: Whether the tests truly assert behaviour rather than just running the code.
Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.
What it measures: Whether dependencies are current, secure, and not bloated.
Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D17 · Explicit Debt8.0 / 10Strong✓ Tool-verified
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
+ 5 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 19 NoWarnInCsproj finding(s) in Explicit Debt — start with KurrentDB.Connectors.csproj (6), KurrentDB.TestClient.csproj (3), KurrentDB.Connectors.Tests.csproj (2). — One of this dimension's main actionable groups (19 issue-level).
Resolve the 5 EmptyCatchBlock finding(s) in Explicit Debt — start with Helper.cs (3), CertificateManager.cs, MacOSCertificateManager.cs. — One of this dimension's main actionable groups (5 issue-level).
Resolve the 240 TodoComment finding(s) in Explicit Debt — start with soft_delete.cs (10), EventProcessingProjectionProcessingPhase.cs (7), EventByTypeIndexEventReader.IndexBased.cs (5). — One of this dimension's main actionable groups (240 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the solution is laid out in a sensible, conventional structure.
Method: Solution structure: project count, decomposition, shell-project detection, build success (confirmed failures cap the score); traced to actual .sln files and binaries. Deterministic.
94 projects, 3869 .cs files, 334134 hand-written lines of code (82176 production / 251958 test), 1337 inter-project edges (build status unknown — did not finish).
8 of 92 projects flagged as possibly oversized/incoherent.
Large project: KurrentDB.Core · ×8
What to do
Resolve the 8 Large project finding(s) in Project Cohesion. — One of this dimension's main actionable groups (8 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D27 · Navigability7.4 / 10Strong✓ Tool-verified
What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.
Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
67 % of calls cross a namespace and 3 % go through an interface, but 80 % of collaborators are co-located — so following a call takes several hops. Baseline: large — vertical-slice locality expected.
What to do
Improve Navigability — currently 7.4/10. — 67 % of calls cross a namespace and 3 % go through an interface, but 80 % of collaborators are co-located — so following a call takes several hops. Baseline: large — vertical-slice locality expected.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.
2 finding(s): 0 critical, 2 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
Secret: generic-api-key · ×2src/EventStore.Core/Certificates/CertificateUtils.cs:57detected by gitleaks finding
Rotate the exposed credentials — git history can't be un-committed
What to do
Resolve the 2 Secret finding(s) in Secrets (history) — start with CertificateUtils.cs (2). — One of this dimension's main actionable groups (2 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).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep --config auto across the repo; severity rules (ERROR/WARNING/INFO) map to a 0-10 wide normalizer. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
What it measures: Whether any dependencies have known published vulnerabilities (CVEs), direct or transitive.
Method: NuGet CVE scan via dotnet list package --vulnerable including transitive; severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer. Exhaustive, deterministic; degrades when absent.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
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).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.
Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.
What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — npm and other lockfile ecosystems, parsed natively. Complements D33 (npm via trivy) and D30 (.NET via dotnet).
Method: npm/multi-ecosystem CVE scan via osv-scanner (queries the osv.dev database + parses lockfiles natively: package-lock/yarn/pnpm/bun); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable without a JS lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.
AC1 · Text alternatives10.0 / 10Exemplary○ Nothing flagged
Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, and video has a captions track. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.
Other · Accessibility — Whether pages declare a language and title, expose a main landmark and a sane heading order, keep zoom enabled, title their iframes and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.
No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×2) — NOTICE.html:2, index.html:1
A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>. — App.razor:0
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.
Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no positive tabindex, no href-less anchor. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.
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. — MainLayout.razor:40
A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×8) — Query.razor:55, Query.razor:56, Query.razor:87, …
What to do
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: only inline styles and in-repo CSS literals are visible, never computed or runtime colour. Static markup readiness, not a WCAG conformance claim.
Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.
Do you agree with this assessment?
AC7 · A11y enforcement4.0 / 10Weak✓ Tool-verified
Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) configured, and axe/pa11y/Lighthouse wired into tests or CI — on the Documented→Verified→Prevented ladder.
Method: Repo config/CI scan: an a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) configured, and axe/pa11y/Lighthouse in tests or CI, graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.
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.
Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.
Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code — check that business logic isn't leaking into the application/infrastructure layers (a thin domain is the anemic-domain smell).
Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.
Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.
`MonitoringService` is a singleton (one shared instance) but mutates instance state outside any lock (_lastTime, _lastTotalProcessorTime, _curTime, _curTotalProcessorTime; e.g. `_lastTime` at line 19). — MonitoringService.cs:9
`UserIndexEngine` is a singleton (one shared instance) but mutates instance state outside any lock (_lastAppendedRecordPosition, _lastAppendedRecordTimestamp; e.g. `_lastAppendedRecordPosition` at line 119). — UserIndexEngine.cs:25
`FlightSqlLicense` is a singleton (one shared instance) but mutates instance state outside any lock (_licensed; e.g. `_licensed` at line 12). — FlightSqlLicense.cs:6
`DefaultIndexProcessor` is a singleton (one shared instance) but mutates instance state outside any lock (_committing; e.g. `_committing` at line 161). — DefaultIndexProcessor.cs:30
What to do
Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.
Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface member counts; fat-interface threshold (over 15 members) flagged per type. Deterministic, type-level.
`IQuerySources` declares 34 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. — IQuerySources.cs:6
`IHttpRequest` declares 20 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. — IHttpRequest.cs:12
`IHttpResponse` declares 16 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. — IHttpResponse.cs:8
`IMonitoredTcpConnection` 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. — IMonitoredTcpConnection.cs:8
`ITcpConnection` declares 22 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. — ITcpConnection.cs:11
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Do you agree with this assessment?
C1 · Data Protection5.5 / 10Adequate✓ Tool-verified
Other · Security — Whether sensitive data is encrypted at rest and in transit and keys are vaulted.
Method: Roslyn plus filesystem scan: encryption presence (EF ColumnEncryption, key-vault references, HTTPS enforcement) and key-derivation KDF detection. Deterministic.
What to do
Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
Enforce HTTPS (UseHttpsRedirection / RequireHttpsMetadata) so data in transit is always encrypted.
Other · Security — Whether access is authorized by default — [Authorize]/policies or imperative guard methods (throw-on-violation) called from handlers.
Method: Roslyn scan: [Authorize] usage and authorization policies, plus imperative throw-on-violation guard methods detected via syntax. Deterministic.
Do you agree with this assessment?
C4 · Data Retention10.0 / 10Exemplary✓ Tool-verified
Other · Security — Whether data has a defined lifetime — retention periods, TTLs, cleanup jobs (storage limitation).
Method: Roslyn scan: retention/TTL configuration presence in schema; CascadeDelete detected but not scored as retention control. Deterministic, gated by PII presence.
Other · Domain Modelling — Whether aggregates reference each other by identity (id) rather than by direct object reference — the core DDD consistency-boundary rule.
Method: Roslyn (DDD-gated): aggregate roots identified by convention; each aggregate field checked for direct references to other aggregates versus id-only. Deterministic, DDD-native.
Coverage: Population: aggregate roots identified by AggregateRoot/IAggregateRoot base/interface NAME convention; reference-by-identity then checked exhaustively within that set — a root not using those names is invisible.
Do you agree with this assessment?
DM4 · Rich vs anemic model3.0 / 10Weak✓ Tool-verified
Other · Domain Modelling — Whether aggregates/entities carry the behaviour that protects their invariants, rather than being data bags driven by external services.
Method: Roslyn (DDD-gated): entity method BODIES classified mutator-vs-query — only methods that mutate the entity's own declared state count as invariant-protecting behaviour, so a getter/passthrough doesn't rescue an anemic class. Deterministic, exhaustive over domain-layer entities.
Coverage: Population: entities by name/base convention; rich-vs-anemic judged by classifying each method body mutator-vs-query — logic-bearing domain types outside the convention are invisible.
What to do
Some domain entities expose no public data and no behaviour, so they don't count as 'rich' — give each aggregate/entity the state-changing methods that enforce its invariants, or reclassify pure marker/value types out of the entity set.
Other · Domain Modelling — Whether entities protect their state (private/init-only setters) instead of exposing public setters that bypass invariants. Softened when a rehydration framework (Marten/EF) is present.
Method: Roslyn (DDD-gated): public setters on entities detected; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.
Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.
Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies (EF/Marten/HTTP/ASP.NET) — the clean-architecture dependency rule.
Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.
Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.
Other · Domain Modelling — Whether clusters of primitives that travel together (a missing value object) are extracted — a low-weight suggestion, LLM-confirmed when configured.
Method: Roslyn (DDD-gated): primitive parameter clusters recurring three or more times across signatures extracted, then confirmed by language model when configured. Advisory, low-weight.
Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface. (×25) — IClient.cs:87, IClient.cs:91, IClient.cs:95, …
What to do
Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
Other · Code Health — Unfinished work detected by code SHAPE, not keywords: members that only throw a "not implemented" exception, methods that take inputs and return a constant, async methods that never await, dead `if (false)` / `#if false` branches, and skeleton types most of whose members are holes. A real, objective slice of technical debt.
`DecodeLegacySettings` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — SerilogSink.cs:107
`StopAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. (×3) — SchemaRegistryStartupTask.cs:35, PublicTcpApiTestService.cs:101, LicenseTelemetryService.cs:49
`OnError` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×2) — AnotherGenericListener.cs:48, GenericDiagnosticsListener.cs:79
`OnLicenseError` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — ConnectorsLicenseService.cs:78
`Read` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — EventJsonConverter.cs:10
`LoadStateAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — AutoScavengeProcessManager.cs:230
`GetScavengeStatusFromStream` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — HttpNodeScavenger.cs:121
`ReadConfigurationEvent` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — ClientSource.cs:26
`ReadAutoScavengeEvents` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — ClientSource.cs:49
`IsTrusted` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — UnixCertificateManager.cs:21
`Handle` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×2) — FakeCollectingQueuedHandler.cs:15, NoopConsumer.cs:10
`Consume` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — TestHelper.cs:7
`PublicTcpApiTestService` has 2 unfinished members out of 4 — a scaffolded type that was never implemented. — PublicTcpApiTestService.cs:22
`StartAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. (×2) — PublicTcpApiTestService.cs:99, WorkspaceLifecycleManager.cs:34
`Init` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — FakeReadIndex.cs:44
`Commit` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — FakeReadIndex.cs:48, FakeReadIndex.cs:52
`GetStatistics` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — FakeReadIndex.cs:56
`CheckStreamAccess` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — FakeReadIndex.cs:126
`GetStreamId` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — FakeReadIndex.cs:133
`Close` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — FakeReadIndex.cs:140
`Dispose` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — FakeReadIndex.cs:144
`Streams` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — StreamsTool.cs:19
`GetDriveSectorSize` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — NativeFileUnix.cs:17
`None` has 9 unfinished members out of 9 — a scaffolded type that was never implemented. — IClient.cs:85
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.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 86 of 92 project(s) that lack one — worth up to 1.9 pts.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem/Roslyn scan: CodeQL, Dependabot, secret-scanning, and BenchmarkDotNet presence in pipelines and projects. Exhaustive, deterministic.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced — a bad release is harder to detect and reverse.
What to do
Add readiness/liveness probes and a rolling-update (or blue/green) strategy so a bad release is caught and rolled back automatically.
Add an approval/environment gate (required reviewers / protection rules) before production promotion.
Do you agree with this assessment?
P5 · DR & Backup10.0 / 10Exemplary✓ Tool-verified
Readiness · Readiness — Whether disaster recovery is planned and codified — backups, geo-recovery, RTO/RPO, persistence guarantees — from IaC + container manifests + docs, never the live cloud.
Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.
Readiness · Performance — Whether the library protects its performance with benchmarks — a BenchmarkDotNet suite, an allocation MemoryDiagnoser, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.
Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.
Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's GC — Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc, ValueTask, value-type structs and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.
Readiness · Performance — Whether asynchronous code keeps its host responsive — a library awaits with ConfigureAwait(false) (so it never captures and stalls the host's context) and avoids sync-over-async blocking (.Wait()/.GetAwaiter().GetResult()) that wastes threads and risks deadlock.
Method: Production-source scan: sync-over-async blocking (.Wait()/.GetAwaiter().GetResult()) counted everywhere, and — for a library with ≥5 awaits — the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
50 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock in a consumer with a synchronization context.
What to do
Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult() in library code.
Other · Security — Transport security, security headers, secure cookies, input validation, middleware order and crypto hygiene (presence, not runtime).
No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
No UseHttpsRedirection/UseHsts and no reverse-proxy signal — transport security is unverified at the app layer. (−2.0 on this card.)
What to do
Add security response headers (Content-Security-Policy, X-Frame-Options, X-Content-Type-Options) — defense in depth, even when a reverse proxy could set them.
Enforce HTTPS at the app layer (UseHttpsRedirection / UseHsts) — only skip this if a reverse proxy demonstrably terminates TLS.
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Make the caller `async` and `await` instead. (×25) — QueueBenchmarks.cs:51, QueueBenchmarks.cs:59, SystemProducer.cs:87, …
Other · Code Health — Whether async methods accept a CancellationToken so work can be cancelled (adoption curve).
Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage.
Only 188/324 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) — ConnectorsTests.cs:17, ConnectorsTests.cs:40, ConnectorsTests.cs:63, …
What to do
Thread a CancellationToken through async methods so work stops promptly on cancellation.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×5) — CertificateManager.cs:653, MacOSCertificateManager.cs:180, Helper.cs:17, …
Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.
Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. Deterministic.
Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. (×2) — OAuthAuthenticationPlugin.cs:305, OAuthAuthenticationPlugin.cs:367
Other · Code Health — Whether nullable reference types are enabled and not undermined by heavy `!` suppression.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
29/55 projects enable <Nullable>enable</Nullable>. NRTs catch a whole class of null-deref bugs at compile time.
~0.6 `!` 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 `!`.
Do you agree with this assessment?
WCAG coverage — what static analysis assessed
Statically assessed 13 of 55 WCAG 2.2 Level A/AA success criteria — partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Not included — 29 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC2 Forms & labels — No form control/button found in the parsed markup — AC2 not applicable here.
AC5 ARIA correctness — No ARIA usage found in the parsed markup — AC5 not applicable here.
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — no test/production split to check
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
C3 Audit Trail — Repo shows no audit-logging mechanism (IAuditable, an immutable audit log, an EF SaveChanges interceptor) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
D11 Test Reliability — No tests discovered
D16 Bus Factor — single-maintainer — knowledge-concentration (bus factor) risk
D23 Boundary Type-Coupling — Bounded contexts not declared
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
D39 IL Efficiency — IL metrics not applicable
D7 Architectural Integrity — No checkable ADRs to assess
D8 Code Coverage — Coverage not measured
DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
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)
ED1 Event-Driven — not run — only 1/3 markers (9 event handler(s))
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — applicable but skipped (2/3 markers — below the conservative bar): an event-store package (Marten/EventStore); an append-only event-store seam (IEventStore/Append-of-events)
M4 Documentation accuracy — LLM not available — accuracy is the Tier-2 layer and needs a reachable model.
P12 CI test-gate honesty — no data
P8 Schema migrations — no EF Core usage detected
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
X6 Hand-rolled structured-format parsing — no data
X7 Silent fallback defaults — no data
X8 JS interop contract — no data
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
No assertions: can_create_a_connector_with_settings src/KurrentDB.Ammeter/ConnectorsTests.cs:17— Test method has no assertions — it may not test anything.
No assertions: can_create_a_connector_with_configuration src/KurrentDB.Ammeter/ConnectorsTests.cs:40— Test method has no assertions — it may not test anything.
No assertions: can_delete_a_connector src/KurrentDB.Ammeter/ConnectorsTests.cs:175— Test method has no assertions — it may not test anything.
No assertions: DummyTest src/KurrentDB.Api.V2.Tests/DummyTests.cs:8— Test method has no assertions — it may not test anything.
No assertions: logging_configured src/KurrentDB.Api.V2.Tests/TestEnvironmentWireUpTests.cs:11— Test method has no assertions — it may not test anything.
No assertions: logs_are_scoped_to_test src/KurrentDB.Api.V2.Tests/TestEnvironmentWireUpTests.cs:26— Test method has no assertions — it may not test anything.
No assertions: ShouldAccessConfigureEndpoint src/KurrentDB.AutoScavenge.Tests/PluginTests.cs:114— Test method has no assertions — it may not test anything.
No assertions: ShouldAccessPauseEndpoint src/KurrentDB.AutoScavenge.Tests/PluginTests.cs:137— Test method has no assertions — it may not test anything.
No assertions: ShouldAccessResumeEndpoint src/KurrentDB.AutoScavenge.Tests/PluginTests.cs:157— Test method has no assertions — it may not test anything.
No assertions: empty_grant_types_does_not_throw src/KurrentDB.Auth.OAuth.Tests/DiscoveryDocumentValidatorTests.cs:94— Test method has no assertions — it may not test anything.
No assertions: disable_pkce_validation_skips_code_challenge_check src/KurrentDB.Auth.OAuth.Tests/DiscoveryDocumentValidatorTests.cs:128— Test method has no assertions — it may not test anything.
No assertions: disable_pkce_validation_skips_s256_check src/KurrentDB.Auth.OAuth.Tests/DiscoveryDocumentValidatorTests.cs:137— Test method has no assertions — it may not test anything.
No assertions: when_the_default_policy_write_request_is_not_handled_and_cannot_be_retried src/KurrentDB.Auth.StreamPolicyPlugin.Tests/StreamPolicyWriterTests.cs:79— Test method has no assertions — it may not test anything.
No assertions: when_the_default_policy_write_request_fails_and_cannot_be_retried src/KurrentDB.Auth.StreamPolicyPlugin.Tests/StreamPolicyWriterTests.cs:130— Test method has no assertions — it may not test anything.
No assertions: has_parameterless_constructor src/KurrentDB.Auth.UserCertificates.Tests/UserCertificatesPluginTests.cs:36— Test method has no assertions — it may not test anything.
No assertions: stops_gracefully_when_waiting_for_leadership_and_service_is_stopped src/Connectors/KurrentDB.Connectors.Tests/System/LeaderNodeBackgroundServiceTests.cs:144— Test method has no assertions — it may not test anything.
No assertions: stops_gracefully_when_waiting_for_leadership_and_stopping_token_is_cancelled src/Connectors/KurrentDB.Connectors.Tests/System/LeaderNodeBackgroundServiceTests.cs:201— Test method has no assertions — it may not test anything.
No assertions: should_accept_a_checked_out_buffer src/KurrentDB.BufferManagement.Tests/BufferManagerTests.cs:84— Test method has no assertions — it may not test anything.
No assertions: should_not_throw_exception_when_server_is_down src/KurrentDB.Core.Tests/ClientAPI/connect.cs:26— Test method has no assertions — it may not test anything.
No assertions: should_timeout_connection_after_configured_amount_time_on_conenct src/KurrentDB.Core.Tests/ClientAPI/connect.cs:115— Test method has no assertions — it may not test anything.
No assertions: should_not_throw_when_connect_to_is_set src/KurrentDB.Core.Tests/ClientAPI/connecting_with_connection_string.cs:31— Test method has no assertions — it may not test anything.
No assertions: the_completion_succeeds src/KurrentDB.Core.Tests/ClientAPI/create_persistent_subscription.cs:27— Test method has no assertions — it may not test anything.
No assertions: the_completion_succeeds src/KurrentDB.Core.Tests/ClientAPI/create_persistent_subscription.cs:46— Test method has no assertions — it may not test anything.
No assertions: the_subscription_is_created_without_error src/KurrentDB.Core.Tests/ClientAPI/create_persistent_subscription.cs:113— Test method has no assertions — it may not test anything.
No assertions: the_completion_succeeds src/KurrentDB.Core.Tests/ClientAPI/create_persistent_subscription.cs:156— Test method has no assertions — it may not test anything.
High CVE: SQLitePCLRaw.lib.e_sqlite3 2.1.11 — SQLitePCLRaw.lib.e_sqlite3 2.1.11 (transitive) has a High advisory; affects 54 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
TodoComment src/KurrentDB.Common/DevCertificates/CertificateManager.cs:434— // TODO: cleanup cast: https://github.com/dotnet/aspnetcore/issues/41455 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Common/DevCertificates/CertificateManager.cs:444— // TODO: cleanup cast: https://github.com/dotnet/aspnetcore/issues/41455 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Common/DevCertificates/CertificateManager.cs:450— // TODO: cleanup cast: https://github.com/dotnet/aspnetcore/issues/41455 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Common/Utils/HostName.cs:22— //TODO: encode??? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Common/Utils/LowAllocReadOnlyMemory.cs:22— // todo: consider union — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Authentication/InternalAuthentication/UserManagementService.cs:438— //TODO: avoid 'is' — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Authorization/AuthorizationPolicies/IPolicySelectorFactory.cs:9— // TODO: Move this to EventStore.Plugins when we're decoupling the StreamPolicies Plugin — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Bus/Extensions/SystemClient.cs:205— // todo: support other cases by checking that the expected version is — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Bus/ThreadPoolMessageScheduler.cs:130— // TODO: We need to respect readiness barrier here and delay messages if the scheduler is not yet started — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Caching/CompositeCacheResizer.cs:85— // todo: could consider taking into account capacity not used by children because — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Caching/IDynamicCache.cs:17— // todo: hits and misses — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Cluster/EventStoreClusterClientCache.cs:20— //TODO: Align with Gossip Dead Member Removal Time once the options is in ClusterNodeOptions — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/ClusterVNode.cs:384— //todo(clc) : promote these to file backed checkpoints re:project-io — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/ClusterVNode.cs:1230— //TODO CC can have multiple threads working on subscription if partition — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Configuration/ClusterVNodeOptions.cs:452— // TODO SS: not sure if we should do this here — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Configuration/Sources/KurrentDBDefaultValuesConfigurationSource.cs:24— // todo: something more permanent. exclude GossipSeed default because it overrides gossip seeds specified as arrays — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/DataStructures/ProbabilisticFilter/AlignedMemory.cs:22— // todo probably better to use a safe handle — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/DataStructures/ProbabilisticFilter/FileStreamPersistence.cs:245— // todo later: maybe could be a common implementation across the strategies that reads — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/DataStructures/ProbabilisticFilter/MemoryMappedFilePersistence.cs:44— // todo: OpenOrCreate can be CreateNew if the mininode closed the file before declaring itself 'stopped' — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/DataStructures/ProbabilisticFilter/MemoryMappedFilePersistence.cs:91— // todo later: maybe could be a common implementation across the strategies that reads — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/DataStructures/ProbabilisticFilter/PersistentBloomFilter.cs:131— // todo: confirm is this is true on ARM — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Helpers/ReadStreamEventsBackwardHandlers.cs:62— // todo: move away from this and towards bespoke implementations (like AuthReadResponseHandler) to avoid having to — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Index/PTable.cs:1027— // todo: else if the requested start version is less than or equal to what we have in this ptable — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/LogAbstraction/INameIndexExtensions.cs:10— // todo: rename to GetOrReserveStream when we generalise to EventTypes too. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/KurrentDB.Core/Messages/ClientMessage.cs:287— // TODO: use .Span instead of .ToArray() when we move to .NET 10 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
Low cohesion: FakeReadIndex (LCOM4 27) src/KurrentDB.Core.Testing/TransactionLog/FakeReadIndex.cs:18— FakeReadIndex's methods form 27 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: ByCorrelationId (LCOM4 12) src/KurrentDB.Projections.V1/Standard/ByCorrelationId.cs:18— ByCorrelationId's methods form 12 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: IndexEventsByEventType (LCOM4 12) src/KurrentDB.Projections.V1/Standard/IndexEventsByEventType.cs:15— IndexEventsByEventType's methods form 12 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: CheckpointTag (LCOM4 11) src/KurrentDB.Projections.Shared/Services/Processing/Checkpointing/CheckpointTag.cs:16— CheckpointTag's methods form 11 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: CategorizeEventsByStreamPath (LCOM4 11) src/KurrentDB.Projections.V1/Standard/CategorizeEventsByStreamPath.cs:15— CategorizeEventsByStreamPath's methods form 11 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: CategorizeStreamByPath (LCOM4 11) src/KurrentDB.Projections.V1/Standard/CategorizeStreamByPath.cs:14— CategorizeStreamByPath's methods form 11 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: SourceDefinitionBuilder (LCOM4 9) src/KurrentDB.Projections.Shared/Services/Processing/SourceDefinitionBuilder.cs:10— SourceDefinitionBuilder's methods form 9 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: ProjectionNamesBuilder (LCOM4 7) src/KurrentDB.Projections.Shared/Services/Processing/ProjectionNamesBuilder.cs:9— ProjectionNamesBuilder's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: WriteQueryResultProjectionProcessingPhaseBase (LCOM4 7) src/KurrentDB.Projections.V1/Services/Processing/Phases/WriteQueryResultProjectionProcessingPhaseBase.cs:16— WriteQueryResultProjectionProcessingPhaseBase's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: V1ProjectionProcessingStrategy (LCOM4 7) src/KurrentDB.Projections.V1/Services/Processing/Strategies/V1ProjectionProcessingStrategy.cs:17— V1ProjectionProcessingStrategy's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: SingleSourceDiagnosticsListener (LCOM4 7) src/KurrentDB.Plugins/Diagnostics/DiagnosticsListeners.cs:62— SingleSourceDiagnosticsListener's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: ChunkDataReadStream (LCOM4 7) src/KurrentDB.Plugins/Transforms/ChunkDataReadStream.cs:6— ChunkDataReadStream's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: SingleSourceDiagnosticsListener (LCOM4 7) src/Connectors/KurrentDB.Connectors/Infrastructure/Diagnostics/SingleSourceDiagnosticsListener.cs:11— SingleSourceDiagnosticsListener's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: ControlPlaneMetrics (LCOM4 7) src/Connectors/KurrentDB.Connectors/Planes/Control/Diagnostics/ControlPlaneMetrics.cs:9— ControlPlaneMetrics's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: IndexingStatus (LCOM4 7) src/KurrentDB.Kontext/Indexing/IndexingStatus.cs:9— IndexingStatus's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: UriTemplateDefaults (LCOM4 6) src/KurrentDB.NETCore.Compatibility/System.UriTemplate/UriTemplate.cs:794— UriTemplateDefaults's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: UriTemplatePathSegment (LCOM4 6) src/KurrentDB.NETCore.Compatibility/System.UriTemplate/UriTemplatePathSegment.cs:14— UriTemplatePathSegment's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: PositionTagger (LCOM4 6) src/KurrentDB.Projections.V1/Services/Processing/Checkpointing/PositionTagger.cs:8— PositionTagger's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: FeedElement (LCOM4 6) src/KurrentDB.Transport.Http/Atom/Feed.cs:14— FeedElement's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: RawMessageFormatter (LCOM4 6) src/KurrentDB.Transport.Tcp/Formatting/RawMessageFormatter.cs:12— RawMessageFormatter's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: ChunkDataStream (LCOM4 6) src/KurrentDB.Plugins/Transforms/ChunkDataStream.cs:8— ChunkDataStream's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: NonClosingStreamWrapper (LCOM4 6) src/KurrentDB.Security.EncryptionAtRest/Transforms/AesGcm/NonClosingStreamWrapper.cs:9— NonClosingStreamWrapper's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: UserIndexSql (LCOM4 6) src/KurrentDB.SecondaryIndexing/Indexes/User/UserIndexSql.cs:11— UserIndexSql's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: FakeCollectingQueuedHandler (LCOM4 6) src/KurrentDB.Core.Testing/Bus/Helpers/FakeCollectingQueuedHandler.cs:12— FakeCollectingQueuedHandler's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Low cohesion: ProjectionManagement (LCOM4 5) src/KurrentDB.Projections.Management/Services/Grpc/ProjectionManagement.cs:26— ProjectionManagement's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
Skipped test: result_events_are_produced_for_each_received_event src/KurrentDB.Projections.V1.Tests/Services/core_projection/when_receiving_committed_events_the_projection_without_when.cs:103— Skipped — To be fixed
Off the main sequence: KurrentDB.BufferManagement — KurrentDB.BufferManagement: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.LogCommon — KurrentDB.LogCommon: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.PluginHosting — KurrentDB.PluginHosting: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.SourceGenerators — KurrentDB.SourceGenerators: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.SystemRuntime — KurrentDB.SystemRuntime: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.UI — KurrentDB.UI: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.NETCore.Compatibility — KurrentDB.NETCore.Compatibility: abstractness 0.06, instability 0.00, distance 0.94 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.Common — KurrentDB.Common: abstractness 0.03, instability 0.06, distance 0.90 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.Plugins.TestHelpers — KurrentDB.Plugins.TestHelpers: abstractness 0.00, instability 0.10, distance 0.90 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.Testing — KurrentDB.Testing: abstractness 0.12, instability 0.00, distance 0.88 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.Logging — KurrentDB.Logging: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: KurrentDB.Core.Testing — KurrentDB.Core.Testing: abstractness 0.00, instability 0.29, distance 0.71 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
HackComment src/KurrentDB.Surge.Testing/ClusterVNodeApp.cs:31— // super hack to ignore the db's absurd logging config — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
HackComment src/KurrentDB.Testing.ClusterVNodeApp/ClusterVNodeApp.cs:44— // super hack to ignore the db's absurd logging config — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
HackComment src/KurrentDB.Core.Tests/Helpers/ReflectionDynamic.cs:204— //quick greg hack to allow methods to not exist! — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment src/KurrentDB.AutoScavenge.Tests/ClusterFixtures.cs:93— // FIXME: This approach won't work if another node is on part with the leader. We ought to prioritize the follower — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
Coverage not measured — The test suite couldn't be built/run in-image and no coverage report is committed, so line coverage was not measured — and it is EXCLUDED from the score rather than scored on a LoC-ratio proxy. Commit the Cobertura/OpenCover/lcov report your CI already produces (anywhere in the repo), or make the suite runnable in-image, and real coverage will be measured.
Shell project: KurrentDB.ClusterNode.Web src/KurrentDB.ClusterNode.Web/KurrentDB.ClusterNode.Web.csproj— `KurrentDB.ClusterNode.Web` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
Shell project: KurrentDB.Connectors.Contracts src/Connectors/KurrentDB.Connectors.Contracts/KurrentDB.Connectors.Contracts.csproj— `KurrentDB.Connectors.Contracts` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
Shell project: KurrentDB.SchemaRegistry.Protocol src/SchemaRegistry/KurrentDB.SchemaRegistry.Protocol/KurrentDB.SchemaRegistry.Protocol.csproj— `KurrentDB.SchemaRegistry.Protocol` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
Shell project: KurrentDB.Surge.Testing.Messages src/KurrentDB.Surge.Testing.Messages/KurrentDB.Surge.Testing.Messages.csproj— `KurrentDB.Surge.Testing.Messages` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
Shell project: KurrentDB.Kontext.Models src/KurrentDB.Kontext.Models/KurrentDB.Kontext.Models.csproj— `KurrentDB.Kontext.Models` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
No tests discovered — Test reliability not scored — the test tier(s) built and ran but no tests were discovered, so reliability couldn't be exercised.
D23 · Boundary Type-Coupling· Bounded contexts not declared · ×1
Bounded contexts not declared — large codebase (82,743 production LoC) with no declared bounded contexts — cross-boundary type coupling is unassessed Declare architecture.contexts (≥2) in config to assess cross-boundary type coupling.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
Rotate the exposed credentials — git history can't be un-committed — Some of these secrets are in git HISTORY: deleting the file does not remove them (the commit persists on every clone, fork and backup). The remediation is to ROTATE each historically-exposed credential and treat it as compromised — not to delete the file. Rewriting history is disruptive and unreliable across existing forks. (Working-tree-only secrets — no commit — can instead be removed from the file and moved to a secret store.)
D32 · Data Compliance (PII/GDPR)· Not applicable · ×1
Not applicable — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess.
early-stage repository — too little history to judge knowledge freshness — early-stage repository — too little history to judge knowledge freshness (0 commit(s) sampled).
No artifact signing — No artifact signing found in CI (e.g. cosign / sigstore / gitsign).
D36 · Supply-chain Provenance & Signing· No SBOM · ×1
No SBOM — No SBOM generation or committed SBOM found (e.g. syft / anchore/sbom-action / *.spdx.json / *.cdx.json).
D39 · IL Efficiency· IL metrics not applicable · ×1
IL metrics not applicable — The target did not build, so no IL was available to measure.
D7 · Architectural Integrity· No checkable ADRs to assess · ×1
No checkable ADRs to assess — No architecture decision records were found and the project graph is acyclic, so architectural integrity could not be assessed. Add ADRs (with `enforcement: analyzer|test`) to make the architecture's rules checkable.
Justified suppression src/KurrentDB.Common/DevCertificates/MacOSCertificateManager.cs:97— empty catch — narrow/filtered/commented, treated as intentional
Justified suppression src/KurrentDB.Common/DevCertificates/MacOSCertificateManager.cs:214— empty catch — narrow/filtered/commented, treated as intentional
Justified suppression src/KurrentDB.Core/Authorization/AuthorizationPolicies/StreamBasedAuthorizationPolicyRegistry.cs:239— empty catch (ReadResponseException.StreamNotFound) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Bus/QueuedHandlerThreadPool.cs:98— empty catch (Exception) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Bus/ThreadPoolMessageScheduler.cs:109— empty catch (Exception) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Bus/ThreadPoolMessageScheduler.StateMachine.cs:149— empty catch (OperationCanceledException) when (…) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Certificates/CertificateUtils.cs:97— empty catch (CryptographicException) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Certificates/CertificateUtils.cs:144— empty catch in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/DuckDB/DuckDBConnectionPoolLifetime.cs:113— empty catch (IOException) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/DuckDB/DuckDBConnectionPoolLifetime.cs:128— empty catch (Exception) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Messaging/AsyncTaskEnvelope.cs:30— empty catch (OperationCanceledException) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Messaging/ContinuationEnvelope.cs:38— empty catch (ObjectDisposedException) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Messaging/ContinuationEnvelope.cs:38— empty catch (OperationCanceledException) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Services/Monitoring/Utils/EventCountersHelper.cs:85— empty catch (ObjectDisposedException) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Services/Monitoring/Utils/EventCountersHelper.cs:145— empty catch (ServerNotAvailableException) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Services/RequestManager/CommitSource.cs:73— empty catch in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Services/RequestManager/Managers/RequestManagerBase.cs:232— empty catch in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Services/RequestManager/RequestManagementService.cs:175— #pragma warning disable CS9336 // The pattern is redundant.
Justified suppression src/KurrentDB.Core/Services/Storage/IndexCommitterService.cs:116— empty catch (OperationCanceledException) when (…) in test code (best-effort teardown)
Justified suppression src/KurrentDB.Core/Services/Transport/Grpc/PersistentSubscriptions.Read.cs:96— empty catch in test code (best-effort teardown)
Skipped (documented): append_session_throws_when_user_is_not_authenticated src/KurrentDB.Api.V2.Tests/Modules/Streams/StreamsServiceTests.cs:305— Skipped with a documented reason — a deferral, not lazy debt: Skipping for now.
Skipped (documented): append_session_throws_when_user_does_not_have_permissions src/KurrentDB.Api.V2.Tests/Modules/Streams/StreamsServiceTests.cs:322— Skipped with a documented reason — a deferral, not lazy debt: Skipping for now.
Skipped (documented): authenticate_user_with_no_roles_returns_no_roles src/KurrentDB.Auth.Ldaps.Tests/LdapsPluginTests.cs:147— Skipped with a documented reason — a deferral, not lazy debt: This currently results in an error and the request never returns
Skipped (documented): with_two_different_roots_but_equivalent_intermediates src/KurrentDB.Auth.UserCertificates.Tests/FindRootsTests.cs:138— Skipped with a documented reason — a deferral, not lazy debt: failing on linux due to the above issue
Skipped (documented): null_message_app_should_throw src/KurrentDB.Core.Tests/Bus/when_publishing_into_memory_bus.cs:27— Skipped with a documented reason — a deferral, not lazy debt: We do not check each message for null for performance reasons.
Skipped (documented): null_message_should_throw src/KurrentDB.Core.Tests/Bus/when_publishing_to_queued_handler.cs:33— Skipped with a documented reason — a deferral, not lazy debt: We do not check each message for null for performance reasons.
Skipped (documented): getting_metadata_for_metastream_returns_correct_metadata src/KurrentDB.Core.Tests/ClientAPI/when_working_with_stream_metadata_as_structured_info.cs:176— Skipped with a documented reason — a deferral, not lazy debt: You can't get stream metadata for metastream through ClientAPI
Skipped (documented): count_should_be_right src/KurrentDB.Core.Tests/Index/IndexV1/opening_a_ptable_with_more_than_32bits_of_records.cs:87— Skipped with a documented reason — a deferral, not lazy debt: Long running, unsafe
Skipped (documented): filename_is_correct src/KurrentDB.Core.Tests/Index/IndexV1/opening_a_ptable_with_more_than_32bits_of_records.cs:92— Skipped with a documented reason — a deferral, not lazy debt: Long running, unsafe
Skipped (documented): construct_valid_cache_for_any_combination_of_params_large src/KurrentDB.Core.Tests/Index/IndexV1/ptable_midpoint_cache_should.cs:84— Skipped with a documented reason — a deferral, not lazy debt: Veerrrryyy long running :)
Skipped (documented): ptable_exceeding_maximum_filter_size_succeeds src/KurrentDB.Core.Tests/Index/IndexV1/when_creating_large_bloom_filter.cs:11— Skipped with a documented reason — a deferral, not lazy debt: Quick but requires 4gb disk
Skipped (documented): client_should_send_intermediate_certificate_during_handshake src/KurrentDB.Core.Tests/Services/Transport/Tcp/with_intermediate_certificates.cs:81— Skipped with a documented reason — a deferral, not lazy debt: Skipped since it adds an intermediate certificate to the current user's store
Skipped (documented): throw_argumentnullexception_when_given_null_data src/KurrentDB.Core.Tests/TransactionLog/prepare_log_record_should.cs:100— Skipped with a documented reason — a deferral, not lazy debt: ReadOnlyMemory will always convert back to empty array if initialized with null array.
Skipped (documented): when_seeking_greater_than_2gb src/KurrentDB.Core.Tests/TransactionLog/Unbuffered/UnbufferedTests.cs:257— Skipped with a documented reason — a deferral, not lazy debt: Requires a 4gb file
Skipped (documented): does_not_allow_next_new_completed_chunk_when_checksum_is_exactly_in_between_two_chunks src/KurrentDB.Core.Tests/TransactionLog/Validation/when_validating_tfchunk_db.cs:81— Skipped with a documented reason — a deferral, not lazy debt: Due to truncation such situation can happen, so must be considered valid.
Skipped (documented): with_wrong_size_file_less_than_checksum_throws src/KurrentDB.Core.Tests/TransactionLog/Validation/when_validating_tfchunk_db.cs:114— Skipped with a documented reason — a deferral, not lazy debt: Not valid test now after disabling size validation on ongoing TFChunk
Skipped (documented): does_not_allow_first_completed_chunk_when_checkpoint_is_zero src/KurrentDB.Core.Tests/TransactionLog/Validation/when_validating_tfchunk_db.cs:243— Skipped with a documented reason — a deferral, not lazy debt: Due to truncation such situation can happen, so must be considered valid.
Skipped (documented): does_not_allow_checkpoint_to_point_into_the_middle_of_completed_chunk_when_not_enough_actual_data src/KurrentDB.Core.Tests/TransactionLog/Validation/when_validating_tfchunk_db.cs:268— Skipped with a documented reason — a deferral, not lazy debt: We do not check this as it is too erroneous to read ChunkFooter from ongoing chunk...
Skipped (documented): when_checkpoint_is_on_boundary_of_new_chunk_and_last_chunk_is_truncated_but_not_completed_exception_is_thrown src/KurrentDB.Core.Tests/TransactionLog/Validation/when_validating_tfchunk_db.cs:412— Skipped with a documented reason — a deferral, not lazy debt: Not valid test now after disabling size validation on ongoing TFChunk
Skipped (documented): does_not_allow_next_new_chunk_when_checksum_is_exactly_in_between_two_chunks_and_last_is_multi_chunk src/KurrentDB.Core.Tests/TransactionLog/Validation/when_validating_tfchunk_db_with_multi_chunks.cs:66— Skipped with a documented reason — a deferral, not lazy debt: Due to truncation such situation can happen, so must be considered valid.
Skipped (documented): test_memory_usage src/KurrentDB.Core.XUnit.Tests/Scavenge/Sqlite/SqliteScavengeBackendTests.cs:180— Skipped with a documented reason — a deferral, not lazy debt: Long running, run manually
Skipped (documented): test_index_with_archived src/KurrentDB.Core.XUnit.Tests/Scavenge/Sqlite/SqliteScavengeBackendTests.cs:238— Skipped with a documented reason — a deferral, not lazy debt: Long running, run manually
Skipped (documented): correct_event_sequence_has_been_processed src/KurrentDB.Projections.Management.Tests/Services/projections_system/updating_projections/updating_projection_sources.cs:263— Skipped with a documented reason — a deferral, not lazy debt: No position with stream tag yet
Skipped (documented): correct_event_sequence_has_been_processed src/KurrentDB.Projections.Management.Tests/Services/projections_system/updating_projections/updating_projection_sources.cs:331— Skipped with a documented reason — a deferral, not lazy debt: No position in multi-stream tag
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
Run 019ee3d8-eea5-756f-81a3-27a8f6360075 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Appendix C — Personal-data map
Every field, property and record parameter whose name is conventional personal data — 3 field(s) across 2 categories, each with an exact repo-relative file:line. This is the data inventory a compliance review starts from — right-to-erasure, retention, minimisation. Detected by name with a deliberately specific classifier (the same one the GDPR dimensions use, so CardDefinition or FileName don't trip); informational — it feeds no score.
Issues: 197 · Warnings: 657 · Recommendations: 23 · Info: 804 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 20-06-2026 @ 07:05 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.