Cloud-native tool capturing and processing cloud events
Public report — cloud-streams, 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.
Watchdog 20-06-2026 @ 02:51 UTC Public
Code Health Audit

Neuroglia-Io/cloud-Streams

39% Weak
CriticalWeakAdequateStrongExemplary
middle

Small · 16,251 LoC · 10 projects · rebuild ~0.2 person-years · weakest lens: Readiness (26%)

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

64/64dimensions tool-verifieddeterministic · confidence 1.0
129findings with an exact file:lineof 220 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
64/96dimensions across the health lenses16251 LoC · 10 projects — wide & deep

Executive summary

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

neuroglia-io/cloud-streams carries serious risk (39%). Several issues below can materially affect reliability, security, or the cost of change and warrant near-term attention.

The area that most needs attention is Readiness (26%) — operating, monitoring and recovering the system safely is harder. Maturity (42%) is the next concern — onboarding is slow — key decisions and the architecture aren't written down, so contributors have to reverse-engineer the intent.

Leadership focus, highest impact first: 1 No tests found finding(s) in Test Distribution (Test Distribution); Codify backups + geo-recovery in IaC and document RTO/RPO… (DR & Backup); Make retry-prone mutations idempotent (Idempotency).

For scale: Small (~16,251 production lines); rebuilding it from scratch would take roughly ~0.2 person-years (~1 engineer). Approximate, ±~30%.

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Readiness 26% · 45% weightMaturity 42% · 25% weightAccessibility 47% · 14% weightSecurity 59% · 8% weightCode Health 71% · 4% weightPerformance 71% · 2% weightArchitecture 78% · 1% weightEvent-Driven 82% · 1% weight

Raise Readiness 26 → 70 (the Healthy floor) ⇒ headline 39 → ~50.

Code composition — where the lines go
Business logic 19%Plumbing 80%Tests 1%
New since the last scan (1+)

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

  • ED4 · Dual write (no outbox): CreateResourceCommandHandler persists, CheckGatewayHealthQueryHandler publishes src/core/CloudStreams.Core.Application/Commands/Resources/CreateResourceCommand.cs

A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.

Rebuild cost & value ~ Modeled — €8,100–€40,000
Cost to rebuild€8,100–€40,000 (0.1–0.3 person-years (134–424 h), ~1 engineer)
Domain complexityHigh — harder problems cost more per line
Quality factor0.7× (at 39% quality) — the last 20% of quality is most of the work
Size & shapeSmall · 72% boilerplate · 9% straight-line · 19% branching logic

This codebase represents roughly ~0.2 person-years of build effort (about ~€24,000 to rebuild). Its weakest lens is Readiness at 26% — the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain High (×1.5) — service/app, CQRS, event-driven integration × a 0.7× 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
Resolve the 1 No tests found finding(s) in Test Distribution.
+11.5 pts · Low effort · Test Distribution
2
Resolve the 1 Vulnerable finding(s) in Dependency Hygiene.
+10.5 pts · Low effort · Dependency Hygiene
3
Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
+11.5 pts · Medium effort · DR & Backup

Diagnosis — what's actually going on

Value concentrated against a weak lens · High · Value at risk
This is a Small asset (~0.2 person-years to rebuild), and its weakest lens is Readiness at 26%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Small, ~0.2 person-years rebuild (16,251 LoC) · weakest lens: Readiness 26%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Resolve the 1 No tests found finding(s) in Test Distribution. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Resolve the 1 No tests found finding(s) in Test Distribution.
Improving trajectory · Info · Trajectory
The headline is improving steadily (+18.3 pts/run over 3 runs) — whatever you're doing is working; keep the gate.
Evidence: trajectory: +18.3 pts/run over 3 runs

Architecture — module dependency graph

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.

arch CloudStreams - Backup.Core.Api Api CloudStreams.Core.Application Application CloudStreams - Backup.Core.Api->CloudStreams.Core.Application CloudStreams.Broker.Api Api CloudStreams.Broker.Application Application CloudStreams.Broker.Api->CloudStreams.Broker.Application CloudStreams.Core.Api Api CloudStreams.Broker.Api->CloudStreams.Core.Api CloudStreams.Broker.Application->CloudStreams.Core.Application CloudStreams.Core Core CloudStreams.Core.Api.Client Client CloudStreams.Core.Api->CloudStreams.Core.Api.Client CloudStreams.Core.Api->CloudStreams.Core.Application CloudStreams.Core.Api.Client->CloudStreams.Core CloudStreams.Core.Application->CloudStreams.Core CloudStreams.Dashboard Dashboard CloudStreams.Dashboard->CloudStreams.Core.Api.Client CloudStreams.Dashboard.StateManagement StateManagement CloudStreams.Dashboard->CloudStreams.Dashboard.StateManagement CloudStreams.Dashboard.StateManagement->CloudStreams.Core CloudStreams.Gateway.Api Api CloudStreams.Gateway.Api->CloudStreams.Core.Api CloudStreams.Gateway.Api->CloudStreams.Dashboard CloudStreams.Gateway.Application Application CloudStreams.Gateway.Api->CloudStreams.Gateway.Application CloudStreams.Gateway.Application->CloudStreams.Core.Application

At a glance — Code Health · 71% · Strong

At a glance — Architecture · 78% · Strong

At a glance — Maturity · 42% · Adequate · gated by D34, M2

At a glance — Readiness · 26% · Weak · gated by D9, P3, P5

At a glance — Security · 59% · Adequate · gated by D36

At a glance — Event-Driven · 82% · Strong

At a glance — Accessibility · 47% · Adequate · gated by AC4

At a glance — Performance · 71% · Strong

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A05:2021 — Security Misconfiguration11High / Critical
A06:2021 — Vulnerable & Outdated Components2Medium

Roadmap

Top priorities: Resolve the 1 No tests found finding(s) in Test Distribution; Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery; 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.

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

Do thisHelpsEffortDimension
Resolve the 1 No tests found finding(s) in Test Distribution.+11.5 ptsLowTest Distribution
Resolve the 1 Vulnerable finding(s) in Dependency Hygiene.+10.5 ptsLowDependency Hygiene
Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.+11.5 ptsMediumDR & Backup
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.+11.5 ptsMediumIdempotency
Add readiness/liveness probes and a rolling-update (or blue/green) strategy so a bad release is caught and rolled back automatically.+11.3 ptsMediumDeployment & Rollback
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.+11.3 ptsMediumRelease Hygiene
Make types internal by default; expose only the deliberate public API so internals can change without breaking consumers.+10.8 ptsMediumLibrary API & versioning
Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness.+3.8 ptsLowKnowledge Freshness

File quality

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

FileScoreBandWorst signal
src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs3.0MixedExplicit Debt: EmptyCatchBlock
src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs3.3MixedChange Coupling: Boundary-crossing change coupling: SubscriptionHandler.cs ↔ PatchResourceCommand.cs
src/core/CloudStreams.Core.Api/Dockerfile4.4MixedIaC & Container Security: High IaC: DS-0002
src/gateway/CloudStreams.Gateway.Api/Dockerfile4.4MixedIaC & Container Security: High IaC: DS-0002
src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs5.0MixedExplicit Debt: EmptyCatchBlock
src/broker/CloudStreams.Broker.Api/Dockerfile5.1MixedIaC & Container Security: High IaC: DS-0017
src/core/CloudStreams.Core.Api/Services/GatewayHealthMonitor.cs5.4MixedExplicit Debt: EmptyCatchBlock
src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentStore.cs6.0MixedExplicit Debt: CommentedOutCode
src/core/CloudStreams.Core.Application/Queries/Gateways/CheckGatewayHealthQuery.cs6.1MixedExplicit Debt: EmptyCatchBlock
src/dashboard/CloudStreams.Dashboard/Components/Timeline/Store.cs6.7MixedExplicit Debt: TodoComment
src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponent.cs6.7MixedExplicit Debt: CommentedOutCode
src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs7.2Near-cleanCyclomatic Complexity: CloudEventAdmissionControl.AuthorizeAsync (cyclomatic 18)
src/dashboard/CloudStreams.Dashboard/Components/ReadOptionsForm/Store.cs7.3Near-cleanExplicit Debt: TodoComment
src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAuthorizationManager.cs7.8Near-cleanCyclomatic Complexity: CloudEventAuthorizationManager.Evaluate (cyclomatic 17)
src/dashboard/CloudStreams.Dashboard.StateManagement/StoreFactory.cs7.8Near-cleanCognitive Complexity: StoreFactory.FindAndMapReducersPerState (cognitive 19)
src/broker/CloudStreams.Broker.Api/Program.cs8.0Near-cleanChange Coupling: Boundary-crossing change coupling: Program.cs ↔ Program.cs
src/core/CloudStreams.Core.Api/Services/CloudStreamsApplicationBuilder.cs8.2Near-cleanExplicit Debt: CommentedOutCode
src/gateway/CloudStreams.Gateway.Application/Services/DatabaseProvisioner.cs8.5Near-cleanCode Duplication: Duplicated block (35 lines × 3)
src/core/CloudStreams.Core.Api.Client/Services/CloudStreamsCoreApiClient.cs8.5Near-cleanCode Duplication: Duplicated block (8 lines × 2)
src/core/CloudStreams.Core/Resources/BrokerResourceDefinition.cs8.5Near-cleanCode Duplication: Duplicated block (6 lines × 3)

Methodology & how to trust this report

Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 64 of 64 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

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 — 64 dimensions across the health lenses
D1D2D3D4D5D6D9D12D13D14D15D16D17D18D26D27D28D29D30D31D34D35D36D37D39AC1AC2AC3AC4AC5AC6AC7AX1AX10AX2AX3AX5AX6AX9ED2ED4ED5GD1IC1M1M2M3P1P10P2P3P4P5P6P7PF1PF2PF3S1X1X2X3X4X5

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 129 of 220 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
jscpdCode duplication✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.301✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.301✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019ee2f1-2144-7277-8a58-fc75adf636fa.

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

Run transparency — what happened this run

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

  • D32 Data Compliance (PII/GDPR) — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D33 JS/npm Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D38 OSV Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.

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

Limitations & what we did not check

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

Per-dimension blind spots

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

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (EF migration scaffolds, *.Designer.cs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only; the generated footprint is reported separately under Solution Shape.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • 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.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (EF migrations, designer files, snapshots) is excluded — it is never the team's dead code to delete.
  • D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and the advisory database — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct, and component-wrapped fields (e.g. a <TextField>) are skipped. A clean result is "no unlabelled native control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials. Static readiness, not conformance.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — only literal inline colours and in-repo <style>-block CSS are read; external stylesheets, CSS-in-JS, computed/runtime/theme colour, and image contrast are all out of reach, so a clean result is bounded by what the markup itself shows.
  • AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is 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.

Dimensions

D1 · Cyclomatic Complexity8.5 / 10Strong✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

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

8 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was SubscriptionHandler.InitializeCloudEventStreamAsync at 33.

SubscriptionHandler.InitializeCloudEventStreamAsync (cyclomatic 33)src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:225
ResourceManagementComponentStore.OnResourceWatchEventAsync (cyclomatic 25)src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentStore.cs:392
BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync (cyclomatic 19)src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs:115
GatewayHealthMonitor.OnHealthCheckIntervalElapsedAsync (cyclomatic 19)src/core/CloudStreams.Core.Api/Services/GatewayHealthMonitor.cs:121
SubscriptionHandler.RetryDispatchAsync (cyclomatic 19)src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:582

+ 3 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 1 SubscriptionHandler.InitializeCloudEventStreamAsync (cyclomatic 33) finding(s) in Cyclomatic Complexity — start with SubscriptionHandler.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 ResourceManagementComponentStore.OnResourceWatchEventAsync (cyclomatic… finding(s) in Cyclomatic Complexity — start with ResourceManagementComponentStore.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync (cyclomatic 19) finding(s) in Cyclomatic Complexity — start with BrokerHealthMonitor.cs. — One of this dimension's main actionable groups (1 warning-level).
  4. 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.

D2 · Cognitive Complexity7.8 / 10Strong✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

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

12 method(s) exceeded the cognitive complexity threshold of 15; the worst was SubscriptionHandler.InitializeCloudEventStreamAsync at 47.

SubscriptionHandler.InitializeCloudEventStreamAsync (cognitive 47)src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:225
CloudEventAdmissionControl.ExtractMetadataAsync (cognitive 27)src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs:287
BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync (cognitive 22)src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs:115
GatewayHealthMonitor.OnHealthCheckIntervalElapsedAsync (cognitive 22)src/core/CloudStreams.Core.Api/Services/GatewayHealthMonitor.cs:121
ResourceManagementComponentStore.OnResourceWatchEventAsync (cognitive 20)src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentStore.cs:392

+ 7 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 1 SubscriptionHandler.InitializeCloudEventStreamAsync (cognitive 47) finding(s) in Cognitive Complexity — start with SubscriptionHandler.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 CloudEventAdmissionControl.ExtractMetadataAsync (cognitive 27) finding(s) in Cognitive Complexity — start with CloudEventAdmissionControl.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync (cognitive 22) finding(s) in Cognitive Complexity — start with BrokerHealthMonitor.cs. — One of this dimension's main actionable groups (1 warning-level).
  4. 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.

D3 · God Classes9.7 / 10Exemplary✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

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

1 god class(es) detected.

ClassTooLong: SubscriptionHandlersrc/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:0

✓ On the Gold path — maintain.

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

D4 · Code Duplication9.8 / 10Exemplary✓ Tool-verified

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

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

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

9 duplicated block group(s) detected.

Duplicated block (6 lines × 3) · ×2src/core/CloudStreams.Core/Resources/BrokerResourceDefinition.cs:47
Duplicated block (5 lines × 2) · ×2src/broker/CloudStreams.Broker.Application/Services/SubscriptionManager.cs:167
Duplicated block (35 lines × 3)src/gateway/CloudStreams.Gateway.Application/Services/DatabaseProvisioner.cs:80
Duplicated block (12 lines × 2)src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs:218
Duplicated block (9 lines × 2)src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:203

+ 2 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.

D5 · Coupling8.4 / 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.

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

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

Off the main sequence: CloudStreams.Core · ×2

What to do

  1. Resolve the 2 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (2 warning-level).
  2. 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.

D6 · Cohesion (LCOM4)9.2 / 10Exemplary✓ Tool-verified

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

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

3 of 45 classes have LCOM4 above 3.

Low cohesion: GatewayMetrics (LCOM4 5) · ×3src/gateway/CloudStreams.Gateway.Application/Services/GatewayMetrics.cs:22

✓ On the Gold path — maintain.

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

D9 · Test Distribution0.0 / 10Critical✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

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

No test projects found.

No tests found

What to do

  1. Resolve the 1 No tests found finding(s) in Test Distribution. — One of this dimension's main actionable groups (1 recommendation-level).

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

D12 · Dependency Hygiene6.4 / 10Adequate✓ Tool-verified

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

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

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

50 outdated, 1 vulnerable, 0 deprecated packages.

Vulnerable: OpenTelemetry.Exporter.OpenTelemetryProtocol
Outdated: Neuroglia.Data.Infrastructure.EventSourcing.Abstractions · ×50

What to do

  1. Resolve the 1 Vulnerable finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (1 issue-level).
  2. Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

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

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

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

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

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

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

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

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

0 of 40 packages use a banned license.

Licenses scanned

✓ On the Gold path — maintain.

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

D15 · Churn × Complexity Hotspots10.0 / 10Exemplary✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

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

No churn × complexity hotspots in the window.

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md.

D16 · Bus Factor6.1 / 10Adequate✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

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

40 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs, held by charles.davernas@neuroglia.io.

Knowledge silo · ×2src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs
Knowledge silo · ×38src/core/CloudStreams.Core.Api/Services/CloudStreamsApplicationBuilder.cs
Off-boarding risk: charles.davernas@neuroglia.io

What to do

  1. Resolve the 38 Knowledge silo finding(s) in Bus Factor — start with CreateResourceCommand.cs (2), DeleteResourceCommand.cs (2), GetResourceQuery.cs (2). — One of this dimension's main actionable groups (38 warning-level).
  2. Resolve the 2 Knowledge silo finding(s) in Bus Factor — start with CloudEventAdmissionControl.cs, DatabaseProvisioner.cs. — One of this dimension's main actionable groups (2 issue-level).
  3. Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).

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

D17 · Explicit Debt8.9 / 10Strong✓ Tool-verified

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

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

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

16 deducted debt markers + 0 dead symbols across 16102 LoC (0.6/KLoC) → score 8.9.

EmptyCatchBlock · ×9src/core/CloudStreams.Core.Application/Queries/Gateways/CheckGatewayHealthQuery.cs:80
CommentedOutCode · ×4src/core/CloudStreams.Core.Api/Services/CloudStreamsApplicationBuilder.cs:77
TodoComment · ×3src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:504
Justified suppression · ×11src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs:119

What to do

  1. Resolve the 9 EmptyCatchBlock finding(s) in Explicit Debt — start with CloudEventStore.cs (6), BrokerHealthMonitor.cs, CheckGatewayHealthQuery.cs. — One of this dimension's main actionable groups (9 issue-level).
  2. Resolve the 4 CommentedOutCode finding(s) in Explicit Debt — start with CloudStreamsApplicationBuilder.cs, ResourceManagementComponent.cs, ResourceManagementComponentStore.cs. — One of this dimension's main actionable groups (4 warning-level).
  3. Resolve the 3 TodoComment finding(s) in Explicit Debt — start with Store.cs (2), SubscriptionHandler.cs. — One of this dimension's main actionable groups (3 warning-level).
  4. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

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

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

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

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

10 projects, 249 .cs files, 16251 hand-written lines of code (16102 production / 149 test), 25 inter-project edges.

CloudStreams.Core (Production)src/core/CloudStreams.Core/CloudStreams.Core.csproj
CloudStreams.Core.Application (Production)src/core/CloudStreams.Core.Application/CloudStreams.Core.Application.csproj
CloudStreams.Core.Api.Client (Production)src/core/CloudStreams.Core.Api.Client/CloudStreams.Core.Api.Client.csproj
CloudStreams.Core.Api (Production)src/core/CloudStreams.Core.Api/CloudStreams.Core.Api.csproj
CloudStreams.Gateway.Api (Production)src/gateway/CloudStreams.Gateway.Api/CloudStreams.Gateway.Api.csproj

+ 5 more group(s) — more in Appendix A; the complete list is findings.md.

✓ On the Gold path — maintain.

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

D26 · Project Cohesion10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic, LLM-independent.

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

0 of 10 projects flagged as possibly oversized/incoherent.

✓ On the Gold path — maintain.

Detailed fixes: d26_recommendation.md.

D27 · Navigability8.8 / 10Strong✓ Tool-verified

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

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

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

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

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

What to do

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

Detailed fixes: d27_recommendation.md.

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

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.

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

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)10.0 / 10Exemplary○ Nothing flagged

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).

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

semgrep found no security issues.

✓ On the Gold path — maintain.

Detailed fixes: d29_recommendation.md.

D30 · Dependency Vulnerabilities9.6 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependencies have known published vulnerabilities (CVEs), direct or transitive.

Method: NuGet CVE scan via dotnet list package --vulnerable including transitive; severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer. Exhaustive, deterministic; degrades when absent.

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

2 vulnerable package(s): 0 critical, 0 high, 2 medium, 0 low.

Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.12.0 · ×2detected by dotnet list package --vulnerable

✓ On the Gold path — maintain.

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

D31 · IaC & Container Security7.3 / 10Strong✓ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (Dockerfile/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

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

11 finding(s): 0 critical, 8 high, 0 medium, 3 low.

High IaC: DS-0017 · ×8src/broker/CloudStreams.Broker.Api/Dockerfiledetected by trivy finding
Low IaC: DS-0026 · ×3src/broker/CloudStreams.Broker.Api/Dockerfiledetected by trivy finding

What to do

  1. Resolve the 8 High IaC finding(s) in IaC & Container Security — start with Dockerfile (8). — One of this dimension's main actionable groups (8 issue-level).
  2. Resolve the 3 Low IaC finding(s) in IaC & Container Security — start with Dockerfile (3). — One of this dimension's main actionable groups (3 recommendation-level).

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

D34 · Knowledge Freshness1.3 / 10Critical✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

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

87 of 100 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs.

Dormant codebase

What to do

  1. Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

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

D35 · Change Coupling9.7 / 10Exemplary✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling; coupling through a build step, config, or non-source file isn't seen.

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

Strongest change-coupling: Store.cs↔event-drops-interop.js 70%; EventDropsInterop.cs↔event-drops-interop.js 70%; State.cs↔Store.cs 65%

Boundary-crossing change coupling: SubscriptionHandler.cs ↔ PatchResourceCommand.cs · ×2src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs
Change coupling: Store.cs ↔ event-drops-interop.js · ×6src/dashboard/ui/Components/Timeline/Store.cs

✓ On the Gold path — maintain.

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

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

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

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

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

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

Unpinned build actions
No build provenance
No artifact signing
No SBOM

What to do

  1. Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  3. 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.

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D39 · IL Efficiency9.7 / 10Exemplary✓ Tool-verified

Method: IL instruction count per method, read from the BUILT first-party assemblies via Mono.Cecil (the target is compiled on a deep run); scored on the fraction of methods whose emitted IL body exceeds the size threshold. Sees compiler-generated bloat source can't; not-applicable when the target fails to build. Deterministic.

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

62 of 3679 methods have an oversized IL body.

Oversized method: CloudStreams.Broker.Application.Services.SubscriptionHandler/<InitializeCloudEventStreamAsync>d__81.MoveNext · ×20
IL measured

✓ On the Gold path — maintain.

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

Frontend & cross-cutting dimensions

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

AC1 · Text alternatives10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, and video has a captions track. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.

AC2 · Forms & labels4.8 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, fieldsets have a legend, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

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

  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. (×3) — View.razor:20, View.razor:20, View.razor:25
  • This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×7) — View.razor:40, View.razor:69, View.razor:43, …

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure5.3 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether pages declare a language and title, expose a main landmark and a sane heading order, keep zoom enabled, title their iframes and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

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

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — index.html:2
  • user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta. — index.html:62

What to do

  • Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC4 · Keyboard semantics1.0 / 10Critical✓ Tool-verified

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no positive tabindex, no href-less anchor. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.

  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×5) — View.razor:48, View.razor:30, View.razor:51, …
  • An <a> with no href, role or tabindex isn't focusable or keyboard-activatable. Give it a real href, or use a <button> for an action. — index.html:107

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, and no aria-hidden on a focusable element. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.

AC6 · Visual & motion safety10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: only inline styles and in-repo CSS literals are visible, never computed or runtime colour. Static markup readiness, not a WCAG conformance claim.

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

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

Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) configured, and axe/pa11y/Lighthouse wired into tests or CI — on the Documented→Verified→Prevented ladder.

Method: Repo config/CI scan: an a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) configured, and axe/pa11y/Lighthouse in tests or CI, graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.

  • No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time.

What to do

  • Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y (or vuejs-accessibility), assert with jest-axe / playwright-axe in tests, then gate axe/pa11y/Lighthouse in CI.
AX1 · Captive dependencies10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.

Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.

AX10 · Code composition7.1 / 10Strong✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

What to do

  • The domain core is a small share of production code — check that business logic isn't leaking into the application/infrastructure layers (a thin domain is the anemic-domain smell).
AX2 · Stateful singletons5.0 / 10Adequate✓ Tool-verified

Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.

Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.

  • `CloudEventAdmissionControl` is a singleton (one shared instance) but mutates instance state outside any lock (_disposed; e.g. `_disposed` at line 350). — CloudEventAdmissionControl.cs:47
  • `GatewayMetrics` is a singleton (one shared instance) but mutates instance state outside any lock (_disposed; e.g. `_disposed` at line 91). — GatewayMetrics.cs:22
  • `BrokerMetrics` is a singleton (one shared instance) but mutates instance state outside any lock (_disposed; e.g. `_disposed` at line 78). — BrokerMetrics.cs:21

What to do

  • Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).

Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.

AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.

Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.

AX6 · Interface segregation9.9 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').

Method: Roslyn scan: public interface member counts; fat-interface threshold (over 15 members) flagged per type. Deterministic, type-level.

  • `IMonacoEditorMarker` declares 39 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. — IMonacoEditorMarker.cs:20

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX9 · CQS / query purity10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

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

ED4 · Outbox / dual-write6.9 / 10Strong✓ Tool-verified

Other · Event-Driven — Whether state changes and message publishes are atomic (a transactional outbox) rather than a crash-unsafe dual write.

Method: Roslyn semantic scan (event-driven gated): event-handler methods scanned for DB-save plus bus-publish without a transactional outbox reference. Deterministic, semantic-resolved.

  • `CreateResourceCommandHandler` writes to the database while `CheckGatewayHealthQueryHandler` publishes to the message bus in the same command-handling flow, with no outbox referenced on either path. Splitting the persist and the publish across sibling methods (or two collaborating actors) doesn't make them atomic — a crash between the two either loses the message or emits a phantom event. Use the transactional outbox pattern so the message is committed in the same transaction as the state change and dispatched afterwards. — CreateResourceCommand.cs:74

What to do

  • Adopt the transactional outbox pattern so DB writes and message publishes commit atomically — no lost or phantom events on a crash.
ED5 · 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.

  • `Resources.CreateResourceCommandHandler.HandleAsync` 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.) — CreateResourceCommand.cs:79
  • `Generic.CreateResourceCommandHandler.HandleAsync` 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.) — CreateResourceCommand.cs:53
  • `Services.CloudEventAdmissionControl.ExecuteAsync` 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.) — CloudEventAdmissionControl.cs:111

What to do

  • Make retry-prone mutations idempotent — guard each write with an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write, so a re-run doesn't double-apply.
GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

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

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

IC1 · Incompleteness & stubs7.1 / 10Strong✓ Tool-verified

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

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

  • `ReadAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — CloudEventStore.cs:124
  • `ReadBySourceAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — CloudEventStore.cs:259
  • `ReadBySubjectAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — CloudEventStore.cs:282
  • `ReadByTypeAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — CloudEventStore.cs:305
  • `ReadByCorrelationIdAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — CloudEventStore.cs:330
  • `ReadByCausationIdAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — CloudEventStore.cs:352
  • A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers). (×9) — CloudStreamsApplicationBuilder.cs:77, CloudStreamsApplicationBuilder.cs:78, CloudStreamsApplicationBuilder.cs:79, …

What to do

  • Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
M1 · Documentation (README)6.7 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

What to do

  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 10 of 10 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation0.0 / 10Critical✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — decisions aren't captured for future maintainers.
  • No C4/PlantUML/Mermaid diagram or architecture.md — the high-level shape isn't documented.

What to do

  • Start an ADR log (docs/adr/) recording significant decisions and their rationale.
  • Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure8.0 / 10Strong✓ Tool-verified

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

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

  • Test projects aren't grouped under a tests/ folder — the test surface isn't separable from production code at a glance.

What to do

  • Group test projects under tests/ (or test/, spec/) so the test surface is discoverable and CI can scope it.
P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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

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

P10 · Library API & versioning6.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries. Exhaustive, deterministic.

  • 275/280 types (98%) are public. For a library, every public type is a stability contract — make internal-by-default and expose only the intended API.

What to do

  • Make types internal by default; expose only the deliberate public API so internals can change without breaking consumers.
P2 · Observability9.4 / 10Exemplary✓ Tool-verified

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

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

  • Only 8/10 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log).

What to do

  • Extend structured logging to the remaining service-like projects so the whole executable surface is diagnosable in production.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

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.

  • No static application security testing (CodeQL / security analyzers / codehealth) detected.

What to do

  • Add a SAST step (e.g. CodeQL) or a security analyzer package.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

  • Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced — a bad release is harder to detect and reverse.

What to do

  • Add readiness/liveness probes and a rolling-update (or blue/green) strategy so a bad release is caught and rolled back automatically.
  • Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup0.0 / 10Critical✓ 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.

  • A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.

What to do

  • Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

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

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

  • 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.
P7 · Outbound HTTP resilience10.0 / 10Exemplary○ Nothing flagged

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

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

PF1 · Benchmark discipline6.0 / 10Adequate✓ Tool-verified

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.

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

What to do

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

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.

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

What to do

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

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

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

  • Only 269/364 awaits use ConfigureAwait(false). A library that captures the caller's context can stall or deadlock its host — the classic way a dependency drags an app down.

What to do

  • In library code, append .ConfigureAwait(false) to every await (or set <ConfigureAwait>false</ConfigureAwait> / use the analyzer CA2007) so the library never captures the host's context.
S1 · Web-Security Posture4.5 / 10Weak✓ Tool-verified

Other · Security — Transport security, security headers, secure cookies, input validation, middleware order and crypto hygiene (presence, not runtime).

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. Deterministic.

  • No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
  • No UseHttpsRedirection/UseHsts and no reverse-proxy signal — transport security is unverified at the app layer. (−2.0 on this card.)
  • 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.
  • Enforce HTTPS at the app layer (UseHttpsRedirection / UseHsts) — only skip this if a reverse proxy demonstrably terminates TLS.
  • Set secure cookie flags — CookieSecurePolicy.Always, HttpOnly, and SameSite (Strict/Lax) on auth/session cookies. Skip only if the app sets no cookies.
X1 · Async correctness7.6 / 10Strong✓ Tool-verified

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.

  • `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` unless this is a top-level event handler. (×2) — BrokerHealthMonitor.cs:115, GatewayHealthMonitor.cs:121

What to do

  • async void method: OnHealthCheckIntervalElapsedAsync
X2 · Cancellation propagation7.5 / 10Strong✓ Tool-verified

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

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

  • Only 92/160 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) — ResourceWatch.cs:55, ResourceWatch.cs:68, ResourceWatchEventHubClient.cs:93, …

What to do

  • Thread a CancellationToken through async methods so work stops promptly on cancellation.
X3 · Exception handling5.3 / 10Adequate✓ Tool-verified

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×9) — CheckGatewayHealthQuery.cs:80, CloudEventStore.cs:118, CloudEventStore.cs:196, …

What to do

  • Swallowed exception (empty catch)
X4 · Structured logging10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. Deterministic.

X5 · Nullable reference types7.3 / 10Strong✓ Tool-verified

Other · Code Health — Whether nullable reference types are enabled and not undermined by heavy `!` suppression.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

  • ~3.4 `!` suppressions per 1k syntax nodes — each one tells the compiler to trust you about null, suppressing the very safety NRTs provide.

What to do

  • Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.

WCAG coverage — what static analysis assessed

Statically assessed 15 of 55 WCAG 2.2 Level A/AA success criteria — partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC1 · Text alternatives1.1.1, 1.2.2, 1.2.5Partial signal
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC4 · Keyboard semantics2.1.1, 2.4.3Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only
AC7 · A11y enforcementenforcement — no page criterionEnforcement posture (process)

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health71%StrongSolid.
Architecture78%StrongSolid.
Maturity42%Adequate — gated by D34, M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness26%Weak — gated by D9, P3, P5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security59%Adequate — gated by D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Event-Driven82%StrongStrongest area.
Accessibility47%Adequate — gated by AC4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance71%StrongSolid.
Not included — 27 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.

  • 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
  • C1 Data Protection — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C2 Access Controls — Partial workspace load — the web/host project 'CloudStreams - Backup.Core.Api' present on disk did not load into the C# workspace (it failed to build/restore and was silently dropped), so its authorization signals were never scanned. The surviving documents carry no evidence for this control, but absence of evidence in an INCOMPLETE document set is not evidence the control is missing — the relevant middleware/attributes most plausibly live in the dropped project. This dimension is therefore Not-evidenced (excluded from the score) rather than asserting a confident negative. Restore/build that project (see diagnostics.md) so it loads and the dimension can be scored.
  • C3 Audit Trail — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • D10 Test Quality — ~149 lines of test code exist on disk but weren't loaded from the analyzed solution (excluded from the .sln, or co-located/using a test attribute not loaded here), so test quality couldn't be assessed. Include the tests in the analyzed solution to enable this check.
  • D11 Test Reliability — Test reliability not included
  • D23 Boundary Type-Coupling — small single-context codebase (16,102 production LoC) — bounded contexts are not needed at this size
  • D32 Data Compliance (PII/GDPR) — Not applicable
  • D33 JS/npm Dependency Vulnerabilities — Not applicable
  • D38 OSV Dependency Vulnerabilities — Not applicable
  • D7 Architectural Integrity — No checkable ADRs to assess
  • D8 Code Coverage — Coverage not measured
  • DM1 Domain Modelling — not run — 0/3 markers found
  • ED1 Handler temporal coupling — no broker or event surface detected (in-process handlers only) — temporal-coupling check not applicable
  • ED3 Event naming — no domain or integration events detected — event-naming check not applicable
  • ES1 Event Sourcing — applicable but skipped (2/3 markers — below the conservative bar): an event-store package (Marten/EventStore); an append-only event-store seam (IEventStore/Append-of-events)
  • M4 Documentation accuracy — LLM not available — accuracy is the Tier-2 layer and needs a reachable model.
  • P12 CI test-gate honesty — no data
  • P8 Schema migrations — no EF Core usage detected
  • P9 Domain vs controller coverage — no coverage report found on disk — run tests with `--collect:"XPlat Code Coverage"` (or in CI) to enable this cross-layer check
  • X6 Hand-rolled structured-format parsing — no data
  • X7 Silent fallback defaults — no data
  • X8 JS interop contract — no data

Appendix A — Findings (grouped)

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

Issue — 22 finding(s)
D17 · Explicit Debt · EmptyCatchBlock · ×9
  • EmptyCatchBlock src/core/CloudStreams.Core.Application/Queries/Gateways/CheckGatewayHealthQuery.cs:80 — empty catch block
  • EmptyCatchBlock src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:118 — empty catch block
  • EmptyCatchBlock src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:196 — empty catch block
  • EmptyCatchBlock src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:207 — empty catch block
  • EmptyCatchBlock src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:218 — empty catch block
  • EmptyCatchBlock src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:229 — empty catch block
  • EmptyCatchBlock src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:246 — empty catch block
  • EmptyCatchBlock src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs:144 — empty catch block
  • EmptyCatchBlock src/core/CloudStreams.Core.Api/Services/GatewayHealthMonitor.cs:150 — empty catch block
D31 · IaC & Container Security · High IaC · ×8
  • High IaC: DS-0017 src/broker/CloudStreams.Broker.Api/Dockerfile — 'RUN <package-manager> update' instruction alone
  • High IaC: DS-0029 src/broker/CloudStreams.Broker.Api/Dockerfile — 'apt-get' missing '--no-install-recommends'
  • High IaC: DS-0002 src/core/CloudStreams.Core.Api/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0017 src/core/CloudStreams.Core.Api/Dockerfile — 'RUN <package-manager> update' instruction alone
  • High IaC: DS-0029 src/core/CloudStreams.Core.Api/Dockerfile — 'apt-get' missing '--no-install-recommends'
  • High IaC: DS-0002 src/gateway/CloudStreams.Gateway.Api/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0017 src/gateway/CloudStreams.Gateway.Api/Dockerfile — 'RUN <package-manager> update' instruction alone
  • High IaC: DS-0029 src/gateway/CloudStreams.Gateway.Api/Dockerfile — 'apt-get' missing '--no-install-recommends'
D16 · Bus Factor · Knowledge silo · ×2
  • Knowledge silo src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/gateway/CloudStreams.Gateway.Application/Services/DatabaseProvisioner.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
D35 · Change Coupling · Boundary-crossing change coupling · ×2
  • Boundary-crossing change coupling: SubscriptionHandler.cs ↔ PatchResourceCommand.cs src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs — `src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs` (context broker) and `src/core/CloudStreams.Core.Application/Commands/Resources/Generic/PatchResourceCommand.cs` (context core) live in DIFFERENT modules yet change together 55% of the time (6 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: Program.cs ↔ Program.cs src/broker/CloudStreams.Broker.Api/Program.cs — `src/broker/CloudStreams.Broker.Api/Program.cs` (context broker) and `src/gateway/CloudStreams.Gateway.Api/Program.cs` (context gateway) live in DIFFERENT modules yet change together 50% of the time (5 shared commits) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
D12 · Dependency Hygiene · Vulnerable · ×1
  • Vulnerable: OpenTelemetry.Exporter.OpenTelemetryProtocol — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.12.0 — Moderate severity. https://github.com/advisories/[GHSA redacted]
Warning — 90 finding(s)
D16 · Bus Factor · Knowledge silo · ×38
  • Knowledge silo src/core/CloudStreams.Core.Api/Services/CloudStreamsApplicationBuilder.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Api/Services/GatewayHealthMonitor.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Api.Client/Services/ResourceManagementApi.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Api/Services/ResourceWatchEventHubController.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Extensions/IServiceCollectionExtensions.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Api/Tools/CloudEventToolset.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Api/ClusterResourceApiController.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core/StreamReadOptions.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Queries/Gateways/CheckGatewayHealthQuery.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Commands/Resources/PatchResourceStatusCommand.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Queries/Resources/ListResourcesQuery.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Commands/Resources/PatchResourceCommand.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Api/Services/GatewayResourceController.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Api/Services/BrokerResourceController.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core/Resources/SplitHorizonPolicy.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Commands/Resources/DeleteResourceCommand.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Commands/Resources/Generic/PatchResourceStatusCommand.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Commands/Resources/Generic/PatchResourceCommand.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Queries/Resources/WatchResourcesQuery.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Queries/Resources/GetResourcesQuery.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Queries/Resources/Generic/ListResourcesQuery.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Commands/Resources/CreateResourceCommand.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/core/CloudStreams.Core.Application/Commands/Resources/ReplaceResourceCommand.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • Knowledge silo src/broker/CloudStreams.Broker.Application/Services/BrokerMetrics.cs — 100 % of this file's living knowledge is held by charles.davernas@neuroglia.io — if they are unavailable, no one else has recently worked it.
  • + 13 more in this group — see findings.md.
D35 · Change Coupling · Change coupling · ×6
  • Change coupling: Store.cs ↔ event-drops-interop.js src/dashboard/ui/Components/Timeline/Store.cs — `src/dashboard/ui/Components/Timeline/Store.cs` and `src/dashboard/ui/wwwroot/js/event-drops-interop.js` change together 70% of the time (7 shared commits) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: EventDropsInterop.cs ↔ event-drops-interop.js src/dashboard/ui/Services/EventDropsInterop.cs — `src/dashboard/ui/Services/EventDropsInterop.cs` and `src/dashboard/ui/wwwroot/js/event-drops-interop.js` change together 70% of the time (7 shared commits) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: State.cs ↔ Store.cs src/dashboard/ui/Components/ReadOptionsForm/State.cs — `src/dashboard/ui/Components/ReadOptionsForm/State.cs` and `src/dashboard/ui/Components/ReadOptionsForm/Store.cs` change together 65% of the time (11 shared commits) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: State.cs ↔ Store.cs src/dashboard/ui/Pages/CloudEvents/List/State.cs — `src/dashboard/ui/Pages/CloudEvents/List/State.cs` and `src/dashboard/ui/Pages/CloudEvents/List/Store.cs` change together 64% of the time (14 shared commits) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: ResourceManagementComponent.cs ↔ ResourceManagementComponentState.cs src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponent.cs — `src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponent.cs` and `src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentState.cs` change together 50% of the time (6 shared commits) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: ResourceManagementComponentState.cs ↔ ResourceManagementComponentStore.cs src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentState.cs — `src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentState.cs` and `src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentStore.cs` change together 50% of the time (6 shared commits) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
D17 · Explicit Debt · CommentedOutCode · ×4
  • CommentedOutCode src/core/CloudStreams.Core.Api/Services/CloudStreamsApplicationBuilder.cs:77 — 4 consecutive commented-code lines
  • CommentedOutCode src/dashboard/CloudStreams.Dashboard/Components/ReadOptionsForm/Store.cs:225 — 5 consecutive commented-code lines
  • CommentedOutCode src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponent.cs:233 — 6 consecutive commented-code lines
  • CommentedOutCode src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentStore.cs:354 — 5 consecutive commented-code lines
D17 · Explicit Debt · TodoComment · ×3
  • TodoComment src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:504 — //todo: better feedback — 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/dashboard/CloudStreams.Dashboard/Components/ReadOptionsForm/Store.cs:299 — // todo: improve logging — 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/dashboard/CloudStreams.Dashboard/Components/Timeline/Store.cs:225 — // todo: improve logging — 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.
D6 · Cohesion (LCOM4) · Low cohesion · ×3
  • Low cohesion: GatewayMetrics (LCOM4 5) src/gateway/CloudStreams.Gateway.Application/Services/GatewayMetrics.cs:22 — GatewayMetrics's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: BrokerMetrics (LCOM4 4) src/broker/CloudStreams.Broker.Application/Services/BrokerMetrics.cs:21 — BrokerMetrics's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: StatefulComponent (LCOM4 4) src/dashboard/CloudStreams.Dashboard/StatefulComponent.cs:24 — StatefulComponent's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
D30 · Dependency Vulnerabilities · Medium CVE · ×2
  • Medium CVE: OpenTelemetry.Exporter.OpenTelemetryProtocol 1.12.0 — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.12.0 (direct) has a Medium advisory; affects 3 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • Medium CVE: OpenTelemetry.Api 1.12.0 — OpenTelemetry.Api 1.12.0 (transitive) has a Medium advisory; affects 3 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×2
  • Duplicated block (6 lines × 3) src/core/CloudStreams.Core/Resources/BrokerResourceDefinition.cs:47 — src/core/CloudStreams.Core/Resources/BrokerResourceDefinition.cs:47-52 | src/core/CloudStreams.Core/Resources/GatewayResourceDefinition.cs:47-52 | src/core/CloudStreams.Core/Resources/SubscriptionResourceDefinition.cs:47-52
  • Duplicated block (6 lines × 3) src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:308 — src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:308-313 | src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:333-338 | src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:355-360
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×2
  • Duplicated block (5 lines × 2) src/broker/CloudStreams.Broker.Application/Services/SubscriptionManager.cs:167 — src/broker/CloudStreams.Broker.Application/Services/SubscriptionManager.cs:167-171 | src/broker/CloudStreams.Broker.Application/Services/SubscriptionManager.cs:195-199
  • Duplicated block (5 lines × 2) src/dashboard/CloudStreams.Dashboard.StateManagement/Feature.cs:64 — src/dashboard/CloudStreams.Dashboard.StateManagement/Feature.cs:64-68 | src/dashboard/CloudStreams.Dashboard.StateManagement/State.cs:56-60
D5 · Coupling · Off the main sequence · ×2
  • Off the main sequence: CloudStreams.Core — CloudStreams.Core: 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: CloudStreams.Core.Application — CloudStreams.Core.Application: abstractness 0.05, instability 0.17, distance 0.79 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
D1 · Cyclomatic Complexity · SubscriptionHandler.InitializeCloudEventStreamAsync (cyclomatic 33) · ×1
  • SubscriptionHandler.InitializeCloudEventStreamAsync (cyclomatic 33) src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:225 — SubscriptionHandler.InitializeCloudEventStreamAsync has cyclomatic complexity 33 (threshold 15).
D1 · Cyclomatic Complexity · ResourceManagementComponentStore.OnResourceWatchEventAsync (cyclomatic 25) · ×1
  • ResourceManagementComponentStore.OnResourceWatchEventAsync (cyclomatic 25) src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentStore.cs:392 — ResourceManagementComponentStore.OnResourceWatchEventAsync has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync (cyclomatic 19) · ×1
  • BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync (cyclomatic 19) src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs:115 — BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · GatewayHealthMonitor.OnHealthCheckIntervalElapsedAsync (cyclomatic 19) · ×1
  • GatewayHealthMonitor.OnHealthCheckIntervalElapsedAsync (cyclomatic 19) src/core/CloudStreams.Core.Api/Services/GatewayHealthMonitor.cs:121 — GatewayHealthMonitor.OnHealthCheckIntervalElapsedAsync has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · SubscriptionHandler.RetryDispatchAsync (cyclomatic 19) · ×1
  • SubscriptionHandler.RetryDispatchAsync (cyclomatic 19) src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:582 — SubscriptionHandler.RetryDispatchAsync has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · CloudEventAdmissionControl.AuthorizeAsync (cyclomatic 18) · ×1
  • CloudEventAdmissionControl.AuthorizeAsync (cyclomatic 18) src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs:185 — CloudEventAdmissionControl.AuthorizeAsync has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · CloudEventAuthorizationManager.Evaluate (cyclomatic 17) · ×1
  • CloudEventAuthorizationManager.Evaluate (cyclomatic 17) src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAuthorizationManager.cs:71 — CloudEventAuthorizationManager.Evaluate has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · CloudEventAdmissionControl.ExtractMetadataAsync (cyclomatic 16) · ×1
  • CloudEventAdmissionControl.ExtractMetadataAsync (cyclomatic 16) src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs:287 — CloudEventAdmissionControl.ExtractMetadataAsync has cyclomatic complexity 16 (threshold 15).
D2 · Cognitive Complexity · SubscriptionHandler.InitializeCloudEventStreamAsync (cognitive 47) · ×1
  • SubscriptionHandler.InitializeCloudEventStreamAsync (cognitive 47) src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:225 — SubscriptionHandler.InitializeCloudEventStreamAsync has cognitive complexity 47 (threshold 15).
D2 · Cognitive Complexity · CloudEventAdmissionControl.ExtractMetadataAsync (cognitive 27) · ×1
  • CloudEventAdmissionControl.ExtractMetadataAsync (cognitive 27) src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs:287 — CloudEventAdmissionControl.ExtractMetadataAsync has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync (cognitive 22) · ×1
  • BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync (cognitive 22) src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs:115 — BrokerHealthMonitor.OnHealthCheckIntervalElapsedAsync has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · GatewayHealthMonitor.OnHealthCheckIntervalElapsedAsync (cognitive 22) · ×1
  • GatewayHealthMonitor.OnHealthCheckIntervalElapsedAsync (cognitive 22) src/core/CloudStreams.Core.Api/Services/GatewayHealthMonitor.cs:121 — GatewayHealthMonitor.OnHealthCheckIntervalElapsedAsync has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · ResourceManagementComponentStore.OnResourceWatchEventAsync (cognitive 20) · ×1
  • ResourceManagementComponentStore.OnResourceWatchEventAsync (cognitive 20) src/dashboard/CloudStreams.Dashboard/Components/ResourceManagement/ResourceManagementComponentStore.cs:392 — ResourceManagementComponentStore.OnResourceWatchEventAsync has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · StoreFactory.FindAndMapReducersPerState (cognitive 19) · ×1
  • StoreFactory.FindAndMapReducersPerState (cognitive 19) src/dashboard/CloudStreams.Dashboard.StateManagement/StoreFactory.cs:123 — StoreFactory.FindAndMapReducersPerState has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · CloudEventAuthorizationManager.Evaluate (cognitive 17) · ×1
  • CloudEventAuthorizationManager.Evaluate (cognitive 17) src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAuthorizationManager.cs:71 — CloudEventAuthorizationManager.Evaluate has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · TimelineStore.GatherCloudEventsAsync (cognitive 17) · ×1
  • TimelineStore.GatherCloudEventsAsync (cognitive 17) src/dashboard/CloudStreams.Dashboard/Components/Timeline/Store.cs:154 — TimelineStore.GatherCloudEventsAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · StoreFactory.ConfigureStoreEffects (cognitive 17) · ×1
  • StoreFactory.ConfigureStoreEffects (cognitive 17) src/dashboard/CloudStreams.Dashboard.StateManagement/StoreFactory.cs:79 — StoreFactory.ConfigureStoreEffects has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · CheckGatewayHealthQueryHandler.HandleAsync (cognitive 16) · ×1
  • CheckGatewayHealthQueryHandler.HandleAsync (cognitive 16) src/core/CloudStreams.Core.Application/Queries/Gateways/CheckGatewayHealthQuery.cs:58 — CheckGatewayHealthQueryHandler.HandleAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · CloudEventAdmissionControl.AuthorizeAsync (cognitive 16) · ×1
  • CloudEventAdmissionControl.AuthorizeAsync (cognitive 16) src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs:185 — CloudEventAdmissionControl.AuthorizeAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · SubscriptionHandler.RetryDispatchAsync (cognitive 16) · ×1
  • SubscriptionHandler.RetryDispatchAsync (cognitive 16) src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:582 — SubscriptionHandler.RetryDispatchAsync has cognitive complexity 16 (threshold 15).
D3 · God Classes · ClassTooLong · ×1
  • ClassTooLong: SubscriptionHandler src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:0 — ClassTooLong — 448 lines, 26 methods.
D36 · Supply-chain Provenance & Signing · Unpinned build actions · ×1
  • Unpinned build actions — CI references GitHub Actions by a floating ref (@main / @tag) rather than a pinned commit SHA, weakening build integrity.
D4 · Code Duplication · Duplicated block (35 lines × 3) · ×1
  • Duplicated block (35 lines × 3) src/gateway/CloudStreams.Gateway.Application/Services/DatabaseProvisioner.cs:80 — src/gateway/CloudStreams.Gateway.Application/Services/DatabaseProvisioner.cs:80-114 | src/gateway/CloudStreams.Gateway.Application/Services/DatabaseProvisioner.cs:131-165 | src/gateway/CloudStreams.Gateway.Application/Services/DatabaseProvisioner.cs:182-216
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×1
  • Duplicated block (12 lines × 2) src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs:218 — src/core/CloudStreams.Core.Api/Services/BrokerHealthMonitor.cs:218-229 | src/core/CloudStreams.Core.Api/Services/GatewayHealthMonitor.cs:224-235
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×1
  • Duplicated block (9 lines × 2) src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:203 — src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:203-211 | src/core/CloudStreams.Core.Application/Services/CloudEventStore.cs:214-222
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×1
  • Duplicated block (8 lines × 2) src/core/CloudStreams.Core.Api.Client/Services/CloudStreamsCoreApiClient.cs:101 — src/core/CloudStreams.Core.Api.Client/Services/CloudStreamsCoreApiClient.cs:101-108 | src/core/CloudStreams.Core.Api.Client/Services/ResourceManagementApi.cs:172-179
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×1
  • Duplicated block (6 lines × 2) src/core/CloudStreams.Core.Api.Client/Services/ResourceManagementApi.cs:120 — src/core/CloudStreams.Core.Api.Client/Services/ResourceManagementApi.cs:120-125 | src/core/CloudStreams.Core.Api.Client/Services/ResourceManagementApi.cs:133-138
D8 · Code Coverage · Coverage not measured · ×1
  • Coverage not measured — The test suite couldn't be built/run in-image and no coverage report is committed, so line coverage was not measured — and it is EXCLUDED from the score rather than scored on a LoC-ratio proxy. Commit the Cobertura/OpenCover/lcov report your CI already produces (anywhere in the repo), or make the suite runnable in-image, and real coverage will be measured.
Recommendation — 35 finding(s)
D39 · IL Efficiency · Oversized method · ×20
  • Oversized method: CloudStreams.Broker.Application.Services.SubscriptionHandler/<InitializeCloudEventStreamAsync>d__81.MoveNext — CloudStreams.Broker.Application.Services.SubscriptionHandler/<InitializeCloudEventStreamAsync>d__81.MoveNext compiles to 1276 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Pages.Subscriptions.List.View/<>c__DisplayClass0_0.<BuildRenderTree>b__11 — CloudStreams.Dashboard.Pages.Subscriptions.List.View/<>c__DisplayClass0_0.<BuildRenderTree>b__11 compiles to 1155 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Components.Timeline.BuildRenderTree — CloudStreams.Dashboard.Components.Timeline.BuildRenderTree compiles to 694 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Pages.Gateways.List.View/<>c__DisplayClass0_0.<BuildRenderTree>b__10 — CloudStreams.Dashboard.Pages.Gateways.List.View/<>c__DisplayClass0_0.<BuildRenderTree>b__10 compiles to 652 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Pages.Subscriptions.List.View.BuildRenderTree — CloudStreams.Dashboard.Pages.Subscriptions.List.View.BuildRenderTree compiles to 629 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Core.Api.Services.BrokerHealthMonitor/<OnHealthCheckIntervalElapsedAsync>d__31.MoveNext — CloudStreams.Core.Api.Services.BrokerHealthMonitor/<OnHealthCheckIntervalElapsedAsync>d__31.MoveNext compiles to 615 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Core.Api.Services.GatewayHealthMonitor/<OnHealthCheckIntervalElapsedAsync>d__31.MoveNext — CloudStreams.Core.Api.Services.GatewayHealthMonitor/<OnHealthCheckIntervalElapsedAsync>d__31.MoveNext compiles to 615 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Components.ReadOptionsForm.BuildRenderTree — CloudStreams.Dashboard.Components.ReadOptionsForm.BuildRenderTree compiles to 606 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Broker.Application.Services.SubscriptionHandler/<CatchUpAsync>d__93.MoveNext — CloudStreams.Broker.Application.Services.SubscriptionHandler/<CatchUpAsync>d__93.MoveNext compiles to 582 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Broker.Application.Services.SubscriptionHandler/<RetryDispatchAsync>d__92.MoveNext — CloudStreams.Broker.Application.Services.SubscriptionHandler/<RetryDispatchAsync>d__92.MoveNext compiles to 575 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Components.TimelineStateManagement.TimelineStore/<GatherCloudEventsAsync>d__16.MoveNext — CloudStreams.Dashboard.Components.TimelineStateManagement.TimelineStore/<GatherCloudEventsAsync>d__16.MoveNext compiles to 566 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Gateway.Application.Services.CloudEventAdmissionControl/<EvaluateAsync>d__37.MoveNext — CloudStreams.Gateway.Application.Services.CloudEventAdmissionControl/<EvaluateAsync>d__37.MoveNext compiles to 560 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Pages.Gateways.List.View.BuildRenderTree — CloudStreams.Dashboard.Pages.Gateways.List.View.BuildRenderTree compiles to 541 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Broker.Application.Services.SubscriptionManager/<StartAsync>d__17.MoveNext — CloudStreams.Broker.Application.Services.SubscriptionManager/<StartAsync>d__17.MoveNext compiles to 540 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Pages.Brokers.List.View/<>c__DisplayClass0_0.<BuildRenderTree>b__10 — CloudStreams.Dashboard.Pages.Brokers.List.View/<>c__DisplayClass0_0.<BuildRenderTree>b__10 compiles to 535 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Gateway.Application.Services.CloudEventAdmissionControl/<ExtractMetadataAsync>d__40.MoveNext — CloudStreams.Gateway.Application.Services.CloudEventAdmissionControl/<ExtractMetadataAsync>d__40.MoveNext compiles to 534 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Pages.Brokers.List.View.BuildRenderTree — CloudStreams.Dashboard.Pages.Brokers.List.View.BuildRenderTree compiles to 529 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Broker.Application.Services.SubscriptionHandler/<DispatchAsync>d__91.MoveNext — CloudStreams.Broker.Application.Services.SubscriptionHandler/<DispatchAsync>d__91.MoveNext compiles to 525 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Components.CloudEventDetails.BuildRenderTree — CloudStreams.Dashboard.Components.CloudEventDetails.BuildRenderTree compiles to 502 IL instructions — too large to inline; consider splitting the hot path.
  • Oversized method: CloudStreams.Dashboard.Pages.CloudEvents.List.View/<>c__DisplayClass0_0.<BuildRenderTree>b__7 — CloudStreams.Dashboard.Pages.CloudEvents.List.View/<>c__DisplayClass0_0.<BuildRenderTree>b__7 compiles to 495 IL instructions — too large to inline; consider splitting the hot path.
D31 · IaC & Container Security · Low IaC · ×3
  • Low IaC: DS-0026 src/broker/CloudStreams.Broker.Api/Dockerfile — No HEALTHCHECK defined
  • Low IaC: DS-0026 src/core/CloudStreams.Core.Api/Dockerfile — No HEALTHCHECK defined
  • Low IaC: DS-0026 src/gateway/CloudStreams.Gateway.Api/Dockerfile — No HEALTHCHECK defined
D11 · Test Reliability · Test reliability not included · ×1
  • Test reliability not included — No test projects found, so reliability couldn't be assessed.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: charles.davernas@neuroglia.io — If charles.davernas@neuroglia.io becomes unavailable, 40 significant file(s) lose their only recent owner — the largest single-person knowledge concentration (weighted toward the domain core). Pair, review, or document these before any departure.
D23 · Boundary Type-Coupling · small single-context codebase (16,102 production LoC) · ×1
  • small single-context codebase (16,102 production LoC) — bounded contexts are not needed at this size — small single-context codebase (16,102 production LoC) — bounded contexts are not needed at this size Declare architecture.contexts (≥2) in config to assess cross-boundary type coupling.
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.
D33 · JS/npm Dependency Vulnerabilities · Not applicable · ×1
  • Not applicable — No JS/npm manifest or lockfile found outside bin/obj (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
D34 · Knowledge Freshness · Dormant codebase · ×1
  • Dormant codebase — 87 of 100 significant files have no living knowledge — the codebase as a whole is dormant, not 87 separate risks. Re-engage owners or document before change.
D36 · Supply-chain Provenance & Signing · No build provenance · ×1
  • No build provenance — No SLSA provenance generation or build attestation found in CI (e.g. slsa-github-generator, actions/attest-build-provenance).
D36 · Supply-chain Provenance & Signing · No artifact signing · ×1
  • 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).
D38 · OSV Dependency Vulnerabilities · Not applicable · ×1
  • Not applicable — No JS/npm lockfile found outside bin/obj (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); nothing for OSV to scan.
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.
D9 · Test Distribution · No tests found · ×1
  • No tests found — No test projects found in the repository.
Info — 73 finding(s)
D12 · Dependency Hygiene · Outdated · ×50
  • Outdated: Neuroglia.Data.Infrastructure.EventSourcing.Abstractions — Neuroglia.Data.Infrastructure.EventSourcing.Abstractions 4.23.1 → 4.24.0 available.
  • Outdated: Neuroglia.Data.Infrastructure.ResourceOriented — Neuroglia.Data.Infrastructure.ResourceOriented 4.23.1 → 4.24.0 available.
  • Outdated: Neuroglia.Eventing.CloudEvents — Neuroglia.Eventing.CloudEvents 4.23.1 → 4.24.0 available.
  • Outdated: Microsoft.Extensions.Diagnostics.HealthChecks — Microsoft.Extensions.Diagnostics.HealthChecks 9.0.6 → 10.0.9 available.
  • Outdated: Neuroglia.Data.Infrastructure.EventSourcing — Neuroglia.Data.Infrastructure.EventSourcing 4.23.1 → 4.24.0 available.
  • Outdated: Neuroglia.Data.Infrastructure.ResourceOriented.Abstractions — Neuroglia.Data.Infrastructure.ResourceOriented.Abstractions 4.23.1 → 4.24.0 available.
  • Outdated: System.Linq.Async — System.Linq.Async 6.0.3 → 7.0.1 available.
  • Outdated: Microsoft.AspNetCore.SignalR.Client — Microsoft.AspNetCore.SignalR.Client 9.0.6 → 10.0.9 available.
  • Outdated: System.Reactive — System.Reactive 6.0.1 → 6.1.0 available.
  • Outdated: FluentValidation.DependencyInjectionExtensions — FluentValidation.DependencyInjectionExtensions 12.0.0 → 12.1.1 available.
  • Outdated: Microsoft.AspNetCore.Components.WebAssembly.Server — Microsoft.AspNetCore.Components.WebAssembly.Server 9.0.6 → 10.0.9 available.
  • Outdated: Microsoft.VisualStudio.Azure.Containers.Tools.Targets — Microsoft.VisualStudio.Azure.Containers.Tools.Targets 1.21.2 → 1.23.0 available.
  • Outdated: ModelContextProtocol.AspNetCore — ModelContextProtocol.AspNetCore 0.1.0-preview.11 → 1.4.0 available.
  • Outdated: Neuroglia.Data.Expressions.JQ — Neuroglia.Data.Expressions.JQ 4.23.1 → 4.24.0 available.
  • Outdated: Neuroglia.Data.Infrastructure.EventSourcing.EventStore — Neuroglia.Data.Infrastructure.EventSourcing.EventStore 4.23.1 → 4.24.0 available.
  • Outdated: Neuroglia.Data.Infrastructure.ResourceOriented.Redis — Neuroglia.Data.Infrastructure.ResourceOriented.Redis 4.23.1 → 4.24.0 available.
  • Outdated: Neuroglia.Mediation.AspNetCore — Neuroglia.Mediation.AspNetCore 4.23.1 → 4.24.0 available.
  • Outdated: Neuroglia.Security.AspNetCore — Neuroglia.Security.AspNetCore 4.23.1 → 4.24.0 available.
  • Outdated: OpenTelemetry.Exporter.OpenTelemetryProtocol — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.12.0 → 1.16.0 available.
  • Outdated: OpenTelemetry.Extensions.Hosting — OpenTelemetry.Extensions.Hosting 1.12.0 → 1.16.0 available.
  • Outdated: OpenTelemetry.Instrumentation.AspNetCore — OpenTelemetry.Instrumentation.AspNetCore 1.12.0 → 1.15.2 available.
  • Outdated: OpenTelemetry.Instrumentation.Http — OpenTelemetry.Instrumentation.Http 1.12.0 → 1.15.1 available.
  • Outdated: OpenTelemetry.Instrumentation.StackExchangeRedis — OpenTelemetry.Instrumentation.StackExchangeRedis 1.12.0-beta.1 → Not available.
  • Outdated: Swashbuckle.AspNetCore.SwaggerGen — Swashbuckle.AspNetCore.SwaggerGen 9.0.1 → 10.2.2 available.
  • Outdated: Swashbuckle.AspNetCore.SwaggerUI — Swashbuckle.AspNetCore.SwaggerUI 9.0.1 → 10.2.2 available.
  • + 25 more in this group — see findings.md.
D17 · Explicit Debt · Justified suppression · ×11
  • Justified suppression src/gateway/CloudStreams.Gateway.Application/Services/CloudEventAdmissionControl.cs:119 — empty catch (ProblemDetailsException) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:266 — empty catch (Exception) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:618 — empty catch (Exception) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:666 — empty catch (Exception) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:691 — empty catch (ProblemDetailsException) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:721 — empty catch (Exception) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:812 — empty catch (Exception) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:828 — empty catch (Exception) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:845 — empty catch (Exception) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionHandler.cs:868 — empty catch (Exception) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/broker/CloudStreams.Broker.Application/Services/SubscriptionManager.cs:73 — empty catch (ProblemDetailsException) when (…) — narrow/filtered/commented, treated as intentional
D14 · License Compliance · Licenses scanned · ×1
  • Licenses scanned — 40 packages scanned; 3 distinct SPDX licenses.
D18 · Solution Shape · CloudStreams.Core (Production) · ×1
  • CloudStreams.Core (Production) src/core/CloudStreams.Core/CloudStreams.Core.csproj — 74 .cs files, 3620 LoC (1083 significant)
D18 · Solution Shape · CloudStreams.Core.Application (Production) · ×1
  • CloudStreams.Core.Application (Production) src/core/CloudStreams.Core.Application/CloudStreams.Core.Application.csproj — 39 .cs files, 3180 LoC (1290 significant)
D18 · Solution Shape · CloudStreams.Core.Api.Client (Production) · ×1
  • CloudStreams.Core.Api.Client (Production) src/core/CloudStreams.Core.Api.Client/CloudStreams.Core.Api.Client.csproj — 18 .cs files, 1083 LoC (402 significant)
D18 · Solution Shape · CloudStreams.Core.Api (Production) · ×1
  • CloudStreams.Core.Api (Production) src/core/CloudStreams.Core.Api/CloudStreams.Core.Api.csproj — 22 .cs files, 2067 LoC (1090 significant)
D18 · Solution Shape · CloudStreams.Gateway.Api (Production) · ×1
  • CloudStreams.Gateway.Api (Production) src/gateway/CloudStreams.Gateway.Api/CloudStreams.Gateway.Api.csproj — 7 .cs files, 327 LoC (147 significant)
D18 · Solution Shape · CloudStreams.Gateway.Application (Production) · ×1
  • CloudStreams.Gateway.Application (Production) src/gateway/CloudStreams.Gateway.Application/CloudStreams.Gateway.Application.csproj — 13 .cs files, 1205 LoC (664 significant)
D18 · Solution Shape · CloudStreams.Broker.Application (Production) · ×1
  • CloudStreams.Broker.Application (Production) src/broker/CloudStreams.Broker.Application/CloudStreams.Broker.Application.csproj — 6 .cs files, 1314 LoC (815 significant)
D18 · Solution Shape · CloudStreams.Broker.Api (Production) · ×1
  • CloudStreams.Broker.Api (Production) src/broker/CloudStreams.Broker.Api/CloudStreams.Broker.Api.csproj — 1 .cs files, 53 LoC (30 significant)
D18 · Solution Shape · CloudStreams.Dashboard (Production) · ×1
  • CloudStreams.Dashboard (Production) src/dashboard/CloudStreams.Dashboard/CloudStreams.Dashboard.csproj — 37 .cs files, 3491 LoC (1704 significant)
D18 · Solution Shape · CloudStreams.Dashboard.StateManagement (Production) · ×1
  • CloudStreams.Dashboard.StateManagement (Production) src/dashboard/CloudStreams.Dashboard.StateManagement/CloudStreams.Dashboard.StateManagement.csproj — 32 .cs files, 2180 LoC (816 significant)
D39 · IL Efficiency · IL measured · ×1
  • IL measured — 3679 methods; 62 oversized (> 250 IL); 314 boxing ops.

Appendix B — Reproduction & audit trail

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

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaksgitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D29 · Static Analysis (SAST)semgrepsemgrep --config auto --json --quiet --timeout 0 --metrics off .0
D30 · Dependency Vulnerabilitiesdotnetdotnet list CloudStreams.sln package --vulnerable --include-transitive --format json2artifacts/raw/dotnet-vulnerable.json
D31 · IaC & Container Securitytrivytrivy config --format json --quiet .11artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrepsemgrep: not applicable — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess.0
D33 · JS/npm Dependency Vulnerabilitiestrivytrivy: not applicable — No JS/npm manifest or lockfile found outside bin/obj (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner: not applicable — No JS/npm lockfile found outside bin/obj (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); nothing for OSV to scan.0

Run 019ee2f1-2144-7277-8a58-fc75adf636fa · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md