Public report — marten, 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.
1777findings with an exact file:lineof 1843 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
57/96dimensions across the health lenses173789 LoC · 90 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.
JasperFx/marten is in a workable but fragile state (54%). It is not in crisis, but it carries material risk that makes change slower and incidents harder to contain if left unaddressed.
It is strongest in Event-Driven (100%) — its messaging keeps components properly decoupled. Architecture (83%) is solid too.
The area that most needs attention is Security (43%) — exposure to security and compliance incidents is elevated. Readiness (54%) is the next concern — operating, monitoring and recovering the system safely is harder.
Leadership focus, highest impact first: Encrypt sensitive data at rest (ASP.NET Core Data Protection /… (Data Protection); authorization at every handler (Access Controls); security response headers (Content-Security-Policy (Web-Security Posture).
For scale: Large (~173,789 production lines); rebuilding it from scratch would take roughly ~7.0 person-years (~4–14 engineers). Approximate, ±~30%.
It builds on a genuinely strong Event-Driven foundation (100%); the priorities above are the highest-leverage way to bring the rest up to that level.
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.
This codebase represents roughly ~7.0 person-years of build effort (about ~€1,000,000 to rebuild). Its weakest lens is Security at 43% — the part of that asset most exposed by the findings below.
How we model this: boilerplate at a scaffolding rate + logic × domain Very high (×2.1) — microservices, CQRS, event-driven integration, event sourcing × 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
Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
Enforce authorization at every handler — call the guard method (throw-on-violation) from each one, or adopt [Authorize] so protected-by-default is demonstrable.
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.
Value concentrated against a weak lens · High · Value at risk
This is a Large asset (~7.0 person-years to rebuild), and its weakest lens is Security at 43%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
→ Direct remediation budget at Security 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: Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.). The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
Improving trajectory · Info · Trajectory
The headline is improving steadily (+12.1 pts/run over 4 runs) — whatever you're doing is working; keep the gate.
Evidence: trajectory: +12.1 pts/run over 4 runs
Trajectory
Where this codebase is heading — something a one-shot snapshot cannot show. 54 ▲ 5 over 4 runs.
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways — a layering smell or cycle. A clean layered graph has none.
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
A06:2021 — Vulnerable & Outdated Components
21
High / Critical
A02:2021 — Cryptographic Failures
4
High / Critical
A05:2021 — Security Misconfiguration
4
High / Critical
Roadmap
Top priorities: Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.); Enforce authorization at every handler — call the guard method (throw-on-violation) from each one, or adopt [Authorize] so protected-by-default is demonstrable; 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.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
Enforce authorization at every handler — call the guard method (throw-on-violation) from each one, or adopt [Authorize] so protected-by-default is demonstrable.
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.
Make retry-prone mutations idempotent — guard each write with an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write, so a re-run doesn't double-apply.
Adopt EF migrations (dotnet ef migrations add + Migrate() on startup) as the explicit, versioned schema strategy — no migration mechanism was detected.
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. 57 of 57 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 — 57 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, 1777 of 1843 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.
D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
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.
D37 Vulnerability-disclosure Policy — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
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.
D8 Code Coverage: Coverage is measured by building and running the suite (`dotnet test --collect`) inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (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.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles — risk from how a dependency is used, and advisories not yet published, fall outside this scan.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
ED5 Idempotency: Idempotency is judged from the handler body's visible writes and guards — a guard enforced by a database unique constraint, a broker's exactly-once delivery, or a domain method whose no-op-when-applied logic the scan can't follow may read as at-risk; the at-risk candidates are confirmed by a SAMPLED LLM verdict (advisory, not exhaustive) and degrade to heuristic-only when no model is configured. It flags the at-least-once double-apply SHAPE, not a runtime proof of a duplicate effect.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
LLM-set scores this run (1): ED5. For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
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.
+ 7 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 DocumentStorageDescriptorBuilder.Build (cyclomatic 35) finding(s) in Cyclomatic Complexity — start with DocumentStorageDescriptorBuilder.cs. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 CollectionUsage.CompileGroupJoin (cyclomatic 28) finding(s) in Cyclomatic Complexity — start with CollectionUsage.Compilation.cs. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 StoreOptions.CreateQueryableMember (cyclomatic 24) finding(s) in Cyclomatic Complexity — start with StoreOptions.MemberFactory.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.
+ 40 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 DocumentStorageDescriptorBuilder.Build (cognitive 47) finding(s) in Cognitive Complexity — start with DocumentStorageDescriptorBuilder.cs. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 CollectionUsage.CompileGroupJoin (cognitive 43) finding(s) in Cognitive Complexity — start with CollectionUsage.Compilation.cs. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 DropCycleCommand.Execute (cognitive 31) finding(s) in Cognitive Complexity — start with DropCycleCommand.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 Classes8.3 / 10Strong✓ 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.
Resolve the 53 TooManyMethods finding(s) in God Classes — start with AdvancedOperations.cs, AmbientTransactionLifetime.cs, AsyncProjectionTestingExtensions.cs. — One of this dimension's main actionable groups (53 warning-level).
Resolve the 7 ClassTooLong finding(s) in God Classes — start with BulkEventAppender.cs, DocumentStorageDescriptorBuilder.cs, EventLoader.cs. — One of this dimension's main actionable groups (7 warning-level).
Resolve the 2 FileTooLong finding(s) in God Classes — start with DocumentMapping.cs (2). — One of this dimension's main actionable groups (2 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
+ 18 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: Marten.SourceGenerator · ×11
Unstable project EventPublisher
What to do
Resolve the 11 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (11 warning-level).
Resolve the 1 Unstable project EventPublisher 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 220 Low cohesion finding(s) in Cohesion (LCOM4) — start with CompositeProjection.cs (10), FSharpDiscriminatedUnionIdGeneration.cs (4), MartenServiceCollectionExtensions.cs (4). — One of this dimension's main actionable groups (220 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?
D8 · Code Coverage5.0 / 10Adequate✓ Tool-verified
What it measures: How much of the code is actually exercised by tests.
Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.
Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d8_recommendation.md.
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.
8840 test methods: 8840 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 Quality8.3 / 10Strong✓ 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.
22 skipped (22 with a documented reason), 501 zero-assertion, 16 mock references across 8870 tests (1 harness-style project(s) excluded from the assertion penalty).
No assertions: single_stream_should_pass_when_conjoined_with_ITenanted · ×494src/Marten.EntityFrameworkCore.Tests/EfCoreMultiTenancyValidationTests.cs:57
No direct assertions: ResolveCommand_Succeeds · ×7src/samples/Helpdesk/Helpdesk.Api.Tests/Incidents/ResolveIncidentTests.cs:13
Resolve the 494 No assertions finding(s) in Test Quality — start with guid_based_document_operations.cs (24), int_based_document_operations.cs (24), long_based_document_operations.cs (24). — One of this dimension's main actionable groups (494 issue-level).
Resolve the 7 No direct assertions finding(s) in Test Quality — start with AcknowledgeResolutionIncidentTests.cs, AssignAgentTests.cs, CategoriseIncidentTests.cs. — One of this dimension's main actionable groups (7 recommendation-level).
Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the tests pass reliably, with no flakiness.
Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.
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.
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.
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.
6 projects, 1868 .cs files, 159187 hand-written lines of code (158623 production / 564 test), 7 inter-project edges (build status unknown — did not finish).
Monorepo: only 1 of 2 solutions was scored
Analyzed solution does not cover the bulk of the repository
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.
3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
Secret: generic-api-key · ×3docs/.vitepress/config.mts:55detected by gitleaks finding
Rotate the exposed credentials — git history can't be un-committed
What to do
Resolve the 3 Secret finding(s) in Secrets (history) — start with config.mts (2), fubumvc.json. — One of this dimension's main actionable groups (3 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
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 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 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.
High CVE: [GHSA redacted] · ×7package-lock.jsondetected by osv-scanner finding
Medium CVE: [GHSA redacted] · ×11package-lock.jsondetected by osv-scanner finding
Low CVE: [GHSA redacted] · ×3package-lock.jsondetected by osv-scanner finding
What to do
Resolve the 11 Medium CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (11). — One of this dimension's main actionable groups (11 warning-level).
Resolve the 7 High CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (7). — One of this dimension's main actionable groups (7 issue-level).
Resolve the 3 Low CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (3). — One of this dimension's main actionable groups (3 recommendation-level).
Detailed fixes: d38_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
`SecondaryDocumentStores` is a singleton (one shared instance) but mutates instance state outside any lock (_files; e.g. `_files` at line 25). (×2) — SecondaryStoreConfig.cs:11, SecondaryStoreConfig.cs:11
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 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.
`IDocumentOperations` declares 33 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. (×2) — IDocumentOperations.cs:14, IDocumentOperations.cs:14
`IDocumentSession` 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. (×2) — IDocumentSession.cs:15, IDocumentSession.cs:15
`IDocumentStore` declares 42 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. (×2) — IDocumentStore.cs:21, IDocumentStore.cs:21
`IQuerySession` declares 83 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. (×2) — IQuerySession.cs:21, IQuerySession.cs:21
`IReadOnlyStoreOptions` declares 27 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. (×2) — IReadOnlyStoreOptions.cs:12, IReadOnlyStoreOptions.cs:12
`ISerializer` declares 21 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×2) — ISerializer.cs:35, ISerializer.cs:35
`IEventStoreOptions` declares 102 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. (×2) — IEventStoreOptions.cs:20, IEventStoreOptions.cs:20
`IReadOnlyEventStoreOptions` declares 58 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. (×2) — IReadOnlyEventStoreOptions.cs:14, IReadOnlyEventStoreOptions.cs:14
`IDocumentType` declares 46 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. (×2) — DocumentMapping.cs:47, DocumentMapping.cs:47
`IMartenSession` declares 21 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×2) — IMartenSession.cs:17, IMartenSession.cs:17
`IDocumentStorage` 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. (×2) — IDocumentStorage.cs:26, IDocumentStorage.cs:26
`IDocumentStorage` 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. (×2) — IDocumentStorage.cs:93, IDocumentStorage.cs:93
`ICollectionMember` 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. (×2) — ICollectionMember.cs:10, ICollectionMember.cs:10
`IQueryableMember` 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. (×2) — IQueryableMember.cs:11, IQueryableMember.cs:11
`IPagedList` declares 24 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. (×2) — IPagedList.cs:10, IPagedList.cs:10
`IBatchedQuery` 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. (×2) — IBatchedQuery.cs:159, IBatchedQuery.cs:159
`IBatchedQueryable` declares 19 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. (×2) — IBatchedQueryable.cs:10, IBatchedQueryable.cs:10
`IMartenDatabase` declares 21 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×2) — IMartenDatabase.cs:23, IMartenDatabase.cs:23
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
Do you agree with this assessment?
C1 · Data Protection3.0 / 10Weak✓ 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.
No data-protection or encryption usage (ASP.NET Data Protection, AES, column encryption, PBKDF2) was found — sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore.
What to do
Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
Do you agree with this assessment?
C2 · Access Controls3.0 / 10Weak✓ Tool-verified
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.
Authorization machinery exists but no [Authorize] usage and no imperative guard calls were found at handlers.
What to do
Enforce authorization at every handler — call the guard method (throw-on-violation) from each one, or adopt [Authorize] so protected-by-default is demonstrable.
Other · Event-Driven — Whether event handlers stay asynchronous (no blocking remote HTTP/gRPC calls awaited inside a handler).
Method: Roslyn semantic scan (event-driven gated): event-handler bodies scanned for HTTP/gRPC invocations by resolved symbol type, not substring. Deterministic, semantic-resolved.
Other · Event-Driven — Whether state changes and message publishes are atomic (a transactional outbox) rather than a crash-unsafe dual write.
Method: Roslyn semantic scan (event-driven gated): event-handler methods scanned for DB-save plus bus-publish without a transactional outbox reference. Deterministic, semantic-resolved.
Do you agree with this assessment?
ED5 · Idempotency3.0 / 10Weak◐ Sampled · advisory
Other · Readiness — Whether retry-prone mutations (command handlers + message/event consumers) are idempotent so an at-least-once redelivery or client retry doesn't double-apply the effect — heuristic at-risk detection confirmed by language model, advisory.
Method: Roslyn heuristic (any mutation, ungated): command handlers and message/event consumers that mutate persistent state without a visible idempotency guard (exists/dedup check, upsert, idempotency-key/inbox, conditional/versioned write, fixed-value set) flagged as at-risk; each at-risk candidate then confirmed or cleared by a language model as genuinely non-idempotent versus naturally-idempotent. Advisory without a model (heuristic-only, degraded), per-candidate judged with one.
Coverage: Population: retry-prone mutations — command handlers (CQRS write side) + message/event consumers (IConsumer/I*EventHandler) — that mutate persistent state; runs on any repo with mutations, not only event-driven ones. The at-risk subset (no obvious guard) is a HEURISTIC candidate set, each then LLM-JUDGED non-idempotent vs safe; a handler outside those conventions, or a guard the LLM can't confirm, is bounded by the sample. Degrades to heuristic-only when no model is configured.
`Sessions.InsertHandler.Execute` mutates persistent state (a repository write) with no visible idempotency guard. Under a client retry or at-least-once redelivery a re-run could double-apply it — confirm it's safe to re-run, or add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (Configure an LLM to auto-classify this.) (×2) — DocumentSessionBase.cs:511, DocumentSessionBase.cs:511
What to do
Make retry-prone mutations idempotent — guard each write with an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write, so a re-run doesn't double-apply.
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) — EventDocumentStorage.cs:110, EventDocumentStorage.cs:115, EventMapping.cs:389, …
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.
`OnBeforeExecute` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×2) — Startup.cs:60, Startup.cs:70
`LogFailure` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — Startup.cs:65
`Execute` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — ReadCommand.cs:8
A test is skipped with reason "TODO -- too unreliable on CI" — the behavior it asserts is UNVERIFIED and this skip is likely the only marker of a real bug. It ages invisibly: fix the flakiness or track the bug somewhere that can't be forgotten. (×4) — EventStreamUnexpectedMaxEventIdExceptionTransformTest.cs:19, EventStreamUnexpectedMaxEventIdExceptionTransformTest.cs:19, EventStreamUnexpectedMaxEventIdExceptionTransformTest.cs:45, …
A test is skipped with reason "TODO: Fix it on the linq branch" — the behavior it asserts is UNVERIFIED and this skip is likely the only marker of a real bug. It ages invisibly: fix the flakiness or track the bug somewhere that can't be forgotten. (×2) — hashset_contains.cs:12, hashset_contains.cs:12
`NulloMessageOutbox` has 2 unfinished members out of 4 — a scaffolded type that was never implemented. (×2) — NulloMessageOutbox.cs:8, NulloMessageOutbox.cs:8
`AfterCommitAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. (×2) — NulloMessageOutbox.cs:20, NulloMessageOutbox.cs:20
`BeforeCommitAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. (×2) — NulloMessageOutbox.cs:25, NulloMessageOutbox.cs:25
`PostprocessAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. (×6) — ArchiveStreamOperation.cs:53, ArchiveStreamOperation.cs:53, DeleteProjectionProgress.cs:40, …
`SetIdentityFromString` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×4) — EventDocumentStorage.cs:108, EventDocumentStorage.cs:108, EventMapping.cs:387, …
`SetIdentityFromGuid` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — EventDocumentStorage.cs:113, EventDocumentStorage.cs:113
`VersionFor` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. (×2) — EventDocumentStorage.cs:181, EventDocumentStorage.cs:181
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 50 of 52 project(s) that lack one — worth up to 1.9 pts.
Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
Only 40/90 projects share a common root namespace — the code's module identity is inconsistent.
What to do
Adopt a consistent root-namespace convention (a shared prefix, e.g. Acme.*); short project-file/directory names are fine as long as the RootNamespace is uniform.
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.
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 · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
Readiness · Readiness — Whether EF Core schema changes go through versioned migrations rather than the un-evolvable EnsureCreated().
Method: Roslyn scan: EF Core DbContext for a versioned migrations directory versus bare EnsureCreated usage. Exhaustive per project, deterministic.
EF Core is used but neither migrations nor EnsureCreated were detected — confirm how the production schema is created and evolved.
What to do
Adopt EF migrations (dotnet ef migrations add + Migrate() on startup) as the explicit, versioned schema strategy — no migration mechanism was detected.
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.
A BenchmarkDotNet suite exists but no [MemoryDiagnoser] — allocations (the main way a library pressures its host's GC) aren't being measured.
What to do
Add [MemoryDiagnoser] to the benchmarks so allocation regressions are visible, not just time.
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.
Raise allocation-aware density on the hot paths — currently 485 use(s) across 174,764 production line(s) (~2.8/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.
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.
7 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 CookieSecurePolicy/HttpOnly/SameSite configuration found. (−1.5 on this card; skip if the app sets no cookies.)
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.
Set secure cookie flags — CookieSecurePolicy.Always, HttpOnly, and SameSite (Strict/Lax) on auth/session cookies. Skip only if the app sets no cookies.
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. (×9) — MartenDatabase.cs:146, MasterTableTenancy.cs:145, ShardedTenancy.cs:102, …
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 884/1137 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) — build.cs:501, MultiplesTestPlan.cs:10, SingleFileFetchForWritingPlan.cs:10, …
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.
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.
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/42 projects enable <Nullable>enable</Nullable>. NRTs catch a whole class of null-deref bugs at compile time.
~1.0 `!` suppressions per 1k syntax nodes — each one tells the compiler to trust you about null, suppressing the very safety NRTs provide.
What to do
Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Not included — 34 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC2 Forms & labels — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC3 Page structure — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC4 Keyboard semantics — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC5 ARIA correctness — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC6 Visual & motion safety — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC7 A11y enforcement — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AX4 Dependency direction — not applicable to a CQRS architecture (the inward-dependency rule is for layered/clean styles)
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — no test/production split to check
C3 Audit Trail — Repo shows no audit-logging mechanism (IAuditable, an immutable audit log, an EF SaveChanges interceptor) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
C4 Data Retention — Repo shows no data-retention / TTL / cleanup mechanism for personal data (event-sourced storage — lifecycle is stream archival / event TTL, not row CASCADE) — absence of evidence is not evidence of a working control. Define retention periods and a purge/cleanup job (or TTL) in code, or document where retention is enforced, so this dimension can be scored.
C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
D16 Bus Factor — single-maintainer — knowledge-concentration (bus factor) risk
D23 Boundary Type-Coupling — Bounded contexts not declared
D27 Navigability — Navigability unmeasured — symbol resolution incomplete
D30 Dependency Vulnerabilities — Not applicable
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
D37 Vulnerability-disclosure Policy — Not applicable
D39 IL Efficiency — IL metrics not applicable
D7 Architectural Integrity — No checkable ADRs to assess
DM1 Domain Modelling — applicable but skipped (2/3 markers — below the conservative bar): 29 value object(s); a Domain/Aggregates/ValueObjects layer
ED2 Event/command shape — no command-shaped messages detected — single-handler-per-command check not applicable
ED3 Event naming — no domain or integration events detected — event-naming check not applicable
ES1 Fold determinism — no Apply/When folds detected — fold-determinism check not applicable
ES2 Immutable events — no persisted event types detected — immutability check not applicable
ES3 PII in the event store — no persisted event types detected — PII-in-events check not applicable
M4 Documentation accuracy — LLM not available — accuracy is the Tier-2 layer and needs a reachable model.
P12 CI test-gate honesty — no data
P9 Domain vs controller coverage — coverage data present but no domain-layer files were identified (no /Domain//Aggregates/ paths)
X6 Hand-rolled structured-format parsing — no data
X7 Silent fallback defaults — 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: single_stream_should_pass_when_conjoined_with_ITenanted src/Marten.EntityFrameworkCore.Tests/EfCoreMultiTenancyValidationTests.cs:57— Test method has no assertions — it may not test anything.
No assertions: single_stream_should_pass_without_conjoined_tenancy src/Marten.EntityFrameworkCore.Tests/EfCoreMultiTenancyValidationTests.cs:67— Test method has no assertions — it may not test anything.
No assertions: single_stream_should_pass_when_conjoined_with_ITenanted src/Marten.EntityFrameworkCore.Tests/EfCoreMultiTenancyValidationTests.cs:57— Test method has no assertions — it may not test anything.
No assertions: single_stream_should_pass_without_conjoined_tenancy src/Marten.EntityFrameworkCore.Tests/EfCoreMultiTenancyValidationTests.cs:67— Test method has no assertions — it may not test anything.
No assertions: expected_version_check_is_tenant_isolated src/TenantPartitionedEventsTests/OptimisticConcurrency/Optimistic_concurrency_under_partitioned_events.cs:211— Test method has no assertions — it may not test anything.
No assertions: expected_version_check_is_tenant_isolated src/TenantPartitionedEventsTests/OptimisticConcurrency/Optimistic_concurrency_under_partitioned_events_string.cs:216— Test method has no assertions — it may not test anything.
No assertions: expected_version_check_is_tenant_isolated src/TenantPartitionedEventsTests/OptimisticConcurrency/Optimistic_concurrency_under_partitioned_events.cs:211— Test method has no assertions — it may not test anything.
No assertions: expected_version_check_is_tenant_isolated src/TenantPartitionedEventsTests/OptimisticConcurrency/Optimistic_concurrency_under_partitioned_events_string.cs:216— Test method has no assertions — it may not test anything.
No assertions: can_append_and_query_events src/Marten.NodaTime.Testing/Acceptance/noda_time_acceptance.cs:193— Test method has no assertions — it may not test anything.
No assertions: can_append_and_query_events src/Marten.NodaTime.Testing/Acceptance/noda_time_acceptance.cs:193— Test method has no assertions — it may not test anything.
No assertions: capture_events src/samples/DocSamples/EventSourcingQuickstart.cs:118— Test method has no assertions — it may not test anything.
No assertions: quest_projection src/samples/DocSamples/EventSourcingQuickstart.cs:164— Test method has no assertions — it may not test anything.
No assertions: execute_end_to_end src/ContainerScopedProjectionTests/when_registering_an_eventprojection_through_ioc_as_scoped.cs:119— Test method has no assertions — it may not test anything.
No assertions: execute_end_to_end src/ContainerScopedProjectionTests/when_registering_an_eventprojection_through_ioc_as_singleton.cs:124— Test method has no assertions — it may not test anything.
No assertions: execute_end_to_end src/ContainerScopedProjectionTests/when_registering_an_iprojection_through_ioc_as_scoped.cs:124— Test method has no assertions — it may not test anything.
No assertions: execute_end_to_end src/ContainerScopedProjectionTests/when_registering_an_iprojection_through_ioc_as_singleton.cs:124— Test method has no assertions — it may not test anything.
No assertions: execute_end_to_end src/ContainerScopedProjectionTests/when_registering_an_eventprojection_through_ioc_as_scoped.cs:119— Test method has no assertions — it may not test anything.
No assertions: execute_end_to_end src/ContainerScopedProjectionTests/when_registering_an_eventprojection_through_ioc_as_singleton.cs:124— Test method has no assertions — it may not test anything.
No assertions: execute_end_to_end src/ContainerScopedProjectionTests/when_registering_an_iprojection_through_ioc_as_scoped.cs:124— Test method has no assertions — it may not test anything.
No assertions: execute_end_to_end src/ContainerScopedProjectionTests/when_registering_an_iprojection_through_ioc_as_singleton.cs:124— Test method has no assertions — it may not test anything.
No assertions: pass_in_current_connection src/CoreTests/Bugs/Bug_2135_open_session_should_use_provided_connection_string.cs:20— Test method has no assertions — it may not test anything.
No assertions: can_create_index src/CoreTests/Bugs/Bug_2916_ngram_index_when_multi_tenanted.cs:13— Test method has no assertions — it may not test anything.
No assertions: can_build_index src/CoreTests/Bugs/Bug_3019_gist_gin_index_on_arrays.cs:15— Test method has no assertions — it may not test anything.
No assertions: can_retrofit_to_multitenanted_later src/CoreTests/Bugs/Bug_3145_migration_to_tenanted.cs:20— Test method has no assertions — it may not test anything.
No assertions: do_not_blow_up src/CoreTests/Bugs/Bug_3911_use_sticky_connections_when_otel_connection_tracking_is_on.cs:11— Test method has no assertions — it may not test anything.
Low cohesion: StandinDatabase (LCOM4 38) src/Marten/Storage/StandinDatabase.cs:20— StandinDatabase's methods form 38 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: StandinDatabase (LCOM4 38) src/Marten/Storage/StandinDatabase.cs:20— StandinDatabase's methods form 38 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: EventDocumentStorage (LCOM4 33) src/Marten/Events/EventDocumentStorage.cs:37— EventDocumentStorage's methods form 33 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: EventDocumentStorage (LCOM4 33) src/Marten/Events/EventDocumentStorage.cs:37— EventDocumentStorage's methods form 33 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: EventMapping (LCOM4 26) src/Marten/Events/EventMapping.cs:219— EventMapping's methods form 26 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: DocumentStorage (LCOM4 26) src/Marten/Internal/Storage/DocumentStorage.cs:43— DocumentStorage's methods form 26 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: EventMapping (LCOM4 26) src/Marten/Events/EventMapping.cs:219— EventMapping's methods form 26 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: DocumentStorage (LCOM4 26) src/Marten/Internal/Storage/DocumentStorage.cs:43— DocumentStorage's methods form 26 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: ProjectionUpdateBatch (LCOM4 22) src/Marten/Events/Daemon/Internals/ProjectionUpdateBatch.cs:25— ProjectionUpdateBatch's methods form 22 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: ProjectionUpdateBatch (LCOM4 22) src/Marten/Events/Daemon/Internals/ProjectionUpdateBatch.cs:25— ProjectionUpdateBatch's methods form 22 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: EventStore (LCOM4 21) src/Marten/Events/EventStore.FetchForWriting.cs:29— EventStore's methods form 21 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: BatchedQuery (LCOM4 21) src/Marten/Services/BatchQuerying/BatchedQuery.cs:19— BatchedQuery's methods form 21 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: EventStore (LCOM4 21) src/Marten/Events/EventStore.FetchForWriting.cs:29— EventStore's methods form 21 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: BatchedQuery (LCOM4 21) src/Marten/Services/BatchQuerying/BatchedQuery.cs:19— BatchedQuery's methods form 21 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: DocumentSessionBase (LCOM4 17) src/Marten/Internal/Sessions/DocumentSessionBase.cs:18— DocumentSessionBase's methods form 17 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: DocumentSessionBase (LCOM4 17) src/Marten/Internal/Sessions/DocumentSessionBase.cs:18— DocumentSessionBase's methods form 17 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: MartenLinqQueryable (LCOM4 15) src/Marten/Linq/MartenLinqQueryable.cs:32— MartenLinqQueryable's methods form 15 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: MartenLinqQueryable (LCOM4 15) src/Marten/Linq/MartenLinqQueryable.cs:32— MartenLinqQueryable's methods form 15 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: JsonLoader (LCOM4 13) src/Marten/JsonLoader.cs:14— JsonLoader's methods form 13 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: StoreOptions (LCOM4 13) src/Marten/StoreOptions.cs:47— StoreOptions's methods form 13 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: JsonLoader (LCOM4 13) src/Marten/JsonLoader.cs:14— JsonLoader's methods form 13 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: StoreOptions (LCOM4 13) src/Marten/StoreOptions.cs:47— StoreOptions's methods form 13 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: QueryOnlyClosedShapeStorage (LCOM4 11) src/Marten/Internal/ClosedShape/QueryOnlyClosedShapeStorage.cs:25— QueryOnlyClosedShapeStorage'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: ValueCollectionMember (LCOM4 11) src/Marten/Linq/Members/ValueCollections/ValueCollectionMember.cs:23— ValueCollectionMember'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: QueryOnlyClosedShapeStorage (LCOM4 11) src/Marten/Internal/ClosedShape/QueryOnlyClosedShapeStorage.cs:25— QueryOnlyClosedShapeStorage'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.
TodoComment src/Marten/Events/Daemon/Internals/ProjectionBatch.cs:71— // TODO -- need to pass through the tenant id — 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/Marten/Events/Daemon/Internals/ProjectionUpdateBatch.cs:72— // TODO -- make this private — 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/Marten/Events/EventStore.Append.cs:13— //TODO NRT: We're ignoring null here as to not unintentionally change any downstream behaviour - Replace with null guards in the future. — 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/Marten/Events/Fetching/FetchAsyncPlan.ExpectedVersion.cs:31— // TODO -- use read only transaction???? — 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/Marten/Events/Fetching/FetchAsyncPlan.ForReading.cs:44— // TODO -- use read only transaction???? — 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/Marten/Events/Projections/EventProjection.cs:117— // TODO upstream change — 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/Marten/Events/RichEventAppender.cs:92— // TODO -- look for opportunities to batch up the requests here 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/Marten/EventStorage/Dialects/PostgresEventStoreDialect.cs:554— // TODO (#4416): remaining binders: — 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/Marten/Internal/Sessions/DocumentSessionBase.ProjectionStorage.cs:250— //TODO fix in IProjectionStorage — 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/Marten/Internal/Sessions/DocumentSessionBase.SaveChanges.cs:123— // TODO -- double check this isn't getting done multiple times — 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/Marten/Internal/Sessions/IConnectionLifetime.cs:12— // TODO -- look at how much more could be put 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/Marten/Internal/Sessions/QuerySession.ChangeTracking.cs:10— // TODO -- this should be on DocumentSessionBase somehow — 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/Marten/Internal/Sessions/QuerySession.ChangeTracking.cs:29— // TODO -- try to make this only built out for dirty checking sessions — 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/Marten/Internal/Sessions/TransactionalConnection.cs:100— // TODO -- this should be ValueTask — 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/Marten/Internal/Storage/DocumentStorage.cs:135— // TODO -- convert to a method in V8 — 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/Marten/Internal/Storage/DocumentStorage.cs:490— // TODO -- eliminate the downcast 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/Marten/Linq/Members/ValueCollections/ValueCollectionMember.cs:186— // TODO -- this could be memoized a bit — 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/Marten/Linq/Parsing/LinqQueryParser.cs:14— // TODO -- inject somehow later. See https://github.com/JasperFx/marten/issues/2709 — 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/Marten/Linq/Parsing/MemberFinder.cs:12— // TODO -- this needs to account for Methods too!. See https://github.com/JasperFx/marten/issues/2707 — 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/Marten/Linq/Parsing/Methods/Strings/StringComparisonParser.cs:82— // TODO -- watch the NULL values! — 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/Marten/Linq/Parsing/Operators/OperatorLibrary.cs:35— // TODO -- is this necessary? — 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/Marten/Linq/Parsing/SimpleExpression.cs:168— // TODO -- this will need to evaluate extra methods in the comparison. Looking for StringProp.ToLower() == "foo" — 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/Marten/Linq/SqlGeneration/Filters/CollectionIsEmpty.cs:9— // TODO -- make it ICollectionAware — 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/Marten/Linq/SqlGeneration/Filters/CollectionIsNotEmpty.cs:49— // TODO -- come back to this later with — 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/Marten/Linq/SqlGeneration/Literal.cs:12— // TODO -- move this to Weasel itself — 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.
Off the main sequence: Marten.SourceGenerator — Marten.SourceGenerator: 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: Marten.Testing.ThirdAssembly(net10.0) — Marten.Testing.ThirdAssembly(net10.0): 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: Marten.Testing.ThirdAssembly(net9.0) — Marten.Testing.ThirdAssembly(net9.0): abstractness 0.00, instability 0.11, distance 0.89 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Marten.AspNetCore(net10.0) — Marten.AspNetCore(net10.0): abstractness 0.00, instability 0.17, distance 0.83 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Marten.Testing.OtherAssembly(net10.0) — Marten.Testing.OtherAssembly(net10.0): abstractness 0.08, instability 0.10, distance 0.82 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Marten.Testing.OtherAssembly(net9.0) — Marten.Testing.OtherAssembly(net9.0): abstractness 0.08, instability 0.11, distance 0.81 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Marten(net9.0) — Marten(net9.0): abstractness 0.22, instability 0.00, distance 0.78 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Marten(net10.0) — Marten(net10.0): abstractness 0.22, instability 0.00, distance 0.78 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Marten.AspNetCore(net9.0) — Marten.AspNetCore(net9.0): 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: Marten.Newtonsoft(net9.0) — Marten.Newtonsoft(net9.0): abstractness 0.20, instability 0.08, distance 0.72 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
Off the main sequence: Marten.Newtonsoft(net10.0) — Marten.Newtonsoft(net10.0): abstractness 0.20, instability 0.08, distance 0.72 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
HackComment src/Marten/Events/Projections/ProjectionOptions.cs:146— // Hack to address https://github.com/JasperFx/marten/issues/2610 — 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/Marten/Linq/Includes/PassthroughSelectStatement.cs:29— // Hack, but makes SelectMany() work where the exact table gets lost — 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/Marten/Linq/SqlGeneration/SelectorStatement.cs:117— // Hack, but let it go — 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/Marten/Events/Projections/ProjectionOptions.cs:146— // Hack to address https://github.com/JasperFx/marten/issues/2610 — 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/Marten/Linq/Includes/PassthroughSelectStatement.cs:29— // Hack, but makes SelectMany() work where the exact table gets lost — 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/Marten/Linq/SqlGeneration/SelectorStatement.cs:117— // Hack, but let it go — 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.
Monorepo: only 1 of 2 solutions was scored — This repository contains 2 .NET solutions, but a scan analyzes ONE. Every score, lens, and finding here reflects only `src/samples/Helpdesk/Helpdesk.sln` — the other 1 (`docs/src/samples/FreightShipping/FreightShipping.sln`) were not analyzed and are not represented in the headline. To cover them, scan each solution as its own target and group them in a Solution or Product for a portfolio roll-up. If a secondary solution is an archived or vendored tree, declare it — `.gitattributes` (`path/** linguist-vendored`) or `.editorconfig` (`[path/**] generated_code = true`) — to exclude it from discovery the same way generated code is.
D18 · Solution Shape· Analyzed solution does not cover the bulk of the repository · ×1
Analyzed solution does not cover the bulk of the repository — The scored solution `src/samples/Helpdesk/Helpdesk.sln` is not representative of this repository — it references only 25 of 2495 discovered C# files (1 %). Lenses that need the product's source (domain modelling, event-driven, event sourcing) abstain because the aggregates, EF configs, and domain events under the product tree were not loaded. Point the scan at the product solution (or scan its directory directly) so the whole codebase is analyzed, not a build-tooling sub-solution.
No direct assertions: ResolveCommand_Succeeds src/samples/Helpdesk/Helpdesk.Api.Tests/Incidents/ResolveIncidentTests.cs:13— In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
No direct assertions: PrioritiseCommand_ChangesIncidentPriority src/samples/Helpdesk/Helpdesk.Api.Tests/Incidents/PrioritiseIncidentTests.cs:13— In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
No direct assertions: LogIncident_ShouldSucceed src/samples/Helpdesk/Helpdesk.Api.Tests/Incidents/LogIncidentsTests.cs:15— In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
No direct assertions: ResolveCommand_Succeeds src/samples/Helpdesk/Helpdesk.Api.Tests/Incidents/CloseIncidentTests.cs:12— In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
No direct assertions: CategoriseCommand_ChangesIncidentCategory src/samples/Helpdesk/Helpdesk.Api.Tests/Incidents/CategoriseIncidentTests.cs:13— In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
No direct assertions: AssignAgentCommand_ChangesIncidentCategory src/samples/Helpdesk/Helpdesk.Api.Tests/Incidents/AssignAgentTests.cs:11— In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
No direct assertions: ResolveCommand_Succeeds src/samples/Helpdesk/Helpdesk.Api.Tests/Incidents/AcknowledgeResolutionIncidentTests.cs:11— In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
Low IaC: DS-0026 docker/postgres/Dockerfile— No HEALTHCHECK defined
Low IaC: DS-0026 src/samples/Helpdesk/Helpdesk.Api/Dockerfile— No HEALTHCHECK defined
D11 · Test Reliability· Tier not included (time budget) · ×1
Tier not included (time budget) — other: not included — too large to re-run within its budget
D23 · Boundary Type-Coupling· Bounded contexts not declared · ×1
Bounded contexts not declared — large codebase (173,789 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.
Navigability unmeasured — symbol resolution incomplete — 72 % of sampled invocations could not be resolved to a symbol (the workspace likely loaded without all references) — the indirection fractions would be computed over an unrepresentative slice, so navigability is reported as not measured rather than a misleading score.
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.)
D30 · Dependency Vulnerabilities· Not applicable · ×1
Not applicable — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution
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).
D37 · Vulnerability-disclosure Policy· Not applicable · ×1
Not applicable — No vulnerability-disclosure policy file found (SECURITY.md, .github/SECURITY.md, docs/SECURITY.md, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
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/Marten.Newtonsoft/MartenNewtonsoftExtensions.cs:36— #pragma warning disable CA2255 // ModuleInitializer is intentional here — wires up the package's serializer factory + attribute resolver on assembly load.
Justified suppression src/Marten.Newtonsoft/MartenNewtonsoftExtensions.cs:36— #pragma warning disable CA2255 // ModuleInitializer is intentional here — wires up the package's serializer factory + attribute resolver on assembly load.
Justified suppression src/Marten.ScaleTesting/Commands/StressCommand.cs:95— empty catch — narrow/filtered/commented, treated as intentional
Skipped (documented): using_auto_create_field src/CoreTests/StoreOptionsTests.cs:53— Skipped with a documented reason — a deferral, not lazy debt: sample usage code
Skipped (documented): using_auto_create_field src/CoreTests/StoreOptionsTests.cs:53— Skipped with a documented reason — a deferral, not lazy debt: sample usage code
Skipped (documented): example_of_using_fi_to_configure src/DocumentDbTests/Deleting/configuring_mapping_deletion_style.cs:53— Skipped with a documented reason — a deferral, not lazy debt: sample usage code
Skipped (documented): example_of_using_fi_to_configure src/DocumentDbTests/Deleting/configuring_mapping_deletion_style.cs:53— Skipped with a documented reason — a deferral, not lazy debt: sample usage code
Skipped (documented): return_correct_data_after_restarts src/EventSourcingTests/Aggregation/explicit_code_for_aggregation_logic.cs:470— Skipped with a documented reason — a deferral, not lazy debt: Pre-existing master failure (codegen + closed-shape) — soft-delete + restart flow throws ConcurrencyException. Not caused by #4444's UseVersionFromMatchingStream gap. Needs separate triage.
Skipped (documented): snapshot_without_source_generator_should_round_trip src/EventSourcingTests/Bugs/Bug_4557_self_aggregating_snapshot_without_source_generator.cs:70— Skipped with a documented reason — a deferral, not lazy debt: Validated via packaging (see PR); ProjectReference consumers don't receive a NuGet-bundled analyzer.
Skipped (documented): auto_discovered_tag_type_works_for_querying_in_hstore_mode src/EventSourcingTests/Dcb/hstore_auto_discover_tag_types_from_projections.cs:80— Skipped with a documented reason — a deferral, not lazy debt: Pre-existing master failure (codegen + closed-shape) — inline-projection save raises ConcurrencyException for HsTicketSummary. Hstore tag-based aggregation interacts badly with revision tracking on the projection target. Unrelated to #4444's UseVersionFromMatchingStream gap; needs separate triage.
Skipped (documented): auto_discovered_tag_type_works_for_fetch_for_writing_in_hstore_mode src/EventSourcingTests/Dcb/hstore_auto_discover_tag_types_from_projections.cs:105— Skipped with a documented reason — a deferral, not lazy debt: Pre-existing master failure (codegen + closed-shape) — inline-projection save raises ConcurrencyException for HsTicketSummary. Hstore tag-based aggregation interacts badly with revision tracking on the projection target. Unrelated to #4444's UseVersionFromMatchingStream gap; needs separate triage.
Skipped (documented): throw_transformed_exception_with_details_redacted src/EventSourcingTests/EventStreamUnexpectedMaxEventIdExceptionTransformTest.cs:19— Skipped with a documented reason — a deferral, not lazy debt: TODO -- too unreliable on CI
Skipped (documented): throw_transformed_exception_with_details_available src/EventSourcingTests/EventStreamUnexpectedMaxEventIdExceptionTransformTest.cs:45— Skipped with a documented reason — a deferral, not lazy debt: TODO -- too unreliable on CI
Skipped (documented): stream_id_is_set_as_string src/EventSourcingTests/Projections/stream_aggregation.cs:80— Skipped with a documented reason — a deferral, not lazy debt: 9.0: runtime `Schema.For<T>().Identity(x => x.Key)` overrides aren't visible to the source generator at compile time, so the generated dispatcher is still keyed on (SpecialUsages, Guid) — the aggregate's `Id` property. Users with this pattern can annotate the override member with `[Identity]` instead, which the SG picks up. See the 9.0 migration guide.
Skipped (documented): return_correct_data_after_restarts src/EventSourcingTests/Aggregation/explicit_code_for_aggregation_logic.cs:470— Skipped with a documented reason — a deferral, not lazy debt: Pre-existing master failure (codegen + closed-shape) — soft-delete + restart flow throws ConcurrencyException. Not caused by #4444's UseVersionFromMatchingStream gap. Needs separate triage.
Skipped (documented): snapshot_without_source_generator_should_round_trip src/EventSourcingTests/Bugs/Bug_4557_self_aggregating_snapshot_without_source_generator.cs:70— Skipped with a documented reason — a deferral, not lazy debt: Validated via packaging (see PR); ProjectReference consumers don't receive a NuGet-bundled analyzer.
Skipped (documented): auto_discovered_tag_type_works_for_querying_in_hstore_mode src/EventSourcingTests/Dcb/hstore_auto_discover_tag_types_from_projections.cs:80— Skipped with a documented reason — a deferral, not lazy debt: Pre-existing master failure (codegen + closed-shape) — inline-projection save raises ConcurrencyException for HsTicketSummary. Hstore tag-based aggregation interacts badly with revision tracking on the projection target. Unrelated to #4444's UseVersionFromMatchingStream gap; needs separate triage.
Skipped (documented): auto_discovered_tag_type_works_for_fetch_for_writing_in_hstore_mode src/EventSourcingTests/Dcb/hstore_auto_discover_tag_types_from_projections.cs:105— Skipped with a documented reason — a deferral, not lazy debt: Pre-existing master failure (codegen + closed-shape) — inline-projection save raises ConcurrencyException for HsTicketSummary. Hstore tag-based aggregation interacts badly with revision tracking on the projection target. Unrelated to #4444's UseVersionFromMatchingStream gap; needs separate triage.
Skipped (documented): throw_transformed_exception_with_details_redacted src/EventSourcingTests/EventStreamUnexpectedMaxEventIdExceptionTransformTest.cs:19— Skipped with a documented reason — a deferral, not lazy debt: TODO -- too unreliable on CI
Skipped (documented): throw_transformed_exception_with_details_available src/EventSourcingTests/EventStreamUnexpectedMaxEventIdExceptionTransformTest.cs:45— Skipped with a documented reason — a deferral, not lazy debt: TODO -- too unreliable on CI
Skipped (documented): stream_id_is_set_as_string src/EventSourcingTests/Projections/stream_aggregation.cs:80— Skipped with a documented reason — a deferral, not lazy debt: 9.0: runtime `Schema.For<T>().Identity(x => x.Key)` overrides aren't visible to the source generator at compile time, so the generated dispatcher is still keyed on (SpecialUsages, Guid) — the aggregate's `Id` property. Users with this pattern can annotate the override member with `[Identity]` instead, which the SG picks up. See the 9.0 migration guide.
Skipped (documented): Can_query_by_hashset_contains src/LinqTests/Bugs/hashset_contains.cs:12— Skipped with a documented reason — a deferral, not lazy debt: TODO: Fix it on the linq branch
Skipped (documented): Can_query_by_hashset_contains src/LinqTests/Bugs/hashset_contains.cs:12— Skipped with a documented reason — a deferral, not lazy debt: TODO: Fix it on the linq branch
Skipped (documented): can_support_parallel_processing src/PatchingTests/Patching/Bug_2460_parallel_patching.cs:20— Skipped with a documented reason — a deferral, not lazy debt: Fix in https://github.com/JasperFx/marten/pull/2468
Skipped (documented): can_support_parallel_processing src/PatchingTests/Patching/Bug_2460_parallel_patching.cs:20— Skipped with a documented reason — a deferral, not lazy debt: Fix in https://github.com/JasperFx/marten/pull/2468
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.
dotnet: not applicable — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md, .github/SECURITY.md, docs/SECURITY.md, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
Run 019ee37b-1326-799f-b874-985d560d3e06 · 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 — 24 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: 527 · Warnings: 556 · Recommendations: 39 · Info: 721 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 20-06-2026 @ 05:22 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.