Public report — openclaw-windows-node, published 19 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 19-06-2026 @ 21:46 UTC Public
Code Health Audit

Openclaw/openclaw-Windows-Node

58% Fair

Large · 101,120 LoC · 16 projects · rebuild ~6.7 person-years · weakest lens: Readiness (48%)

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

49/53dimensions tool-verifieddeterministic · confidence 1.0 · 4 LLM-assisted, advisory
743findings with an exact file:lineof 770 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
53/91dimensions across the health lenses101120 LoC · 16 projects — wide & deep

Executive summary

Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.

openclaw/openclaw-windows-node is sound in substance but carries real gaps (58%). It is not in crisis, but the issues below raise the cost of changing it — friction its consumers ultimately inherit.

It is strongest in Architecture (94%) — the structure is clean and changes stay contained. Maturity (79%) is solid too.

The area that most needs attention is Readiness (48%) — releases are harder to depend on — versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade. Performance (60%) is the next concern — it raises ongoing delivery and operational cost.

Leadership focus, highest impact first: Strengthen data-at-rest protection (Data Protection); BenchmarkDotNet project for the hot paths (with… (Benchmark discipline); Make the call chain async end-to-end and await it (Async & latency hygiene).

For scale: Large (~101,120 production lines); rebuilding it from scratch would take roughly ~6.7 person-years (~3–13 engineers). Approximate, ±~30%.

It builds on a genuinely strong Architecture foundation (94%); the priorities above are the highest-leverage way to bring the rest up to that level.

Code composition — where the lines go
Business logic 41%Plumbing 21%Tests 37%
New since the last scan (9+)

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

  • D19 · Low XML-doc coverage: OpenClaw.Chat src/OpenClaw.Chat/OpenClaw.Chat.csproj
  • D19 · Low XML-doc coverage: OpenClaw.Cli src/OpenClaw.Cli/OpenClaw.Cli.csproj
  • D19 · Low XML-doc coverage: OpenClaw.Connection src/OpenClaw.Connection/OpenClaw.Connection.csproj
  • D19 · Low XML-doc coverage: OpenClaw.SetupEngine.UI src/OpenClaw.SetupEngine.UI/OpenClaw.SetupEngine.UI.csproj
  • D19 · Low XML-doc coverage: OpenClaw.SetupEngine src/OpenClaw.SetupEngine/OpenClaw.SetupEngine.csproj
  • D19 · Low XML-doc coverage: OpenClaw.Shared src/OpenClaw.Shared/OpenClaw.Shared.csproj
  • D19 · Low XML-doc coverage: OpenClaw.Tray.WinUI src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj
  • D19 · Low XML-doc coverage: OpenClaw.WinNode.Cli src/OpenClaw.WinNode.Cli/OpenClaw.WinNode.Cli.csproj
  • D19 · Low XML-doc coverage: OpenClawTray.FunctionalUI src/OpenClawTray.FunctionalUI/OpenClawTray.FunctionalUI.csproj

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 — €310,000–€1,600,000
Cost to rebuild€310,000–€1,600,000 (3.1–10.2 person-years (5,221–17,150 h), ~3–13 engineers)
Domain complexityStandard — harder problems cost more per line
Quality factor0.8× (at 58% quality) — the last 20% of quality is most of the work
Size & shapeLarge · 24% boilerplate · 10% straight-line · 66% branching logic

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

How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.2) — desktop/game, high decision density × a 0.8× quality factor, at €60–95/h; indicative, ±~30%. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
+3.6 pts · Medium effort · Data Protection
2
Add a BenchmarkDotNet project for the hot paths (with [MemoryDiagnoser] to track allocations), and run it in CI to catch regressions.
+2.2 pts · Medium effort · Benchmark discipline
3
Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult() in library code.
+2.2 pts · Medium effort · Async & latency hygiene

Diagnosis — what's actually going on

Value concentrated against a weak lens · Medium · Value at risk
This is a Large asset (~6.7 person-years to rebuild), and its weakest lens is Readiness at 48%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Large, ~6.7 person-years rebuild (101,120 LoC) · weakest lens: Readiness 48%
→ 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: Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 6.0/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 5–11% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2 complexity, D4 duplication, D6 cohesion: averaging 6.0/10 across the code-quality signals
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.
Improving trajectory · Info · Trajectory
The headline is improving steadily (+16.6 pts/run over 3 runs) — whatever you're doing is working; keep the gate.
Evidence: trajectory: +16.6 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 OpenClaw.Chat Chat OpenClaw.Shared Shared OpenClaw.Chat->OpenClaw.Shared OpenClaw.Cli Cli OpenClaw.Cli->OpenClaw.Shared OpenClaw.Connection Connection OpenClaw.Connection->OpenClaw.Shared OpenClaw.E2ETests E2ETests OpenClaw.SetupEngine SetupEngine OpenClaw.E2ETests->OpenClaw.SetupEngine OpenClaw.E2ETests->OpenClaw.Shared OpenClaw.SetupEngine->OpenClaw.Connection OpenClaw.SetupEngine.UI UI OpenClaw.SetupEngine.UI->OpenClaw.SetupEngine OpenClaw.SetupEngine.UI->OpenClaw.Shared OpenClaw.SetupPreview SetupPreview OpenClaw.SetupPreview->OpenClaw.Shared OpenClawTray.FunctionalUI FunctionalUI OpenClaw.SetupPreview->OpenClawTray.FunctionalUI OpenClaw.Tray.WinUI WinUI OpenClaw.Tray.WinUI->OpenClaw.Chat OpenClaw.Tray.WinUI->OpenClaw.Connection OpenClaw.Tray.WinUI->OpenClaw.SetupEngine.UI OpenClaw.Tray.WinUI->OpenClaw.Shared OpenClaw.Tray.WinUI->OpenClawTray.FunctionalUI OpenClaw.WinNode.Cli Cli OpenClaw.WinNode.Cli->OpenClaw.Shared OpenClawTray.FunctionalUI->OpenClaw.Shared icongen icongen

At a glance — Code Health · 68% · Fair · gated by D1, D2

At a glance — Architecture · 94% · Exemplary

At a glance — Maturity · 79% · Healthy

At a glance — Readiness · 48% · Poor · gated by P2, P4

At a glance — Security · 66% · Fair · gated by D36, C1

At a glance — Performance · 60% · Fair

Roadmap

First, strengthen data protection by securely storing keys and encrypting sensitive columns to eliminate coverage gaps. Next, enforce benchmark discipline by adding performance tests to the CI pipeline to catch regressions early. Then, ensure the call chain is fully asynchronous to avoid blocking the thread. After that, improve allocation hygiene by reducing memory usage on hot paths. Finally, implement structured logging across all services to enhance observability.

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

Do thisHelpsEffortDimension
Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.+3.6 ptsMediumData Protection
Add a BenchmarkDotNet project for the hot paths (with [MemoryDiagnoser] to track allocations), and run it in CI to catch regressions.+2.2 ptsMediumBenchmark discipline
Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult() in library code.+2.2 ptsMediumAsync & latency hygiene
Raise allocation-aware density on the hot paths — currently 38 use(s) across 101,257 production line(s) (~0.4/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.+2.1 ptsMediumAllocation hygiene
Adopt ILogger (or Serilog) and log at meaningful points across the projects.+2.1 ptsMediumObservability
Start an ADR log (docs/adr/) recording significant decisions and their rationale.+1.7 ptsMediumArchitecture documentation
Resolve the 1 No ADRs found finding(s) in ADR Quality.+0.8 ptsLowADR Quality
Automate deployment (Helm/Kubernetes manifests or a pipeline deploy stage) so releases are repeatable and reversible.+1.7 ptsMediumDeployment & Rollback

File quality

Per-file score 0–10 — a quality signature. Of 146 files carrying findings, judged against the Production bar: 3% slop · 57% mixed · 40% near-clean.

FileScoreBandWorst signal
src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs1.0SlopExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs1.3SlopExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml.cs2.3SlopExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/A2UI/Rendering/IComponentRenderer.cs3.9SlopExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/App.xaml.cs4.6MixedExplicit Debt: EmptyCatchBlock
src/OpenClaw.SetupEngine/SetupWizardRunner.cs4.8MixedExplicit Debt: EmptyCatchBlock
src/OpenClaw.Shared/Models.cs4.8MixedExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs5.5MixedCyclomatic Complexity: ConnectionPage.ApplyNodeCard (cyclomatic 47)
src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs5.6MixedCyclomatic Complexity: HubWindow.TagToPageType (cyclomatic 29)
src/OpenClaw.Shared/ExecApprovals/ExecApprovalsStore.cs5.8MixedExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/Windows/TrayMenuWindow.xaml.cs5.9MixedCognitive Complexity: TrayMenuWindow.ShowCascadingFlyout (cognitive 16)
src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs6.0MixedExplicit Debt: TodoComment
src/OpenClaw.Tray.WinUI/Chat/OpenClawChatRoot.cs6.0MixedExplicit Debt: TodoComment
src/OpenClaw.Tray.WinUI/Services/NodeService.cs6.0MixedExplicit Debt: TodoComment
src/OpenClaw.SetupEngine.UI/WizardConsoleTail.cs6.1MixedExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/Services/GlobalHotkeyService.cs6.1MixedExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/A2UI/Hosting/A2UIRouter.cs6.1MixedExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/A2UI/Theming/A2UITheme.cs6.1MixedExplicit Debt: EmptyCatchBlock
src/OpenClaw.Tray.WinUI/Windows/A2UICanvasWindow.xaml.cs6.3MixedCyclomatic Complexity: A2UICanvasWindow.UpdateLayout (cyclomatic 21)
src/OpenClaw.Tray.WinUI/Services/WslCommandRunner.cs6.4MixedExplicit Debt: EmptyCatchBlock

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. 49 of 53 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.7 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 53 dimensions across the health lenses
D1D2D3D4D5D6D9D10D12D13D14D15D17D18D19D20D21D22D24D26D27D28D29D33D36D37D38AX10AX3AX4AX5AX6C1C4GD1IC1M1M2M3M4P1P2P3P4P6PF1PF2PF3X1X2X3X4X5

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, 743 of 770 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 measurementQwen/Qwen3.5-35B-A3B◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019ee1d9-8fec-73a7-a628-aa8e83bd7f30.

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.

  • D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D31 IaC & Container Security — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D32 Data Compliance (PII/GDPR) — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.

Repo exclusion declarations: 1 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.

Limitations & what we did not check

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

Per-dimension blind spots

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

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (EF migration scaffolds, *.Designer.cs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only; the generated footprint is reported separately under Solution Shape.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (EF migrations, designer files, snapshots) is excluded — it is never the team's dead code to delete.
  • D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
  • D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement.
  • D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
  • D24 Comment Value: Comment value (WHY vs WHAT) is an LLM judgement over a bounded sample — it is advisory and cannot weigh a comment against the precise code change it was written to explain.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles — risk from how a dependency is used, and advisories not yet published, fall outside this scan.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • 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 (6): D19, D20, D21, D22, D24, M4 (model: Qwen/Qwen3.5-35B-A3B). 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 Complexity3.5 / 10Poor✓ 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 3.5 / 10 · rule-coverage 100% · ceiling Prevented

155 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was OpenClawChatTimeline.Render at 258.

OpenClawChatTimeline.Render (cyclomatic 258)src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:434
Md4cParser.AnalyzeLine (cyclomatic 169)src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1357
Md4cParser.CollectMarks (cyclomatic 125)src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1432
Md4cParser.ProcessInlines (cyclomatic 109)src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2666
CronPage.ParseCronList (cyclomatic 83)src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:570

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

What to do

  1. Resolve the 1 OpenClawChatTimeline.Render (cyclomatic 258) finding(s) in Cyclomatic Complexity — start with OpenClawChatTimeline.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 Md4cParser.AnalyzeLine (cyclomatic 169) finding(s) in Cyclomatic Complexity — start with Md4cParser.Block.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 Md4cParser.CollectMarks (cyclomatic 125) finding(s) in Cyclomatic Complexity — start with Md4cParser.Inline.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 Complexity2.0 / 10Critical✓ 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 2.0 / 10 · rule-coverage 100% · ceiling Prevented

212 method(s) exceeded the cognitive complexity threshold of 15; the worst was Md4cParser.CollectMarks at 365.

Md4cParser.CollectMarks (cognitive 365)src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1432
Md4cParser.ProcessInlines (cognitive 341)src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2666
OpenClawChatTimeline.Render (cognitive 340)src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:434
Md4cParser.AnalyzeLine (cognitive 268)src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1357
Md4cParser.ResolveLinks (cognitive 188)src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1824

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

What to do

  1. Resolve the 1 Md4cParser.CollectMarks (cognitive 365) finding(s) in Cognitive Complexity — start with Md4cParser.Inline.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 Md4cParser.ProcessInlines (cognitive 341) finding(s) in Cognitive Complexity — start with Md4cParser.Inline.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 OpenClawChatTimeline.Render (cognitive 340) finding(s) in Cognitive Complexity — start with OpenClawChatTimeline.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 Classes8.0 / 10Healthy✓ 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 8.0 / 10 · rule-coverage 100% · ceiling Prevented

41 god class(es) detected.

FileTooLong: OpenClaw.Connection/GatewayConnectionManager.cs · ×28src/OpenClaw.Connection/GatewayConnectionManager.cs:0
TooManyMethods: GatewayConnectionManager · ×27src/OpenClaw.Connection/GatewayConnectionManager.cs:0
ClassTooLong: SystemCapability · ×12src/OpenClaw.Shared/Capabilities/SystemCapability.cs:0

What to do

  1. Resolve the 28 FileTooLong finding(s) in God Classes — start with App.xaml.cs, ChannelsPage.xaml.cs, ChatPage.xaml.cs. — One of this dimension's main actionable groups (28 warning-level).
  2. Resolve the 27 TooManyMethods finding(s) in God Classes — start with FunctionalUI.cs (3), App.CapabilityHandlers.cs, CanvasWindow.xaml.cs. — One of this dimension's main actionable groups (27 warning-level).
  3. Resolve the 12 ClassTooLong finding(s) in God Classes — start with ChatMarkdownAstBuilder.cs, CommandCenterTextHelper.cs, ConnectionPagePlan.cs. — One of this dimension's main actionable groups (12 warning-level).
  4. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D4 · Code Duplication9.7 / 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.7 / 10 · rule-coverage 100% · ceiling Verified

58 duplicated block group(s) detected.

Duplicated block (5 lines × 2) · ×9src/OpenClaw.Shared/HttpUrlRiskEvaluator.cs:119
Duplicated block (10 lines × 2) · ×6src/OpenClaw.SetupEngine/SetupContext.cs:306
Duplicated block (7 lines × 2) · ×6src/OpenClaw.SetupEngine/SetupSteps.cs:1726
Duplicated block (11 lines × 2) · ×4src/OpenClaw.Shared/Mxc/MxcConfigBuilder.cs:289
Duplicated block (8 lines × 2) · ×4src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1491

+ 16 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.9 / 10Healthy✓ 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.9 / 10 · rule-coverage 100% · ceiling Prevented

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

Unstable project OpenClaw.Tray.WinUI
Off the main sequence: OpenClaw.Shared

What to do

  1. Resolve the 1 Unstable project OpenClaw.Tray.WinUI finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
  3. 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)8.9 / 10Healthy✓ 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 8.9 / 10 · rule-coverage 100% · ceiling Verified

17 of 186 classes have LCOM4 above 3.

Low cohesion: ExecApprovalV2Result (LCOM4 10) · ×17src/OpenClaw.Shared/ExecApprovals/ExecApprovalV2Result.cs:23

What to do

  1. Resolve the 17 Low cohesion finding(s) in Cohesion (LCOM4) — start with PermissionsPage.xaml.cs (2), A2UICanvasWindow.xaml.cs, CanvasWindow.xaml.cs. — One of this dimension's main actionable groups (17 warning-level).
  2. Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified

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

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

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

2841 test methods: 2841 unit, 0 integration, 0 BDD, 0 e2e.

Unit tests
Integration tests
BDD tests
E2E tests

✓ On the Gold path — maintain.

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

D10 · Test Quality9.9 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

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

0 skipped, 9 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 3039 tests.

No assertions: Dispose_IsIdempotent · ×9tests/OpenClaw.Connection.Tests/NodeConnectorTests.cs:132

✓ On the Gold path — maintain.

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

D12 · Dependency Hygiene10.0 / 10Exemplary✓ 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 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 outdated, 0 vulnerable, 0 deprecated packages.

✓ On the Gold path — maintain.

Detailed fixes: d12_recommendation.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 16 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.

git history depth insufficient

✓ On the Gold path — maintain.

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

D17 · Explicit Debt9.4 / 10Exemplary✓ 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 9.4 / 10 · rule-coverage 100% · ceiling Prevented

39 deducted debt markers + 0 dead symbols across 101120 LoC (0.3/KLoC) → score 9.4.

EmptyCatchBlock · ×26src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:618
TodoComment · ×6src/OpenClaw.SetupEngine/SetupContext.cs:241
BarePragmaDisable · ×4tests/OpenClaw.Connection.Tests/NodePairAutoApproveTests.cs:584
ObsoleteWithCallers · ×2src/OpenClaw.Shared/DeviceIdentity.cs:260
XxxCommentsrc/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:570

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

✓ On the Gold path — maintain.

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

16 projects, 567 .cs files, 161130 hand-written lines of code (101120 production / 60010 test), 23 inter-project edges (build status unknown — did not finish).

Build status unknown
OpenClaw.Chat (Production)src/OpenClaw.Chat/OpenClaw.Chat.csproj
OpenClaw.Cli (Production)src/OpenClaw.Cli/OpenClaw.Cli.csproj
OpenClaw.Connection (Production)src/OpenClaw.Connection/OpenClaw.Connection.csproj
OpenClaw.SetupEngine.UI (Production)src/OpenClaw.SetupEngine.UI/OpenClaw.SetupEngine.UI.csproj

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

D19 · Documentation Quality / 10Healthy◐ Sampled · advisory

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

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

The documentation is exceptionally high-quality, demonstrating deep technical understanding and a strong focus on developer experience. It excels in providing actionable troubleshooting steps, clear architectural diagrams, and specific code references. The inclusion of a comprehensive test coverage report and a historical code review adds significant value. The primary area for improvement is the low XML documentation coverage in several key libraries, which impacts API discoverability.

Low XML-doc coverage: OpenClaw.Chat · ×9src/OpenClaw.Chat/OpenClaw.Chat.csproj

What to do

  1. Resolve the 9 Low XML-doc coverage finding(s) in Documentation Quality — start with OpenClaw.Chat.csproj, OpenClaw.Cli.csproj, OpenClaw.Connection.csproj. — One of this dimension's main actionable groups (9 warning-level).

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

D20 · ADR Quality / 10Critical◐ Sampled · advisory

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.

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

No architecture decision records were found.

No ADRs found

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).

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

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

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

0 naming inconsistencies across 200 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D22 · Internal API Consistency / 10Exemplary◐ Sampled · advisory

What it measures: Whether the internal API surface is consistent and coherent.

Method: Judged by language model at low temperature over a sample of the public API surface (IsPackable or .Contracts types). Sampled, advisory; confidence discounted by model uncertainty.

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

No public API surface exposed; nothing to be inconsistent.

No exposed public API

✓ On the Gold path — maintain.

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

D24 · Comment Value / 10Exemplary◐ Sampled · advisory

What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).

Method: Judged by language model at low temperature (0.0-0.1) on deterministically sampled inline comments with surrounding code; findings verified back to sampled comments by substring match. Advisory, sampled.

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

42 valuable / 18 redundant across 200 sampled comments; 3 shown with locations.

redundant comment · ×3src/OpenClaw.Connection/GatewayConnectionManager.cs:1387

✓ On the Gold path — maintain.

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

D26 · Project Cohesion7.5 / 10Healthy✓ 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 7.5 / 10 · rule-coverage 100% · ceiling Documented

2 of 16 projects flagged as possibly oversized/incoherent.

Split OpenClaw.Shared
Split OpenClaw.Tray.WinUI

What to do

  1. Resolve the 1 Split OpenClaw.Shared finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 Split OpenClaw.Tray.WinUI finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

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

D27 · Navigability8.6 / 10Healthy✓ 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.6 / 10 · rule-coverage 100% · ceiling Documented

58 % of calls cross a namespace and 6 % go through an interface, but 94 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: large — vertical-slice locality expected.

What to do

  1. Improve Navigability — currently 8.6/10. — 58 % of calls cross a namespace and 6 % go through an interface, but 94 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: large — vertical-slice locality 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.

D33 · JS/npm Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether JavaScript/npm dependencies have known published vulnerabilities (CVEs) — the npm ecosystem's biggest risk.

Method: JS/npm CVE scan via trivy fs --scanners vuln over JS manifests (package.json/yarn.lock/pnpm-lock/bun.lockb); 0-10 tight normalizer. NotApplicable without JS manifests. Exhaustive, deterministic.

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

No known-vulnerable JS/npm dependencies.

✓ On the Gold path — maintain.

Detailed fixes: d33_recommendation.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.

D38 · OSV Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — npm and other lockfile ecosystems, parsed natively. Complements D33 (npm via trivy) and D30 (.NET via dotnet).

Method: npm/multi-ecosystem CVE scan via osv-scanner (queries the osv.dev database + parses lockfiles natively: package-lock/yarn/pnpm/bun); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable without a JS lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.

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

No known-vulnerable dependencies (OSV).

✓ On the Gold path — maintain.

Detailed fixes: d38_recommendation.md.

Frontend & cross-cutting dimensions

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

AX10 · Code composition9.9 / 10Exemplary✓ 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).
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.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.

Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.

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.6 / 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.

  • `IGatewayConnectionManager` declares 16 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IGatewayConnectionManager.cs:10
  • `IOperatorGatewayClient` declares 60 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IOperatorGatewayClient.cs:10
  • `IChatGatewayBridge` declares 18 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IChatGatewayBridge.cs:11

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
C1 · Data Protection3.5 / 10Poor✓ Tool-verified

Other · Security — Whether sensitive data is encrypted at rest and in transit and keys are vaulted.

Method: Roslyn plus filesystem scan: encryption presence (EF ColumnEncryption, key-vault references, HTTPS enforcement) and key-derivation KDF detection. Deterministic.

What to do

  • Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
  • Enforce HTTPS (UseHttpsRedirection / RequireHttpsMetadata) so data in transit is always encrypted.
C4 · Data Retention10.0 / 10Exemplary✓ Tool-verified

Other · Security — Whether data has a defined lifetime — retention periods, TTLs, cleanup jobs (storage limitation).

Method: Roslyn scan: retention/TTL configuration presence in schema; CascadeDelete detected but not scored as retention control. Deterministic, gated by PII presence.

GD1 · Unfinished & placeholder code10.0 / 10Exemplary✓ Tool-verified

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

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

  • A placeholder string (" winnode --command canvas.present --par…") is still in shipped code — typical of generated boilerplate that was never filled in. — Program.cs:840

What to do

  • Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
IC1 · Incompleteness & stubs7.0 / 10Healthy✓ 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.

  • `RollbackAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — SetupPipeline.cs:14
  • `CanSkip` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — SetupPipeline.cs:15
  • `CanPresent` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — ICanPresentEvaluator.cs:21
  • `NullLogger` has 4 unfinished members out of 4 — a scaffolded type that was never implemented. — IOpenClawLogger.cs:24
  • `Info` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — IOpenClawLogger.cs:27
  • `Debug` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×2) — IOpenClawLogger.cs:28, SetupWizardWindow.cs:962
  • `Warn` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — IOpenClawLogger.cs:29
  • `Error` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — IOpenClawLogger.cs:30
  • `NullA2UITelemetry` has 4 unfinished members out of 4 — a scaffolded type that was never implemented. — IA2UITelemetry.cs:27
  • `Push` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — IA2UITelemetry.cs:31
  • `Action` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — IA2UITelemetry.cs:32
  • `UnknownComponent` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — IA2UITelemetry.cs:33
  • `MediaBlocked` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — IA2UITelemetry.cs:34
  • A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers). (×2) — App.xaml.cs:2424, TrayMenuStateBuilder.cs:305

What to do

  • Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
  • Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
M1 · Documentation (README)8.1 / 10Healthy✓ 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 README to the 15 of 16 project(s) that lack one — worth up to 1.9 pts.
M2 · Architecture documentation5.0 / 10Fair✓ 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.

What to do

  • Start an ADR log (docs/adr/) recording significant decisions and their rationale.
M3 · Folder & project structure10.0 / 10Exemplary✓ 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.

M4 · Documentation accuracy10.0 / 10Exemplary◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

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.

P2 · Observability0.0 / 10Critical✓ 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.

  • No ILogger/Serilog usage found — production issues will be hard to diagnose.

What to do

  • Adopt ILogger (or Serilog) and log at meaningful points across the projects.
  • Consider OpenTelemetry tracing/metrics and a health-check endpoint for operability.
P3 · Security & performance tooling7.0 / 10Healthy✓ 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.

What to do

  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback2.0 / 10Critical✓ 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.

  • No Helm/Kubernetes/compose manifests or pipeline deploy stage found — releases appear manual, which is slower and riskier to reverse.

What to do

  • Automate deployment (Helm/Kubernetes manifests or a pipeline deploy stage) so releases are repeatable and reversible.
P6 · Release Hygiene8.0 / 10Healthy✓ 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.

  • A changelog exists but has few versioned entries — keep it current with each release.

What to do

  • Keep the changelog current — add a versioned entry (Keep-a-Changelog ## [x.y.z]) for each release so the history isn't a stub.
PF1 · Benchmark discipline6.0 / 10Fair✓ 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 hygiene6.2 / 10Fair✓ 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 38 use(s) across 101,257 production line(s) (~0.4/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.
PF3 · Async & latency hygiene6.0 / 10Fair✓ 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.

  • 6 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock in a consumer with a synchronization context.

What to do

  • Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult() in library code.
X1 · Async correctness7.6 / 10Healthy✓ 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.

  • Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Make the caller `async` and `await` instead. (×6) — App.xaml.cs:1643, OpenClawChatCoordinator.cs:81, OpenClawChatCoordinator.cs:93, …

What to do

  • Sync-over-async (deadlock risk)
X2 · Cancellation propagation5.4 / 10Fair✓ 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 95/400 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) — Program.cs:24, Program.cs:148, GatewayConnectionManager.cs:105, …

What to do

  • Thread a CancellationToken through async methods so work stops promptly on cancellation.
X3 · Exception handling7.2 / 10Healthy✓ 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. (×25) — WizardPage.xaml.cs:618, WizardPage.xaml.cs:629, WizardPage.xaml.cs:631, …

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 types6.9 / 10Fair✓ 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.

  • 6/9 projects enable <Nullable>enable</Nullable>. NRTs catch a whole class of null-deref bugs at compile time.
  • ~0.8 `!` 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 `!`.

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 Health68%Fair — gated by D1, D2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture94%ExemplaryStrongest area.
Maturity79%HealthySolid.
Readiness48%Poor — gated by P2, P4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security66%Fair — gated by D36, C1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance60%FairAcceptable, with room to improve.
Not included — 38 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — no DI registrations detected
  • AX2 Stateful singletons — no singleton implementations detected
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • C2 Access Controls — No access-control surface detected in the analyzed source — no web/app surface to authorize (no HTTP API or web-UI project) and no authorization code at all (no [Authorize]/policies, no imperative guard methods). Access control is therefore N/A here — this is a library/CLI, which is authorized by its CALLER, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — Repo shows no audit-logging mechanism (IAuditable, an immutable audit log, an EF SaveChanges interceptor) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
  • C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
  • D11 Test Reliability — No tests discovered
  • D16 Bus Factor — single-maintainer — knowledge-concentration (bus factor) risk
  • D23 Boundary Type-Coupling — Bounded contexts not declared
  • D25 ADR Conformance — no ADRs to check
  • D30 Dependency Vulnerabilities — Not applicable
  • D31 IaC & Container Security — Not applicable
  • D32 Data Compliance (PII/GDPR) — Not applicable
  • D34 Knowledge Freshness — early-stage repository — too little history to judge knowledge freshness
  • D35 Change Coupling — no production change history to mine for change-coupling
  • D7 Architectural Integrity — No checkable ADRs to assess
  • D8 Code Coverage — Coverage not measured
  • DM1 Domain Modelling — not run — only 1/3 markers (18 value object(s))
  • ED1 Event-Driven — not run — 0/3 markers found
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not run — 0/3 markers found
  • P12 CI test-gate honesty — no data
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
  • P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
  • 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
  • S1 Web-Security Posture — No web surface detected in the analyzed source — no HTTP API or web-UI project (no controllers/minimal-API endpoints, no Razor/Blazor views) and no web middleware (HTTPS redirection, HSTS, security headers, cookies). Transport security, security headers, secure cookies, CSRF/input-validation and middleware-order controls are therefore N/A here — this is a library/CLI/worker, not a web app. Crypto hygiene was still checked and found nothing to flag. If this codebase becomes web-facing, the dimension reactivates automatically.
  • X6 Hand-rolled structured-format parsing — no data
  • X7 Silent fallback defaults — no data

Appendix A — Findings (grouped)

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

Issue — 35 finding(s)
D17 · Explicit Debt · EmptyCatchBlock · ×26
  • EmptyCatchBlock src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:618 — empty catch block
  • EmptyCatchBlock src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:629 — empty catch block
  • EmptyCatchBlock src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:631 — empty catch block
  • EmptyCatchBlock src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:773 — empty catch block
  • EmptyCatchBlock src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:805 — empty catch block
  • EmptyCatchBlock src/OpenClaw.SetupEngine.UI/WizardConsoleTail.cs:131 — empty catch block
  • EmptyCatchBlock src/OpenClaw.SetupEngine/SetupDiagnostics.cs:8 — empty catch block
  • EmptyCatchBlock src/OpenClaw.SetupEngine/SetupWizardRunner.cs:169 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Shared/ExecApprovals/ExecApprovalsStore.cs:220 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Shared/ExecApprovals/ExecApprovalsStore.cs:225 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Shared/ExecApprovals/ExecApprovalsStore.cs:310 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Shared/Models.cs:1926 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/A2UI/Hosting/A2UIRouter.cs:90 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/A2UI/Hosting/SurfaceHost.cs:286 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/A2UI/Rendering/IComponentRenderer.cs:132 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/A2UI/Theming/A2UITheme.cs:97 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/App.xaml.cs:284 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2196 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2208 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2289 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml.cs:764 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml.cs:852 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/Services/GlobalHotkeyService.cs:350 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/Services/WslCommandRunner.cs:160 — empty catch block
  • EmptyCatchBlock src/OpenClaw.Tray.WinUI/Services/WslCommandRunner.cs:165 — empty catch block
  • + 1 more in this group — see findings.md.
D10 · Test Quality · No assertions · ×9
  • No assertions: Dispose_IsIdempotent tests/OpenClaw.Connection.Tests/NodeConnectorTests.cs:132 — Test method has no assertions — it may not test anything.
  • No assertions: Run_NoCallbacks_ExceptionIsSwallowedCleanly tests/OpenClaw.Shared.Tests/AsyncEventHandlerGuardTests.cs:184 — Test method has no assertions — it may not test anything.
  • No assertions: Normalize_LegacyPath_Unaffected tests/OpenClaw.Shared.Tests/ExecApprovalV2NormalizationTests.cs:374 — Test method has no assertions — it may not test anything.
  • No assertions: Unwrap_BareCommand_NoEnvPrefix_NotCalled tests/OpenClaw.Shared.Tests/ExecEnvInvocationUnwrapperTests.cs:20 — Test method has no assertions — it may not test anything.
  • No assertions: Dispose_IsIdempotent tests/OpenClaw.Shared.Tests/McpHttpServerTests.cs:272 — Test method has no assertions — it may not test anything.
  • No assertions: RaiseStatusChanged_WithNoSubscribers_DoesNotThrow tests/OpenClaw.Shared.Tests/WebSocketClientBaseTests.cs:179 — Test method has no assertions — it may not test anything.
  • No assertions: ForeignObject_Inert_NoExternalFetch tests/OpenClaw.Tray.UITests/A2UISvgTests.cs:123 — Test method has no assertions — it may not test anything.
  • No assertions: ExternalReferences_Inert_NoNetworkIo tests/OpenClaw.Tray.UITests/A2UISvgTests.cs:143 — Test method has no assertions — it may not test anything.
  • No assertions: Xxe_DoctypeStrippedPrePass_NoFileRead tests/OpenClaw.Tray.UITests/A2UISvgTests.cs:160 — Test method has no assertions — it may not test anything.
Warning — 537 finding(s)
D3 · God Classes · FileTooLong · ×28
  • FileTooLong: OpenClaw.Connection/GatewayConnectionManager.cs src/OpenClaw.Connection/GatewayConnectionManager.cs:0 — FileTooLong — 1135 lines, 0 methods.
  • FileTooLong: Pages/WizardPage.xaml.cs src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:0 — FileTooLong — 519 lines, 0 methods.
  • FileTooLong: OpenClaw.SetupEngine/SetupSteps.cs src/OpenClaw.SetupEngine/SetupSteps.cs:0 — FileTooLong — 1670 lines, 0 methods.
  • FileTooLong: Md4c/Md4cEntity.cs src/OpenClaw.Shared/Markdown/Md4c/Md4cEntity.cs:0 — FileTooLong — 2149 lines, 0 methods.
  • FileTooLong: Md4c/Md4cParser.Block.cs src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:0 — FileTooLong — 1175 lines, 0 methods.
  • FileTooLong: Md4c/Md4cParser.Inline.cs src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:0 — FileTooLong — 1838 lines, 0 methods.
  • FileTooLong: Md4c/Md4cUnicode.cs src/OpenClaw.Shared/Markdown/Md4c/Md4cUnicode.cs:0 — FileTooLong — 550 lines, 0 methods.
  • FileTooLong: OpenClaw.Shared/Models.cs src/OpenClaw.Shared/Models.cs:0 — FileTooLong — 1368 lines, 0 methods.
  • FileTooLong: OpenClaw.Shared/OpenClawGatewayClient.cs src/OpenClaw.Shared/OpenClawGatewayClient.cs:0 — FileTooLong — 2320 lines, 0 methods.
  • FileTooLong: OpenClaw.Shared/WindowsNodeClient.cs src/OpenClaw.Shared/WindowsNodeClient.cs:0 — FileTooLong — 688 lines, 0 methods.
  • FileTooLong: OpenClaw.Tray.WinUI/App.xaml.cs src/OpenClaw.Tray.WinUI/App.xaml.cs:0 — FileTooLong — 2149 lines, 0 methods.
  • FileTooLong: Chat/OpenClawChatDataProvider.cs src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:0 — FileTooLong — 2301 lines, 0 methods.
  • FileTooLong: Chat/OpenClawChatTimeline.cs src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:0 — FileTooLong — 1363 lines, 0 methods.
  • FileTooLong: Chat/OpenClawComposer.cs src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs:0 — FileTooLong — 584 lines, 0 methods.
  • FileTooLong: Controls/SchemaConfigEditor.xaml.cs src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:0 — FileTooLong — 604 lines, 0 methods.
  • FileTooLong: Pages/ChannelsPage.xaml.cs src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:0 — FileTooLong — 1246 lines, 0 methods.
  • FileTooLong: Pages/ChatPage.xaml.cs src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml.cs:0 — FileTooLong — 524 lines, 0 methods.
  • FileTooLong: Pages/ConfigPage.xaml.cs src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:0 — FileTooLong — 928 lines, 0 methods.
  • FileTooLong: Pages/ConnectionPage.xaml.cs src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:0 — FileTooLong — 1909 lines, 0 methods.
  • FileTooLong: Pages/CronPage.xaml.cs src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:0 — FileTooLong — 1057 lines, 0 methods.
  • FileTooLong: Pages/PermissionsPage.xaml.cs src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml.cs:0 — FileTooLong — 501 lines, 0 methods.
  • FileTooLong: Pages/VoiceSettingsPage.xaml.cs src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml.cs:0 — FileTooLong — 533 lines, 0 methods.
  • FileTooLong: Services/NodeService.cs src/OpenClaw.Tray.WinUI/Services/NodeService.cs:0 — FileTooLong — 1030 lines, 0 methods.
  • FileTooLong: Services/TrayMenuStateBuilder.cs src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:0 — FileTooLong — 878 lines, 0 methods.
  • FileTooLong: Windows/HubWindow.xaml.cs src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:0 — FileTooLong — 667 lines, 0 methods.
  • + 3 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×27
  • TooManyMethods: GatewayConnectionManager src/OpenClaw.Connection/GatewayConnectionManager.cs:0 — TooManyMethods — 1105 lines, 51 methods.
  • TooManyMethods: WizardPage src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:0 — TooManyMethods — 508 lines, 42 methods.
  • TooManyMethods: Md4cParser src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:0 — TooManyMethods — 3404 lines, 134 methods.
  • TooManyMethods: OpenClawGatewayClient src/OpenClaw.Shared/OpenClawGatewayClient.cs:0 — TooManyMethods — 2308 lines, 164 methods.
  • TooManyMethods: WindowsNodeClient src/OpenClaw.Shared/WindowsNodeClient.cs:0 — TooManyMethods — 678 lines, 37 methods.
  • TooManyMethods: App src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:0 — TooManyMethods — 2437 lines, 160 methods.
  • TooManyMethods: OpenClawChatDataProvider src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:0 — TooManyMethods — 2291 lines, 126 methods.
  • TooManyMethods: SchemaConfigEditor src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:0 — TooManyMethods — 585 lines, 31 methods.
  • TooManyMethods: ChannelsPage src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:0 — TooManyMethods — 1226 lines, 45 methods.
  • TooManyMethods: ChatPage src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml.cs:0 — TooManyMethods — 504 lines, 34 methods.
  • TooManyMethods: ConfigPage src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:0 — TooManyMethods — 908 lines, 66 methods.
  • TooManyMethods: ConnectionPage src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:0 — TooManyMethods — 1894 lines, 112 methods.
  • TooManyMethods: CronPage src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:0 — TooManyMethods — 1041 lines, 53 methods.
  • TooManyMethods: DebugPage src/OpenClaw.Tray.WinUI/Pages/DebugPage.xaml.cs:0 — TooManyMethods — 347 lines, 44 methods.
  • TooManyMethods: InstancesPage src/OpenClaw.Tray.WinUI/Pages/InstancesPage.xaml.cs:0 — TooManyMethods — 435 lines, 33 methods.
  • TooManyMethods: PermissionsPage src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml.cs:0 — TooManyMethods — 485 lines, 39 methods.
  • TooManyMethods: SandboxPage src/OpenClaw.Tray.WinUI/Pages/SandboxPage.xaml.cs:0 — TooManyMethods — 412 lines, 36 methods.
  • TooManyMethods: VoiceSettingsPage src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml.cs:0 — TooManyMethods — 520 lines, 45 methods.
  • TooManyMethods: GatewayService src/OpenClaw.Tray.WinUI/Services/GatewayService.cs:0 — TooManyMethods — 290 lines, 32 methods.
  • TooManyMethods: NodeService src/OpenClaw.Tray.WinUI/Services/NodeService.cs:0 — TooManyMethods — 1005 lines, 73 methods.
  • TooManyMethods: CanvasWindow src/OpenClaw.Tray.WinUI/Windows/CanvasWindow.xaml.cs:0 — TooManyMethods — 433 lines, 40 methods.
  • TooManyMethods: ChatWindow src/OpenClaw.Tray.WinUI/Windows/ChatWindow.xaml.cs:0 — TooManyMethods — 436 lines, 47 methods.
  • TooManyMethods: HubWindow src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:0 — TooManyMethods — 654 lines, 58 methods.
  • TooManyMethods: TrayMenuWindow src/OpenClaw.Tray.WinUI/Windows/TrayMenuWindow.xaml.cs:0 — TooManyMethods — 768 lines, 59 methods.
  • TooManyMethods: Factories src/OpenClawTray.FunctionalUI/FunctionalUI.cs:0 — TooManyMethods — 57 lines, 36 methods.
  • + 2 more in this group — see findings.md.
D6 · Cohesion (LCOM4) · Low cohesion · ×17
  • Low cohesion: ExecApprovalV2Result (LCOM4 10) src/OpenClaw.Shared/ExecApprovals/ExecApprovalV2Result.cs:23 — ExecApprovalV2Result's methods form 10 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: NodeCapabilityBase (LCOM4 10) src/OpenClaw.Shared/NodeCapabilities.cs:81 — NodeCapabilityBase's methods form 10 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: SetupWindow (LCOM4 9) src/OpenClaw.SetupEngine.UI/SetupWindow.xaml.cs:11 — SetupWindow's methods form 9 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: PermissionsPage (LCOM4 8) src/OpenClaw.SetupEngine.UI/Pages/PermissionsPage.xaml.cs:14 — PermissionsPage's methods form 8 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: Md4cParser (LCOM4 8) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.cs:18 — Md4cParser's methods form 8 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: OpenClawChatDataProvider (LCOM4 8) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:62 — OpenClawChatDataProvider's methods form 8 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: ChatWindow (LCOM4 8) src/OpenClaw.Tray.WinUI/Windows/ChatWindow.xaml.cs:22 — ChatWindow's methods form 8 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: MountedFunctionalChat (LCOM4 6) src/OpenClaw.Tray.WinUI/Chat/FunctionalChatHostExtensions.cs:79 — MountedFunctionalChat's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: HubWindow (LCOM4 6) src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:16 — HubWindow's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: CanvasWindow (LCOM4 5) src/OpenClaw.Tray.WinUI/Windows/CanvasWindow.xaml.cs:26 — CanvasWindow'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: RenderContext (LCOM4 4) src/OpenClaw.Tray.WinUI/A2UI/Rendering/IComponentRenderer.cs:37 — RenderContext'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: ConnectionPage (LCOM4 4) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:30 — ConnectionPage'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: DebugPage (LCOM4 4) src/OpenClaw.Tray.WinUI/Pages/DebugPage.xaml.cs:39 — DebugPage'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: PermissionsPage (LCOM4 4) src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml.cs:19 — PermissionsPage'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: DeviceStatusProvider (LCOM4 4) src/OpenClaw.Tray.WinUI/Services/DeviceStatusProvider.cs:18 — DeviceStatusProvider'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: A2UICanvasWindow (LCOM4 4) src/OpenClaw.Tray.WinUI/Windows/A2UICanvasWindow.xaml.cs:30 — A2UICanvasWindow'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: TrayMenuWindow (LCOM4 4) src/OpenClaw.Tray.WinUI/Windows/TrayMenuWindow.xaml.cs:22 — TrayMenuWindow'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.
D3 · God Classes · ClassTooLong · ×12
  • ClassTooLong: SystemCapability src/OpenClaw.Shared/Capabilities/SystemCapability.cs:0 — ClassTooLong — 433 lines, 23 methods.
  • ClassTooLong: ChatMarkdownAstBuilder src/OpenClaw.Shared/Markdown/ChatMarkdownAstBuilder.cs:0 — ClassTooLong — 433 lines, 15 methods.
  • ClassTooLong: Md4cEntity src/OpenClaw.Shared/Markdown/Md4c/Md4cEntity.cs:0 — ClassTooLong — 2146 lines, 2 methods.
  • ClassTooLong: Md4cUnicode src/OpenClaw.Shared/Markdown/Md4c/Md4cUnicode.cs:0 — ClassTooLong — 546 lines, 20 methods.
  • ClassTooLong: OpenClawChatRoot src/OpenClaw.Tray.WinUI/Chat/OpenClawChatRoot.cs:0 — ClassTooLong — 469 lines, 14 methods.
  • ClassTooLong: OpenClawChatTimeline src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:0 — ClassTooLong — 1328 lines, 13 methods.
  • ClassTooLong: OpenClawComposer src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs:0 — ClassTooLong — 538 lines, 3 methods.
  • ClassTooLong: CommandCenterTextHelper src/OpenClaw.Tray.WinUI/Helpers/CommandCenterTextHelper.cs:0 — ClassTooLong — 417 lines, 27 methods.
  • ClassTooLong: ConnectionPagePlan src/OpenClaw.Tray.WinUI/Pages/ConnectionPagePlan.cs:0 — ClassTooLong — 409 lines, 18 methods.
  • ClassTooLong: TrayMenuStateBuilder src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:0 — ClassTooLong — 858 lines, 20 methods.
  • ClassTooLong: SetupWizardWindow src/OpenClaw.Tray.WinUI/Windows/SetupWizardWindow.cs:0 — ClassTooLong — 591 lines, 22 methods.
  • ClassTooLong: CliRunner src/OpenClaw.WinNode.Cli/Program.cs:0 — ClassTooLong — 401 lines, 17 methods.
D19 · Documentation Quality · Low XML-doc coverage · ×9
  • Low XML-doc coverage: OpenClaw.Chat src/OpenClaw.Chat/OpenClaw.Chat.csproj — OpenClaw.Chat: 6 % XML-doc coverage (4/69).
  • Low XML-doc coverage: OpenClaw.Cli src/OpenClaw.Cli/OpenClaw.Cli.csproj — OpenClaw.Cli: 0 % XML-doc coverage (0/9).
  • Low XML-doc coverage: OpenClaw.Connection src/OpenClaw.Connection/OpenClaw.Connection.csproj — OpenClaw.Connection: 29 % XML-doc coverage (59/202).
  • Low XML-doc coverage: OpenClaw.SetupEngine.UI src/OpenClaw.SetupEngine.UI/OpenClaw.SetupEngine.UI.csproj — OpenClaw.SetupEngine.UI: 5 % XML-doc coverage (2/42).
  • Low XML-doc coverage: OpenClaw.SetupEngine src/OpenClaw.SetupEngine/OpenClaw.SetupEngine.csproj — OpenClaw.SetupEngine: 3 % XML-doc coverage (10/332).
  • Low XML-doc coverage: OpenClaw.Shared src/OpenClaw.Shared/OpenClaw.Shared.csproj — OpenClaw.Shared: 25 % XML-doc coverage (472/1857).
  • Low XML-doc coverage: OpenClaw.Tray.WinUI src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj — OpenClaw.Tray.WinUI: 21 % XML-doc coverage (322/1570).
  • Low XML-doc coverage: OpenClaw.WinNode.Cli src/OpenClaw.WinNode.Cli/OpenClaw.WinNode.Cli.csproj — OpenClaw.WinNode.Cli: 0 % XML-doc coverage (0/11).
  • Low XML-doc coverage: OpenClawTray.FunctionalUI src/OpenClawTray.FunctionalUI/OpenClawTray.FunctionalUI.csproj — OpenClawTray.FunctionalUI: 0 % XML-doc coverage (1/245).
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×9
  • Duplicated block (5 lines × 2) src/OpenClaw.Shared/HttpUrlRiskEvaluator.cs:119 — src/OpenClaw.Shared/HttpUrlRiskEvaluator.cs:119-123 | src/OpenClaw.Shared/HttpUrlRiskEvaluator.cs:138-141
  • Duplicated block (5 lines × 2) src/OpenClaw.Shared/HttpUrlRiskEvaluator.cs:132 — src/OpenClaw.Shared/HttpUrlRiskEvaluator.cs:132-136 | src/OpenClaw.Shared/HttpUrlRiskEvaluator.cs:140-144
  • Duplicated block (5 lines × 2) src/OpenClaw.Shared/Models.cs:1897 — src/OpenClaw.Shared/Models.cs:1897-1901 | src/OpenClaw.Shared/Models.cs:1919-1922
  • Duplicated block (5 lines × 2) src/OpenClaw.Tray.WinUI/A2UI/Hosting/A2UIRouter.cs:195 — src/OpenClaw.Tray.WinUI/A2UI/Hosting/A2UIRouter.cs:195-199 | src/OpenClaw.Tray.WinUI/A2UI/Hosting/SurfaceHost.cs:275-279
  • Duplicated block (5 lines × 2) src/OpenClaw.Tray.WinUI/A2UI/Theming/A2UITheme.cs:80 — src/OpenClaw.Tray.WinUI/A2UI/Theming/A2UITheme.cs:80-84 | src/OpenClaw.Tray.WinUI/A2UI/Theming/A2UITheme.cs:87-91
  • Duplicated block (5 lines × 2) src/OpenClaw.Tray.WinUI/Chat/Markdown/ChatMarkdownRenderer.cs:452 — src/OpenClaw.Tray.WinUI/Chat/Markdown/ChatMarkdownRenderer.cs:452-456 | src/OpenClaw.Tray.WinUI/Chat/Markdown/ChatMarkdownRenderer.cs:459-463
  • Duplicated block (5 lines × 2) src/OpenClaw.Tray.WinUI/Pages/AgentEventsPage.xaml.cs:96 — src/OpenClaw.Tray.WinUI/Pages/AgentEventsPage.xaml.cs:96-100 | src/OpenClaw.Tray.WinUI/Pages/AgentEventsPage.xaml.cs:106-110
  • Duplicated block (5 lines × 2) src/OpenClaw.Tray.WinUI/Windows/ConnectionStatusWindow.xaml.cs:468 — src/OpenClaw.Tray.WinUI/Windows/ConnectionStatusWindow.xaml.cs:468-472 | src/OpenClaw.Tray.WinUI/Windows/ConnectionStatusWindow.xaml.cs:473-477
  • Duplicated block (5 lines × 2) src/OpenClawTray.FunctionalUI/FunctionalUI.cs:134 — src/OpenClawTray.FunctionalUI/FunctionalUI.cs:134-138 | src/OpenClawTray.FunctionalUI/FunctionalUI.cs:781-785
D17 · Explicit Debt · TodoComment · ×6
  • TodoComment src/OpenClaw.SetupEngine/SetupContext.cs:241 — // TODO: Wire OperatorScopes/NodeScopes/CliScopes into pairing requests — 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/OpenClaw.Shared/Mxc/MxcAvailability.cs:27 — // TODO: This is all temporary and a moment in time; feature gate this correctly ASAP. — 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/OpenClaw.Tray.WinUI/Chat/OpenClawChatRoot.cs:303 — // TODO: wire to a real agent-name source (agents.list response or — 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/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:970 — // TODO: Restore this delete action once the chat provider can remove — 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/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:976 — // () => { /* TODO: wire to provider */ AckAction(entryId, "delete"); }).VAlign(VerticalAlignment.Center), — 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/OpenClaw.Tray.WinUI/Services/NodeService.cs:124 — // TODO: when the port becomes user-configurable (see docs/MCP_MODE.md — 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.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×6
  • Duplicated block (10 lines × 2) src/OpenClaw.SetupEngine/SetupContext.cs:306 — src/OpenClaw.SetupEngine/SetupContext.cs:306-315 | src/OpenClaw.Tray.WinUI/Services/SetupExistingGatewayClassifier.cs:155-162
  • Duplicated block (10 lines × 2) src/OpenClaw.SetupEngine/SetupSteps.cs:1670 — src/OpenClaw.SetupEngine/SetupSteps.cs:1670-1679 | src/OpenClaw.SetupEngine/SetupSteps.cs:2092-2100
  • Duplicated block (10 lines × 2) src/OpenClaw.SetupEngine/SetupSteps.cs:2097 — src/OpenClaw.SetupEngine/SetupSteps.cs:2097-2105 | src/OpenClaw.SetupEngine/SetupSteps.cs:2430-2439
  • Duplicated block (10 lines × 2) src/OpenClaw.Shared/Audio/PiperVoiceManager.cs:246 — src/OpenClaw.Shared/Audio/PiperVoiceManager.cs:246-255 | src/OpenClaw.Shared/Audio/WhisperModelManager.cs:177-186
  • Duplicated block (10 lines × 2) src/OpenClaw.Shared/Capabilities/CanvasCapability.cs:498 — src/OpenClaw.Shared/Capabilities/CanvasCapability.cs:498-507 | src/OpenClaw.Shared/Capabilities/CanvasCapability.cs:527-534
  • Duplicated block (10 lines × 2) src/OpenClaw.WinNode.Cli/Program.cs:815 — src/OpenClaw.WinNode.Cli/Program.cs:815-824 | src/OpenClaw.WinNode.Cli/Program.cs:831-840
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×6
  • Duplicated block (7 lines × 2) src/OpenClaw.SetupEngine/SetupSteps.cs:1726 — src/OpenClaw.SetupEngine/SetupSteps.cs:1726-1732 | src/OpenClaw.SetupEngine/SetupSteps.cs:1756-1762
  • Duplicated block (7 lines × 2) src/OpenClaw.SetupEngine/SetupSteps.cs:1916 — src/OpenClaw.SetupEngine/SetupSteps.cs:1916-1922 | src/OpenClaw.SetupEngine/SetupSteps.cs:2340-2346
  • Duplicated block (7 lines × 2) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1300 — src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1300-1305 | src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1321-1327
  • Duplicated block (7 lines × 2) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:717 — src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:717-723 | src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:915-921
  • Duplicated block (7 lines × 2) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:3451 — src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:3451-3457 | src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:3460-3466
  • Duplicated block (7 lines × 2) src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml.cs:249 — src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml.cs:249-255 | src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml.cs:673-679
D17 · Explicit Debt · BarePragmaDisable · ×4
  • BarePragmaDisable tests/OpenClaw.Connection.Tests/NodePairAutoApproveTests.cs:584 — #pragma warning disable CS0067
  • BarePragmaDisable tests/OpenClaw.Connection.Tests/OperatorScopeHelperTests.cs:151 — #pragma warning disable CS0067
  • BarePragmaDisable tests/OpenClaw.Tray.Tests/Connection/ConnectionManagerWindowsNodeConnectorTests.cs:212 — #pragma warning disable CS0067
  • BarePragmaDisable tests/OpenClaw.Tray.Tests/OnboardingChatBootstrapperTests.cs:85 — #pragma warning disable CS0067
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×4
  • Duplicated block (11 lines × 2) src/OpenClaw.Shared/Mxc/MxcConfigBuilder.cs:289 — src/OpenClaw.Shared/Mxc/MxcConfigBuilder.cs:289-299 | src/OpenClaw.Shared/Mxc/MxcPolicyBuilder.cs:125-135
  • Duplicated block (11 lines × 2) src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs:262 — src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs:262-271 | src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs:281-291
  • Duplicated block (11 lines × 2) src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:87 — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:87-97 | src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:1255-1265
  • Duplicated block (11 lines × 2) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1810 — src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1810-1820 | src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1854-1864
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×4
  • Duplicated block (8 lines × 2) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1491 — src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1491-1497 | src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1507-1514
  • Duplicated block (8 lines × 2) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1670 — src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1670-1677 | src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1728-1735
  • Duplicated block (8 lines × 2) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2165 — src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2165-2172 | src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2187-2193
  • Duplicated block (8 lines × 2) src/OpenClaw.Tray.WinUI/Services/OnboardingChatBootstrapper.cs:177 — src/OpenClaw.Tray.WinUI/Services/OnboardingChatBootstrapper.cs:177-184 | src/OpenClaw.Tray.WinUI/Services/OnboardingChatBootstrapper.cs:193-200
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×3
  • Duplicated block (15 lines × 2) src/OpenClaw.Connection/GatewayConnectionManager.cs:1841 — src/OpenClaw.Connection/GatewayConnectionManager.cs:1841-1855 | src/OpenClaw.Shared/Mcp/McpHttpServer.cs:530-544
  • Duplicated block (15 lines × 2) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1568 — src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1568-1582 | src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1624-1638
  • Duplicated block (15 lines × 2) src/OpenClaw.Shared/Mcp/McpAuthToken.cs:82 — src/OpenClaw.Shared/Mcp/McpAuthToken.cs:82-96 | src/OpenClaw.Shared/Mcp/McpAuthToken.cs:122-132
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×3
  • Duplicated block (14 lines × 2) src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:242 — src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:242-255 | src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:261-274
  • Duplicated block (14 lines × 2) src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:280 — src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:280-293 | src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:299-312
  • Duplicated block (14 lines × 2) src/OpenClaw.Tray.WinUI/App.xaml.cs:1950 — src/OpenClaw.Tray.WinUI/App.xaml.cs:1950-1963 | src/OpenClaw.Tray.WinUI/Services/WslGatewayKeepAliveService.cs:186-199
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×3
  • Duplicated block (13 lines × 2) src/OpenClaw.SetupEngine/SetupSteps.cs:2016 — src/OpenClaw.SetupEngine/SetupSteps.cs:2016-2028 | src/OpenClaw.SetupEngine/SetupSteps.cs:2398-2410
  • Duplicated block (13 lines × 2) src/OpenClaw.Tray.WinUI/App.xaml.cs:1902 — src/OpenClaw.Tray.WinUI/App.xaml.cs:1902-1913 | src/OpenClaw.Tray.WinUI/Services/WslGatewayKeepAliveService.cs:138-150
  • Duplicated block (13 lines × 2) src/OpenClaw.Tray.WinUI/App.xaml.cs:1930 — src/OpenClaw.Tray.WinUI/App.xaml.cs:1930-1941 | src/OpenClaw.Tray.WinUI/Services/WslGatewayKeepAliveService.cs:166-178
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×3
  • Duplicated block (12 lines × 2) src/OpenClaw.SetupEngine/SetupSteps.cs:2479 — src/OpenClaw.SetupEngine/SetupSteps.cs:2479-2490 | src/OpenClaw.SetupEngine/SetupSteps.cs:2545-2556
  • Duplicated block (12 lines × 2) src/OpenClaw.Tray.WinUI/App.xaml.cs:1871 — src/OpenClaw.Tray.WinUI/App.xaml.cs:1871-1882 | src/OpenClaw.Tray.WinUI/Services/WslGatewayKeepAliveService.cs:107-118
  • Duplicated block (12 lines × 2) src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml.cs:795 — src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml.cs:795-806 | src/OpenClaw.Tray.WinUI/Windows/ChatWindow.xaml.cs:592-603
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×3
  • Duplicated block (9 lines × 2) src/OpenClaw.Shared/ExecShellWrapperParser.cs:91 — src/OpenClaw.Shared/ExecShellWrapperParser.cs:91-99 | src/OpenClaw.Shared/ExecShellWrapperParser.cs:111-119
  • Duplicated block (9 lines × 2) src/OpenClaw.Tray.WinUI/App.xaml.cs:1887 — src/OpenClaw.Tray.WinUI/App.xaml.cs:1887-1895 | src/OpenClaw.Tray.WinUI/Services/WslGatewayKeepAliveService.cs:123-131
  • Duplicated block (9 lines × 2) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:1900 — src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:1900-1908 | src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:2017-2025
D17 · Explicit Debt · ObsoleteWithCallers · ×2
  • ObsoleteWithCallers src/OpenClaw.Shared/DeviceIdentity.cs:260 — [Obsolete] SignPayload
  • ObsoleteWithCallers src/OpenClaw.Shared/DeviceIdentity.cs:409 — [Obsolete] BuildDebugPayload
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×2
  • Duplicated block (24 lines × 2) src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml.cs:682 — src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml.cs:682-705 | src/OpenClaw.Tray.WinUI/Windows/ChatWindow.xaml.cs:499-521
  • Duplicated block (24 lines × 2) src/OpenClaw.Tray.WinUI/Services/VoiceService.cs:146 — src/OpenClaw.Tray.WinUI/Services/VoiceService.cs:146-169 | src/OpenClaw.Tray.WinUI/Services/VoiceService.cs:188-210
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×2
  • Duplicated block (16 lines × 2) src/OpenClaw.Tray.WinUI/App.xaml.cs:1852 — src/OpenClaw.Tray.WinUI/App.xaml.cs:1852-1867 | src/OpenClaw.Tray.WinUI/Services/WslGatewayKeepAliveService.cs:88-103
  • Duplicated block (16 lines × 2) src/OpenClaw.Tray.WinUI/App.xaml.cs:2003 — src/OpenClaw.Tray.WinUI/App.xaml.cs:2003-2018 | src/OpenClaw.Tray.WinUI/Services/WslGatewayKeepAliveService.cs:235-250
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×2
  • Duplicated block (6 lines × 2) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2232 — src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2232-2237 | src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2274-2278
  • Duplicated block (6 lines × 2) src/OpenClaw.Tray.WinUI/Services/GatewayNavVisibilityDebouncePolicy.cs:38 — src/OpenClaw.Tray.WinUI/Services/GatewayNavVisibilityDebouncePolicy.cs:38-43 | src/OpenClaw.Tray.WinUI/Services/GatewayNavVisibilityDebouncePolicy.cs:44-49
D1 · Cyclomatic Complexity · OpenClawChatTimeline.Render (cyclomatic 258) · ×1
  • OpenClawChatTimeline.Render (cyclomatic 258) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:434 — OpenClawChatTimeline.Render has cyclomatic complexity 258 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.AnalyzeLine (cyclomatic 169) · ×1
  • Md4cParser.AnalyzeLine (cyclomatic 169) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1357 — Md4cParser.AnalyzeLine has cyclomatic complexity 169 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.CollectMarks (cyclomatic 125) · ×1
  • Md4cParser.CollectMarks (cyclomatic 125) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1432 — Md4cParser.CollectMarks has cyclomatic complexity 125 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.ProcessInlines (cyclomatic 109) · ×1
  • Md4cParser.ProcessInlines (cyclomatic 109) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2666 — Md4cParser.ProcessInlines has cyclomatic complexity 109 (threshold 15).
D1 · Cyclomatic Complexity · CronPage.ParseCronList (cyclomatic 83) · ×1
  • CronPage.ParseCronList (cyclomatic 83) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:570 — CronPage.ParseCronList has cyclomatic complexity 83 (threshold 15).
D1 · Cyclomatic Complexity · DeepLinkHandler.Handle (cyclomatic 79) · ×1
  • DeepLinkHandler.Handle (cyclomatic 79) src/OpenClaw.Tray.WinUI/Services/DeepLinkHandler.cs:54 — DeepLinkHandler.Handle has cyclomatic complexity 79 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.LoadHistoryAsync (cyclomatic 73) · ×1
  • OpenClawChatDataProvider.LoadHistoryAsync (cyclomatic 73) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:451 — OpenClawChatDataProvider.LoadHistoryAsync has cyclomatic complexity 73 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.ResolveLinks (cyclomatic 71) · ×1
  • Md4cParser.ResolveLinks (cyclomatic 71) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1824 — Md4cParser.ResolveLinks has cyclomatic complexity 71 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatRoot.Render (cyclomatic 71) · ×1
  • OpenClawChatRoot.Render (cyclomatic 71) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatRoot.cs:110 — OpenClawChatRoot.Render has cyclomatic complexity 71 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawComposer.Render (cyclomatic 67) · ×1
  • OpenClawComposer.Render (cyclomatic 67) src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs:77 — OpenClawComposer.Render has cyclomatic complexity 67 (threshold 15).
D1 · Cyclomatic Complexity · HttpUrlRiskEvaluator.IsPublicAddress (cyclomatic 65) · ×1
  • HttpUrlRiskEvaluator.IsPublicAddress (cyclomatic 65) src/OpenClaw.Shared/HttpUrlRiskEvaluator.cs:91 — HttpUrlRiskEvaluator.IsPublicAddress has cyclomatic complexity 65 (threshold 15).
D1 · Cyclomatic Complexity · SchemaConfigEditor.ValidateValue (cyclomatic 59) · ×1
  • SchemaConfigEditor.ValidateValue (cyclomatic 59) src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:701 — SchemaConfigEditor.ValidateValue has cyclomatic complexity 59 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.AnalyzePermissiveAutolink (cyclomatic 54) · ×1
  • Md4cParser.AnalyzePermissiveAutolink (cyclomatic 54) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2334 — Md4cParser.AnalyzePermissiveAutolink has cyclomatic complexity 54 (threshold 15).
D1 · Cyclomatic Complexity · App.OnTrayMenuItemClicked (cyclomatic 54) · ×1
  • App.OnTrayMenuItemClicked (cyclomatic 54) src/OpenClaw.Tray.WinUI/App.xaml.cs:911 — App.OnTrayMenuItemClicked has cyclomatic complexity 54 (threshold 15).
D1 · Cyclomatic Complexity · ChatMarkdownRenderer.ContainsBlockMarkdown (cyclomatic 53) · ×1
  • ChatMarkdownRenderer.ContainsBlockMarkdown (cyclomatic 53) src/OpenClaw.Tray.WinUI/Chat/Markdown/ChatMarkdownRenderer.cs:122 — ChatMarkdownRenderer.ContainsBlockMarkdown has cyclomatic complexity 53 (threshold 15).
D1 · Cyclomatic Complexity · IconRenderer.MapName (cyclomatic 51) · ×1
  • IconRenderer.MapName (cyclomatic 51) src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/DisplayRenderers.cs:272 — IconRenderer.MapName has cyclomatic complexity 51 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsHtmlTag (cyclomatic 49) · ×1
  • Md4cParser.IsHtmlTag (cyclomatic 49) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:40 — Md4cParser.IsHtmlTag has cyclomatic complexity 49 (threshold 15).
D1 · Cyclomatic Complexity · App.WireAppCapabilityHandlers (cyclomatic 49) · ×1
  • App.WireAppCapabilityHandlers (cyclomatic 49) src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:21 — App.WireAppCapabilityHandlers has cyclomatic complexity 49 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionPage.ApplyNodeCard (cyclomatic 47) · ×1
  • ConnectionPage.ApplyNodeCard (cyclomatic 47) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:762 — ConnectionPage.ApplyNodeCard has cyclomatic complexity 47 (threshold 15).
D1 · Cyclomatic Complexity · UiRenderer.ApplyModifiers (cyclomatic 44) · ×1
  • UiRenderer.ApplyModifiers (cyclomatic 44) src/OpenClawTray.FunctionalUI/FunctionalUI.cs:1598 — UiRenderer.ApplyModifiers has cyclomatic complexity 44 (threshold 15).
D1 · Cyclomatic Complexity · Program.Main (cyclomatic 42) · ×1
  • Program.Main (cyclomatic 42) src/OpenClaw.SetupEngine/Program.cs:8 — Program.Main has cyclomatic complexity 42 (threshold 15).
D1 · Cyclomatic Complexity · CliRunner.RunAsync (cyclomatic 42) · ×1
  • CliRunner.RunAsync (cyclomatic 42) src/OpenClaw.WinNode.Cli/Program.cs:47 — CliRunner.RunAsync has cyclomatic complexity 42 (threshold 15).
D1 · Cyclomatic Complexity · SetupWizardRunner.RunAsync (cyclomatic 41) · ×1
  • SetupWizardRunner.RunAsync (cyclomatic 41) src/OpenClaw.SetupEngine/SetupWizardRunner.cs:20 — SetupWizardRunner.RunAsync has cyclomatic complexity 41 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsHtmlBlockStartCondition (cyclomatic 40) · ×1
  • Md4cParser.IsHtmlBlockStartCondition (cyclomatic 40) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:971 — Md4cParser.IsHtmlBlockStartCondition has cyclomatic complexity 40 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.HandleKnownResponse (cyclomatic 39) · ×1
  • OpenClawGatewayClient.HandleKnownResponse (cyclomatic 39) src/OpenClaw.Shared/OpenClawGatewayClient.cs:1818 — OpenClawGatewayClient.HandleKnownResponse has cyclomatic complexity 39 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.HandleResponse (cyclomatic 37) · ×1
  • OpenClawGatewayClient.HandleResponse (cyclomatic 37) src/OpenClaw.Shared/OpenClawGatewayClient.cs:1621 — OpenClawGatewayClient.HandleResponse has cyclomatic complexity 37 (threshold 15).
D1 · Cyclomatic Complexity · App.OnLaunchedAsync (cyclomatic 37) · ×1
  • App.OnLaunchedAsync (cyclomatic 37) src/OpenClaw.Tray.WinUI/App.xaml.cs:356 — App.OnLaunchedAsync has cyclomatic complexity 37 (threshold 15).
D1 · Cyclomatic Complexity · ChatMarkdownSanitizer.Sanitize (cyclomatic 37) · ×1
  • ChatMarkdownSanitizer.Sanitize (cyclomatic 37) src/OpenClaw.Tray.WinUI/Chat/ChatMarkdownSanitizer.cs:75 — ChatMarkdownSanitizer.Sanitize has cyclomatic complexity 37 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.OnChatMessageReceived (cyclomatic 36) · ×1
  • OpenClawChatDataProvider.OnChatMessageReceived (cyclomatic 36) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1234 — OpenClawChatDataProvider.OnChatMessageReceived has cyclomatic complexity 36 (threshold 15).
D1 · Cyclomatic Complexity · CronPage.CronToHuman (cyclomatic 34) · ×1
  • CronPage.CronToHuman (cyclomatic 34) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:880 — CronPage.CronToHuman has cyclomatic complexity 34 (threshold 15).
D1 · Cyclomatic Complexity · CronPage.BuildRunEntry (cyclomatic 34) · ×1
  • CronPage.BuildRunEntry (cyclomatic 34) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:1529 — CronPage.BuildRunEntry has cyclomatic complexity 34 (threshold 15).
D1 · Cyclomatic Complexity · TrayMenuStateBuilder.Build (cyclomatic 34) · ×1
  • TrayMenuStateBuilder.Build (cyclomatic 34) src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:40 — TrayMenuStateBuilder.Build has cyclomatic complexity 34 (threshold 15).
D1 · Cyclomatic Complexity · ChannelsPage.BuildStatusPairs (cyclomatic 33) · ×1
  • ChannelsPage.BuildStatusPairs (cyclomatic 33) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1557 — ChannelsPage.BuildStatusPairs has cyclomatic complexity 33 (threshold 15).
D1 · Cyclomatic Complexity · SystemCapability.HandleExecApprovalsSet (cyclomatic 32) · ×1
  • SystemCapability.HandleExecApprovalsSet (cyclomatic 32) src/OpenClaw.Shared/Capabilities/SystemCapability.cs:615 — SystemCapability.HandleExecApprovalsSet has cyclomatic complexity 32 (threshold 15).
D1 · Cyclomatic Complexity · ChatMarkdownAstBuilder.LeaveBlock (cyclomatic 32) · ×1
  • ChatMarkdownAstBuilder.LeaveBlock (cyclomatic 32) src/OpenClaw.Shared/Markdown/ChatMarkdownAstBuilder.cs:256 — ChatMarkdownAstBuilder.LeaveBlock has cyclomatic complexity 32 (threshold 15).
D1 · Cyclomatic Complexity · SystemCapability.HandleRunAsync (cyclomatic 31) · ×1
  • SystemCapability.HandleRunAsync (cyclomatic 31) src/OpenClaw.Shared/Capabilities/SystemCapability.cs:298 — SystemCapability.HandleRunAsync has cyclomatic complexity 31 (threshold 15).
D1 · Cyclomatic Complexity · ChannelsPage.BuildInlineConfigForm (cyclomatic 31) · ×1
  • ChannelsPage.BuildInlineConfigForm (cyclomatic 31) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1242 — ChannelsPage.BuildInlineConfigForm has cyclomatic complexity 31 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionStatusWindow.CreateTimelineParagraph (cyclomatic 31) · ×1
  • ConnectionStatusWindow.CreateTimelineParagraph (cyclomatic 31) src/OpenClaw.Tray.WinUI/Windows/ConnectionStatusWindow.xaml.cs:454 — ConnectionStatusWindow.CreateTimelineParagraph has cyclomatic complexity 31 (threshold 15).
D1 · Cyclomatic Complexity · GatewayConnectionManager.ConnectCoreAsync (cyclomatic 30) · ×1
  • GatewayConnectionManager.ConnectCoreAsync (cyclomatic 30) src/OpenClaw.Connection/GatewayConnectionManager.cs:144 — GatewayConnectionManager.ConnectCoreAsync has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · WizardPage.ApplyPayloadAsync (cyclomatic 30) · ×1
  • WizardPage.ApplyPayloadAsync (cyclomatic 30) src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:158 — WizardPage.ApplyPayloadAsync has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsCodeSpan (cyclomatic 30) · ×1
  • Md4cParser.IsCodeSpan (cyclomatic 30) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1208 — Md4cParser.IsCodeSpan has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · CommandCenterDiagnostics.BuildNodeWarnings (cyclomatic 30) · ×1
  • CommandCenterDiagnostics.BuildNodeWarnings (cyclomatic 30) src/OpenClaw.Shared/Models.cs:1357 — CommandCenterDiagnostics.BuildNodeWarnings has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionPage.DoDirectConnectFromAddFormAsync (cyclomatic 30) · ×1
  • ConnectionPage.DoDirectConnectFromAddFormAsync (cyclomatic 30) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:2228 — ConnectionPage.DoDirectConnectFromAddFormAsync has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · CommandCenterStateBuilder.Build (cyclomatic 30) · ×1
  • CommandCenterStateBuilder.Build (cyclomatic 30) src/OpenClaw.Tray.WinUI/Services/CommandCenterStateBuilder.cs:20 — CommandCenterStateBuilder.Build has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.HandleRequestError (cyclomatic 29) · ×1
  • OpenClawGatewayClient.HandleRequestError (cyclomatic 29) src/OpenClaw.Shared/OpenClawGatewayClient.cs:1947 — OpenClawGatewayClient.HandleRequestError has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · HubWindow.TagToPageType (cyclomatic 29) · ×1
  • HubWindow.TagToPageType (cyclomatic 29) src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:842 — HubWindow.TagToPageType has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionStateMachine.ApplyTransition (cyclomatic 27) · ×1
  • ConnectionStateMachine.ApplyTransition (cyclomatic 27) src/OpenClaw.Connection/ConnectionStateMachine.cs:192 — ConnectionStateMachine.ApplyTransition has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · ChatMarkdownAstBuilder.TextCallback (cyclomatic 27) · ×1
  • ChatMarkdownAstBuilder.TextCallback (cyclomatic 27) src/OpenClaw.Shared/Markdown/ChatMarkdownAstBuilder.cs:536 — ChatMarkdownAstBuilder.TextCallback has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · ChatMarkdownAstBuilder.DecodeEntity (cyclomatic 27) · ×1
  • ChatMarkdownAstBuilder.DecodeEntity (cyclomatic 27) src/OpenClaw.Shared/Markdown/ChatMarkdownAstBuilder.cs:669 — ChatMarkdownAstBuilder.DecodeEntity has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · App.ExecuteSessionActionAsync (cyclomatic 27) · ×1
  • App.ExecuteSessionActionAsync (cyclomatic 27) src/OpenClaw.Tray.WinUI/App.xaml.cs:1048 — App.ExecuteSessionActionAsync has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.OnAgentEventReceived (cyclomatic 27) · ×1
  • OpenClawChatDataProvider.OnAgentEventReceived (cyclomatic 27) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1485 — OpenClawChatDataProvider.OnAgentEventReceived has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionStateMachine.CanTransition (cyclomatic 26) · ×1
  • ConnectionStateMachine.CanTransition (cyclomatic 26) src/OpenClaw.Connection/ConnectionStateMachine.cs:34 — ConnectionStateMachine.CanTransition has cyclomatic complexity 26 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.ParseSessions (cyclomatic 26) · ×1
  • OpenClawGatewayClient.ParseSessions (cyclomatic 26) src/OpenClaw.Shared/OpenClawGatewayClient.cs:3265 — OpenClawGatewayClient.ParseSessions has cyclomatic complexity 26 (threshold 15).
D1 · Cyclomatic Complexity · ChannelsPage.StartLinkingAsync (cyclomatic 26) · ×1
  • ChannelsPage.StartLinkingAsync (cyclomatic 26) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1736 — ChannelsPage.StartLinkingAsync has cyclomatic complexity 26 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsTableUnderline (cyclomatic 25) · ×1
  • Md4cParser.IsTableUnderline (cyclomatic 25) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:857 — Md4cParser.IsTableUnderline has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · NotificationCategorizer.ClassifyByKeywords (cyclomatic 25) · ×1
  • NotificationCategorizer.ClassifyByKeywords (cyclomatic 25) src/OpenClaw.Shared/NotificationCategorizer.cs:101 — NotificationCategorizer.ClassifyByKeywords has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.HandleAgentEvent (cyclomatic 25) · ×1
  • OpenClawGatewayClient.HandleAgentEvent (cyclomatic 25) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2777 — OpenClawGatewayClient.HandleAgentEvent has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · CronPage.OnFormSaveClick (cyclomatic 25) · ×1
  • CronPage.OnFormSaveClick (cyclomatic 25) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:275 — CronPage.OnFormSaveClick has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · HubWindow.InitializeCurrentPage (cyclomatic 25) · ×1
  • HubWindow.InitializeCurrentPage (cyclomatic 25) src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:782 — HubWindow.InitializeCurrentPage has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · ChatAttachment.InferMimeType (cyclomatic 24) · ×1
  • ChatAttachment.InferMimeType (cyclomatic 24) src/OpenClaw.Shared/ChatAttachment.cs:89 — ChatAttachment.InferMimeType has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · McpToolBridge.HandleRequestAsync (cyclomatic 24) · ×1
  • McpToolBridge.HandleRequestAsync (cyclomatic 24) src/OpenClaw.Shared/Mcp/McpToolBridge.cs:55 — McpToolBridge.HandleRequestAsync has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.PopulateSessionFromObject (cyclomatic 24) · ×1
  • OpenClawGatewayClient.PopulateSessionFromObject (cyclomatic 24) src/OpenClaw.Shared/OpenClawGatewayClient.cs:3384 — OpenClawGatewayClient.PopulateSessionFromObject has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · ChannelsPage.Render (cyclomatic 24) · ×1
  • ChannelsPage.Render (cyclomatic 24) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:390 — ChannelsPage.Render has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · UiRenderer.RenderElement (cyclomatic 24) · ×1
  • UiRenderer.RenderElement (cyclomatic 24) src/OpenClawTray.FunctionalUI/FunctionalUI.cs:934 — UiRenderer.RenderElement has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · ChatTimelineReducer.Apply (cyclomatic 23) · ×1
  • ChatTimelineReducer.Apply (cyclomatic 23) src/OpenClaw.Chat/ChatTimelineReducer.cs:7 — ChatTimelineReducer.Apply has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · SystemCapability.ValidateExecApprovalRules (cyclomatic 23) · ×1
  • SystemCapability.ValidateExecApprovalRules (cyclomatic 23) src/OpenClaw.Shared/Capabilities/SystemCapability.cs:722 — SystemCapability.ValidateExecApprovalRules has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · ExecApprovalV2InputValidator.Validate (cyclomatic 23) · ×1
  • ExecApprovalV2InputValidator.Validate (cyclomatic 23) src/OpenClaw.Shared/ExecApprovals/ExecApprovalV2InputValidator.cs:15 — ExecApprovalV2InputValidator.Validate has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.HandleExecApprovalEvent (cyclomatic 23) · ×1
  • OpenClawGatewayClient.HandleExecApprovalEvent (cyclomatic 23) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2585 — OpenClawGatewayClient.HandleExecApprovalEvent has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.ParsePresenceArray (cyclomatic 23) · ×1
  • OpenClawGatewayClient.ParsePresenceArray (cyclomatic 23) src/OpenClaw.Shared/OpenClawGatewayClient.cs:4199 — OpenClawGatewayClient.ParsePresenceArray has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · ChatMarkdownSanitizer.TryParseLinkOrImage (cyclomatic 23) · ×1
  • ChatMarkdownSanitizer.TryParseLinkOrImage (cyclomatic 23) src/OpenClaw.Tray.WinUI/Chat/ChatMarkdownSanitizer.cs:484 — ChatMarkdownSanitizer.TryParseLinkOrImage has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.LooksLikeFlattenedToolOutput (cyclomatic 23) · ×1
  • OpenClawChatDataProvider.LooksLikeFlattenedToolOutput (cyclomatic 23) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2823 — OpenClawChatDataProvider.LooksLikeFlattenedToolOutput has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionPagePlan.ApplyNodeListApproval (cyclomatic 23) · ×1
  • ConnectionPagePlan.ApplyNodeListApproval (cyclomatic 23) src/OpenClaw.Tray.WinUI/Pages/ConnectionPagePlan.cs:514 — ConnectionPagePlan.ApplyNodeListApproval has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · TrayMenuStateBuilder.BuildGatewayFlyoutItems (cyclomatic 23) · ×1
  • TrayMenuStateBuilder.BuildGatewayFlyoutItems (cyclomatic 23) src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:486 — TrayMenuStateBuilder.BuildGatewayFlyoutItems has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · NodeConnector.ConnectCoreAsync (cyclomatic 22) · ×1
  • NodeConnector.ConnectCoreAsync (cyclomatic 22) src/OpenClaw.Connection/NodeConnector.cs:77 — NodeConnector.ConnectCoreAsync has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · ExecCommandResolver.SplitShellCommandChain (cyclomatic 22) · ×1
  • ExecCommandResolver.SplitShellCommandChain (cyclomatic 22) src/OpenClaw.Shared/ExecApprovals/ExecCommandResolution.cs:157 — ExecCommandResolver.SplitShellCommandChain has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsHtmlBlockEndCondition (cyclomatic 22) · ×1
  • Md4cParser.IsHtmlBlockEndCondition (cyclomatic 22) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1079 — Md4cParser.IsHtmlBlockEndCondition has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.AnalyzeTableAlignment (cyclomatic 22) · ×1
  • Md4cParser.AnalyzeTableAlignment (cyclomatic 22) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:2010 — Md4cParser.AnalyzeTableAlignment has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.AnalyzeMarks (cyclomatic 22) · ×1
  • Md4cParser.AnalyzeMarks (cyclomatic 22) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2480 — Md4cParser.AnalyzeMarks has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.HandleChatEvent (cyclomatic 22) · ×1
  • OpenClawGatewayClient.HandleChatEvent (cyclomatic 22) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2962 — OpenClawGatewayClient.HandleChatEvent has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · MultipleChoiceRenderer.Render (cyclomatic 22) · ×1
  • MultipleChoiceRenderer.Render (cyclomatic 22) src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/InteractiveRenderers.cs:283 — MultipleChoiceRenderer.Render has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.SendMessageAsync (cyclomatic 22) · ×1
  • OpenClawChatDataProvider.SendMessageAsync (cyclomatic 22) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:235 — OpenClawChatDataProvider.SendMessageAsync has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · AgentEventsPage.EventsList_ContainerContentChanging (cyclomatic 22) · ×1
  • AgentEventsPage.EventsList_ContainerContentChanging (cyclomatic 22) src/OpenClaw.Tray.WinUI/Pages/AgentEventsPage.xaml.cs:192 — AgentEventsPage.EventsList_ContainerContentChanging has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · ChannelsPage.BuildControlsSection (cyclomatic 22) · ×1
  • ChannelsPage.BuildControlsSection (cyclomatic 22) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:851 — ChannelsPage.BuildControlsSection has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · ChatTimelineReducer.UpsertAssistant (cyclomatic 21) · ×1
  • ChatTimelineReducer.UpsertAssistant (cyclomatic 21) src/OpenClaw.Chat/ChatTimelineReducer.cs:303 — ChatTimelineReducer.UpsertAssistant has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · SettingsChangeClassifier.Classify (cyclomatic 21) · ×1
  • SettingsChangeClassifier.Classify (cyclomatic 21) src/OpenClaw.Connection/SettingsChangeImpact.cs:28 — SettingsChangeClassifier.Classify has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · WizardPayload.Parse (cyclomatic 21) · ×1
  • WizardPayload.Parse (cyclomatic 21) src/OpenClaw.SetupEngine/SetupWizardRunner.cs:480 — WizardPayload.Parse has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · ExecApprovalsCoordinator.HandleAsync (cyclomatic 21) · ×1
  • ExecApprovalsCoordinator.HandleAsync (cyclomatic 21) src/OpenClaw.Shared/ExecApprovals/ExecApprovalsCoordinator.cs:38 — ExecApprovalsCoordinator.HandleAsync has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.ProcessLine (cyclomatic 21) · ×1
  • Md4cParser.ProcessLine (cyclomatic 21) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1851 — Md4cParser.ProcessLine has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.ParseDevicePairList (cyclomatic 21) · ×1
  • OpenClawGatewayClient.ParseDevicePairList (cyclomatic 21) src/OpenClaw.Shared/OpenClawGatewayClient.cs:4117 — OpenClawGatewayClient.ParseDevicePairList has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · SchemaConfigEditor.RenderField (cyclomatic 21) · ×1
  • SchemaConfigEditor.RenderField (cyclomatic 21) src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:174 — SchemaConfigEditor.RenderField has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · A2UICanvasWindow.UpdateLayout (cyclomatic 21) · ×1
  • A2UICanvasWindow.UpdateLayout (cyclomatic 21) src/OpenClaw.Tray.WinUI/Windows/A2UICanvasWindow.xaml.cs:169 — A2UICanvasWindow.UpdateLayout has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · ChatMarkdownAstBuilder.LeaveSpan (cyclomatic 20) · ×1
  • ChatMarkdownAstBuilder.LeaveSpan (cyclomatic 20) src/OpenClaw.Shared/Markdown/ChatMarkdownAstBuilder.cs:453 — ChatMarkdownAstBuilder.LeaveSpan has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.ParseChatHistory (cyclomatic 20) · ×1
  • OpenClawGatewayClient.ParseChatHistory (cyclomatic 20) src/OpenClaw.Shared/OpenClawGatewayClient.cs:506 — OpenClawGatewayClient.ParseChatHistory has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · App.InitializeGatewayClient (cyclomatic 20) · ×1
  • App.InitializeGatewayClient (cyclomatic 20) src/OpenClaw.Tray.WinUI/App.xaml.cs:1353 — App.InitializeGatewayClient has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.UpdateActiveRunId (cyclomatic 20) · ×1
  • OpenClawChatDataProvider.UpdateActiveRunId (cyclomatic 20) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1665 — OpenClawChatDataProvider.UpdateActiveRunId has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.TruncateChatEvent (cyclomatic 20) · ×1
  • OpenClawChatDataProvider.TruncateChatEvent (cyclomatic 20) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2963 — OpenClawChatDataProvider.TruncateChatEvent has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.PersistAbortedMessageIdAsync (cyclomatic 20) · ×1
  • OpenClawChatDataProvider.PersistAbortedMessageIdAsync (cyclomatic 20) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:4451 — OpenClawChatDataProvider.PersistAbortedMessageIdAsync has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · WorkspacePage.BuildMarkdownView (cyclomatic 20) · ×1
  • WorkspacePage.BuildMarkdownView (cyclomatic 20) src/OpenClaw.Tray.WinUI/Pages/WorkspacePage.xaml.cs:310 — WorkspacePage.BuildMarkdownView has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · JsonDiffFormatter.BuildLineDiff (cyclomatic 20) · ×1
  • JsonDiffFormatter.BuildLineDiff (cyclomatic 20) src/OpenClaw.Tray.WinUI/Services/JsonDiffFormatter.cs:97 — JsonDiffFormatter.BuildLineDiff has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · GatewayConnectionSnapshot.DeriveOverall (cyclomatic 19) · ×1
  • GatewayConnectionSnapshot.DeriveOverall (cyclomatic 19) src/OpenClaw.Connection/GatewayConnectionSnapshot.cs:56 — GatewayConnectionSnapshot.DeriveOverall has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.BuildAttribute (cyclomatic 19) · ×1
  • Md4cParser.BuildAttribute (cyclomatic 19) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:400 — Md4cParser.BuildAttribute has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsInlineLinkSpec (cyclomatic 19) · ×1
  • Md4cParser.IsInlineLinkSpec (cyclomatic 19) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1109 — Md4cParser.IsInlineLinkSpec has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsAutolinkEmail (cyclomatic 19) · ×1
  • Md4cParser.IsAutolinkEmail (cyclomatic 19) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1366 — Md4cParser.IsAutolinkEmail has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · McpHttpServer.HandleAsync (cyclomatic 19) · ×1
  • McpHttpServer.HandleAsync (cyclomatic 19) src/OpenClaw.Shared/Mcp/McpHttpServer.cs:202 — McpHttpServer.HandleAsync has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.HandleEvent (cyclomatic 19) · ×1
  • OpenClawGatewayClient.HandleEvent (cyclomatic 19) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2502 — OpenClawGatewayClient.HandleEvent has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · ListRenderer.Render (cyclomatic 19) · ×1
  • ListRenderer.Render (cyclomatic 19) src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/ContainerRenderers.cs:61 — ListRenderer.Render has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.BuildSnapshotLocked (cyclomatic 19) · ×1
  • OpenClawChatDataProvider.BuildSnapshotLocked (cyclomatic 19) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:3633 — OpenClawChatDataProvider.BuildSnapshotLocked has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionPage.ClassifyTopology (cyclomatic 19) · ×1
  • ConnectionPage.ClassifyTopology (cyclomatic 19) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:646 — ConnectionPage.ClassifyTopology has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · CronPage.OnEditJobClick (cyclomatic 19) · ×1
  • CronPage.OnEditJobClick (cyclomatic 19) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:205 — CronPage.OnEditJobClick has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · WorkspacePage.AppendInlineMarkdown (cyclomatic 19) · ×1
  • WorkspacePage.AppendInlineMarkdown (cyclomatic 19) src/OpenClaw.Tray.WinUI/Pages/WorkspacePage.xaml.cs:450 — WorkspacePage.AppendInlineMarkdown has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · DiagnosticTeeLogger.Info (cyclomatic 18) · ×1
  • DiagnosticTeeLogger.Info (cyclomatic 18) src/OpenClaw.Connection/GatewayConnectionManager.cs:1879 — DiagnosticTeeLogger.Info has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · SetupCodeDecoder.Decode (cyclomatic 18) · ×1
  • SetupCodeDecoder.Decode (cyclomatic 18) src/OpenClaw.Connection/SetupCodeDecoder.cs:15 — SetupCodeDecoder.Decode has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · DeviceCapability.HandleStatusAsync (cyclomatic 18) · ×1
  • DeviceCapability.HandleStatusAsync (cyclomatic 18) src/OpenClaw.Shared/Capabilities/DeviceCapability.cs:69 — DeviceCapability.HandleStatusAsync has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsLinkTitle (cyclomatic 18) · ×1
  • Md4cParser.IsLinkTitle (cyclomatic 18) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:875 — Md4cParser.IsLinkTitle has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsAutolinkUri (cyclomatic 18) · ×1
  • Md4cParser.IsAutolinkUri (cyclomatic 18) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1328 — Md4cParser.IsAutolinkUri has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.TryGetHandshakeDeviceTokenCore (cyclomatic 18) · ×1
  • OpenClawGatewayClient.TryGetHandshakeDeviceTokenCore (cyclomatic 18) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2407 — OpenClawGatewayClient.TryGetHandshakeDeviceTokenCore has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.TryGetHandshakeDeviceTokenScopesCore (cyclomatic 18) · ×1
  • OpenClawGatewayClient.TryGetHandshakeDeviceTokenScopesCore (cyclomatic 18) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2457 — OpenClawGatewayClient.TryGetHandshakeDeviceTokenScopesCore has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.ParseNodeList (cyclomatic 18) · ×1
  • OpenClawGatewayClient.ParseNodeList (cyclomatic 18) src/OpenClaw.Shared/OpenClawGatewayClient.cs:3445 — OpenClawGatewayClient.ParseNodeList has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · WindowsNodeClient.HandleNodeInvokeEventAsync (cyclomatic 18) · ×1
  • WindowsNodeClient.HandleNodeInvokeEventAsync (cyclomatic 18) src/OpenClaw.Shared/WindowsNodeClient.cs:414 — WindowsNodeClient.HandleNodeInvokeEventAsync has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.FetchRemoteUserMessageAsync (cyclomatic 18) · ×1
  • OpenClawChatDataProvider.FetchRemoteUserMessageAsync (cyclomatic 18) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1793 — OpenClawChatDataProvider.FetchRemoteUserMessageAsync has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · SchemaConfigEditor.RenderConfigDirectly (cyclomatic 18) · ×1
  • SchemaConfigEditor.RenderConfigDirectly (cyclomatic 18) src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:860 — SchemaConfigEditor.RenderConfigDirectly has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · AgentEventsPage.EventsList_ItemClick (cyclomatic 18) · ×1
  • AgentEventsPage.EventsList_ItemClick (cyclomatic 18) src/OpenClaw.Tray.WinUI/Pages/AgentEventsPage.xaml.cs:246 — AgentEventsPage.EventsList_ItemClick has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · SkillsPage.UpdateFromGateway (cyclomatic 18) · ×1
  • SkillsPage.UpdateFromGateway (cyclomatic 18) src/OpenClaw.Tray.WinUI/Pages/SkillsPage.xaml.cs:128 — SkillsPage.UpdateFromGateway has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · TrayMenuStateBuilder.BuildUsageFlyoutItems (cyclomatic 18) · ×1
  • TrayMenuStateBuilder.BuildUsageFlyoutItems (cyclomatic 18) src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:1091 — TrayMenuStateBuilder.BuildUsageFlyoutItems has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionStatusWindow.RefreshGateways (cyclomatic 18) · ×1
  • ConnectionStatusWindow.RefreshGateways (cyclomatic 18) src/OpenClaw.Tray.WinUI/Windows/ConnectionStatusWindow.xaml.cs:168 — ConnectionStatusWindow.RefreshGateways has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · Program.Main (cyclomatic 17) · ×1
  • Program.Main (cyclomatic 17) src/OpenClaw.Cli/Program.cs:24 — Program.Main has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ChannelsAggregator.Aggregate (cyclomatic 17) · ×1
  • ChannelsAggregator.Aggregate (cyclomatic 17) src/OpenClaw.Shared/ChannelRecord.cs:135 — ChannelsAggregator.Aggregate has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.ProcessLeafBlock (cyclomatic 17) · ×1
  • Md4cParser.ProcessLeafBlock (cyclomatic 17) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:335 — Md4cParser.ProcessLeafBlock has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.ProcessAllBlocks (cyclomatic 17) · ×1
  • Md4cParser.ProcessAllBlocks (cyclomatic 17) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:482 — Md4cParser.ProcessAllBlocks has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsContainerMark (cyclomatic 17) · ×1
  • Md4cParser.IsContainerMark (cyclomatic 17) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1277 — Md4cParser.IsContainerMark has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ChannelsPage.BuildGenericSubtitleLines (cyclomatic 17) · ×1
  • ChannelsPage.BuildGenericSubtitleLines (cyclomatic 17) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:2309 — ChannelsPage.BuildGenericSubtitleLines has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ConfigPage.BuildSchemaTreeNodes (cyclomatic 17) · ×1
  • ConfigPage.BuildSchemaTreeNodes (cyclomatic 17) src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:311 — ConfigPage.BuildSchemaTreeNodes has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionPage.ApplyStripVisuals (cyclomatic 17) · ×1
  • ConnectionPage.ApplyStripVisuals (cyclomatic 17) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:365 — ConnectionPage.ApplyStripVisuals has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionPage.RunConnectivityTestAsync (cyclomatic 17) · ×1
  • ConnectionPage.RunConnectivityTestAsync (cyclomatic 17) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:2123 — ConnectionPage.RunConnectivityTestAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · NodeService.DisposeCoreAsync (cyclomatic 17) · ×1
  • NodeService.DisposeCoreAsync (cyclomatic 17) src/OpenClaw.Tray.WinUI/Services/NodeService.cs:2007 — NodeService.DisposeCoreAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ScreenCaptureService.CaptureAsync (cyclomatic 17) · ×1
  • ScreenCaptureService.CaptureAsync (cyclomatic 17) src/OpenClaw.Tray.WinUI/Services/ScreenCaptureService.cs:27 — ScreenCaptureService.CaptureAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · SetupWizardWindow.OnTestConnectionAsync (cyclomatic 17) · ×1
  • SetupWizardWindow.OnTestConnectionAsync (cyclomatic 17) src/OpenClaw.Tray.WinUI/Windows/SetupWizardWindow.cs:736 — SetupWizardWindow.OnTestConnectionAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ChatTimelineReducer.StripCumulativeTurnPrefix (cyclomatic 16) · ×1
  • ChatTimelineReducer.StripCumulativeTurnPrefix (cyclomatic 16) src/OpenClaw.Chat/ChatTimelineReducer.cs:567 — ChatTimelineReducer.StripCumulativeTurnPrefix has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · GatewayConnectionManager.StartNodeConnectionCoreAsync (cyclomatic 16) · ×1
  • GatewayConnectionManager.StartNodeConnectionCoreAsync (cyclomatic 16) src/OpenClaw.Connection/GatewayConnectionManager.cs:1183 — GatewayConnectionManager.StartNodeConnectionCoreAsync has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · WizardConsoleTail.TryExtractConsoleMessage (cyclomatic 16) · ×1
  • WizardConsoleTail.TryExtractConsoleMessage (cyclomatic 16) src/OpenClaw.SetupEngine.UI/WizardConsoleTail.cs:145 — WizardConsoleTail.TryExtractConsoleMessage has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ExecShellWrapperParser.SplitTopLevelCommands (cyclomatic 16) · ×1
  • ExecShellWrapperParser.SplitTopLevelCommands (cyclomatic 16) src/OpenClaw.Shared/ExecShellWrapperParser.cs:218 — ExecShellWrapperParser.SplitTopLevelCommands has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.ProcessDoc (cyclomatic 16) · ×1
  • Md4cParser.ProcessDoc (cyclomatic 16) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1948 — Md4cParser.ProcessDoc has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.IsLinkLabel (cyclomatic 16) · ×1
  • Md4cParser.IsLinkLabel (cyclomatic 16) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:697 — Md4cParser.IsLinkLabel has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · Md4cParser.AnalyzeEmph (cyclomatic 16) · ×1
  • Md4cParser.AnalyzeEmph (cyclomatic 16) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2164 — Md4cParser.AnalyzeEmph has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.EnumerateHandshakeDeviceTokens (cyclomatic 16) · ×1
  • OpenClawGatewayClient.EnumerateHandshakeDeviceTokens (cyclomatic 16) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2358 — OpenClawGatewayClient.EnumerateHandshakeDeviceTokens has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawGatewayClient.BuildProviderSummary (cyclomatic 16) · ×1
  • OpenClawGatewayClient.BuildProviderSummary (cyclomatic 16) src/OpenClaw.Shared/OpenClawGatewayClient.cs:3798 — OpenClawGatewayClient.BuildProviderSummary has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · WebSocketClientBase.ListenForMessagesAsync (cyclomatic 16) · ×1
  • WebSocketClientBase.ListenForMessagesAsync (cyclomatic 16) src/OpenClaw.Shared/WebSocketClientBase.cs:167 — WebSocketClientBase.ListenForMessagesAsync has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · WindowsNodeClient.HandleRequestError (cyclomatic 16) · ×1
  • WindowsNodeClient.HandleRequestError (cyclomatic 16) src/OpenClaw.Shared/WindowsNodeClient.cs:821 — WindowsNodeClient.HandleRequestError has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · A2UIMessageParser.ParseLine (cyclomatic 16) · ×1
  • A2UIMessageParser.ParseLine (cyclomatic 16) src/OpenClaw.Tray.WinUI/A2UI/Protocol/A2UIProtocol.cs:240 — A2UIMessageParser.ParseLine has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · TextRenderer.ApplyUsageHint (cyclomatic 16) · ×1
  • TextRenderer.ApplyUsageHint (cyclomatic 16) src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/DisplayRenderers.cs:44 — TextRenderer.ApplyUsageHint has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · OpenClawChatDataProvider.ClassifyFlattenedToolOutput (cyclomatic 16) · ×1
  • OpenClawChatDataProvider.ClassifyFlattenedToolOutput (cyclomatic 16) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2875 — OpenClawChatDataProvider.ClassifyFlattenedToolOutput has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ConnectionPage.ApplyRecoveryBody (cyclomatic 16) · ×1
  • ConnectionPage.ApplyRecoveryBody (cyclomatic 16) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:975 — ConnectionPage.ApplyRecoveryBody has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · CronPage.UpdateCronRuns (cyclomatic 16) · ×1
  • CronPage.UpdateCronRuns (cyclomatic 16) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:1416 — CronPage.UpdateCronRuns has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · SettingsPage.OnRemoveGatewayAsync (cyclomatic 16) · ×1
  • SettingsPage.OnRemoveGatewayAsync (cyclomatic 16) src/OpenClaw.Tray.WinUI/Pages/SettingsPage.xaml.cs:262 — SettingsPage.OnRemoveGatewayAsync has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · TrayMenuStateBuilder.BuildDeviceFlyoutItems (cyclomatic 16) · ×1
  • TrayMenuStateBuilder.BuildDeviceFlyoutItems (cyclomatic 16) src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:869 — TrayMenuStateBuilder.BuildDeviceFlyoutItems has cyclomatic complexity 16 (threshold 15).
D15 · Churn × Complexity Hotspots · git history depth insufficient · ×1
  • git history depth insufficient — git history depth insufficient — install a full clone for reliable trend signal.
D16 · Bus Factor · single-maintainer · ×1
  • single-maintainer — knowledge-concentration (bus factor) risk — single-maintainer — knowledge-concentration (bus factor) risk (0 author(s) across 0 commit(s) sampled).
D17 · Explicit Debt · XxxComment · ×1
  • XxxComment src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:570 — // and "Code: XXX" patterns as monospace rows with a copy button. Shared by — 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.
D2 · Cognitive Complexity · Md4cParser.CollectMarks (cognitive 365) · ×1
  • Md4cParser.CollectMarks (cognitive 365) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1432 — Md4cParser.CollectMarks has cognitive complexity 365 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.ProcessInlines (cognitive 341) · ×1
  • Md4cParser.ProcessInlines (cognitive 341) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2666 — Md4cParser.ProcessInlines has cognitive complexity 341 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatTimeline.Render (cognitive 340) · ×1
  • OpenClawChatTimeline.Render (cognitive 340) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:434 — OpenClawChatTimeline.Render has cognitive complexity 340 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.AnalyzeLine (cognitive 268) · ×1
  • Md4cParser.AnalyzeLine (cognitive 268) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1357 — Md4cParser.AnalyzeLine has cognitive complexity 268 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.ResolveLinks (cognitive 188) · ×1
  • Md4cParser.ResolveLinks (cognitive 188) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1824 — Md4cParser.ResolveLinks has cognitive complexity 188 (threshold 15).
D2 · Cognitive Complexity · CronPage.ParseCronList (cognitive 155) · ×1
  • CronPage.ParseCronList (cognitive 155) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:570 — CronPage.ParseCronList has cognitive complexity 155 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.LoadHistoryAsync (cognitive 114) · ×1
  • OpenClawChatDataProvider.LoadHistoryAsync (cognitive 114) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:451 — OpenClawChatDataProvider.LoadHistoryAsync has cognitive complexity 114 (threshold 15).
D2 · Cognitive Complexity · OpenClawComposer.Render (cognitive 98) · ×1
  • OpenClawComposer.Render (cognitive 98) src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs:77 — OpenClawComposer.Render has cognitive complexity 98 (threshold 15).
D2 · Cognitive Complexity · ChatMarkdownSanitizer.Sanitize (cognitive 93) · ×1
  • ChatMarkdownSanitizer.Sanitize (cognitive 93) src/OpenClaw.Tray.WinUI/Chat/ChatMarkdownSanitizer.cs:75 — ChatMarkdownSanitizer.Sanitize has cognitive complexity 93 (threshold 15).
D2 · Cognitive Complexity · ChatMarkdownRenderer.ContainsBlockMarkdown (cognitive 87) · ×1
  • ChatMarkdownRenderer.ContainsBlockMarkdown (cognitive 87) src/OpenClaw.Tray.WinUI/Chat/Markdown/ChatMarkdownRenderer.cs:122 — ChatMarkdownRenderer.ContainsBlockMarkdown has cognitive complexity 87 (threshold 15).
D2 · Cognitive Complexity · SchemaConfigEditor.ValidateValue (cognitive 87) · ×1
  • SchemaConfigEditor.ValidateValue (cognitive 87) src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:701 — SchemaConfigEditor.ValidateValue has cognitive complexity 87 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.AnalyzePermissiveAutolink (cognitive 77) · ×1
  • Md4cParser.AnalyzePermissiveAutolink (cognitive 77) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2334 — Md4cParser.AnalyzePermissiveAutolink has cognitive complexity 77 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatRoot.Render (cognitive 76) · ×1
  • OpenClawChatRoot.Render (cognitive 76) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatRoot.cs:110 — OpenClawChatRoot.Render has cognitive complexity 76 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsHtmlBlockStartCondition (cognitive 74) · ×1
  • Md4cParser.IsHtmlBlockStartCondition (cognitive 74) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:971 — Md4cParser.IsHtmlBlockStartCondition has cognitive complexity 74 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsHtmlTag (cognitive 66) · ×1
  • Md4cParser.IsHtmlTag (cognitive 66) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:40 — Md4cParser.IsHtmlTag has cognitive complexity 66 (threshold 15).
D2 · Cognitive Complexity · SetupWizardRunner.RunAsync (cognitive 60) · ×1
  • SetupWizardRunner.RunAsync (cognitive 60) src/OpenClaw.SetupEngine/SetupWizardRunner.cs:20 — SetupWizardRunner.RunAsync has cognitive complexity 60 (threshold 15).
D2 · Cognitive Complexity · UiRenderer.ApplyModifiers (cognitive 59) · ×1
  • UiRenderer.ApplyModifiers (cognitive 59) src/OpenClawTray.FunctionalUI/FunctionalUI.cs:1598 — UiRenderer.ApplyModifiers has cognitive complexity 59 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.HandleResponse (cognitive 58) · ×1
  • OpenClawGatewayClient.HandleResponse (cognitive 58) src/OpenClaw.Shared/OpenClawGatewayClient.cs:1621 — OpenClawGatewayClient.HandleResponse has cognitive complexity 58 (threshold 15).
D2 · Cognitive Complexity · CliRunner.RunAsync (cognitive 58) · ×1
  • CliRunner.RunAsync (cognitive 58) src/OpenClaw.WinNode.Cli/Program.cs:47 — CliRunner.RunAsync has cognitive complexity 58 (threshold 15).
D2 · Cognitive Complexity · HttpUrlRiskEvaluator.IsPublicAddress (cognitive 52) · ×1
  • HttpUrlRiskEvaluator.IsPublicAddress (cognitive 52) src/OpenClaw.Shared/HttpUrlRiskEvaluator.cs:91 — HttpUrlRiskEvaluator.IsPublicAddress has cognitive complexity 52 (threshold 15).
D2 · Cognitive Complexity · App.WireAppCapabilityHandlers (cognitive 51) · ×1
  • App.WireAppCapabilityHandlers (cognitive 51) src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:21 — App.WireAppCapabilityHandlers has cognitive complexity 51 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.ParseDevicePairList (cognitive 50) · ×1
  • OpenClawGatewayClient.ParseDevicePairList (cognitive 50) src/OpenClaw.Shared/OpenClawGatewayClient.cs:4117 — OpenClawGatewayClient.ParseDevicePairList has cognitive complexity 50 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsCodeSpan (cognitive 49) · ×1
  • Md4cParser.IsCodeSpan (cognitive 49) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1208 — Md4cParser.IsCodeSpan has cognitive complexity 49 (threshold 15).
D2 · Cognitive Complexity · ChannelsPage.BuildInlineConfigForm (cognitive 49) · ×1
  • ChannelsPage.BuildInlineConfigForm (cognitive 49) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1242 — ChannelsPage.BuildInlineConfigForm has cognitive complexity 49 (threshold 15).
D2 · Cognitive Complexity · MultipleChoiceRenderer.Render (cognitive 47) · ×1
  • MultipleChoiceRenderer.Render (cognitive 47) src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/InteractiveRenderers.cs:283 — MultipleChoiceRenderer.Render has cognitive complexity 47 (threshold 15).
D2 · Cognitive Complexity · AudioPipeline.ProcessVadChunks (cognitive 47) · ×1
  • AudioPipeline.ProcessVadChunks (cognitive 47) src/OpenClaw.Tray.WinUI/Services/AudioPipeline.cs:333 — AudioPipeline.ProcessVadChunks has cognitive complexity 47 (threshold 15).
D2 · Cognitive Complexity · SystemCapability.HandleRunAsync (cognitive 46) · ×1
  • SystemCapability.HandleRunAsync (cognitive 46) src/OpenClaw.Shared/Capabilities/SystemCapability.cs:298 — SystemCapability.HandleRunAsync has cognitive complexity 46 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.OnChatMessageReceived (cognitive 45) · ×1
  • OpenClawChatDataProvider.OnChatMessageReceived (cognitive 45) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1234 — OpenClawChatDataProvider.OnChatMessageReceived has cognitive complexity 45 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.OnAgentEventReceived (cognitive 45) · ×1
  • OpenClawChatDataProvider.OnAgentEventReceived (cognitive 45) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1485 — OpenClawChatDataProvider.OnAgentEventReceived has cognitive complexity 45 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.ParseSessions (cognitive 43) · ×1
  • OpenClawGatewayClient.ParseSessions (cognitive 43) src/OpenClaw.Shared/OpenClawGatewayClient.cs:3265 — OpenClawGatewayClient.ParseSessions has cognitive complexity 43 (threshold 15).
D2 · Cognitive Complexity · SystemCapability.HandleExecApprovalsSet (cognitive 42) · ×1
  • SystemCapability.HandleExecApprovalsSet (cognitive 42) src/OpenClaw.Shared/Capabilities/SystemCapability.cs:615 — SystemCapability.HandleExecApprovalsSet has cognitive complexity 42 (threshold 15).
D2 · Cognitive Complexity · ChatMarkdownAstBuilder.DecodeEntity (cognitive 42) · ×1
  • ChatMarkdownAstBuilder.DecodeEntity (cognitive 42) src/OpenClaw.Shared/Markdown/ChatMarkdownAstBuilder.cs:669 — ChatMarkdownAstBuilder.DecodeEntity has cognitive complexity 42 (threshold 15).
D2 · Cognitive Complexity · ChannelsPage.BuildStatusPairs (cognitive 42) · ×1
  • ChannelsPage.BuildStatusPairs (cognitive 42) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1557 — ChannelsPage.BuildStatusPairs has cognitive complexity 42 (threshold 15).
D2 · Cognitive Complexity · CronPage.OnFormSaveClick (cognitive 40) · ×1
  • CronPage.OnFormSaveClick (cognitive 40) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:275 — CronPage.OnFormSaveClick has cognitive complexity 40 (threshold 15).
D2 · Cognitive Complexity · WizardPage.ApplyPayloadAsync (cognitive 39) · ×1
  • WizardPage.ApplyPayloadAsync (cognitive 39) src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:158 — WizardPage.ApplyPayloadAsync has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · Program.Main (cognitive 39) · ×1
  • Program.Main (cognitive 39) src/OpenClaw.SetupEngine/Program.cs:8 — Program.Main has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · CronPage.BuildRunEntry (cognitive 39) · ×1
  • CronPage.BuildRunEntry (cognitive 39) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:1529 — CronPage.BuildRunEntry has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.ParsePresenceArray (cognitive 38) · ×1
  • OpenClawGatewayClient.ParsePresenceArray (cognitive 38) src/OpenClaw.Shared/OpenClawGatewayClient.cs:4199 — OpenClawGatewayClient.ParsePresenceArray has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · AgentEventsPage.EventsList_ContainerContentChanging (cognitive 38) · ×1
  • AgentEventsPage.EventsList_ContainerContentChanging (cognitive 38) src/OpenClaw.Tray.WinUI/Pages/AgentEventsPage.xaml.cs:192 — AgentEventsPage.EventsList_ContainerContentChanging has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · WorkspacePage.BuildMarkdownView (cognitive 38) · ×1
  • WorkspacePage.BuildMarkdownView (cognitive 38) src/OpenClaw.Tray.WinUI/Pages/WorkspacePage.xaml.cs:310 — WorkspacePage.BuildMarkdownView has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · ConnectionPage.DoDirectConnectFromAddFormAsync (cognitive 37) · ×1
  • ConnectionPage.DoDirectConnectFromAddFormAsync (cognitive 37) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:2228 — ConnectionPage.DoDirectConnectFromAddFormAsync has cognitive complexity 37 (threshold 15).
D2 · Cognitive Complexity · TrayMenuStateBuilder.BuildGatewayFlyoutItems (cognitive 37) · ×1
  • TrayMenuStateBuilder.BuildGatewayFlyoutItems (cognitive 37) src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:486 — TrayMenuStateBuilder.BuildGatewayFlyoutItems has cognitive complexity 37 (threshold 15).
D2 · Cognitive Complexity · ChatTimelineReducer.UpsertAssistant (cognitive 36) · ×1
  • ChatTimelineReducer.UpsertAssistant (cognitive 36) src/OpenClaw.Chat/ChatTimelineReducer.cs:303 — ChatTimelineReducer.UpsertAssistant has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsTableUnderline (cognitive 36) · ×1
  • Md4cParser.IsTableUnderline (cognitive 36) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:857 — Md4cParser.IsTableUnderline has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsLinkLabel (cognitive 36) · ×1
  • Md4cParser.IsLinkLabel (cognitive 36) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:697 — Md4cParser.IsLinkLabel has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · App.OnLaunchedAsync (cognitive 36) · ×1
  • App.OnLaunchedAsync (cognitive 36) src/OpenClaw.Tray.WinUI/App.xaml.cs:356 — App.OnLaunchedAsync has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsHtmlBlockEndCondition (cognitive 35) · ×1
  • Md4cParser.IsHtmlBlockEndCondition (cognitive 35) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1079 — Md4cParser.IsHtmlBlockEndCondition has cognitive complexity 35 (threshold 15).
D2 · Cognitive Complexity · AgentEventsPage.EventsList_ItemClick (cognitive 35) · ×1
  • AgentEventsPage.EventsList_ItemClick (cognitive 35) src/OpenClaw.Tray.WinUI/Pages/AgentEventsPage.xaml.cs:246 — AgentEventsPage.EventsList_ItemClick has cognitive complexity 35 (threshold 15).
D2 · Cognitive Complexity · TrayMenuStateBuilder.Build (cognitive 35) · ×1
  • TrayMenuStateBuilder.Build (cognitive 35) src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:40 — TrayMenuStateBuilder.Build has cognitive complexity 35 (threshold 15).
D2 · Cognitive Complexity · ExecCommandResolver.SplitShellCommandChain (cognitive 34) · ×1
  • ExecCommandResolver.SplitShellCommandChain (cognitive 34) src/OpenClaw.Shared/ExecApprovals/ExecCommandResolution.cs:157 — ExecCommandResolver.SplitShellCommandChain has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.ProcessAllBlocks (cognitive 34) · ×1
  • Md4cParser.ProcessAllBlocks (cognitive 34) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:482 — Md4cParser.ProcessAllBlocks has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · ChannelsPage.StartLinkingAsync (cognitive 34) · ×1
  • ChannelsPage.StartLinkingAsync (cognitive 34) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1736 — ChannelsPage.StartLinkingAsync has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.HandleChatEvent (cognitive 33) · ×1
  • OpenClawGatewayClient.HandleChatEvent (cognitive 33) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2962 — OpenClawGatewayClient.HandleChatEvent has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · A2UIMessageParser.Parse (cognitive 33) · ×1
  • A2UIMessageParser.Parse (cognitive 33) src/OpenClaw.Tray.WinUI/A2UI/Protocol/A2UIProtocol.cs:189 — A2UIMessageParser.Parse has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · A2UIMessageParser.ParseLine (cognitive 33) · ×1
  • A2UIMessageParser.ParseLine (cognitive 33) src/OpenClaw.Tray.WinUI/A2UI/Protocol/A2UIProtocol.cs:240 — A2UIMessageParser.ParseLine has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · SchemaConfigEditor.RenderConfigDirectly (cognitive 33) · ×1
  • SchemaConfigEditor.RenderConfigDirectly (cognitive 33) src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:860 — SchemaConfigEditor.RenderConfigDirectly has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · TrayMenuStateBuilder.BuildUsageFlyoutItems (cognitive 33) · ×1
  • TrayMenuStateBuilder.BuildUsageFlyoutItems (cognitive 33) src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:1091 — TrayMenuStateBuilder.BuildUsageFlyoutItems has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · A2UICanvasWindow.UpdateLayout (cognitive 33) · ×1
  • A2UICanvasWindow.UpdateLayout (cognitive 33) src/OpenClaw.Tray.WinUI/Windows/A2UICanvasWindow.xaml.cs:169 — A2UICanvasWindow.UpdateLayout has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.ProcessLine (cognitive 32) · ×1
  • Md4cParser.ProcessLine (cognitive 32) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1851 — Md4cParser.ProcessLine has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · CommandCenterDiagnostics.BuildNodeWarnings (cognitive 32) · ×1
  • CommandCenterDiagnostics.BuildNodeWarnings (cognitive 32) src/OpenClaw.Shared/Models.cs:1357 — CommandCenterDiagnostics.BuildNodeWarnings has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · SystemCapability.ValidateExecApprovalRules (cognitive 31) · ×1
  • SystemCapability.ValidateExecApprovalRules (cognitive 31) src/OpenClaw.Shared/Capabilities/SystemCapability.cs:722 — SystemCapability.ValidateExecApprovalRules has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · ExecApprovalV2InputValidator.Validate (cognitive 31) · ×1
  • ExecApprovalV2InputValidator.Validate (cognitive 31) src/OpenClaw.Shared/ExecApprovals/ExecApprovalV2InputValidator.cs:15 — ExecApprovalV2InputValidator.Validate has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · SkillsPage.UpdateFromGateway (cognitive 31) · ×1
  • SkillsPage.UpdateFromGateway (cognitive 31) src/OpenClaw.Tray.WinUI/Pages/SkillsPage.xaml.cs:128 — SkillsPage.UpdateFromGateway has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.BuildAttribute (cognitive 30) · ×1
  • Md4cParser.BuildAttribute (cognitive 30) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:400 — Md4cParser.BuildAttribute has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · SurfaceModel.Resolve (cognitive 30) · ×1
  • SurfaceModel.Resolve (cognitive 30) src/OpenClaw.Tray.WinUI/A2UI/DataModel/DataModelStore.cs:230 — SurfaceModel.Resolve has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.SendMessageAsync (cognitive 30) · ×1
  • OpenClawChatDataProvider.SendMessageAsync (cognitive 30) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:235 — OpenClawChatDataProvider.SendMessageAsync has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · WorkspacePage.AppendInlineMarkdown (cognitive 30) · ×1
  • WorkspacePage.AppendInlineMarkdown (cognitive 30) src/OpenClaw.Tray.WinUI/Pages/WorkspacePage.xaml.cs:450 — WorkspacePage.AppendInlineMarkdown has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.AnalyzeTableAlignment (cognitive 29) · ×1
  • Md4cParser.AnalyzeTableAlignment (cognitive 29) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:2010 — Md4cParser.AnalyzeTableAlignment has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.ParseChatHistory (cognitive 29) · ×1
  • OpenClawGatewayClient.ParseChatHistory (cognitive 29) src/OpenClaw.Shared/OpenClawGatewayClient.cs:506 — OpenClawGatewayClient.ParseChatHistory has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · WindowsNodeClient.HandleResponse (cognitive 29) · ×1
  • WindowsNodeClient.HandleResponse (cognitive 29) src/OpenClaw.Shared/WindowsNodeClient.cs:704 — WindowsNodeClient.HandleResponse has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · GatewayConnectionManager.ConnectCoreAsync (cognitive 28) · ×1
  • GatewayConnectionManager.ConnectCoreAsync (cognitive 28) src/OpenClaw.Connection/GatewayConnectionManager.cs:144 — GatewayConnectionManager.ConnectCoreAsync has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · ChatMarkdownAstBuilder.LeaveBlock (cognitive 28) · ×1
  • ChatMarkdownAstBuilder.LeaveBlock (cognitive 28) src/OpenClaw.Shared/Markdown/ChatMarkdownAstBuilder.cs:256 — ChatMarkdownAstBuilder.LeaveBlock has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.AnalyzeEmph (cognitive 28) · ×1
  • Md4cParser.AnalyzeEmph (cognitive 28) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2164 — Md4cParser.AnalyzeEmph has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.TryGetHandshakeDeviceTokenCore (cognitive 28) · ×1
  • OpenClawGatewayClient.TryGetHandshakeDeviceTokenCore (cognitive 28) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2407 — OpenClawGatewayClient.TryGetHandshakeDeviceTokenCore has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.TryGetHandshakeDeviceTokenScopesCore (cognitive 28) · ×1
  • OpenClawGatewayClient.TryGetHandshakeDeviceTokenScopesCore (cognitive 28) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2457 — OpenClawGatewayClient.TryGetHandshakeDeviceTokenScopesCore has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.ParseNodePairList (cognitive 28) · ×1
  • OpenClawGatewayClient.ParseNodePairList (cognitive 28) src/OpenClaw.Shared/OpenClawGatewayClient.cs:4086 — OpenClawGatewayClient.ParseNodePairList has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · App.StartDeepLinkServer (cognitive 28) · ×1
  • App.StartDeepLinkServer (cognitive 28) src/OpenClaw.Tray.WinUI/App.xaml.cs:3426 — App.StartDeepLinkServer has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · ConnectionPage.ApplyNodeCard (cognitive 28) · ×1
  • ConnectionPage.ApplyNodeCard (cognitive 28) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:762 — ConnectionPage.ApplyNodeCard has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · ExecEnvInvocationUnwrapper.Unwrap (cognitive 27) · ×1
  • ExecEnvInvocationUnwrapper.Unwrap (cognitive 27) src/OpenClaw.Shared/ExecApprovals/ExecEnvInvocationUnwrapper.cs:20 — ExecEnvInvocationUnwrapper.Unwrap has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · ChatMarkdownAstBuilder.TextCallback (cognitive 27) · ×1
  • ChatMarkdownAstBuilder.TextCallback (cognitive 27) src/OpenClaw.Shared/Markdown/ChatMarkdownAstBuilder.cs:536 — ChatMarkdownAstBuilder.TextCallback has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.HandleExecApprovalEvent (cognitive 27) · ×1
  • OpenClawGatewayClient.HandleExecApprovalEvent (cognitive 27) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2585 — OpenClawGatewayClient.HandleExecApprovalEvent has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.HandleAgentEvent (cognitive 27) · ×1
  • OpenClawGatewayClient.HandleAgentEvent (cognitive 27) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2777 — OpenClawGatewayClient.HandleAgentEvent has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.PopulateSessionFromObject (cognitive 27) · ×1
  • OpenClawGatewayClient.PopulateSessionFromObject (cognitive 27) src/OpenClaw.Shared/OpenClawGatewayClient.cs:3384 — OpenClawGatewayClient.PopulateSessionFromObject has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · App.InitializeGatewayClient (cognitive 27) · ×1
  • App.InitializeGatewayClient (cognitive 27) src/OpenClaw.Tray.WinUI/App.xaml.cs:1353 — App.InitializeGatewayClient has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · ChatMarkdownSanitizer.TryParseLinkOrImage (cognitive 27) · ×1
  • ChatMarkdownSanitizer.TryParseLinkOrImage (cognitive 27) src/OpenClaw.Tray.WinUI/Chat/ChatMarkdownSanitizer.cs:484 — ChatMarkdownSanitizer.TryParseLinkOrImage has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.UpdateActiveRunId (cognitive 27) · ×1
  • OpenClawChatDataProvider.UpdateActiveRunId (cognitive 27) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1665 — OpenClawChatDataProvider.UpdateActiveRunId has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.PersistAbortedMessageIdAsync (cognitive 27) · ×1
  • OpenClawChatDataProvider.PersistAbortedMessageIdAsync (cognitive 27) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:4451 — OpenClawChatDataProvider.PersistAbortedMessageIdAsync has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · ChatTimelineReducer.StripCumulativeTurnPrefix (cognitive 26) · ×1
  • ChatTimelineReducer.StripCumulativeTurnPrefix (cognitive 26) src/OpenClaw.Chat/ChatTimelineReducer.cs:567 — ChatTimelineReducer.StripCumulativeTurnPrefix has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · ChatMarkdownAstBuilder.LeaveSpan (cognitive 26) · ×1
  • ChatMarkdownAstBuilder.LeaveSpan (cognitive 26) src/OpenClaw.Shared/Markdown/ChatMarkdownAstBuilder.cs:453 — ChatMarkdownAstBuilder.LeaveSpan has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.EnterLeaveSpanA (cognitive 26) · ×1
  • Md4cParser.EnterLeaveSpanA (cognitive 26) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2605 — Md4cParser.EnterLeaveSpanA has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.HandleToolEvent (cognitive 26) · ×1
  • OpenClawGatewayClient.HandleToolEvent (cognitive 26) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2892 — OpenClawGatewayClient.HandleToolEvent has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.ParseModelsList (cognitive 26) · ×1
  • OpenClawGatewayClient.ParseModelsList (cognitive 26) src/OpenClaw.Shared/OpenClawGatewayClient.cs:4049 — OpenClawGatewayClient.ParseModelsList has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · SecretRedactor.RedactNode (cognitive 26) · ×1
  • SecretRedactor.RedactNode (cognitive 26) src/OpenClaw.Tray.WinUI/A2UI/Rendering/SecretRedactor.cs:82 — SecretRedactor.RedactNode has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · BindingsPage.ParseBindings (cognitive 26) · ×1
  • BindingsPage.ParseBindings (cognitive 26) src/OpenClaw.Tray.WinUI/Pages/BindingsPage.xaml.cs:77 — BindingsPage.ParseBindings has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · SetupPipeline.RunAsync (cognitive 25) · ×1
  • SetupPipeline.RunAsync (cognitive 25) src/OpenClaw.SetupEngine/SetupPipeline.cs:81 — SetupPipeline.RunAsync has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · CleanupStaleDistroStep.DeleteDistroDirectoryWithRetries (cognitive 25) · ×1
  • CleanupStaleDistroStep.DeleteDistroDirectoryWithRetries (cognitive 25) src/OpenClaw.SetupEngine/SetupSteps.cs:286 — CleanupStaleDistroStep.DeleteDistroDirectoryWithRetries has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · ExecApprovalV2InputValidator.TryParseArgv (cognitive 25) · ×1
  • ExecApprovalV2InputValidator.TryParseArgv (cognitive 25) src/OpenClaw.Shared/ExecApprovals/ExecApprovalV2InputValidator.cs:87 — ExecApprovalV2InputValidator.TryParseArgv has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · ExecCommandResolver.SegmentUsesEncodedCommand (cognitive 25) · ×1
  • ExecCommandResolver.SegmentUsesEncodedCommand (cognitive 25) src/OpenClaw.Shared/ExecApprovals/ExecCommandResolution.cs:301 — ExecCommandResolver.SegmentUsesEncodedCommand has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · ExecShellWrapperParser.TryExtractWrappedPayload (cognitive 25) · ×1
  • ExecShellWrapperParser.TryExtractWrappedPayload (cognitive 25) src/OpenClaw.Shared/ExecShellWrapperParser.cs:76 — ExecShellWrapperParser.TryExtractWrappedPayload has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · DataModelObservable.NotifyPaths (cognitive 25) · ×1
  • DataModelObservable.NotifyPaths (cognitive 25) src/OpenClaw.Tray.WinUI/A2UI/DataModel/DataModelStore.cs:349 — DataModelObservable.NotifyPaths has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · TrayMenuStateBuilder.BuildDeviceFlyoutItems (cognitive 25) · ×1
  • TrayMenuStateBuilder.BuildDeviceFlyoutItems (cognitive 25) src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs:869 — TrayMenuStateBuilder.BuildDeviceFlyoutItems has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · NodeConnector.ConnectCoreAsync (cognitive 24) · ×1
  • NodeConnector.ConnectCoreAsync (cognitive 24) src/OpenClaw.Connection/NodeConnector.cs:77 — NodeConnector.ConnectCoreAsync has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · SetupCodeDecoder.Decode (cognitive 24) · ×1
  • SetupCodeDecoder.Decode (cognitive 24) src/OpenClaw.Connection/SetupCodeDecoder.cs:15 — SetupCodeDecoder.Decode has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · ChannelsAggregator.Aggregate (cognitive 24) · ×1
  • ChannelsAggregator.Aggregate (cognitive 24) src/OpenClaw.Shared/ChannelRecord.cs:135 — ChannelsAggregator.Aggregate has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · WebSocketClientBase.ListenForMessagesAsync (cognitive 24) · ×1
  • WebSocketClientBase.ListenForMessagesAsync (cognitive 24) src/OpenClaw.Shared/WebSocketClientBase.cs:167 — WebSocketClientBase.ListenForMessagesAsync has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · ConnectionPage.LoadSavedGateways (cognitive 24) · ×1
  • ConnectionPage.LoadSavedGateways (cognitive 24) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:1178 — ConnectionPage.LoadSavedGateways has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · JsonDiffFormatter.BuildLineDiff (cognitive 24) · ×1
  • JsonDiffFormatter.BuildLineDiff (cognitive 24) src/OpenClaw.Tray.WinUI/Services/JsonDiffFormatter.cs:97 — JsonDiffFormatter.BuildLineDiff has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · WizardPayload.Parse (cognitive 23) · ×1
  • WizardPayload.Parse (cognitive 23) src/OpenClaw.SetupEngine/SetupWizardRunner.cs:480 — WizardPayload.Parse has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · ChannelConfigPatchBuilder.FindRedactionSentinel (cognitive 23) · ×1
  • ChannelConfigPatchBuilder.FindRedactionSentinel (cognitive 23) src/OpenClaw.Shared/ChannelConfigPatchBuilder.cs:146 — ChannelConfigPatchBuilder.FindRedactionSentinel has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · ExecShellWrapperParser.ParsePowerShellPayload (cognitive 23) · ×1
  • ExecShellWrapperParser.ParsePowerShellPayload (cognitive 23) src/OpenClaw.Shared/ExecShellWrapperParser.cs:124 — ExecShellWrapperParser.ParsePowerShellPayload has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · ExecShellWrapperParser.SplitTopLevelCommands (cognitive 23) · ×1
  • ExecShellWrapperParser.SplitTopLevelCommands (cognitive 23) src/OpenClaw.Shared/ExecShellWrapperParser.cs:218 — ExecShellWrapperParser.SplitTopLevelCommands has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.EndCurrentBlock (cognitive 23) · ×1
  • Md4cParser.EndCurrentBlock (cognitive 23) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:667 — Md4cParser.EndCurrentBlock has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.HandleRequestError (cognitive 23) · ×1
  • OpenClawGatewayClient.HandleRequestError (cognitive 23) src/OpenClaw.Shared/OpenClawGatewayClient.cs:1947 — OpenClawGatewayClient.HandleRequestError has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · DataModelStore.ApplyDataModelUpdate (cognitive 23) · ×1
  • DataModelStore.ApplyDataModelUpdate (cognitive 23) src/OpenClaw.Tray.WinUI/A2UI/DataModel/DataModelStore.cs:78 — DataModelStore.ApplyDataModelUpdate has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · RenderContext.BuildActionContext (cognitive 23) · ×1
  • RenderContext.BuildActionContext (cognitive 23) src/OpenClaw.Tray.WinUI/A2UI/Rendering/IComponentRenderer.cs:191 — RenderContext.BuildActionContext has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · TextFieldRenderer.Render (cognitive 23) · ×1
  • TextFieldRenderer.Render (cognitive 23) src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/InteractiveRenderers.cs:102 — TextFieldRenderer.Render has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · App.OnTrayMenuItemClicked (cognitive 23) · ×1
  • App.OnTrayMenuItemClicked (cognitive 23) src/OpenClaw.Tray.WinUI/App.xaml.cs:911 — App.OnTrayMenuItemClicked has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.FetchRemoteUserMessageAsync (cognitive 23) · ×1
  • OpenClawChatDataProvider.FetchRemoteUserMessageAsync (cognitive 23) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1793 — OpenClawChatDataProvider.FetchRemoteUserMessageAsync has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · ChannelsPage.BuildControlsSection (cognitive 23) · ×1
  • ChannelsPage.BuildControlsSection (cognitive 23) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:851 — ChannelsPage.BuildControlsSection has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · ConfigPage.BuildSchemaTreeNodes (cognitive 23) · ×1
  • ConfigPage.BuildSchemaTreeNodes (cognitive 23) src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:311 — ConfigPage.BuildSchemaTreeNodes has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · CronPage.CronToHuman (cognitive 23) · ×1
  • CronPage.CronToHuman (cognitive 23) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:880 — CronPage.CronToHuman has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · SettingsPage.OnRemoveGatewayAsync (cognitive 23) · ×1
  • SettingsPage.OnRemoveGatewayAsync (cognitive 23) src/OpenClaw.Tray.WinUI/Pages/SettingsPage.xaml.cs:262 — SettingsPage.OnRemoveGatewayAsync has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · CommandCenterStateBuilder.Build (cognitive 23) · ×1
  • CommandCenterStateBuilder.Build (cognitive 23) src/OpenClaw.Tray.WinUI/Services/CommandCenterStateBuilder.cs:20 — CommandCenterStateBuilder.Build has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · VerifyEndToEndStep.DrainPendingDeviceApprovalsAsync (cognitive 22) · ×1
  • VerifyEndToEndStep.DrainPendingDeviceApprovalsAsync (cognitive 22) src/OpenClaw.SetupEngine/SetupSteps.cs:2474 — VerifyEndToEndStep.DrainPendingDeviceApprovalsAsync has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsInlineLinkSpec (cognitive 22) · ×1
  • Md4cParser.IsInlineLinkSpec (cognitive 22) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1109 — Md4cParser.IsInlineLinkSpec has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.BuildProviderSummary (cognitive 22) · ×1
  • OpenClawGatewayClient.BuildProviderSummary (cognitive 22) src/OpenClaw.Shared/OpenClawGatewayClient.cs:3798 — OpenClawGatewayClient.BuildProviderSummary has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · ActionDispatcher.IsDebounced (cognitive 22) · ×1
  • ActionDispatcher.IsDebounced (cognitive 22) src/OpenClaw.Tray.WinUI/A2UI/Actions/IActionSink.cs:54 — ActionDispatcher.IsDebounced has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · SchemaConfigEditor.RenderField (cognitive 22) · ×1
  • SchemaConfigEditor.RenderField (cognitive 22) src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:174 — SchemaConfigEditor.RenderField has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · ChannelsPage.Render (cognitive 22) · ×1
  • ChannelsPage.Render (cognitive 22) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:390 — ChannelsPage.Render has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · PermissionsPage.LoadExecPolicy (cognitive 22) · ×1
  • PermissionsPage.LoadExecPolicy (cognitive 22) src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml.cs:570 — PermissionsPage.LoadExecPolicy has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · ProgressPage.StartPipelineAsync (cognitive 21) · ×1
  • ProgressPage.StartPipelineAsync (cognitive 21) src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml.cs:71 — ProgressPage.StartPipelineAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ExecApprovalPolicy.Evaluate (cognitive 21) · ×1
  • ExecApprovalPolicy.Evaluate (cognitive 21) src/OpenClaw.Shared/ExecApprovalPolicy.cs:142 — ExecApprovalPolicy.Evaluate has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ExecCommandResolver.CollectPatterns (cognitive 21) · ×1
  • ExecCommandResolver.CollectPatterns (cognitive 21) src/OpenClaw.Shared/ExecApprovals/ExecCommandResolution.cs:256 — ExecCommandResolver.CollectPatterns has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ExecShellWrapperParser.Expand (cognitive 21) · ×1
  • ExecShellWrapperParser.Expand (cognitive 21) src/OpenClaw.Shared/ExecShellWrapperParser.cs:25 — ExecShellWrapperParser.Expand has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.ProcessDoc (cognitive 21) · ×1
  • Md4cParser.ProcessDoc (cognitive 21) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1948 — Md4cParser.ProcessDoc has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.AnalyzeMarks (cognitive 21) · ×1
  • Md4cParser.AnalyzeMarks (cognitive 21) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:2480 — Md4cParser.AnalyzeMarks has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · WindowsNodeClient.HandleRequestError (cognitive 21) · ×1
  • WindowsNodeClient.HandleRequestError (cognitive 21) src/OpenClaw.Shared/WindowsNodeClient.cs:821 — WindowsNodeClient.HandleRequestError has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · RenderContext.CollectAllowedBindingPaths (cognitive 21) · ×1
  • RenderContext.CollectAllowedBindingPaths (cognitive 21) src/OpenClaw.Tray.WinUI/A2UI/Rendering/IComponentRenderer.cs:219 — RenderContext.CollectAllowedBindingPaths has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ConnectionPage.RunConnectivityTestAsync (cognitive 21) · ×1
  • ConnectionPage.RunConnectivityTestAsync (cognitive 21) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:2123 — ConnectionPage.RunConnectivityTestAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · WorkspacePage.UpdateAgentFilesList (cognitive 21) · ×1
  • WorkspacePage.UpdateAgentFilesList (cognitive 21) src/OpenClaw.Tray.WinUI/Pages/WorkspacePage.xaml.cs:98 — WorkspacePage.UpdateAgentFilesList has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ScreenCaptureService.CaptureAsync (cognitive 21) · ×1
  • ScreenCaptureService.CaptureAsync (cognitive 21) src/OpenClaw.Tray.WinUI/Services/ScreenCaptureService.cs:27 — ScreenCaptureService.CaptureAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ExecCommandResolver.ResolveForAllowlist (cognitive 20) · ×1
  • ExecCommandResolver.ResolveForAllowlist (cognitive 20) src/OpenClaw.Shared/ExecApprovals/ExecCommandResolution.cs:45 — ExecCommandResolver.ResolveForAllowlist has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsLinkReferenceDefinitionImpl (cognitive 20) · ×1
  • Md4cParser.IsLinkReferenceDefinitionImpl (cognitive 20) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:949 — Md4cParser.IsLinkReferenceDefinitionImpl has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · NotificationCategorizer.Classify (cognitive 20) · ×1
  • NotificationCategorizer.Classify (cognitive 20) src/OpenClaw.Shared/NotificationCategorizer.cs:64 — NotificationCategorizer.Classify has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.ParseNodeList (cognitive 20) · ×1
  • OpenClawGatewayClient.ParseNodeList (cognitive 20) src/OpenClaw.Shared/OpenClawGatewayClient.cs:3445 — OpenClawGatewayClient.ParseNodeList has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · WindowsNodeClient.HandleNodeInvokeEventAsync (cognitive 20) · ×1
  • WindowsNodeClient.HandleNodeInvokeEventAsync (cognitive 20) src/OpenClaw.Shared/WindowsNodeClient.cs:414 — WindowsNodeClient.HandleNodeInvokeEventAsync has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.OnStatusChanged (cognitive 20) · ×1
  • OpenClawChatDataProvider.OnStatusChanged (cognitive 20) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1036 — OpenClawChatDataProvider.OnStatusChanged has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.ExtractCommandOutputText (cognitive 20) · ×1
  • OpenClawChatDataProvider.ExtractCommandOutputText (cognitive 20) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2361 — OpenClawChatDataProvider.ExtractCommandOutputText has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · ConnectionStatusWindow.RefreshGateways (cognitive 20) · ×1
  • ConnectionStatusWindow.RefreshGateways (cognitive 20) src/OpenClaw.Tray.WinUI/Windows/ConnectionStatusWindow.xaml.cs:168 — ConnectionStatusWindow.RefreshGateways has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · Program.Main (cognitive 19) · ×1
  • Program.Main (cognitive 19) src/OpenClaw.Cli/Program.cs:24 — Program.Main has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · CompletePage.OnNavigatedTo (cognitive 19) · ×1
  • CompletePage.OnNavigatedTo (cognitive 19) src/OpenClaw.SetupEngine.UI/Pages/CompletePage.xaml.cs:23 — CompletePage.OnNavigatedTo has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsAutolinkUri (cognitive 19) · ×1
  • Md4cParser.IsAutolinkUri (cognitive 19) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1328 — Md4cParser.IsAutolinkUri has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · Md4cUnicode.GetUnicodeFoldInfo (cognitive 19) · ×1
  • Md4cUnicode.GetUnicodeFoldInfo (cognitive 19) src/OpenClaw.Shared/Markdown/Md4c/Md4cUnicode.cs:584 — Md4cUnicode.GetUnicodeFoldInfo has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · McpToolBridge.HandleRequestAsync (cognitive 19) · ×1
  • McpToolBridge.HandleRequestAsync (cognitive 19) src/OpenClaw.Shared/Mcp/McpToolBridge.cs:55 — McpToolBridge.HandleRequestAsync has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · MxcConfigBuilder.BuildEnv (cognitive 19) · ×1
  • MxcConfigBuilder.BuildEnv (cognitive 19) src/OpenClaw.Shared/Mxc/MxcConfigBuilder.cs:248 — MxcConfigBuilder.BuildEnv has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · DateTimeInputRenderer.Render (cognitive 19) · ×1
  • DateTimeInputRenderer.Render (cognitive 19) src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/InteractiveRenderers.cs:205 — DateTimeInputRenderer.Render has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.LooksLikeFlattenedToolOutput (cognitive 19) · ×1
  • OpenClawChatDataProvider.LooksLikeFlattenedToolOutput (cognitive 19) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2823 — OpenClawChatDataProvider.LooksLikeFlattenedToolOutput has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · CronPage.UpdateCronRuns (cognitive 19) · ×1
  • CronPage.UpdateCronRuns (cognitive 19) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:1416 — CronPage.UpdateCronRuns has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · NodeService.DisposeCoreAsync (cognitive 19) · ×1
  • NodeService.DisposeCoreAsync (cognitive 19) src/OpenClaw.Tray.WinUI/Services/NodeService.cs:2007 — NodeService.DisposeCoreAsync has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · GatewayConnectionManager.AutoApproveDevicePairingRequestAsync (cognitive 18) · ×1
  • GatewayConnectionManager.AutoApproveDevicePairingRequestAsync (cognitive 18) src/OpenClaw.Connection/GatewayConnectionManager.cs:1473 — GatewayConnectionManager.AutoApproveDevicePairingRequestAsync has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · DeviceCapability.HandleStatusAsync (cognitive 18) · ×1
  • DeviceCapability.HandleStatusAsync (cognitive 18) src/OpenClaw.Shared/Capabilities/DeviceCapability.cs:69 — DeviceCapability.HandleStatusAsync has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ExecApprovalsCoordinator.HandleAsync (cognitive 18) · ×1
  • ExecApprovalsCoordinator.HandleAsync (cognitive 18) src/OpenClaw.Shared/ExecApprovals/ExecApprovalsCoordinator.cs:38 — ExecApprovalsCoordinator.HandleAsync has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.ProcessLeafBlock (cognitive 18) · ×1
  • Md4cParser.ProcessLeafBlock (cognitive 18) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:335 — Md4cParser.ProcessLeafBlock has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.EnterChildContainers (cognitive 18) · ×1
  • Md4cParser.EnterChildContainers (cognitive 18) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1174 — Md4cParser.EnterChildContainers has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.LeaveChildContainers (cognitive 18) · ×1
  • Md4cParser.LeaveChildContainers (cognitive 18) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Block.cs:1226 — Md4cParser.LeaveChildContainers has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsLinkDestinationB (cognitive 18) · ×1
  • Md4cParser.IsLinkDestinationB (cognitive 18) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:821 — Md4cParser.IsLinkDestinationB has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsLinkTitle (cognitive 18) · ×1
  • Md4cParser.IsLinkTitle (cognitive 18) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:875 — Md4cParser.IsLinkTitle has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.IsAutolinkEmail (cognitive 18) · ×1
  • Md4cParser.IsAutolinkEmail (cognitive 18) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.Inline.cs:1366 — Md4cParser.IsAutolinkEmail has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · McpHttpServer.HandleAsync (cognitive 18) · ×1
  • McpHttpServer.HandleAsync (cognitive 18) src/OpenClaw.Shared/Mcp/McpHttpServer.cs:202 — McpHttpServer.HandleAsync has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.ExtractToolLabel (cognitive 18) · ×1
  • OpenClawChatDataProvider.ExtractToolLabel (cognitive 18) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2408 — OpenClawChatDataProvider.ExtractToolLabel has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ConnectionPage.ApplyGlanceChips (cognitive 18) · ×1
  • ConnectionPage.ApplyGlanceChips (cognitive 18) src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:538 — ConnectionPage.ApplyGlanceChips has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ConnectionPagePlan.ApplyNodeListApproval (cognitive 18) · ×1
  • ConnectionPagePlan.ApplyNodeListApproval (cognitive 18) src/OpenClaw.Tray.WinUI/Pages/ConnectionPagePlan.cs:514 — ConnectionPagePlan.ApplyNodeListApproval has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · CronPage.OnEditJobClick (cognitive 18) · ×1
  • CronPage.OnEditJobClick (cognitive 18) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:205 — CronPage.OnEditJobClick has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · CronPage.FormatEverySchedule (cognitive 18) · ×1
  • CronPage.FormatEverySchedule (cognitive 18) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:934 — CronPage.FormatEverySchedule has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · SessionsPage.ResolveSessionKey (cognitive 18) · ×1
  • SessionsPage.ResolveSessionKey (cognitive 18) src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs:251 — SessionsPage.ResolveSessionKey has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · DiagnosticsJsonlService.WriterLoopAsync (cognitive 18) · ×1
  • DiagnosticsJsonlService.WriterLoopAsync (cognitive 18) src/OpenClaw.Tray.WinUI/Services/DiagnosticsJsonlService.cs:86 — DiagnosticsJsonlService.WriterLoopAsync has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · ConnectionStatusWindow.OnDirectConnectAsync (cognitive 18) · ×1
  • ConnectionStatusWindow.OnDirectConnectAsync (cognitive 18) src/OpenClaw.Tray.WinUI/Windows/ConnectionStatusWindow.xaml.cs:352 — ConnectionStatusWindow.OnDirectConnectAsync has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · WizardPage.SendCurrentAnswerAsync (cognitive 17) · ×1
  • WizardPage.SendCurrentAnswerAsync (cognitive 17) src/OpenClaw.SetupEngine.UI/Pages/WizardPage.xaml.cs:421 — WizardPage.SendCurrentAnswerAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · VerifyEndToEndStep.DrainPendingApprovalsAsync (cognitive 17) · ×1
  • VerifyEndToEndStep.DrainPendingApprovalsAsync (cognitive 17) src/OpenClaw.SetupEngine/SetupSteps.cs:2536 — VerifyEndToEndStep.DrainPendingApprovalsAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · Md4cParser.TextWithNullReplacement (cognitive 17) · ×1
  • Md4cParser.TextWithNullReplacement (cognitive 17) src/OpenClaw.Shared/Markdown/Md4c/Md4cParser.cs:359 — Md4cParser.TextWithNullReplacement has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · MediaResolver.IndexOfAsciiCi (cognitive 17) · ×1
  • MediaResolver.IndexOfAsciiCi (cognitive 17) src/OpenClaw.Tray.WinUI/A2UI/Rendering/MediaResolver.cs:444 — MediaResolver.IndexOfAsciiCi has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.OnSessionsUpdated (cognitive 17) · ×1
  • OpenClawChatDataProvider.OnSessionsUpdated (cognitive 17) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1130 — OpenClawChatDataProvider.OnSessionsUpdated has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ChannelsPage.ResolveHeaderState (cognitive 17) · ×1
  • ChannelsPage.ResolveHeaderState (cognitive 17) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:2223 — ChannelsPage.ResolveHeaderState has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ChannelsPage.BuildGenericSubtitleLines (cognitive 17) · ×1
  • ChannelsPage.BuildGenericSubtitleLines (cognitive 17) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:2309 — ChannelsPage.BuildGenericSubtitleLines has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ConfigPage.RenderTree (cognitive 17) · ×1
  • ConfigPage.RenderTree (cognitive 17) src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:271 — ConfigPage.RenderTree has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ConfigPage.UpdateSelectedJsonPreview (cognitive 17) · ×1
  • ConfigPage.UpdateSelectedJsonPreview (cognitive 17) src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:722 — ConfigPage.UpdateSelectedJsonPreview has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ConfigPage.TryBuildRootLeafSchema (cognitive 17) · ×1
  • ConfigPage.TryBuildRootLeafSchema (cognitive 17) src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:1186 — ConfigPage.TryBuildRootLeafSchema has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · CronPage.ApplyExpandState (cognitive 17) · ×1
  • CronPage.ApplyExpandState (cognitive 17) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:975 — CronPage.ApplyExpandState has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · AudioPipeline.TranscribeSamplesAsync (cognitive 17) · ×1
  • AudioPipeline.TranscribeSamplesAsync (cognitive 17) src/OpenClaw.Tray.WinUI/Services/AudioPipeline.cs:442 — AudioPipeline.TranscribeSamplesAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · DeepLinkHandler.Handle (cognitive 17) · ×1
  • DeepLinkHandler.Handle (cognitive 17) src/OpenClaw.Tray.WinUI/Services/DeepLinkHandler.cs:54 — DeepLinkHandler.Handle has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · SetupWizardWindow.OnTestConnectionAsync (cognitive 17) · ×1
  • SetupWizardWindow.OnTestConnectionAsync (cognitive 17) src/OpenClaw.Tray.WinUI/Windows/SetupWizardWindow.cs:736 — SetupWizardWindow.OnTestConnectionAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · UiRenderer.RemoveFromParent (cognitive 17) · ×1
  • UiRenderer.RemoveFromParent (cognitive 17) src/OpenClawTray.FunctionalUI/FunctionalUI.cs:1540 — UiRenderer.RemoveFromParent has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ChatTimelineReducer.ApplyTurnEnd (cognitive 16) · ×1
  • ChatTimelineReducer.ApplyTurnEnd (cognitive 16) src/OpenClaw.Chat/ChatTimelineReducer.cs:682 — ChatTimelineReducer.ApplyTurnEnd has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · BrowserProxyCapability.BuildUri (cognitive 16) · ×1
  • BrowserProxyCapability.BuildUri (cognitive 16) src/OpenClaw.Shared/Capabilities/BrowserProxyCapability.cs:206 — BrowserProxyCapability.BuildUri has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ExecAllowlistMatcher.BuildPatternRegex (cognitive 16) · ×1
  • ExecAllowlistMatcher.BuildPatternRegex (cognitive 16) src/OpenClaw.Shared/ExecApprovals/ExecAllowlistMatcher.cs:95 — ExecAllowlistMatcher.BuildPatternRegex has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · LocalCommandRunner.RunAsync (cognitive 16) · ×1
  • LocalCommandRunner.RunAsync (cognitive 16) src/OpenClaw.Shared/LocalCommandRunner.cs:26 — LocalCommandRunner.RunAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · DirectAppContainerExecutor.ExecuteAsync (cognitive 16) · ×1
  • DirectAppContainerExecutor.ExecuteAsync (cognitive 16) src/OpenClaw.Shared/Mxc/DirectAppContainerExecutor.cs:55 — DirectAppContainerExecutor.ExecuteAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · MxcExecutor.RunWithArgumentsAsync (cognitive 16) · ×1
  • MxcExecutor.RunWithArgumentsAsync (cognitive 16) src/OpenClaw.Shared/Mxc/MxcExecutor.cs:76 — MxcExecutor.RunWithArgumentsAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · OpenClawGatewayClient.EnumerateHandshakeDeviceTokens (cognitive 16) · ×1
  • OpenClawGatewayClient.EnumerateHandshakeDeviceTokens (cognitive 16) src/OpenClaw.Shared/OpenClawGatewayClient.cs:2358 — OpenClawGatewayClient.EnumerateHandshakeDeviceTokens has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.MapReasoningEvent (cognitive 16) · ×1
  • OpenClawChatDataProvider.MapReasoningEvent (cognitive 16) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2186 — OpenClawChatDataProvider.MapReasoningEvent has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.ExtractToolErrorText (cognitive 16) · ×1
  • OpenClawChatDataProvider.ExtractToolErrorText (cognitive 16) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:2455 — OpenClawChatDataProvider.ExtractToolErrorText has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · OpenClawChatDataProvider.SaveToolMetaCache (cognitive 16) · ×1
  • OpenClawChatDataProvider.SaveToolMetaCache (cognitive 16) src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:4280 — OpenClawChatDataProvider.SaveToolMetaCache has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · SchemaConfigEditor.RenderSchemaNode (cognitive 16) · ×1
  • SchemaConfigEditor.RenderSchemaNode (cognitive 16) src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:105 — SchemaConfigEditor.RenderSchemaNode has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ConfigPage.ShowDetail (cognitive 16) · ×1
  • ConfigPage.ShowDetail (cognitive 16) src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:366 — ConfigPage.ShowDetail has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ConfigPage.MatchesSearch (cognitive 16) · ×1
  • ConfigPage.MatchesSearch (cognitive 16) src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:1343 — ConfigPage.MatchesSearch has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · GlobalHotkeyService.WndProc (cognitive 16) · ×1
  • GlobalHotkeyService.WndProc (cognitive 16) src/OpenClaw.Tray.WinUI/Services/GlobalHotkeyService.cs:227 — GlobalHotkeyService.WndProc has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ScreenCaptureService.DrawCursor (cognitive 16) · ×1
  • ScreenCaptureService.DrawCursor (cognitive 16) src/OpenClaw.Tray.WinUI/Services/ScreenCaptureService.cs:174 — ScreenCaptureService.DrawCursor has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · HubWindow.OnAppModelChanged (cognitive 16) · ×1
  • HubWindow.OnAppModelChanged (cognitive 16) src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:258 — HubWindow.OnAppModelChanged has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · HubWindow.UpdateGatewayNavVisibility (cognitive 16) · ×1
  • HubWindow.UpdateGatewayNavVisibility (cognitive 16) src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:591 — HubWindow.UpdateGatewayNavVisibility has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · TrayMenuWindow.ShowCascadingFlyout (cognitive 16) · ×1
  • TrayMenuWindow.ShowCascadingFlyout (cognitive 16) src/OpenClaw.Tray.WinUI/Windows/TrayMenuWindow.xaml.cs:1101 — TrayMenuWindow.ShowCascadingFlyout has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · CliRunner.EmitResult (cognitive 16) · ×1
  • CliRunner.EmitResult (cognitive 16) src/OpenClaw.WinNode.Cli/Program.cs:325 — CliRunner.EmitResult has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · UiRenderer.SyncChildren (cognitive 16) · ×1
  • UiRenderer.SyncChildren (cognitive 16) src/OpenClawTray.FunctionalUI/FunctionalUI.cs:1441 — UiRenderer.SyncChildren has cognitive complexity 16 (threshold 15).
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 (38 lines × 2) · ×1
  • Duplicated block (38 lines × 2) src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:440 — src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:440-477 | src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:503-540
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×1
  • Duplicated block (27 lines × 2) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1086 — src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1086-1111 | src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:1112-1138
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×1
  • Duplicated block (21 lines × 2) src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml.cs:739 — src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml.cs:739-759 | src/OpenClaw.Tray.WinUI/Windows/ChatWindow.xaml.cs:555-575
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×1
  • Duplicated block (18 lines × 2) src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:2109 — src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:2109-2126 | src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs:2171-2187
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×1
  • Duplicated block (17 lines × 2) src/OpenClaw.SetupEngine/SetupSteps.cs:1858 — src/OpenClaw.SetupEngine/SetupSteps.cs:1858-1874 | src/OpenClaw.SetupEngine/SetupSteps.cs:2680-2696
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×1
  • Duplicated block (16 lines × 3) src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/DisplayRenderers.cs:277 — src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/DisplayRenderers.cs:277-292 | src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/DisplayRenderers.cs:293-308 | src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/DisplayRenderers.cs:309-324
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:125 — src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:125-130 | src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:179-185 | src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:207-212 | src/OpenClaw.Tray.WinUI/Pages/CronPage.xaml.cs:1344-1349
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×1
  • Duplicated block (7 lines × 3) src/OpenClaw.Shared/NotificationCategorizer.cs:105 — src/OpenClaw.Shared/NotificationCategorizer.cs:105-111 | src/OpenClaw.Shared/NotificationCategorizer.cs:115-121 | src/OpenClaw.Shared/NotificationCategorizer.cs:123-129
D5 · Coupling · Unstable project OpenClaw.Tray.WinUI · ×1
  • Unstable project OpenClaw.Tray.WinUI — OpenClaw.Tray.WinUI has instability 0.83 with 1 dependents.
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: OpenClaw.Shared — OpenClaw.Shared: abstractness 0.07, instability 0.00, distance 0.93 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
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 — 17 finding(s)
D24 · Comment Value · redundant comment · ×3
  • redundant comment src/OpenClaw.Connection/GatewayConnectionManager.cs:1387 — "// Update snapshot" — Remove; the variable name or context likely makes this obvious.
  • redundant comment src/OpenClaw.Tray.WinUI/Dialogs/DownloadProgressDialog.cs:32 — "// Size and center the window" — Remove; the method name `ShowAsync` or `CenterWindow` likely suffices.
  • redundant comment tests/OpenClaw.Tray.Tests/LocalizationValidationTests.cs:534 — "// Resources_AreTranslatedAllOrNoneAcrossNonEnglishLocales requires the" — Remove; this is a test setup comment that duplicates the test name.
D11 · Test Reliability · No tests discovered · ×1
  • No tests discovered — Test reliability not scored — the test tier(s) built and ran but no tests were discovered, so reliability couldn't be exercised.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found — No ADRs found at common paths; consider documenting architectural decisions in Docs/ADL/ or similar.
D23 · Boundary Type-Coupling · Bounded contexts not declared · ×1
  • Bounded contexts not declared — The codebase is large and multi-project, indicating distinct modules that require explicit bounded contexts to manage coupling. Declare architecture.contexts (≥2) in config to assess cross-boundary type coupling.
D25 · ADR Conformance · no ADRs to check · ×1
  • no ADRs to check — No ADRs found, so conformance can't be assessed.
D26 · Project Cohesion · Split OpenClaw.Shared · ×1
  • Split OpenClaw.Shared — With 300 public types across 8 namespaces, this large project likely covers multiple distinct responsibilities rather than a single clear area. Suggested: by namespace: 8 distinct areas
D26 · Project Cohesion · Split OpenClaw.Tray.WinUI · ×1
  • Split OpenClaw.Tray.WinUI — This project is extremely large (56k LoC) and spans 17 namespaces, indicating a lack of cohesion and multiple unrelated responsibilities. Suggested: by namespace: 17 distinct areas
D30 · Dependency Vulnerabilities · Not applicable · ×1
  • Not applicable — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution
D31 · IaC & Container Security · Not applicable · ×1
  • Not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
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.
D34 · Knowledge Freshness · early-stage repository · ×1
  • early-stage repository — too little history to judge knowledge freshness — early-stage repository — too little history to judge knowledge freshness (0 commit(s) sampled).
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).
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.
Info — 181 finding(s)
D17 · Explicit Debt · Justified suppression · ×158
  • Justified suppression src/OpenClaw.Connection/GatewayConnectionManager.cs:324 — empty catch (OperationCanceledException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Connection/GatewayConnectionManager.cs:926 — empty catch (ObjectDisposedException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.SetupEngine.UI/Pages/PermissionsPage.xaml.cs:110 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.SetupEngine.UI/WizardConsoleTail.cs:91 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.SetupEngine.UI/WizardConsoleTail.cs:129 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/Audio/WhisperModelManager.cs:164 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/ExecApprovalPolicy.cs:434 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/ExecApprovalPolicy.cs:451 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/Mcp/McpHttpServer.cs:182 — empty catch (ObjectDisposedException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/Mxc/MxcAvailability.cs:148 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/Mxc/MxcAvailability.cs:140 — #pragma warning disable CA1416 // OperatingSystem.IsWindows() guard above; analyzer doesn't recognize it through callee.
  • Justified suppression src/OpenClaw.Shared/WebSocketClientBase.cs:229 — empty catch (OperationCanceledException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/WebSocketClientBase.cs:230 — empty catch (ObjectDisposedException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/WebSocketClientBase.cs:253 — empty catch (ObjectDisposedException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/WebSocketClientBase.cs:298 — empty catch (OperationCanceledException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/WebSocketClientBase.cs:299 — empty catch (ObjectDisposedException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/WebSocketClientBase.cs:353 — empty catch (OperationCanceledException) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/WebSocketClientBase.cs:358 — empty catch (ObjectDisposedException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/WindowsNodeClient.cs:534 — empty catch (OperationCanceledException) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Shared/WindowsNodeClient.cs:1093 — empty catch (OperationCanceledException) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Tray.WinUI/A2UI/Actions/IActionSink.cs:154 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Tray.WinUI/A2UI/Rendering/Renderers/ContainerRenderers.cs:279 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Tray.WinUI/App.xaml.cs:277 — empty catch (ArgumentException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Tray.WinUI/App.xaml.cs:319 — empty catch (Exception) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/OpenClaw.Tray.WinUI/App.xaml.cs:321 — empty catch (Exception) — narrow/filtered/commented, treated as intentional
  • + 133 more in this group — see findings.md.
D14 · License Compliance · Licenses scanned · ×1
  • Licenses scanned — 16 packages scanned; 2 distinct SPDX licenses.
D18 · Solution Shape · Build status unknown · ×1
  • Build status unknown — The build did not finish within its budget on this run; structural metrics are reported, build/warning status is unknown.
D18 · Solution Shape · OpenClaw.Chat (Production) · ×1
  • OpenClaw.Chat (Production) src/OpenClaw.Chat/OpenClaw.Chat.csproj — 3 .cs files, 1008 LoC (601 significant)
D18 · Solution Shape · OpenClaw.Cli (Production) · ×1
  • OpenClaw.Cli (Production) src/OpenClaw.Cli/OpenClaw.Cli.csproj — 1 .cs files, 297 LoC (255 significant)
D18 · Solution Shape · OpenClaw.Connection (Production) · ×1
  • OpenClaw.Connection (Production) src/OpenClaw.Connection/OpenClaw.Connection.csproj — 32 .cs files, 4332 LoC (3312 significant)
D18 · Solution Shape · OpenClaw.SetupEngine.UI (Production) · ×1
  • OpenClaw.SetupEngine.UI (Production) src/OpenClaw.SetupEngine.UI/OpenClaw.SetupEngine.UI.csproj — 10 .cs files, 2324 LoC (1908 significant)
D18 · Solution Shape · OpenClaw.SetupEngine (Production) · ×1
  • OpenClaw.SetupEngine (Production) src/OpenClaw.SetupEngine/OpenClaw.SetupEngine.csproj — 21 .cs files, 5885 LoC (4630 significant)
D18 · Solution Shape · OpenClaw.Shared (Production) · ×1
  • OpenClaw.Shared (Production) src/OpenClaw.Shared/OpenClaw.Shared.csproj — 112 .cs files, 34373 LoC (26315 significant)
D18 · Solution Shape · OpenClaw.Tray.WinUI (Production) · ×1
  • OpenClaw.Tray.WinUI (Production) src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj — 152 .cs files, 63296 LoC (49221 significant)
D18 · Solution Shape · OpenClaw.WinNode.Cli (Production) · ×1
  • OpenClaw.WinNode.Cli (Production) src/OpenClaw.WinNode.Cli/OpenClaw.WinNode.Cli.csproj — 1 .cs files, 846 LoC (629 significant)
D18 · Solution Shape · OpenClawTray.FunctionalUI (Production) · ×1
  • OpenClawTray.FunctionalUI (Production) src/OpenClawTray.FunctionalUI/OpenClawTray.FunctionalUI.csproj — 1 .cs files, 1783 LoC (1549 significant)
D18 · Solution Shape · OpenClaw.Connection.Tests (Test) · ×1
  • OpenClaw.Connection.Tests (Test) tests/OpenClaw.Connection.Tests/OpenClaw.Connection.Tests.csproj — 19 .cs files, 5759 LoC (4568 significant)
D18 · Solution Shape · OpenClaw.Shared.Tests (Test) · ×1
  • OpenClaw.Shared.Tests (Test) tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj — 65 .cs files, 28225 LoC (22787 significant)
D18 · Solution Shape · OpenClaw.Tray.IntegrationTests (Production) · ×1
  • OpenClaw.Tray.IntegrationTests (Production) tests/OpenClaw.Tray.IntegrationTests/OpenClaw.Tray.IntegrationTests.csproj — 5 .cs files, 1012 LoC (748 significant)
D18 · Solution Shape · OpenClaw.Tray.Tests (Test) · ×1
  • OpenClaw.Tray.Tests (Test) tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj — 123 .cs files, 30121 LoC (22855 significant)
D18 · Solution Shape · OpenClaw.Tray.UITests (Production) · ×1
  • OpenClaw.Tray.UITests (Production) tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj — 11 .cs files, 2349 LoC (1778 significant)
D18 · Solution Shape · OpenClaw.WinNode.Cli.Tests (Test) · ×1
  • OpenClaw.WinNode.Cli.Tests (Test) tests/OpenClaw.WinNode.Cli.Tests/OpenClaw.WinNode.Cli.Tests.csproj — 9 .cs files, 1807 LoC (1411 significant)
D18 · Solution Shape · OpenClawTray.FunctionalUI.Tests (Test) · ×1
  • OpenClawTray.FunctionalUI.Tests (Test) tests/OpenClawTray.FunctionalUI.Tests/OpenClawTray.FunctionalUI.Tests.csproj — 2 .cs files, 157 LoC (119 significant)
D22 · Internal API Consistency · No exposed public API · ×1
  • No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.
D9 · Test Distribution · Unit tests · ×1
  • Unit tests — 2841 unit test method(s).
D9 · Test Distribution · Integration tests · ×1
  • Integration tests — 0 integration test method(s).
D9 · Test Distribution · BDD tests · ×1
  • BDD tests — 0 BDD test method(s).
D9 · Test Distribution · E2E tests · ×1
  • E2E tests — 0 end-to-end test method(s).

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: not applicable — the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution0
D31 · IaC & Container Securitytrivytrivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.0
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 fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .0artifacts/raw/trivy-fs.json
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner --format json --recursive .0artifacts/raw/osv-scanner.json

Run 019ee1d9-8fec-73a7-a628-aa8e83bd7f30 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Appendix C — Personal-data map

Every field, property and record parameter whose name is conventional personal data — 5 field(s) across 2 categories, each with an exact repo-relative file:line. This is the data inventory a compliance review starts from — right-to-erasure, retention, minimisation. Detected by name with a deliberately specific classifier (the same one the GDPR dimensions use, so CardDefinition or FileName don't trip); informational — it feeds no score.

Email — 4 field(s)
  • SettingsData.NotifyEmail src/OpenClaw.Shared/SettingsData.cs:31
  • TokenSanitizer.EmailPattern src/OpenClaw.Shared/TokenSanitizer.cs:89
  • CommandCenterTextHelper.ValueEmailPattern src/OpenClaw.Tray.WinUI/Helpers/CommandCenterTextHelper.cs:44
  • SettingsManager.NotifyEmail src/OpenClaw.Tray.WinUI/Services/SettingsManager.cs:63
Phone — 1 field(s)
  • Glyph.CellPhone src/OpenClaw.Tray.WinUI/Pages/InstancesPage.xaml.cs:762

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