Public report — LibreChat, published 8 Aug 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 08-08-2026 @ 00:01 UTC Public
Code Health Audit

Danny-Avila/LibreChat

No baseline yet — first run no automated testssingle-maintainer
39% At Risk

— · weakest lens: Readiness (26%)

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

42/44dimensions tool-verifieddeterministic · confidence 1.0 · 2 LLM-assisted, advisory
348findings with an exact file:lineof 360 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
44/102dimensions across the health lenses — 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.

danny-avila/LibreChat carries serious gaps (39%). Several issues below can materially affect correctness, security, or the cost of changing it — and propagate to everything that depends on it.

Most urgent: a critical security exposure was detected (see the Security & Compliance lens). Treat it as a priority regardless of the overall grade.

The area that most needs attention is Readiness (26%) — 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. Security (44%) is the next concern — exposure to security and compliance incidents is elevated.

Leadership focus, highest impact first: ILogger (or Serilog) and log at meaningful points across… (Observability); SAST step (e.g. CodeQL) or a security analyzer package (Security & performance tooling); unused dependencies, declare unlisted imports explicitly,… (Dependency Hygiene).

For scale: — (~0 production lines); rebuilding it from scratch would take roughly — (—). Approximate, ±~30%.

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Readiness 26% · 47% weightSecurity 44% · 26% weightArchitecture 53% · 14% weightMaturity 56% · 8% weightCode Health 68% · 4% weight

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

Top priorities

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

1
Resolve the 1 No automated tests finding(s) in Code Coverage.
+12.5 pts · Low effort · Code Coverage
2
Resolve the 1 No tests found finding(s) in Test Distribution.
+12.5 pts · Low effort · Test Distribution
3
Adopt ILogger (or Serilog) and log at meaningful points across the projects.
+13.5 pts · Medium effort · Observability

Diagnosis — what's actually going on

Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Adopt ILogger (or Serilog) and log at meaningful points across the projects. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Adopt ILogger (or Serilog) and log at meaningful points across the projects.

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

At a glance — Architecture · 53% · Adequate · gated by R9

At a glance — Maturity · 56% · Adequate · gated by M2

At a glance — Readiness · 26% · Weak · gated by D8, D9, R8, P2, P3

At a glance — Security · 44% · Weak · gated by D28, D29, D36, D38

Security & Compliance — OWASP Top-10 mapping

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

OWASP categoryFindingsSeverity
A03:2021 — Injection50High / Critical
A06:2021 — Vulnerable & Outdated Components50High / Critical
A05:2021 — Security Misconfiguration9High / Critical
A02:2021 — Cryptographic Failures8High / Critical

Roadmap

First, implement structured logging across all projects to establish baseline observability. Next, introduce static application security testing to identify vulnerabilities early in the development cycle. Then, clean up the dependency tree by removing unused packages and ensuring all imports are explicitly declared. Finally, address the single missing automated test and the one area with no tests to ensure comprehensive test coverage and distribution.

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

Do thisHelpsEffortDimension
Resolve the 1 No automated tests finding(s) in Code Coverage.+12.5 ptsLowCode Coverage
Resolve the 1 No tests found finding(s) in Test Distribution.+12.5 ptsLowTest Distribution
Adopt ILogger (or Serilog) and log at meaningful points across the projects.+13.5 ptsMediumObservability
Add a SAST step (e.g. CodeQL) or a security analyzer package.+13.5 ptsMediumSecurity & performance tooling
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.+13.5 ptsMediumDependency Hygiene
Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).+11.2 ptsMediumDR & Backup
Add tests that import the unreached modules (directly or through their public entry).+6.8 ptsMediumTest Coverage
Resolve the 8 Secret finding(s) in Secrets (history) — start with checks.ts (3), values.yaml (3), docker-compose.yml.+2.7 ptsLowSecrets (history)

File quality

Per-file score 0–10 — a quality signature. Of 88 files carrying findings, judged against the Production bar: 1% slop · 72% mixed · 27% near-clean.

FileScoreBandWorst signal
bun.lock0.2SlopOSV Dependency Vulnerabilities: Critical CVE: [GHSA redacted]
.github/workflows/backend-review.yml4.4MixedStatic Analysis (SAST): High: gha-workflow-env-secret
.github/workflows/agents-integration-tests.yml4.5MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
helm/librechat/values.yaml5.1MixedSecrets (history): Secret: generic-api-key
packages/api/src/app/checks.ts5.1MixedSecrets (history): Secret: generic-api-key
.do/gitnexus/Dockerfile5.1MixedIaC & Container Security: High IaC: DS-0002
.github/workflows/a11y.yml5.8MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
.github/workflows/build.yml5.8MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
.devcontainer/Dockerfile6.5MixedIaC & Container Security: High IaC: DS-0002
Dockerfile.multi6.5MixedIaC & Container Security: High IaC: DS-0002
api/app/clients/BaseClient.js7.0MixedCyclomatic Complexity: sendMessage (cyclomatic 68)
api/server/controllers/agents/v1.js7.0MixedCyclomatic Complexity: updateAgentHandler (cyclomatic 50)
api/server/services/ToolService.js7.0MixedCyclomatic Complexity: loadToolsForExecution (cyclomatic 49)
api/server/controllers/agents/client.js7.0MixedCyclomatic Complexity: chatCompletion (cyclomatic 42)
api/server/controllers/agents/request.js7.0MixedCyclomatic Complexity: ResumableAgentController (cyclomatic 116)
api/server/services/PermissionService.js7.0MixedCyclomatic Complexity: bulkUpdateResourcePermissions (cyclomatic 33)
api/server/services/MCP.js7.0MixedCyclomatic Complexity: _call (cyclomatic 27)
api/server/controllers/agents/callbacks.js7.0MixedCyclomatic Complexity: handle (cyclomatic 29)
api/server/controllers/PermissionsController.js7.0MixedCyclomatic Complexity: updateResourcePermissions (cyclomatic 25)
api/server/controllers/agents/resume.js7.1MixedCyclomatic Complexity: ResumeAgentController (cyclomatic 77)

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. 42 of 44 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 2 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 — 44 dimensions across the health lenses
D1D2D3D4D5D8D9D12D13D19D21D26D27D28D29D31D33D36D37D38AX5M1M2M3M4P1P2P3P4P5R1R10R11R2R3R4R5R6R7R8R9X1X3X4

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, 348 of 360 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 measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019fdeac-c05f-7c6f-9acc-a86104332876.

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.

  • D18 Solution Shape — evaluation did not complete — Dimension evaluation failed — excluded from the score.
  • D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
  • D32 Data Compliance (PII/GDPR) — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.

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

Limitations & what we did not check

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

Per-dimension blind spots

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

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (EF migration scaffolds, *.Designer.cs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only; the generated footprint is reported separately under Solution Shape.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D8 Code Coverage: Coverage is measured by building and running the suite (`dotnet test --collect`) inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • 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").
  • 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.
  • 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.
  • 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").
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles — risk from how a dependency is used, and advisories not yet published, fall outside this scan.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.

The LLM boundary

LLM-set scores this run (3): D19, D21, M4 (model: Local LLM). 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.2 / 10Weak✓ 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.2 / 10 · rule-coverage 100% · ceiling Prevented

86 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ResumableAgentController at 116.

(anonymous) (cyclomatic 31) · ×2api/strategies/ldapStrategy.js:88
(anonymous) (cyclomatic 20) · ×2api/strategies/samlStrategy.js:185
ResumableAgentController (cyclomatic 116)api/server/controllers/agents/request.js:312
disposeClient (cyclomatic 86)api/server/cleanup.js:87
startGeneration (cyclomatic 81)api/server/controllers/agents/request.js:1180

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

What to do

  1. Resolve the 2 (anonymous) (cyclomatic 31) finding(s) in Cyclomatic Complexity — start with client.js, ldapStrategy.js. — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 2 (anonymous) (cyclomatic 20) finding(s) in Cyclomatic Complexity — start with mcp.js, samlStrategy.js. — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 1 ResumableAgentController (cyclomatic 116) finding(s) in Cyclomatic Complexity — start with request.js. — 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

115 method(s) exceeded the cognitive complexity threshold of 15; the worst was ResumableAgentController at 193.

(anonymous) (cognitive 18) · ×3api/server/routes/memories.js:242
(anonymous) (cognitive 30) · ×2config/create-user.js:9
(anonymous) (cognitive 26) · ×2api/strategies/samlStrategy.js:185
(anonymous) (cognitive 19) · ×2config/update.js:57
(anonymous) (cognitive 16) · ×2config/migrate-code-file-duplicates.js:83

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

What to do

  1. Resolve the 3 (anonymous) (cognitive 18) finding(s) in Cognitive Complexity — start with openai.js (2), memories.js. — One of this dimension's main actionable groups (3 warning-level).
  2. Resolve the 2 (anonymous) (cognitive 30) finding(s) in Cognitive Complexity — start with callbacks.js, create-user.js. — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 2 (anonymous) (cognitive 26) finding(s) in Cognitive Complexity — start with errors.js, samlStrategy.js. — One of this dimension's main actionable groups (2 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 Classes0.0 / 10Critical✓ 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 0.0 / 10 · rule-coverage 100% · ceiling Prevented

30 god class(es) detected.

FileTooLong: api/typedefs.js · ×30api/typedefs.js:0

What to do

  1. Resolve the 30 FileTooLong finding(s) in God Classes — start with mcp.js (2), ActionService.js, AuthService.js. — One of this dimension's main actionable groups (30 warning-level).
  2. 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 Duplication10.0 / 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 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 duplicated block group(s) detected.

✓ On the Gold path — maintain.

Detailed fixes: d4_recommendation.md.

D5 · Coupling6.9 / 10Adequate✓ 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 6.9 / 10 · rule-coverage 100% · ceiling Prevented

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

What to do

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

D8 · Code Coverage0.0 / 10Critical✓ Tool-verified

What it measures: How much of the code is actually exercised by tests.

Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.

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

No automated tests — the solution has no test code.

No automated tests

What to do

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

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

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

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

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

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

No test projects found.

No tests found

What to do

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

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

D12 · Dependency 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.

D19 · Documentation Quality / 10Exemplary◐ 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 Exemplary / 10 · rule-coverage 100% · ceiling Documented

This LibreChat project has strong documentation: a single README and e2e/README that cover deployment across Railway, Zeabur, Sealos, Locize translation status, and a dedicated redis-config directory with comprehensive Redis cluster/single-node TLS setup. The e2e guide explains the mock profile, stream modes (memory vs real Redis), recording tests, and an LLM-assisted loop; all sections in the outline are present and visible.

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.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 0 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

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

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

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

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

No projects to assess.

✓ On the Gold path — maintain.

Detailed fixes: d26_recommendation.md.

D27 · Navigability10.0 / 10Exemplary✓ 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 10.0 / 10 · rule-coverage 100% · ceiling Documented

Too little code to assess navigability.

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)2.0 / 10Critical✓ Tool-verified

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 2.0 / 10 · rule-coverage 100% · ceiling Documented

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

Secret: generic-api-key · ×8.devcontainer/docker-compose.yml:60detected by gitleaks finding

What to do

  1. Resolve the 8 Secret finding(s) in Secrets (history) — start with checks.ts (3), values.yaml (3), docker-compose.yml. — One of this dimension's main actionable groups (8 issue-level).

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

D29 · Static Analysis (SAST)0.0 / 10Critical✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. 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 0.0 / 10 · rule-coverage 100% · ceiling Documented

270 finding(s): 0 critical, 212 high, 36 medium, 22 low.

High: github-actions-mutable-action-tag · ×50.github/workflows/a11y.yml:27detected by semgrep finding

What to do

  1. Resolve the 50 High finding(s) in Static Analysis (SAST) — start with backend-review.yml (40), agents-integration-tests.yml (6), a11y.yml (2). — One of this dimension's main actionable groups (50 issue-level).

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

D31 · IaC & Container Security8.5 / 10Strong✓ Tool-verified

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

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

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

9 finding(s): 0 critical, 4 high, 0 medium, 5 low.

High IaC: DS-0002 · ×4.devcontainer/Dockerfiledetected by trivy finding
Low IaC: DS-0026 · ×5.devcontainer/Dockerfiledetected by trivy finding

What to do

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

Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.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 (.github/SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D38 · OSV Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

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 0.0 / 10 · rule-coverage 100% · ceiling Documented

130 finding(s): 1 critical, 35 high, 83 medium, 11 low.

High CVE: [GHSA redacted] · ×35bun.lockdetected by osv-scanner finding
Critical CVE: [GHSA redacted]bun.lockdetected by osv-scanner finding
Medium CVE: [GHSA redacted] · ×14bun.lockdetected by osv-scanner finding

What to do

  1. Resolve the 35 High CVE finding(s) in OSV Dependency Vulnerabilities — start with bun.lock (32), package-lock.json (2), go.mod. — One of this dimension's main actionable groups (35 issue-level).
  2. Resolve the 14 Medium CVE finding(s) in OSV Dependency Vulnerabilities — start with bun.lock (14). — One of this dimension's main actionable groups (14 warning-level).
  3. Resolve the 1 Critical CVE finding(s) in OSV Dependency Vulnerabilities — start with bun.lock. — One of this dimension's main actionable groups (1 issue-level).

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

Frontend & cross-cutting dimensions

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

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.

M1 · Documentation (README)6.0 / 10Adequate✓ 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 build/run (quick start) section to the root README — the first thing a newcomer needs.
  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation2.0 / 10Critical✓ Tool-verified

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

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

  • No Architecture Decision Records found — decisions aren't captured for future maintainers.

What to do

  • Start an ADR log (docs/adr/) recording significant decisions and their rationale.
M3 · Folder & project structure8.0 / 10Strong✓ Tool-verified

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

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

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

What to do

  • Group test projects under tests/ (or test/, spec/) so the test surface is discoverable and CI can scope it.
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 tooling0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem/Roslyn scan: CodeQL, Dependabot, secret-scanning, and BenchmarkDotNet presence in pipelines and projects. Exhaustive, deterministic.

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

What to do

  • Add a SAST step (e.g. CodeQL) or a security analyzer package.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback10.0 / 10Exemplary✓ 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.

P5 · DR & Backup7.0 / 10Strong✓ Tool-verified

Readiness · Readiness — Whether disaster recovery is planned and codified — backups, geo-recovery, RTO/RPO, persistence guarantees — from IaC + container manifests + docs, never the live cloud.

Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.

What to do

  • Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
R1 · Type Safety8.3 / 10Strong✓ Tool-verified

React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

What to do

  • Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication9.3 / 10Exemplary✓ Tool-verified

React / JS · Code Health — Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm over JS/TS tokens, D-386).

Method: Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm run over JS/TS tokens). Deterministic.

  • api/server/routes/agents/openai.js:33 · api/server/routes/agents/responses.js:36 — openai.js:33
  • api/app/clients/prompts/shadcn-docs/components.js:6 · api/app/clients/prompts/shadcn-docs/components.js:51 · api/app/clients/prompts/shadcn-docs/components.js:115 · api/app/clients/prompts/shadcn-docs/components.js:183 — components.js:6
  • api/app/clients/prompts/shadcn-docs/components.js:59 · api/app/clients/prompts/shadcn-docs/components.js:444 — components.js:59
  • api/server/controllers/agents/errors.js:7 · api/server/controllers/assistants/errors.js:7 — errors.js:7
  • api/server/routes/assistants/v1.js:36 · api/server/routes/assistants/v2.js:38 — v1.js:36
  • api/server/middleware/accessResources/canAccessAgentResource.js:3 · api/server/middleware/accessResources/canAccessPromptGroupResource.js:3 — canAccessAgentResource.js:3
  • api/server/routes/__tests__/grants.spec.js:79 · api/server/routes/admin/grants.js:31 · api/server/routes/assistants/v1.js:28 · api/server/routes/assistants/v2.js:30 — grants.spec.js:79
  • api/server/middleware/accessResources/canAccessMCPServerResource.js:13 · api/server/middleware/accessResources/canAccessPromptGroupResource.js:13 — canAccessMCPServerResource.js:13

What to do

  • Extract the duplicated blocks into shared functions/components.
R11 · Import Boundaries7.0 / 10Strong✓ Tool-verified

React / JS · Architecture — Conformance to the detected frontend architecture layout (feature-sliced / layered src) plus cross-package deep-import rules (D-386).

Method: Conformance to the detected frontend layout (feature-sliced / layered src) plus cross-package deep-import rules, over the module graph. Deterministic.

  • api/test/migrate-orphaned-agent-files.spec.js:28 reaches into another package with a relative path (../../config/migrate-orphaned-agent-files) — import the package by name instead. — migrate-orphaned-agent-files.spec.js:28
  • client/src/components/Files/FileList/FilePreview.tsx:2 imports librechat-data-provider/dist/types, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — FilePreview.tsx:2
  • client/src/components/Files/FileList/FileSidePanel.tsx:4 imports librechat-data-provider/dist/types, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — FileSidePanel.tsx:4
  • client/src/components/Files/VectorStore/VectorStorePreview.tsx:4 imports librechat-data-provider/dist/types, which the target package's package.json `exports` does not declare — use a declared entry or declare the subpath. — VectorStorePreview.tsx:4
  • config/jest.config.js:2 reaches into another package with a relative path (../api/jest.config) — import the package by name instead. — jest.config.js:2

What to do

  • Fix the listed violations: import through public entries (package exports / slice index), never reach into another layer or package's internals.
R2 · Cyclomatic Complexity8.0 / 10Strong✓ Tool-verified

React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • Branch-heavy code is where defects cluster — extract decisions into smaller functions. (×8) — useResumableSSE.ts:2364, request.js:312, connection.ts:1310, …

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files6.7 / 10Adequate✓ Tool-verified

React / JS · Code Health — How many components/modules exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

  • 203 file(s) over 400 lines

What to do

  • Split the oversized components into smaller, focused ones.
R4 · Test Coverage8.6 / 10Strong✓ Tool-verified

React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.

  • No test imports this module directly or transitively — its behavior is unverified. (×8) — resume.js, types.ts, StreamRunManager.js, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D33 (JS/npm Dependency Vulnerabilities).

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D33). Deterministic.

R6 · Tooling10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.

R7 · Dead Code6.9 / 10Adequate✓ Tool-verified

React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

  • Unreachable from the 39 application, 38 tooling and 1029 test entry point(s) detected in this repo. Gate removals on your build/type-check — an undetected custom entry would make these reachable.
  • no import path from any entry point (39 application, 38 tooling, 1029 test roots considered) (×7) — resume.js, types.ts, StreamRunManager.js, …

What to do

  • Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene0.0 / 10Critical✓ Tool-verified

React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.

  • Imported but not declared in any reachable package.json — installs work only by hoisting accident. (×3) — fake-model.js:13, fake-model.js:12, fake-mcp-http-server.js:18
  • Declared in the root/package.json but never imported anywhere in that package or its workspace members — dead weight and attack surface. Verify against build tooling before removing. (×3)
  • Every import is type-only — move it to devDependencies. — ArtifactCodeEditor.test.tsx:3
  • Only test files import it — move it to devDependencies. — skills.tenant.test.js:5

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports0.0 / 10Critical✓ Tool-verified

React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

  • client/src/Providers/AgentPanelContext.tsx → client/src/Providers/AgentsContext.tsx → client/src/Providers/AgentsMapContext.tsx → client/src/Providers/ArtifactsContext.tsx → client/src/Providers/AssistantsMapContext.tsx → client/src/Providers/BadgeRowContext.tsx → client/src/Providers/ChatContext.tsx → client/src/Providers/DragDropContext.tsx → client/src/Providers/FileMapContext.tsx → client/src/Providers/MessagesViewContext.tsx → client/src/Providers/PromptGroupsContext.tsx → client/src/Providers/ToolCallsMapContext.tsx → client/src/Providers/index.ts → client/src/common/index.ts → client/src/common/types.ts → client/src/components/Artifacts/Artifact.tsx → client/src/components/Artifacts/ArtifactButton.tsx → client/src/components/Chat/Input/Files/FileContainer.tsx → client/src/components/Chat/Input/Files/FilePreview.tsx → client/src/components/Chat/Input/Files/RemoveFile.tsx → client/src/components/Chat/Input/Files/SourceIcon.tsx → client/src/components/Chat/Menus/OpenSidebar.tsx → client/src/components/Chat/Messages/Content/ApprovalContext.tsx → client/src/components/Chat/Messages/Content/Container.tsx → client/src/components/Chat/Messages/Content/DialogImage.tsx → client/src/components/Chat/Messages/Content/FilePreviewDialog.tsx → client/src/components/Chat/Messages/Content/Files.tsx → client/src/components/Chat/Messages/Content/Image.tsx → client/src/components/Chat/Messages/Content/Markdown.tsx → client/src/components/Chat/Messages/Content/MarkdownBlocks.tsx → client/src/components/Chat/Messages/Content/MarkdownComponents.tsx → client/src/components/Chat/Messages/Content/MarkdownErrorBoundary.tsx → client/src/components/Chat/Messages/Content/MarkdownLite.tsx → client/src/components/Chat/Messages/Content/MessageQuotes.tsx → client/src/components/Chat/Messages/Content/Parts/AgentUpdate.tsx → client/src/components/Chat/Messages/Content/Parts/Attachment.tsx → client/src/components/Chat/Messages/Content/Parts/AuthorHeader.tsx → client/src/components/Chat/Messages/Content/Parts/BashCall.tsx → client/src/components/Chat/Messages/Content/Parts/CodeWindowHeader.tsx → client/src/components/Chat/Messages/Content/Parts/EditTextPart.tsx → client/src/components/Chat/Messages/Content/Parts/ExecuteCode.tsx → client/src/components/Chat/Messages/Content/Parts/FileAuthoringCall.tsx → client/src/components/Chat/Messages/Content/Parts/LogContent.tsx → client/src/components/Chat/Messages/Content/Parts/LogLink.tsx → client/src/components/Chat/Messages/Content/Parts/OpenAIImageGen/OpenAIImageGen.tsx → client/src/components/Chat/Messages/Content/Parts/OpenAIImageGen/ProgressText.tsx → client/src/components/Chat/Messages/Content/Parts/OpenAIImageGen/index.ts → client/src/components/Chat/Messages/Content/Parts/ReadFileCall.tsx → client/src/components/Chat/Messages/Content/Parts/Reasoning.tsx → client/src/components/Chat/Messages/Content/Parts/SkillCall.tsx → client/src/components/Chat/Messages/Content/Parts/SteerPart.tsx → client/src/components/Chat/Messages/Content/Parts/SubagentCall.tsx → client/src/components/Chat/Messages/Content/Parts/Summary.tsx → client/src/components/Chat/Messages/Content/Parts/Text.tsx → client/src/components/Chat/Messages/Content/Parts/Thinking.tsx → client/src/components/Chat/Messages/Content/Parts/ToolArtifactCard.tsx → client/src/components/Chat/Messages/Content/Parts/ToolMermaidArtifact.tsx → client/src/components/Chat/Messages/Content/Parts/index.ts → client/src/components/Chat/Messages/Content/Parts/useToolCallState.ts → client/src/components/Chat/Messages/Content/ProgressText.tsx → client/src/components/Chat/Messages/Content/SkillPills.tsx → client/src/components/Chat/Messages/Content/ToolApproval.tsx → client/src/components/Chat/Messages/Content/ToolCall.tsx → client/src/components/Chat/Messages/Content/ToolCallGroup.tsx → client/src/components/Chat/Messages/Content/ToolCallInfo.tsx → client/src/components/Chat/Messages/Content/ToolOutput/OutputRenderer.tsx → client/src/components/Chat/Messages/Content/ToolOutput/StackedToolIcons.tsx → client/src/components/Chat/Messages/Content/ToolOutput/ToolIcon.tsx → client/src/components/Chat/Messages/Content/ToolOutput/index.ts → client/src/components/Chat/Messages/Content/UIResourceCarousel.tsx → client/src/components/Chat/Messages/Content/markdownConfig.ts → client/src/components/Chat/Messages/MessageIcon.tsx → client/src/components/Chat/Messages/ui/MessageTimestamp.tsx → client/src/components/Endpoints/AlternativeSettings.tsx → client/src/components/Endpoints/ConvoIcon.tsx → client/src/components/Endpoints/ConvoIconURL.tsx → client/src/components/Endpoints/EndpointIcon.tsx → client/src/components/Endpoints/EndpointSettings.tsx → client/src/components/Endpoints/Icon.tsx → client/src/components/Endpoints/MessageEndpointIcon.tsx → client/src/components/Endpoints/MinimalIcon.tsx → client/src/components/Endpoints/SaveAsPresetDialog.tsx → client/src/components/Endpoints/Settings/Advanced.tsx → client/src/components/Endpoints/Settings/Anthropic.tsx → client/src/components/Endpoints/Settings/Assistants.tsx → client/src/components/Endpoints/Settings/Bedrock.tsx → client/src/components/Endpoints/Settings/Examples.tsx → client/src/components/Endpoints/Settings/Google.tsx → client/src/components/Endpoints/Settings/MultiView/GoogleSettings.tsx → client/src/components/Endpoints/Settings/MultiView/index.ts → client/src/components/Endpoints/Settings/OpenAI.tsx → client/src/components/Endpoints/Settings/OptionHover.tsx → client/src/components/Endpoints/Settings/index.ts → client/src/components/Endpoints/Settings/settings.ts → client/src/components/Endpoints/URLIcon.tsx → client/src/components/Endpoints/index.ts → client/src/components/MCPUIResource/MCPUIResource.tsx → client/src/components/MCPUIResource/MCPUIResourceCarousel.tsx → client/src/components/MCPUIResource/index.ts → client/src/components/Messages/Content/CodeBar.tsx → client/src/components/Messages/Content/CodeBlock.tsx → client/src/components/Messages/Content/CopyButton.tsx → client/src/components/Messages/Content/FloatingCodeBar.tsx → client/src/components/Messages/Content/Mermaid/Mermaid.tsx → client/src/components/Messages/Content/Mermaid/MermaidDialog.tsx → client/src/components/Messages/Content/Mermaid/MermaidHeader.tsx → client/src/components/Messages/Content/Mermaid/ZoomControls.tsx → client/src/components/Messages/Content/Mermaid/index.ts → client/src/components/Messages/Content/Mermaid/useSvgProcessing.ts → client/src/components/Messages/Content/ResultSwitcher.tsx → client/src/components/Messages/Content/RunCode.tsx → client/src/components/Prompts/buttons/AdminSettings.tsx → client/src/components/Prompts/buttons/AlwaysMakeProd.tsx → client/src/components/Prompts/buttons/AutoSendPrompt.tsx → client/src/components/Prompts/buttons/CreatePromptButton.tsx → client/src/components/Prompts/buttons/index.ts → client/src/components/Prompts/dialogs/DeletePrompt.tsx → client/src/components/Prompts/dialogs/PreviewPrompt.tsx → client/src/components/Prompts/dialogs/SharePrompt.tsx → client/src/components/Prompts/dialogs/VariableDialog.tsx → client/src/components/Prompts/dialogs/index.ts → client/src/components/Prompts/display/EmptyPromptPreview.tsx → client/src/components/Prompts/display/PromptActions.tsx → client/src/components/Prompts/display/PromptDetailHeader.tsx → client/src/components/Prompts/display/PromptDetails.tsx → client/src/components/Prompts/display/PromptTextCard.tsx → client/src/components/Prompts/display/PromptVariables.tsx → client/src/components/Prompts/display/PromptVersions.tsx → client/src/components/Prompts/display/index.ts → client/src/components/Prompts/editor/Markdown.tsx → client/src/components/Prompts/editor/PromptEditor.tsx → client/src/components/Prompts/editor/VariablesDropdown.tsx → client/src/components/Prompts/editor/index.ts → client/src/components/Prompts/fields/CategorySelector.tsx → client/src/components/Prompts/fields/Command.tsx → client/src/components/Prompts/fields/Description.tsx → client/src/components/Prompts/fields/PromptName.tsx → client/src/components/Prompts/fields/index.ts → client/src/components/Prompts/forms/CreatePromptForm.tsx → client/src/components/Prompts/forms/PromptForm.tsx → client/src/components/Prompts/forms/PromptLabelsForm.tsx → client/src/components/Prompts/forms/VariableForm.tsx → client/src/components/Prompts/forms/index.ts → client/src/components/Prompts/index.ts → client/src/components/Prompts/layouts/InlinePromptsView.tsx → client/src/components/Prompts/layouts/index.ts → client/src/components/Prompts/lists/ChatGroupItem.tsx → client/src/components/Prompts/lists/List.tsx → client/src/components/Prompts/lists/ListCard.tsx → client/src/components/Prompts/lists/NoPromptGroup.tsx → client/src/components/Prompts/lists/index.ts → client/src/components/Prompts/sidebar/FilterPrompts.tsx → client/src/components/Prompts/sidebar/GroupSidePanel.tsx → client/src/components/Prompts/sidebar/PanelNavigation.tsx → client/src/components/Prompts/sidebar/PromptsAccordion.tsx → client/src/components/Prompts/sidebar/index.ts → client/src/components/Prompts/utils/CategoryIcon.tsx → client/src/components/Prompts/utils/index.ts → client/src/components/Share/MessageIcon.tsx → client/src/components/Sharing/AccessRolesPicker.tsx → client/src/components/Sharing/GenericGrantAccessDialog.tsx → client/src/components/Sharing/PeoplePicker/PeoplePickerSearchItem.tsx → client/src/components/Sharing/PeoplePicker/SearchPicker.tsx → client/src/components/Sharing/PeoplePicker/SelectedPrincipalsList.tsx → client/src/components/Sharing/PeoplePicker/UnifiedPeopleSearch.tsx → client/src/components/Sharing/PeoplePicker/index.ts → client/src/components/Sharing/PeoplePickerAdminSettings.tsx → client/src/components/Sharing/PrincipalAvatar.tsx → client/src/components/Sharing/PublicSharingToggle.tsx → client/src/components/Sharing/index.ts → client/src/components/SidePanel/Parameters/DynamicCheckbox.tsx → client/src/components/SidePanel/Parameters/DynamicCombobox.tsx → client/src/components/SidePanel/Parameters/DynamicDropdown.tsx → client/src/components/SidePanel/Parameters/DynamicInput.tsx → client/src/components/SidePanel/Parameters/DynamicSlider.tsx → client/src/components/SidePanel/Parameters/DynamicSwitch.tsx → client/src/components/SidePanel/Parameters/DynamicTags.tsx → client/src/components/SidePanel/Parameters/DynamicTextarea.tsx → client/src/components/SidePanel/Parameters/OptionHover.tsx → client/src/components/SidePanel/Parameters/components.tsx → client/src/components/SidePanel/Parameters/index.ts → client/src/components/Web/Citation.tsx → client/src/components/Web/Context.tsx → client/src/components/Web/SourceHovercard.tsx → client/src/components/ui/AdminSettingsDialog.tsx → client/src/components/ui/Collapse.tsx → client/src/components/ui/TermsAndConditionsModal.tsx → client/src/components/ui/index.ts → client/src/data-provider/Agents/index.ts → client/src/data-provider/Agents/queries.ts → client/src/data-provider/Auth/index.ts → client/src/data-provider/Auth/mutations.ts → client/src/data-provider/Auth/queries.ts → client/src/data-provider/Endpoints/index.ts → client/src/data-provider/Endpoints/queries.ts → client/src/data-provider/Files/index.ts → client/src/data-provider/Files/mutations.ts → client/src/data-provider/Files/queries.ts → client/src/data-provider/Messages/index.ts → client/src/data-provider/Messages/queries.ts → client/src/data-provider/Misc/index.ts → client/src/data-provider/Misc/queries.ts → client/src/data-provider/Projects/index.ts → client/src/data-provider/Projects/mutations.ts → client/src/data-provider/SSE/index.ts → client/src/data-provider/SSE/queries.ts → client/src/data-provider/connection.ts → client/src/data-provider/index.ts → client/src/data-provider/mutations.ts → client/src/data-provider/prompts.ts → client/src/data-provider/queries.ts → client/src/hooks/Agents/index.ts → client/src/hooks/Agents/useAgentCategories.tsx → client/src/hooks/Agents/useAgentDefaultPermissionLevel.ts → client/src/hooks/Agents/useAgentFileConfig.ts → client/src/hooks/Agents/useAgentToolPermissions.ts → client/src/hooks/Agents/useAgentsMap.ts → client/src/hooks/Agents/useApplyModelSpecAgents.ts → client/src/hooks/Agents/useGetAgentsConfig.ts → client/src/hooks/Agents/useSelectAgent.ts → client/src/hooks/Assistants/index.ts → client/src/hooks/Assistants/useAssistantListMap.ts → client/src/hooks/Assistants/useAssistantsMap.ts → client/src/hooks/Assistants/useSelectAssistant.ts → client/src/hooks/Audio/index.ts → client/src/hooks/Audio/usePauseGlobalAudio.ts → client/src/hooks/Audio/useTTSBrowser.ts → client/src/hooks/Audio/useTTSExternal.ts → client/src/hooks/AuthContext.tsx → client/src/hooks/Chat/abort.ts → client/src/hooks/Chat/index.ts → client/src/hooks/Chat/useAddedResponse.ts → client/src/hooks/Chat/useChatFunctions.ts → client/src/hooks/Chat/useChatHelpers.ts → client/src/hooks/Chat/useFocusChatEffect.ts → client/src/hooks/Chat/useFocusRegeneratedResponse.ts → client/src/hooks/Chat/useGetAddedConvo.ts → client/src/hooks/Chat/useIdChangeEffect.ts → client/src/hooks/Chat/useQueueDrain.ts → client/src/hooks/Chat/useSteerCancel.ts → client/src/hooks/Chat/useSteerConvert.ts → client/src/hooks/Chat/useSteering.ts → client/src/hooks/Chat/useTokenLimits.ts → client/src/hooks/Chat/useTokenUsage.ts → client/src/hooks/Config/index.ts → client/src/hooks/Config/useAppStartup.ts → client/src/hooks/Config/useClearStates.ts → client/src/hooks/Config/useSpeechSettingsInit.ts → client/src/hooks/Conversations/index.ts → client/src/hooks/Conversations/useBookmarkSuccess.ts → client/src/hooks/Conversations/useDebouncedInput.ts → client/src/hooks/Conversations/useDefaultConvo.ts → client/src/hooks/Conversations/useExportConversation.ts → client/src/hooks/Conversations/useGenerateConvo.ts → client/src/hooks/Conversations/useGetConversation.ts → client/src/hooks/Conversations/useGetSender.ts → client/src/hooks/Conversations/useNavigateToConvo.tsx → client/src/hooks/Conversations/useParameterEffects.ts → client/src/hooks/Conversations/usePresetIndexOptions.ts → client/src/hooks/Conversations/usePresets.ts → client/src/hooks/Conversations/useSearchEnabled.ts → client/src/hooks/Conversations/useSetIndexOptions.ts → client/src/hooks/Endpoint/Icons.tsx → client/src/hooks/Endpoint/UnknownIcon.tsx → client/src/hooks/Endpoint/index.ts → client/src/hooks/Endpoint/useEndpoints.ts → client/src/hooks/Endpoint/useSelectorEffects.ts → client/src/hooks/Files/index.ts → client/src/hooks/Files/useAttachmentPreviewSync.ts → client/src/hooks/Files/useClientResize.ts → client/src/hooks/Files/useDelayedUploadToast.ts → client/src/hooks/Files/useDeleteFilesFromTable.tsx → client/src/hooks/Files/useDragHelpers.ts → client/src/hooks/Files/useFileDeletion.ts → client/src/hooks/Files/useFileHandling.ts → client/src/hooks/Files/useFileMap.ts → client/src/hooks/Files/useFileUploadRouter.ts → client/src/hooks/Files/useSharePointDownload.ts → client/src/hooks/Files/useSharePointFileHandling.ts → client/src/hooks/Files/useSharePointPicker.ts → client/src/hooks/Files/useSharePointToken.ts → client/src/hooks/Files/useUploadOptions.ts → client/src/hooks/Input/index.ts → client/src/hooks/Input/useAutoSave.ts → client/src/hooks/Input/useComposerBindings.ts → client/src/hooks/Input/useGetAudioSettings.ts → client/src/hooks/Input/useHandleKeyUp.ts → client/src/hooks/Input/useQueryParams.ts → client/src/hooks/Input/useRequiresKey.ts → client/src/hooks/Input/useSpeechToText.ts → client/src/hooks/Input/useSpeechToTextBrowser.ts → client/src/hooks/Input/useSpeechToTextExternal.ts → client/src/hooks/Input/useTextToSpeech.ts → client/src/hooks/Input/useTextToSpeechBrowser.ts → client/src/hooks/Input/useTextToSpeechExternal.ts → client/src/hooks/Input/useTextarea.ts → client/src/hooks/Input/useUserKey.ts → client/src/hooks/MCP/index.ts → client/src/hooks/MCP/useMCPIconMap.ts → client/src/hooks/MCP/useMCPSelect.ts → client/src/hooks/MCP/useMCPServerManager.ts → client/src/hooks/MCP/useRemoveMCPTool.ts → client/src/hooks/Messages/index.ts → client/src/hooks/Messages/useAttachments.ts → client/src/hooks/Messages/useBuildMessageTree.ts → client/src/hooks/Messages/useConversationUIResources.ts → client/src/hooks/Messages/useLatestMessage.ts → client/src/hooks/Messages/useMemoizedChatContext.ts → client/src/hooks/Messages/useMessageActions.tsx → client/src/hooks/Messages/useMessageHelpers.tsx → client/src/hooks/Messages/useMessageProcess.tsx → client/src/hooks/Messages/useMessageScrolling.ts → client/src/hooks/Messages/useSearchResultsByTurn.ts → client/src/hooks/Messages/useSubmitMessage.ts → client/src/hooks/Nav/index.ts → client/src/hooks/Nav/useShowMarketplace.ts → client/src/hooks/Plugins/index.ts → client/src/hooks/Plugins/useToolCallsMap.ts → client/src/hooks/Plugins/useToolToggle.ts → client/src/hooks/Prompts/index.ts → client/src/hooks/Prompts/useCategories.tsx → client/src/hooks/Prompts/usePromptGroupsNav.ts → client/src/hooks/Roles/index.ts → client/src/hooks/Roles/useHasAccess.ts → client/src/hooks/Roles/useHasMemoryAccess.ts → client/src/hooks/SSE/index.ts → client/src/hooks/SSE/useAdaptiveSSE.ts → client/src/hooks/SSE/useAttachmentHandler.ts → client/src/hooks/SSE/useContentHandler.ts → client/src/hooks/SSE/useEventHandlers.ts → client/src/hooks/SSE/useResumableSSE.ts → client/src/hooks/SSE/useResumeOnLoad.ts → client/src/hooks/SSE/useSSE.ts → client/src/hooks/SSE/useStepHandler.ts → client/src/hooks/SSE/useUsageHandler.ts → client/src/hooks/Sharing/index.ts → client/src/hooks/Sharing/useCanSharePublic.ts → client/src/hooks/Sharing/usePeoplePickerPermissions.ts → client/src/hooks/Sharing/useResourcePermissionState.ts → client/src/hooks/Skills/index.ts → client/src/hooks/Skills/useSkillActiveState.ts → client/src/hooks/Skills/useSkillPermissions.ts → client/src/hooks/index.ts → client/src/hooks/useChatBadges.ts → client/src/hooks/useFavorites.ts → client/src/hooks/useKeyboardShortcuts.ts → client/src/hooks/useLocalizedConfig.ts → client/src/hooks/useNewConvo.ts → client/src/hooks/useRoleSelector.ts → client/src/hooks/useToolFavorites.ts → client/src/store/agents.ts → client/src/store/artifacts.ts → client/src/store/families.ts → client/src/store/index.ts → client/src/store/misc.ts → client/src/store/prompts.ts → client/src/store/toast.ts → client/src/utils/createChatSearchParams.ts → client/src/utils/getLoginError.ts → client/src/utils/index.ts → client/src/Providers/AgentPanelContext.tsx — AgentPanelContext.tsx
  • client/src/components/Share/Message.tsx → client/src/components/Share/MultiMessage.tsx → client/src/components/Share/Message.tsx — Message.tsx

What to do

  • Break each cycle by extracting the shared piece into a module both sides can import.
X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

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.

X3 · Exception handling10.0 / 10Exemplary○ Nothing flagged

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.

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.

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%Adequate — gated by D1, D2, D3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture53%Adequate — gated by R9Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity56%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness26%Weak — gated by D8, D9, R8, P2, P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security44%Weak — gated by D28, D29, D36, D38Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Not included — 59 check(s) not relevant to this codebase

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

  • AC1 Text alternatives — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC2 Forms & labels — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC3 Page structure — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC4 Keyboard semantics — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC5 ARIA correctness — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC6 Visual & motion safety — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC7 A11y enforcement — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AX1 Captive dependencies — no DI registrations detected
  • AX10 Code composition — no source files detected — code composition not applicable
  • AX2 Stateful singletons — no singleton implementations detected
  • AX3 Project dependency cycles — no csproj graph available
  • AX4 Dependency direction — no csproj graph available
  • AX6 Interface segregation — no public interfaces
  • 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
  • AXB2 Runtime readiness — no data
  • C1 Data Protection — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C2 Access Controls — 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 — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • D10 Test Quality — No tests in the analyzed solution to assess for quality.
  • D11 Test Reliability — Test reliability not included
  • D14 License Compliance — license scan produced no result — the tool ran but its JSON output could not be parsed; the offline NuGet fallback resolved nothing
  • D15 Churn × Complexity Hotspots — single-commit history — no usable git history window to measure hotspots
  • D16 Bus Factor — single-maintainer — knowledge-concentration (bus factor) risk
  • D17 Explicit Debt — the C# workspace loaded 0 projects, so explicit-debt density could not be measured
  • D18 Solution Shape — Dimension evaluation failed
  • D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D22 Internal API Consistency — No exposed public API
  • D23 Boundary Type-Coupling — Zero projects and zero LoC mean the codebase is trivial and has no structure to justify boundaries.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D30 Dependency Vulnerabilities — No .NET solution found; no NuGet dependencies to scan for vulnerabilities.
  • D32 Data Compliance (PII/GDPR) — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.
  • D34 Knowledge Freshness — early-stage repository — too little history to judge knowledge freshness
  • D35 Change Coupling — no production change history to mine for change-coupling
  • D39 IL Efficiency — The target did not build, so no IL was available to measure.
  • D6 Cohesion (LCOM4) — No production classes were analyzable, so cohesion (LCOM4) was not measured (the solution likely failed to load or has no production code).
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • DM1 Domain Modelling — not run — 0/3 markers found
  • 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
  • GD1 Unfinished & placeholder code — no source files
  • IC1 Incompleteness & stubs — no C# methods found
  • P12 CI test-gate honesty — no data
  • P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
  • 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
  • PF1 Benchmark discipline — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF2 Allocation hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF3 Async & latency hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • 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.
  • SC1 Supply-chain hygiene — no data
  • X2 Cancellation propagation — no async methods found
  • X5 Nullable reference types — no NRT-eligible projects

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 — 100 finding(s)
D29 · Static Analysis (SAST) · High · ×50
  • High: github-actions-mutable-action-tag .github/workflows/a11y.yml:27 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/a11y.yml:28 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:31 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:34 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:40 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:56 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:67 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:78 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: gha-workflow-env-secret .github/workflows/backend-review.yml:16 — A secret is exposed in the workflow-level `env:` block, making it available to every job and step in this workflow — including any untrusted code run in pull-request workflows. Scope secrets as narrowly as possible: prefer step-level `env:` so the secret is only available where it is actually needed.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:24 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:27 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:33 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:49 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:60 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:71 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:81 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:88 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:95 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:107 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:110 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:116 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:131 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:137 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:143 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:165 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608`.
  • + 25 more in this group — see findings.md.
D38 · OSV Dependency Vulnerabilities · High CVE · ×35
  • High CVE: [GHSA redacted] bun.lock — @grpc/grpc-js 1.9.15: [GHSA redacted] — upgrade to 1.9.16
  • High CVE: [GHSA redacted] bun.lock — @grpc/grpc-js 1.9.15: [GHSA redacted] — upgrade to 1.9.16
  • High CVE: [GHSA redacted] bun.lock — @isaacs/brace-expansion 5.0.0: [GHSA redacted] — upgrade to 5.0.1
  • High CVE: [GHSA redacted] bun.lock — @modelcontextprotocol/sdk 1.21.0: [GHSA redacted] — upgrade to 1.26.0
  • High CVE: [GHSA redacted] bun.lock — @modelcontextprotocol/sdk 1.21.0: [GHSA redacted] — upgrade to 1.25.2
  • High CVE: [GHSA redacted] bun.lock — @modelcontextprotocol/sdk 1.21.0: [GHSA redacted] — upgrade to 1.24.0
  • High CVE: [GHSA redacted] bun.lock — fast-uri 3.0.6: [GHSA redacted] — upgrade to 3.1.3
  • High CVE: [GHSA redacted] bun.lock — fast-uri 3.0.6: [GHSA redacted] — upgrade to 3.1.5
  • High CVE: [GHSA redacted] bun.lock — fast-uri 3.0.6: [GHSA redacted] — upgrade to 3.1.1
  • High CVE: [GHSA redacted] bun.lock — fast-uri 3.0.6: [GHSA redacted] — upgrade to 3.1.4
  • High CVE: [GHSA redacted] bun.lock — fast-uri 3.0.6: [GHSA redacted] — upgrade to 3.1.2
  • High CVE: [GHSA redacted] bun.lock — flatted 3.3.2: [GHSA redacted] — upgrade to 3.4.0
  • High CVE: [GHSA redacted] bun.lock — flatted 3.3.2: [GHSA redacted] — upgrade to 3.4.2
  • High CVE: [GHSA redacted] bun.lock — js-cookie 3.0.5: [GHSA redacted] — upgrade to 3.0.7
  • High CVE: [GHSA redacted] bun.lock — jws 3.2.2: [GHSA redacted] — upgrade to 3.2.3
  • High CVE: [GHSA redacted] bun.lock — lodash 4.17.21: [GHSA redacted] — upgrade to 4.18.0
  • High CVE: [GHSA redacted] bun.lock — minimatch 10.1.1: [GHSA redacted] — upgrade to 10.2.3
  • High CVE: [GHSA redacted] bun.lock — minimatch 10.1.1: [GHSA redacted] — upgrade to 10.2.1
  • High CVE: [GHSA redacted] bun.lock — minimatch 10.1.1: [GHSA redacted] — upgrade to 10.2.3
  • High CVE: [GHSA redacted] bun.lock — nanoid 3.3.11: [GHSA redacted] — upgrade to 3.3.16
  • High CVE: [GHSA redacted] bun.lock — nanoid 3.3.11: [GHSA redacted] — upgrade to 3.3.17 (in 2 lockfiles)
  • High CVE: [GHSA redacted] bun.lock — path-to-regexp 8.2.0: [GHSA redacted] — upgrade to 8.4.0
  • High CVE: [GHSA redacted] bun.lock — picomatch 2.3.1: [GHSA redacted] — upgrade to 2.3.2
  • High CVE: [GHSA redacted] bun.lock — undici 7.16.0: [GHSA redacted] — upgrade to 7.29.0
  • High CVE: [GHSA redacted] bun.lock — undici 7.16.0: [GHSA redacted] — upgrade to 7.24.0
  • + 10 more in this group — see findings.md.
D28 · Secrets (history) · Secret · ×8
  • Secret: generic-api-key .devcontainer/docker-compose.yml:60 — matched rule 'generic-api-key'
  • Secret: generic-api-key .github/workflows/docker-smoke.yml:99 — matched rule 'generic-api-key'
  • Secret: generic-api-key helm/librechat/values.yaml:44 — matched rule 'generic-api-key'
  • Secret: generic-api-key helm/librechat/values.yaml:46 — matched rule 'generic-api-key'
  • Secret: generic-api-key helm/librechat/values.yaml:47 — matched rule 'generic-api-key'
  • Secret: generic-api-key packages/api/src/app/checks.ts:9 — matched rule 'generic-api-key'
  • Secret: generic-api-key packages/api/src/app/checks.ts:11 — matched rule 'generic-api-key'
  • Secret: generic-api-key packages/api/src/app/checks.ts:12 — matched rule 'generic-api-key'
D31 · IaC & Container Security · High IaC · ×4
  • High IaC: DS-0002 .devcontainer/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 .do/gitnexus/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0029 .do/gitnexus/Dockerfile — 'apt-get' missing '--no-install-recommends'
  • High IaC: DS-0002 Dockerfile.multi — Image user should not be 'root'
D18 · Solution Shape · Dimension evaluation failed · ×1
  • Dimension evaluation failed — no .NET solution found at target path
D38 · OSV Dependency Vulnerabilities · Critical CVE · ×1
  • Critical CVE: [GHSA redacted] bun.lock — websocket-driver 0.7.4: [GHSA redacted] — upgrade to 0.7.5
D8 · Code Coverage · No automated tests · ×1
  • No automated tests — No automated tests — the solution has no test code. Untested code is the largest single risk to changing it safely.
Warning — 247 finding(s)
D3 · God Classes · FileTooLong · ×30
  • FileTooLong: api/typedefs.js api/typedefs.js:0 — FileTooLong — 1988 lines.
  • FileTooLong: strategies/openidStrategy.js api/strategies/openidStrategy.js:0 — FileTooLong — 987 lines.
  • FileTooLong: strategies/openidStrategy.spec.js api/strategies/openidStrategy.spec.js:0 — FileTooLong — 2593 lines.
  • FileTooLong: utils/tokens.spec.js api/utils/tokens.spec.js:0 — FileTooLong — 2254 lines.
  • FileTooLong: setup/fake-model.js e2e/setup/fake-model.js:0 — FileTooLong — 2144 lines.
  • FileTooLong: clients/BaseClient.js api/app/clients/BaseClient.js:0 — FileTooLong — 1584 lines.
  • FileTooLong: controllers/PermissionsController.js api/server/controllers/PermissionsController.js:0 — FileTooLong — 570 lines.
  • FileTooLong: controllers/UserController.js api/server/controllers/UserController.js:0 — FileTooLong — 636 lines.
  • FileTooLong: controllers/mcp.js api/server/controllers/mcp.js:0 — FileTooLong — 553 lines.
  • FileTooLong: routes/mcp.js api/server/routes/mcp.js:0 — FileTooLong — 1109 lines.
  • FileTooLong: routes/prompts.js api/server/routes/prompts.js:0 — FileTooLong — 562 lines.
  • FileTooLong: routes/share.js api/server/routes/share.js:0 — FileTooLong — 545 lines.
  • FileTooLong: services/ActionService.js api/server/services/ActionService.js:0 — FileTooLong — 518 lines.
  • FileTooLong: services/AuthService.js api/server/services/AuthService.js:0 — FileTooLong — 920 lines.
  • FileTooLong: services/GraphApiService.js api/server/services/GraphApiService.js:0 — FileTooLong — 652 lines.
  • FileTooLong: services/MCP.js api/server/services/MCP.js:0 — FileTooLong — 1441 lines.
  • FileTooLong: services/MCP.spec.js api/server/services/MCP.spec.js:0 — FileTooLong — 2680 lines.
  • FileTooLong: services/PermissionService.js api/server/services/PermissionService.js:0 — FileTooLong — 986 lines.
  • FileTooLong: services/PermissionService.spec.js api/server/services/PermissionService.spec.js:0 — FileTooLong — 2294 lines.
  • FileTooLong: services/ToolService.js api/server/services/ToolService.js:0 — FileTooLong — 2047 lines.
  • FileTooLong: specs/BaseClient.test.js api/app/clients/specs/BaseClient.test.js:0 — FileTooLong — 1800 lines.
  • FileTooLong: agents/callbacks.js api/server/controllers/agents/callbacks.js:0 — FileTooLong — 1385 lines.
  • FileTooLong: agents/client.js api/server/controllers/agents/client.js:0 — FileTooLong — 3386 lines.
  • FileTooLong: agents/client.test.js api/server/controllers/agents/client.test.js:0 — FileTooLong — 3591 lines.
  • FileTooLong: agents/openai.js api/server/controllers/agents/openai.js:0 — FileTooLong — 1055 lines.
  • + 5 more in this group — see findings.md.
D38 · OSV Dependency Vulnerabilities · Medium CVE · ×14
  • Medium CVE: [GHSA redacted] bun.lock — ajv 6.12.6: [GHSA redacted] — upgrade to 6.14.0
  • Medium CVE: [GHSA redacted] bun.lock — bn.js 4.12.1: [GHSA redacted] — upgrade to 4.12.3
  • Medium CVE: [GHSA redacted] bun.lock — body-parser 2.2.0: [GHSA redacted] — upgrade to 2.2.1
  • Medium CVE: [GHSA redacted] bun.lock — dompurify 3.4.12: [GHSA redacted] — upgrade to 3.4.13 (in 2 lockfiles)
  • Medium CVE: [GHSA redacted] bun.lock — dompurify 3.4.8: [GHSA redacted] — upgrade to 3.4.11
  • Medium CVE: [GHSA redacted] bun.lock — hono 4.12.33: [GHSA redacted] — upgrade to 4.12.34
  • Medium CVE: [GHSA redacted] bun.lock — hono 4.12.33: [GHSA redacted] — upgrade to 4.12.34
  • Medium CVE: [GHSA redacted] bun.lock — hono 4.12.33: [GHSA redacted] — upgrade to 4.12.34
  • Medium CVE: [GHSA redacted] bun.lock — lodash 4.17.21: [GHSA redacted] — upgrade to 4.18.0
  • Medium CVE: [GHSA redacted] bun.lock — lodash 4.17.21: [GHSA redacted] — upgrade to 4.17.23
  • Medium CVE: [GHSA redacted] bun.lock — mermaid 11.16.0: [GHSA redacted] — upgrade to 11.16.1 (in 2 lockfiles)
  • Medium CVE: [GHSA redacted] bun.lock — mermaid 11.16.0: [GHSA redacted] — upgrade to 11.16.1 (in 2 lockfiles)
  • Medium CVE: [GHSA redacted] bun.lock — mermaid 11.16.0: [GHSA redacted] — upgrade to 11.16.1 (in 2 lockfiles)
  • Medium CVE: [GHSA redacted] bun.lock — mermaid 11.16.0: [GHSA redacted] — upgrade to 11.16.1 (in 2 lockfiles)
D2 · Cognitive Complexity · (anonymous) (cognitive 18) · ×3
  • (anonymous) (cognitive 18) api/server/routes/memories.js:242 — (anonymous) has cognitive complexity 18 (threshold 15).
  • (anonymous) (cognitive 18) api/server/controllers/agents/openai.js:645 — (anonymous) has cognitive complexity 18 (threshold 15).
  • (anonymous) (cognitive 18) api/server/controllers/agents/openai.js:680 — (anonymous) has cognitive complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 31) · ×2
  • (anonymous) (cyclomatic 31) api/strategies/ldapStrategy.js:88 — (anonymous) has cyclomatic complexity 31 (threshold 15).
  • (anonymous) (cyclomatic 31) api/server/controllers/agents/client.js:1126 — (anonymous) has cyclomatic complexity 31 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 20) · ×2
  • (anonymous) (cyclomatic 20) api/strategies/samlStrategy.js:185 — (anonymous) has cyclomatic complexity 20 (threshold 15).
  • (anonymous) (cyclomatic 20) api/server/routes/mcp.js:105 — (anonymous) has cyclomatic complexity 20 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 30) · ×2
  • (anonymous) (cognitive 30) config/create-user.js:9 — (anonymous) has cognitive complexity 30 (threshold 15).
  • (anonymous) (cognitive 30) api/server/controllers/agents/callbacks.js:1073 — (anonymous) has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 26) · ×2
  • (anonymous) (cognitive 26) api/strategies/samlStrategy.js:185 — (anonymous) has cognitive complexity 26 (threshold 15).
  • (anonymous) (cognitive 26) api/server/controllers/assistants/errors.js:44 — (anonymous) has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 19) · ×2
  • (anonymous) (cognitive 19) config/update.js:57 — (anonymous) has cognitive complexity 19 (threshold 15).
  • (anonymous) (cognitive 19) api/server/routes/mcp.js:105 — (anonymous) has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 16) · ×2
  • (anonymous) (cognitive 16) config/migrate-code-file-duplicates.js:83 — (anonymous) has cognitive complexity 16 (threshold 15).
  • (anonymous) (cognitive 16) api/server/controllers/agents/errors.js:43 — (anonymous) has cognitive complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ResumableAgentController (cyclomatic 116) · ×1
  • ResumableAgentController (cyclomatic 116) api/server/controllers/agents/request.js:312 — ResumableAgentController has cyclomatic complexity 116 (threshold 15).
D1 · Cyclomatic Complexity · disposeClient (cyclomatic 86) · ×1
  • disposeClient (cyclomatic 86) api/server/cleanup.js:87 — disposeClient has cyclomatic complexity 86 (threshold 15).
D1 · Cyclomatic Complexity · startGeneration (cyclomatic 81) · ×1
  • startGeneration (cyclomatic 81) api/server/controllers/agents/request.js:1180 — startGeneration has cyclomatic complexity 81 (threshold 15).
D1 · Cyclomatic Complexity · ResumeAgentController (cyclomatic 77) · ×1
  • ResumeAgentController (cyclomatic 77) api/server/controllers/agents/resume.js:509 — ResumeAgentController has cyclomatic complexity 77 (threshold 15).
D1 · Cyclomatic Complexity · sendMessage (cyclomatic 68) · ×1
  • sendMessage (cyclomatic 68) api/app/clients/BaseClient.js:550 — sendMessage has cyclomatic complexity 68 (threshold 15).
D1 · Cyclomatic Complexity · processOpenIDAuth (cyclomatic 63) · ×1
  • processOpenIDAuth (cyclomatic 63) api/strategies/openidStrategy.js:568 — processOpenIDAuth has cyclomatic complexity 63 (threshold 15).
D1 · Cyclomatic Complexity · executeResponse (cyclomatic 51) · ×1
  • executeResponse (cyclomatic 51) api/server/controllers/agents/responses.js:307 — executeResponse has cyclomatic complexity 51 (threshold 15).
D1 · Cyclomatic Complexity · updateAgentHandler (cyclomatic 50) · ×1
  • updateAgentHandler (cyclomatic 50) api/server/controllers/agents/v1.js:674 — updateAgentHandler has cyclomatic complexity 50 (threshold 15).
D1 · Cyclomatic Complexity · loadToolsForExecution (cyclomatic 49) · ×1
  • loadToolsForExecution (cyclomatic 49) api/server/services/ToolService.js:1649 — loadToolsForExecution has cyclomatic complexity 49 (threshold 15).
D1 · Cyclomatic Complexity · loadAgentTools (cyclomatic 46) · ×1
  • loadAgentTools (cyclomatic 46) api/server/services/ToolService.js:1246 — loadAgentTools has cyclomatic complexity 46 (threshold 15).
D1 · Cyclomatic Complexity · finalizeResumedTurn (cyclomatic 46) · ×1
  • finalizeResumedTurn (cyclomatic 46) api/server/controllers/agents/resume.js:253 — finalizeResumedTurn has cyclomatic complexity 46 (threshold 15).
D1 · Cyclomatic Complexity · executeOpenAIChatCompletion (cyclomatic 44) · ×1
  • executeOpenAIChatCompletion (cyclomatic 44) api/server/controllers/agents/openai.js:169 — executeOpenAIChatCompletion has cyclomatic complexity 44 (threshold 15).
D1 · Cyclomatic Complexity · loadToolDefinitionsWrapper (cyclomatic 42) · ×1
  • loadToolDefinitionsWrapper (cyclomatic 42) api/server/services/ToolService.js:577 — loadToolDefinitionsWrapper has cyclomatic complexity 42 (threshold 15).
D1 · Cyclomatic Complexity · chatCompletion (cyclomatic 42) · ×1
  • chatCompletion (cyclomatic 42) api/server/controllers/agents/client.js:2212 — chatCompletion has cyclomatic complexity 42 (threshold 15).
D1 · Cyclomatic Complexity · titleConvo (cyclomatic 36) · ×1
  • titleConvo (cyclomatic 36) api/server/controllers/agents/client.js:3089 — titleConvo has cyclomatic complexity 36 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 35) · ×1
  • (anonymous) (cyclomatic 35) api/server/routes/mcp.js:227 — (anonymous) has cyclomatic complexity 35 (threshold 15).
D1 · Cyclomatic Complexity · formatAgentMessages (cyclomatic 34) · ×1
  • formatAgentMessages (cyclomatic 34) api/app/clients/prompts/formatMessages.js:145 — formatAgentMessages has cyclomatic complexity 34 (threshold 15).
D1 · Cyclomatic Complexity · updateFavoritesController (cyclomatic 33) · ×1
  • updateFavoritesController (cyclomatic 33) api/server/controllers/FavoritesController.js:6 — updateFavoritesController has cyclomatic complexity 33 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 33) · ×1
  • (anonymous) (cyclomatic 33) api/server/routes/config.js:209 — (anonymous) has cyclomatic complexity 33 (threshold 15).
D1 · Cyclomatic Complexity · bulkUpdateResourcePermissions (cyclomatic 33) · ×1
  • bulkUpdateResourcePermissions (cyclomatic 33) api/server/services/PermissionService.js:712 — bulkUpdateResourcePermissions has cyclomatic complexity 33 (threshold 15).
D1 · Cyclomatic Complexity · ensureGroupPrincipalExists (cyclomatic 31) · ×1
  • ensureGroupPrincipalExists (cyclomatic 31) api/server/services/PermissionService.js:385 — ensureGroupPrincipalExists has cyclomatic complexity 31 (threshold 15).
D1 · Cyclomatic Complexity · resumeCompletion (cyclomatic 31) · ×1
  • resumeCompletion (cyclomatic 31) api/server/controllers/agents/client.js:2794 — resumeCompletion has cyclomatic complexity 31 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 30) · ×1
  • (anonymous) (cyclomatic 30) api/strategies/openIdJwtStrategy.js:101 — (anonymous) has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · refreshController (cyclomatic 30) · ×1
  • refreshController (cyclomatic 30) api/server/controllers/AuthController.js:155 — refreshController has cyclomatic complexity 30 (threshold 15).
D1 · Cyclomatic Complexity · performSync (cyclomatic 29) · ×1
  • performSync (cyclomatic 29) api/db/indexSync.js:193 — performSync has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · handle (cyclomatic 29) · ×1
  • handle (cyclomatic 29) api/server/controllers/agents/callbacks.js:81 — handle has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · processAttachments (cyclomatic 28) · ×1
  • processAttachments (cyclomatic 28) api/app/clients/BaseClient.js:1376 — processAttachments has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · checkBan (cyclomatic 28) · ×1
  • checkBan (cyclomatic 28) api/server/middleware/checkBan.js:54 — checkBan has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · buildMessages (cyclomatic 28) · ×1
  • buildMessages (cyclomatic 28) api/server/controllers/agents/client.js:1019 — buildMessages has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · _LegacyAgentController (cyclomatic 28) · ×1
  • _LegacyAgentController (cyclomatic 28) api/server/controllers/agents/request.js:1946 — _LegacyAgentController has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · updateAssistant (cyclomatic 28) · ×1
  • updateAssistant (cyclomatic 28) api/server/controllers/assistants/v2.js:114 — updateAssistant has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · processValue (cyclomatic 27) · ×1
  • processValue (cyclomatic 27) api/app/clients/BaseClient.js:1195 — processValue has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · buildEndpointOption (cyclomatic 27) · ×1
  • buildEndpointOption (cyclomatic 27) api/server/middleware/buildEndpointOption.js:28 — buildEndpointOption has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · buildPreLoginPayload (cyclomatic 27) · ×1
  • buildPreLoginPayload (cyclomatic 27) api/server/routes/config.js:55 — buildPreLoginPayload has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · _call (cyclomatic 27) · ×1
  • _call (cyclomatic 27) api/server/services/MCP.js:1031 — _call has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · updateUserPluginsController (cyclomatic 26) · ×1
  • updateUserPluginsController (cyclomatic 26) api/server/controllers/UserController.js:200 — updateUserPluginsController has cyclomatic complexity 26 (threshold 15).
D1 · Cyclomatic Complexity · flushRedisCache (cyclomatic 25) · ×1
  • flushRedisCache (cyclomatic 25) config/flush-cache.js:88 — flushRedisCache has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · saveMessageToDatabase (cyclomatic 25) · ×1
  • saveMessageToDatabase (cyclomatic 25) api/app/clients/BaseClient.js:941 — saveMessageToDatabase has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · updateResourcePermissions (cyclomatic 25) · ×1
  • updateResourcePermissions (cyclomatic 25) api/server/controllers/PermissionsController.js:59 — updateResourcePermissions has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · logoutController (cyclomatic 25) · ×1
  • logoutController (cyclomatic 25) api/server/controllers/auth/LogoutController.js:24 — logoutController has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 24) · ×1
  • (anonymous) (cyclomatic 24) config/create-user.js:9 — (anonymous) has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · createMCPTool (cyclomatic 24) · ×1
  • createMCPTool (cyclomatic 24) api/server/services/MCP.js:840 — createMCPTool has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · getThemeFromEnv (cyclomatic 24) · ×1
  • getThemeFromEnv (cyclomatic 24) client/src/utils/getThemeFromEnv.js:5 — getThemeFromEnv has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · searchPrincipals (cyclomatic 23) · ×1
  • searchPrincipals (cyclomatic 23) api/server/controllers/PermissionsController.js:401 — searchPrincipals has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · getMCPTools (cyclomatic 23) · ×1
  • getMCPTools (cyclomatic 23) api/server/controllers/mcp.js:100 — getMCPTools has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · in_progress (cyclomatic 23) · ×1
  • in_progress (cyclomatic 23) api/server/services/AssistantService.js:183 — in_progress has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · filterAuthorizedTools (cyclomatic 23) · ×1
  • filterAuthorizedTools (cyclomatic 23) api/server/controllers/agents/v1.js:224 — filterAuthorizedTools has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · duplicateAgentHandler (cyclomatic 23) · ×1
  • duplicateAgentHandler (cyclomatic 23) api/server/controllers/agents/v1.js:915 — duplicateAgentHandler has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · handleError (cyclomatic 23) · ×1
  • handleError (cyclomatic 23) api/server/controllers/assistants/chatV1.js:113 — handleError has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 23) · ×1
  • (anonymous) (cyclomatic 23) api/server/controllers/assistants/errors.js:44 — (anonymous) has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 22) · ×1
  • (anonymous) (cyclomatic 22) config/update-banner.js:9 — (anonymous) has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · maybeUninstallOAuthMCP (cyclomatic 22) · ×1
  • maybeUninstallOAuthMCP (cyclomatic 22) api/server/controllers/UserController.js:483 — maybeUninstallOAuthMCP has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · formatMessage (cyclomatic 22) · ×1
  • formatMessage (cyclomatic 22) api/app/clients/prompts/formatMessages.js:48 — formatMessage has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · recordActivityLabelUsage (cyclomatic 22) · ×1
  • recordActivityLabelUsage (cyclomatic 22) api/server/controllers/agents/client.js:428 — recordActivityLabelUsage has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · configureSocialLogins (cyclomatic 21) · ×1
  • configureSocialLogins (cyclomatic 21) api/server/socialLogins.js:78 — configureSocialLogins has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · moderateText (cyclomatic 21) · ×1
  • moderateText (cyclomatic 21) api/server/middleware/moderateText.js:7 — moderateText has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 21) · ×1
  • (anonymous) (cyclomatic 21) api/server/controllers/agents/callbacks.js:733 — (anonymous) has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · ensureFilterableAttributes (cyclomatic 20) · ×1
  • ensureFilterableAttributes (cyclomatic 20) api/db/indexSync.js:89 — ensureFilterableAttributes has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · getResourcePermissions (cyclomatic 20) · ×1
  • getResourcePermissions (cyclomatic 20) api/server/controllers/PermissionsController.js:197 — getResourcePermissions has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · uploadFileHandler (cyclomatic 20) · ×1
  • uploadFileHandler (cyclomatic 20) api/server/routes/skills.js:190 — uploadFileHandler has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · getServerConnectionStatus (cyclomatic 20) · ×1
  • getServerConnectionStatus (cyclomatic 20) api/server/services/MCP.js:1359 — getServerConnectionStatus has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · processRequiredActions (cyclomatic 20) · ×1
  • processRequiredActions (cyclomatic 20) api/server/services/ToolService.js:224 — processRequiredActions has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · handleRunInterrupt (cyclomatic 20) · ×1
  • handleRunInterrupt (cyclomatic 20) api/server/controllers/agents/client.js:2075 — handleRunInterrupt has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · runAgents (cyclomatic 20) · ×1
  • runAgents (cyclomatic 20) api/server/controllers/agents/client.js:2411 — runAgents has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · checkPeoplePickerAccess (cyclomatic 19) · ×1
  • checkPeoplePickerAccess (cyclomatic 19) api/server/middleware/checkPeoplePickerAccess.js:20 — checkPeoplePickerAccess has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 19) · ×1
  • (anonymous) (cyclomatic 19) api/server/controllers/agents/callbacks.js:1073 — (anonymous) has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · useMemory (cyclomatic 19) · ×1
  • useMemory (cyclomatic 19) api/server/controllers/agents/client.js:1457 — useMemory has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · getListAgentsHandler (cyclomatic 19) · ×1
  • getListAgentsHandler (cyclomatic 19) api/server/controllers/agents/v1.js:1155 — getListAgentsHandler has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · revertAgentVersionHandler (cyclomatic 19) · ×1
  • revertAgentVersionHandler (cyclomatic 19) api/server/controllers/agents/v1.js:1418 — revertAgentVersionHandler has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · processBatch (cyclomatic 17) · ×1
  • processBatch (cyclomatic 17) config/migrate-shared-link-permissions.js:153 — processBatch has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · startServer (cyclomatic 17) · ×1
  • startServer (cyclomatic 17) api/server/index.js:110 — startServer has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · setMessageOptions (cyclomatic 17) · ×1
  • setMessageOptions (cyclomatic 17) api/app/clients/BaseClient.js:327 — setMessageOptions has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · _call (cyclomatic 17) · ×1
  • _call (cyclomatic 17) api/server/services/ActionService.js:199 — _call has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · getFileStrategy (cyclomatic 17) · ×1
  • getFileStrategy (cyclomatic 17) api/server/utils/getFileStrategy.js:27 — getFileStrategy has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · isValidGenerationClaim (cyclomatic 17) · ×1
  • isValidGenerationClaim (cyclomatic 17) api/server/controllers/agents/request.js:200 — isValidGenerationClaim has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · createAgentHandler (cyclomatic 17) · ×1
  • createAgentHandler (cyclomatic 17) api/server/controllers/agents/v1.js:398 — createAgentHandler has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · chatV1 (cyclomatic 17) · ×1
  • chatV1 (cyclomatic 17) api/server/controllers/assistants/chatV1.js:60 — chatV1 has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · chatV2 (cyclomatic 17) · ×1
  • chatV2 (cyclomatic 17) api/server/controllers/assistants/chatV2.js:54 — chatV2 has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · getAvailableTools (cyclomatic 16) · ×1
  • getAvailableTools (cyclomatic 16) api/server/controllers/PluginController.js:46 — getAvailableTools has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 16) · ×1
  • (anonymous) (cyclomatic 16) api/server/routes/messages.js:25 — (anonymous) has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · streamSharedFile (cyclomatic 16) · ×1
  • streamSharedFile (cyclomatic 16) api/server/routes/share.js:178 — streamSharedFile has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · grantPermission (cyclomatic 16) · ×1
  • grantPermission (cyclomatic 16) api/server/services/PermissionService.js:66 — grantPermission has cyclomatic complexity 16 (threshold 15).
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).
D2 · Cognitive Complexity · ResumableAgentController (cognitive 193) · ×1
  • ResumableAgentController (cognitive 193) api/server/controllers/agents/request.js:312 — ResumableAgentController has cognitive complexity 193 (threshold 15).
D2 · Cognitive Complexity · startGeneration (cognitive 149) · ×1
  • startGeneration (cognitive 149) api/server/controllers/agents/request.js:1180 — startGeneration has cognitive complexity 149 (threshold 15).
D2 · Cognitive Complexity · ResumeAgentController (cognitive 102) · ×1
  • ResumeAgentController (cognitive 102) api/server/controllers/agents/resume.js:509 — ResumeAgentController has cognitive complexity 102 (threshold 15).
D2 · Cognitive Complexity · disposeClient (cognitive 101) · ×1
  • disposeClient (cognitive 101) api/server/cleanup.js:87 — disposeClient has cognitive complexity 101 (threshold 15).
D2 · Cognitive Complexity · sendMessage (cognitive 99) · ×1
  • sendMessage (cognitive 99) api/app/clients/BaseClient.js:550 — sendMessage has cognitive complexity 99 (threshold 15).
D2 · Cognitive Complexity · updateAgentHandler (cognitive 88) · ×1
  • updateAgentHandler (cognitive 88) api/server/controllers/agents/v1.js:674 — updateAgentHandler has cognitive complexity 88 (threshold 15).
D2 · Cognitive Complexity · processOpenIDAuth (cognitive 86) · ×1
  • processOpenIDAuth (cognitive 86) api/strategies/openidStrategy.js:568 — processOpenIDAuth has cognitive complexity 86 (threshold 15).
D2 · Cognitive Complexity · formatAgentMessages (cognitive 78) · ×1
  • formatAgentMessages (cognitive 78) api/app/clients/prompts/formatMessages.js:145 — formatAgentMessages has cognitive complexity 78 (threshold 15).
D2 · Cognitive Complexity · executeResponse (cognitive 71) · ×1
  • executeResponse (cognitive 71) api/server/controllers/agents/responses.js:307 — executeResponse has cognitive complexity 71 (threshold 15).
D2 · Cognitive Complexity · loadAgentTools (cognitive 60) · ×1
  • loadAgentTools (cognitive 60) api/server/services/ToolService.js:1246 — loadAgentTools has cognitive complexity 60 (threshold 15).
D2 · Cognitive Complexity · loadToolDefinitionsWrapper (cognitive 58) · ×1
  • loadToolDefinitionsWrapper (cognitive 58) api/server/services/ToolService.js:577 — loadToolDefinitionsWrapper has cognitive complexity 58 (threshold 15).
D2 · Cognitive Complexity · executeOpenAIChatCompletion (cognitive 57) · ×1
  • executeOpenAIChatCompletion (cognitive 57) api/server/controllers/agents/openai.js:169 — executeOpenAIChatCompletion has cognitive complexity 57 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 53) · ×1
  • (anonymous) (cognitive 53) api/server/routes/mcp.js:227 — (anonymous) has cognitive complexity 53 (threshold 15).
D2 · Cognitive Complexity · in_progress (cognitive 53) · ×1
  • in_progress (cognitive 53) api/server/services/AssistantService.js:183 — in_progress has cognitive complexity 53 (threshold 15).
D2 · Cognitive Complexity · ensureGroupPrincipalExists (cognitive 53) · ×1
  • ensureGroupPrincipalExists (cognitive 53) api/server/services/PermissionService.js:385 — ensureGroupPrincipalExists has cognitive complexity 53 (threshold 15).
D2 · Cognitive Complexity · loadToolsForExecution (cognitive 53) · ×1
  • loadToolsForExecution (cognitive 53) api/server/services/ToolService.js:1649 — loadToolsForExecution has cognitive complexity 53 (threshold 15).
D2 · Cognitive Complexity · logoutController (cognitive 52) · ×1
  • logoutController (cognitive 52) api/server/controllers/auth/LogoutController.js:24 — logoutController has cognitive complexity 52 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 50) · ×1
  • (anonymous) (cognitive 50) api/server/routes/config.js:209 — (anonymous) has cognitive complexity 50 (threshold 15).
D2 · Cognitive Complexity · bulkUpdateResourcePermissions (cognitive 48) · ×1
  • bulkUpdateResourcePermissions (cognitive 48) api/server/services/PermissionService.js:712 — bulkUpdateResourcePermissions has cognitive complexity 48 (threshold 15).
D2 · Cognitive Complexity · chatCompletion (cognitive 48) · ×1
  • chatCompletion (cognitive 48) api/server/controllers/agents/client.js:2212 — chatCompletion has cognitive complexity 48 (threshold 15).
D2 · Cognitive Complexity · finalizeResumedTurn (cognitive 48) · ×1
  • finalizeResumedTurn (cognitive 48) api/server/controllers/agents/resume.js:253 — finalizeResumedTurn has cognitive complexity 48 (threshold 15).
D2 · Cognitive Complexity · updateFavoritesController (cognitive 45) · ×1
  • updateFavoritesController (cognitive 45) api/server/controllers/FavoritesController.js:6 — updateFavoritesController has cognitive complexity 45 (threshold 15).
D2 · Cognitive Complexity · processRequiredActions (cognitive 45) · ×1
  • processRequiredActions (cognitive 45) api/server/services/ToolService.js:224 — processRequiredActions has cognitive complexity 45 (threshold 15).
D2 · Cognitive Complexity · updateAssistant (cognitive 44) · ×1
  • updateAssistant (cognitive 44) api/server/controllers/assistants/v2.js:114 — updateAssistant has cognitive complexity 44 (threshold 15).
D2 · Cognitive Complexity · refreshController (cognitive 43) · ×1
  • refreshController (cognitive 43) api/server/controllers/AuthController.js:155 — refreshController has cognitive complexity 43 (threshold 15).
D2 · Cognitive Complexity · updateUserPluginsController (cognitive 43) · ×1
  • updateUserPluginsController (cognitive 43) api/server/controllers/UserController.js:200 — updateUserPluginsController has cognitive complexity 43 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 40) · ×1
  • (anonymous) (cognitive 40) api/strategies/openIdJwtStrategy.js:101 — (anonymous) has cognitive complexity 40 (threshold 15).
D2 · Cognitive Complexity · flushRedisCache (cognitive 39) · ×1
  • flushRedisCache (cognitive 39) config/flush-cache.js:88 — flushRedisCache has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · processValue (cognitive 39) · ×1
  • processValue (cognitive 39) api/app/clients/BaseClient.js:1195 — processValue has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · getMCPTools (cognitive 39) · ×1
  • getMCPTools (cognitive 39) api/server/controllers/mcp.js:100 — getMCPTools has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 39) · ×1
  • (anonymous) (cognitive 39) api/server/controllers/agents/client.js:1126 — (anonymous) has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · titleConvo (cognitive 38) · ×1
  • titleConvo (cognitive 38) api/server/controllers/agents/client.js:3089 — titleConvo has cognitive complexity 38 (threshold 15).
D2 · Cognitive Complexity · buildEndpointOption (cognitive 37) · ×1
  • buildEndpointOption (cognitive 37) api/server/middleware/buildEndpointOption.js:28 — buildEndpointOption has cognitive complexity 37 (threshold 15).
D2 · Cognitive Complexity · handle (cognitive 37) · ×1
  • handle (cognitive 37) api/server/controllers/agents/callbacks.js:81 — handle has cognitive complexity 37 (threshold 15).
D2 · Cognitive Complexity · filterAuthorizedTools (cognitive 37) · ×1
  • filterAuthorizedTools (cognitive 37) api/server/controllers/agents/v1.js:224 — filterAuthorizedTools has cognitive complexity 37 (threshold 15).
D2 · Cognitive Complexity · buildMessages (cognitive 36) · ×1
  • buildMessages (cognitive 36) api/server/controllers/agents/client.js:1019 — buildMessages has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · searchPrincipals (cognitive 35) · ×1
  • searchPrincipals (cognitive 35) api/server/controllers/PermissionsController.js:401 — searchPrincipals has cognitive complexity 35 (threshold 15).
D2 · Cognitive Complexity · resumeCompletion (cognitive 35) · ×1
  • resumeCompletion (cognitive 35) api/server/controllers/agents/client.js:2794 — resumeCompletion has cognitive complexity 35 (threshold 15).
D2 · Cognitive Complexity · processBatch (cognitive 34) · ×1
  • processBatch (cognitive 34) config/migrate-shared-link-permissions.js:153 — processBatch has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · performSync (cognitive 34) · ×1
  • performSync (cognitive 34) api/db/indexSync.js:193 — performSync has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · duplicateAgentHandler (cognitive 34) · ×1
  • duplicateAgentHandler (cognitive 34) api/server/controllers/agents/v1.js:915 — duplicateAgentHandler has cognitive complexity 34 (threshold 15).
D2 · Cognitive Complexity · moderateText (cognitive 33) · ×1
  • moderateText (cognitive 33) api/server/middleware/moderateText.js:7 — moderateText has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 33) · ×1
  • (anonymous) (cognitive 33) api/server/controllers/agents/callbacks.js:733 — (anonymous) has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 32) · ×1
  • (anonymous) (cognitive 32) api/strategies/ldapStrategy.js:88 — (anonymous) has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · _call (cognitive 32) · ×1
  • _call (cognitive 32) api/server/services/ActionService.js:199 — _call has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · _LegacyAgentController (cognitive 32) · ×1
  • _LegacyAgentController (cognitive 32) api/server/controllers/agents/request.js:1946 — _LegacyAgentController has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · saveMessageToDatabase (cognitive 31) · ×1
  • saveMessageToDatabase (cognitive 31) api/app/clients/BaseClient.js:941 — saveMessageToDatabase has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · processAttachments (cognitive 31) · ×1
  • processAttachments (cognitive 31) api/app/clients/BaseClient.js:1376 — processAttachments has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · createMCPTool (cognitive 31) · ×1
  • createMCPTool (cognitive 31) api/server/services/MCP.js:840 — createMCPTool has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · checkBan (cognitive 30) · ×1
  • checkBan (cognitive 30) api/server/middleware/checkBan.js:54 — checkBan has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · _call (cognitive 30) · ×1
  • _call (cognitive 30) api/server/services/MCP.js:1031 — _call has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · updateResourcePermissions (cognitive 28) · ×1
  • updateResourcePermissions (cognitive 28) api/server/controllers/PermissionsController.js:59 — updateResourcePermissions has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · recordActivityLabelUsage (cognitive 28) · ×1
  • recordActivityLabelUsage (cognitive 28) api/server/controllers/agents/client.js:428 — recordActivityLabelUsage has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 27) · ×1
  • (anonymous) (cognitive 27) config/update-banner.js:9 — (anonymous) has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · buildPreLoginPayload (cognitive 26) · ×1
  • buildPreLoginPayload (cognitive 26) api/server/routes/config.js:55 — buildPreLoginPayload has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · handleError (cognitive 26) · ×1
  • handleError (cognitive 26) api/server/controllers/assistants/chatV1.js:113 — handleError has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · uploadFileHandler (cognitive 25) · ×1
  • uploadFileHandler (cognitive 25) api/server/routes/skills.js:190 — uploadFileHandler has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · ensureFilterableAttributes (cognitive 23) · ×1
  • ensureFilterableAttributes (cognitive 23) api/db/indexSync.js:89 — ensureFilterableAttributes has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · getMessagesForConversation (cognitive 23) · ×1
  • getMessagesForConversation (cognitive 23) api/app/clients/BaseClient.js:1100 — getMessagesForConversation has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · maybeUninstallOAuthMCP (cognitive 23) · ×1
  • maybeUninstallOAuthMCP (cognitive 23) api/server/controllers/UserController.js:483 — maybeUninstallOAuthMCP has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · checkPeoplePickerAccess (cognitive 23) · ×1
  • checkPeoplePickerAccess (cognitive 23) api/server/middleware/checkPeoplePickerAccess.js:20 — checkPeoplePickerAccess has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · getThemeFromEnv (cognitive 23) · ×1
  • getThemeFromEnv (cognitive 23) client/src/utils/getThemeFromEnv.js:5 — getThemeFromEnv has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · getResourcePermissions (cognitive 22) · ×1
  • getResourcePermissions (cognitive 22) api/server/controllers/PermissionsController.js:197 — getResourcePermissions has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · (anonymous) (cognitive 22) · ×1
  • (anonymous) (cognitive 22) api/server/routes/messages.js:25 — (anonymous) has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · healMcpToolNames (cognitive 22) · ×1
  • healMcpToolNames (cognitive 22) api/server/services/MCP.js:246 — healMcpToolNames has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · getServerConnectionStatus (cognitive 22) · ×1
  • getServerConnectionStatus (cognitive 22) api/server/services/MCP.js:1359 — getServerConnectionStatus has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · formatMessage (cognitive 22) · ×1
  • formatMessage (cognitive 22) api/app/clients/prompts/formatMessages.js:48 — formatMessage has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · handleRunInterrupt (cognitive 22) · ×1
  • handleRunInterrupt (cognitive 22) api/server/controllers/agents/client.js:2075 — handleRunInterrupt has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · revertAgentVersionHandler (cognitive 22) · ×1
  • revertAgentVersionHandler (cognitive 22) api/server/controllers/agents/v1.js:1418 — revertAgentVersionHandler has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · clearExpiredFromCache (cognitive 21) · ×1
  • clearExpiredFromCache (cognitive 21) api/cache/getLogStores.js:90 — clearExpiredFromCache has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · createAgentHandler (cognitive 21) · ×1
  • createAgentHandler (cognitive 21) api/server/controllers/agents/v1.js:398 — createAgentHandler has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · getListAgentsHandler (cognitive 21) · ×1
  • getListAgentsHandler (cognitive 21) api/server/controllers/agents/v1.js:1155 — getListAgentsHandler has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · migrateAgentPermissionsEnhanced (cognitive 20) · ×1
  • migrateAgentPermissionsEnhanced (cognitive 20) config/migrate-agent-permissions.js:23 — migrateAgentPermissionsEnhanced has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · configureSocialLogins (cognitive 20) · ×1
  • configureSocialLogins (cognitive 20) api/server/socialLogins.js:78 — configureSocialLogins has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · addPreviousAttachments (cognitive 20) · ×1
  • addPreviousAttachments (cognitive 20) api/app/clients/BaseClient.js:1476 — addPreviousAttachments has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · getRequestFileIds (cognitive 20) · ×1
  • getRequestFileIds (cognitive 20) api/server/controllers/assistants/chatV2.js:220 — getRequestFileIds has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · flushFileCache (cognitive 19) · ×1
  • flushFileCache (cognitive 19) config/flush-cache.js:228 — flushFileCache has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · connectDb (cognitive 19) · ×1
  • connectDb (cognitive 19) api/db/connect.js:49 — connectDb has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · startServer (cognitive 19) · ×1
  • startServer (cognitive 19) api/server/index.js:110 — startServer has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · customFetch (cognitive 19) · ×1
  • customFetch (cognitive 19) api/strategies/openidStrategy.js:42 — customFetch has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · finalizeSubagentContent (cognitive 19) · ×1
  • finalizeSubagentContent (cognitive 19) api/server/controllers/agents/client.js:257 — finalizeSubagentContent has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · useMemory (cognitive 19) · ×1
  • useMemory (cognitive 19) api/server/controllers/agents/client.js:1457 — useMemory has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · runAgents (cognitive 19) · ×1
  • runAgents (cognitive 19) api/server/controllers/agents/client.js:2411 — runAgents has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · migrateToPromptGroupPermissions (cognitive 18) · ×1
  • migrateToPromptGroupPermissions (cognitive 18) config/migrate-prompt-permissions.js:23 — migrateToPromptGroupPermissions has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · getAvailableTools (cognitive 18) · ×1
  • getAvailableTools (cognitive 18) api/server/controllers/PluginController.js:46 — getAvailableTools has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · computeCanEditByServer (cognitive 18) · ×1
  • computeCanEditByServer (cognitive 18) api/server/controllers/mcp.js:247 — computeCanEditByServer has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · validateImageRequest (cognitive 18) · ×1
  • validateImageRequest (cognitive 18) api/server/middleware/validateImageRequest.js:62 — validateImageRequest has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · performEntraGroupMembershipSync (cognitive 18) · ×1
  • performEntraGroupMembershipSync (cognitive 18) api/server/services/PermissionService.js:523 — performEntraGroupMembershipSync has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · getFileStrategy (cognitive 18) · ×1
  • getFileStrategy (cognitive 18) api/server/utils/getFileStrategy.js:27 — getFileStrategy has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · chatV1 (cognitive 18) · ×1
  • chatV1 (cognitive 18) api/server/controllers/assistants/chatV1.js:60 — chatV1 has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · chatV2 (cognitive 18) · ×1
  • chatV2 (cognitive 18) api/server/controllers/assistants/chatV2.js:54 — chatV2 has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · main (cognitive 17) · ×1
  • main (cognitive 17) config/flush-cache.js:290 — main has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · callTool (cognitive 17) · ×1
  • callTool (cognitive 17) api/server/controllers/tools.js:99 — callTool has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · processBatch (cognitive 17) · ×1
  • processBatch (cognitive 17) api/server/services/GraphApiService.js:310 — processBatch has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ensurePrincipalExists (cognitive 17) · ×1
  • ensurePrincipalExists (cognitive 17) api/server/services/PermissionService.js:319 — ensurePrincipalExists has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · runMemory (cognitive 17) · ×1
  • runMemory (cognitive 17) api/server/controllers/agents/client.js:1669 — runMemory has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · setMessageOptions (cognitive 16) · ×1
  • setMessageOptions (cognitive 16) api/app/clients/BaseClient.js:327 — setMessageOptions has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · getMessagesWithinTokenLimit (cognitive 16) · ×1
  • getMessagesWithinTokenLimit (cognitive 16) api/app/clients/BaseClient.js:506 — getMessagesWithinTokenLimit has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · processMessage (cognitive 16) · ×1
  • processMessage (cognitive 16) api/app/clients/BaseClient.js:1511 — processMessage has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · abortMessage (cognitive 16) · ×1
  • abortMessage (cognitive 16) api/server/middleware/abortMiddleware.js:102 — abortMessage has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · streamSharedFile (cognitive 16) · ×1
  • streamSharedFile (cognitive 16) api/server/routes/share.js:178 — streamSharedFile has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · grantPermission (cognitive 16) · ×1
  • grantPermission (cognitive 16) api/server/services/PermissionService.js:66 — grantPermission has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · loadActionToolsForExecution (cognitive 16) · ×1
  • loadActionToolsForExecution (cognitive 16) api/server/services/ToolService.js:1915 — loadActionToolsForExecution has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · isValidGenerationClaim (cognitive 16) · ×1
  • isValidGenerationClaim (cognitive 16) api/server/controllers/agents/request.js:200 — isValidGenerationClaim 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.
Recommendation — 12 finding(s)
D31 · IaC & Container Security · Low IaC · ×5
  • Low IaC: DS-0026 .devcontainer/Dockerfile — No HEALTHCHECK defined
  • Low IaC: DS-0026 .do/gitnexus/Dockerfile — No HEALTHCHECK defined
  • Low IaC: DS-0026 Dockerfile — No HEALTHCHECK defined
  • Low IaC: DS-0026 Dockerfile.multi — No HEALTHCHECK defined
  • Low IaC: DS-0026 otel/langfuse-fanout/Dockerfile — No HEALTHCHECK defined
D11 · Test Reliability · Test reliability not included · ×1
  • Test reliability not included — No test projects found, so reliability couldn't be assessed.
D15 · Churn × Complexity Hotspots · single-commit history · ×1
  • single-commit history — no usable git history window to measure hotspots — single-commit history — no usable git history window to measure hotspots: a single-commit clone exposes no history window, so the churn × complexity hotspot signal is unavailable — not scored for this run.
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).
D9 · Test Distribution · No tests found · ×1
  • No tests found — No test projects found in the repository.
Info — 1 finding(s)
D22 · Internal API Consistency · No exposed public API · ×1
  • No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.

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 .8artifacts/raw/gitleaks-history.json
D29 · Static Analysis (SAST)semgrepsemgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --json --quiet --timeout 0 --metrics off .270artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesdotnet (no .NET solution)dotnet (no .NET solution): not present in this environment0
D31 · IaC & Container Securitytrivytrivy config --format json --quiet .9artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrepsemgrep: not applicable — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.0
D33 · JS/npm Dependency Vulnerabilitiestrivytrivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner --format json --recursive .130artifacts/raw/osv-scanner.json

Run 019fdeac-c05f-7c6f-9acc-a86104332876 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

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

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