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%.
Raise Readiness 26 → 70 (the Healthy floor) ⇒ headline 39 → ~51.
Top priorities
Diagnosis — what's actually going on
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2021 — Injection | 50 | High / Critical |
| A06:2021 — Vulnerable & Outdated Components | 50 | High / Critical |
| A05:2021 — Security Misconfiguration | 9 | High / Critical |
| A02:2021 — Cryptographic Failures | 8 | High / 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.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 No automated tests finding(s) in Code Coverage. | +12.5 pts | Low | Code Coverage |
| Resolve the 1 No tests found finding(s) in Test Distribution. | +12.5 pts | Low | Test Distribution |
| Adopt ILogger (or Serilog) and log at meaningful points across the projects. | +13.5 pts | Medium | Observability |
| Add a SAST step (e.g. CodeQL) or a security analyzer package. | +13.5 pts | Medium | Security & performance tooling |
| Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies. | +13.5 pts | Medium | Dependency Hygiene |
| Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery). | +11.2 pts | Medium | DR & Backup |
| Add tests that import the unreached modules (directly or through their public entry). | +6.8 pts | Medium | Test Coverage |
| Resolve the 8 Secret finding(s) in Secrets (history) — start with checks.ts (3), values.yaml (3), docker-compose.yml. | +2.7 pts | Low | Secrets (history) |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| bun.lock | 0.2 | Slop | OSV Dependency Vulnerabilities: Critical CVE: [GHSA redacted] |
| .github/workflows/backend-review.yml | 4.4 | Mixed | Static Analysis (SAST): High: gha-workflow-env-secret |
| .github/workflows/agents-integration-tests.yml | 4.5 | Mixed | Static Analysis (SAST): High: github-actions-mutable-action-tag |
| helm/librechat/values.yaml | 5.1 | Mixed | Secrets (history): Secret: generic-api-key |
| packages/api/src/app/checks.ts | 5.1 | Mixed | Secrets (history): Secret: generic-api-key |
| .do/gitnexus/Dockerfile | 5.1 | Mixed | IaC & Container Security: High IaC: DS-0002 |
| .github/workflows/a11y.yml | 5.8 | Mixed | Static Analysis (SAST): High: github-actions-mutable-action-tag |
| .github/workflows/build.yml | 5.8 | Mixed | Static Analysis (SAST): High: github-actions-mutable-action-tag |
| .devcontainer/Dockerfile | 6.5 | Mixed | IaC & Container Security: High IaC: DS-0002 |
| Dockerfile.multi | 6.5 | Mixed | IaC & Container Security: High IaC: DS-0002 |
| api/app/clients/BaseClient.js | 7.0 | Mixed | Cyclomatic Complexity: sendMessage (cyclomatic 68) |
| api/server/controllers/agents/v1.js | 7.0 | Mixed | Cyclomatic Complexity: updateAgentHandler (cyclomatic 50) |
| api/server/services/ToolService.js | 7.0 | Mixed | Cyclomatic Complexity: loadToolsForExecution (cyclomatic 49) |
| api/server/controllers/agents/client.js | 7.0 | Mixed | Cyclomatic Complexity: chatCompletion (cyclomatic 42) |
| api/server/controllers/agents/request.js | 7.0 | Mixed | Cyclomatic Complexity: ResumableAgentController (cyclomatic 116) |
| api/server/services/PermissionService.js | 7.0 | Mixed | Cyclomatic Complexity: bulkUpdateResourcePermissions (cyclomatic 33) |
| api/server/services/MCP.js | 7.0 | Mixed | Cyclomatic Complexity: _call (cyclomatic 27) |
| api/server/controllers/agents/callbacks.js | 7.0 | Mixed | Cyclomatic Complexity: handle (cyclomatic 29) |
| api/server/controllers/PermissionsController.js | 7.0 | Mixed | Cyclomatic Complexity: updateResourcePermissions (cyclomatic 25) |
| api/server/controllers/agents/resume.js | 7.1 | Mixed | Cyclomatic 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.
What we checked — 44 dimensions across the health lenses
- 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.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| jscpd | Code duplication | — | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.301 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.301 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- 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.
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
- 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
Dimensions
D1 · Cyclomatic Complexity
86 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ResumableAgentController at 116.
What to do
- 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).
- 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).
- 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).
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
115 method(s) exceeded the cognitive complexity threshold of 15; the worst was ResumableAgentController at 193.
What to do
- 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).
- 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).
- 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).
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
30 god class(es) detected.
What to do
- 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).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
0 duplicated block group(s) detected.
D5 · Coupling
0 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
What to do
- Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D8 · Code Coverage
No automated tests — the solution has no test code.
What to do
- Resolve the 1 No automated tests finding(s) in Code Coverage. — One of this dimension's main actionable groups (1 issue-level).
- Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D9 · Test Distribution
No test projects found.
What to do
- Resolve the 1 No tests found finding(s) in Test Distribution. — One of this dimension's main actionable groups (1 recommendation-level).
D12 · Dependency Hygiene
0 outdated, 0 vulnerable, 0 deprecated packages.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D19 · Documentation Quality
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.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D26 · Project Cohesion
No projects to assess.
D27 · Navigability
Too little code to assess navigability.
D28 · Secrets (history)
8 finding(s): 0 critical, 8 high, 0 medium, 0 low.
What to do
- 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).
D29 · Static Analysis (SAST)
270 finding(s): 0 critical, 212 high, 36 medium, 22 low.
What to do
- 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).
D31 · IaC & Container Security
9 finding(s): 0 critical, 4 high, 0 medium, 5 low.
What to do
- 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).
- 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).
D33 · JS/npm Dependency Vulnerabilities
No known-vulnerable JS/npm dependencies.
D36 · Supply-chain Provenance & Signing
0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 No artifact signing finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (.github/SECURITY.md) is published with a reporting contact.
D38 · OSV Dependency Vulnerabilities
130 finding(s): 1 critical, 35 high, 83 medium, 11 low.
What to do
- 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).
- 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).
- 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).
Frontend & cross-cutting dimensions
AX5 · Architecture & structure
M1 · Documentation (README)
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 documentation
- 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 structure
- 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 accuracy
P1 · CI/CD gates
P2 · Observability
- 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 tooling
- 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 & Rollback
P5 · DR & Backup
What to do
- Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
R1 · Type Safety
What to do
- Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication
- 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 Boundaries
- 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 Complexity
- 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 Files
- 203 file(s) over 400 lines
What to do
- Split the oversized components into smaller, focused ones.
R4 · Test Coverage
- 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 Freshness
R6 · Tooling
R7 · Dead Code
- 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 Hygiene
- 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 Imports
- 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 correctness
X3 · Exception handling
X4 · Structured logging
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 68% | Adequate — gated by D1, D2, D3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 53% | Adequate — gated by R9 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 56% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 26% | Weak — gated by D8, D9, R8, P2, P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 44% | Weak — gated by D28, D29, D36, D38 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
Not included — 59 check(s) not relevant to this codebase
- 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)
Issue — 100 finding(s)
- High: github-actions-mutable-action-tag .github/workflows/a11y.yml:27
- High: github-actions-mutable-action-tag .github/workflows/a11y.yml:28
- High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:31
- High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:34
- High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:40
- High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:56
- High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:67
- High: github-actions-mutable-action-tag .github/workflows/agents-integration-tests.yml:78
- High: gha-workflow-env-secret .github/workflows/backend-review.yml:16
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:24
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:27
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:33
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:49
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:60
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:71
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:81
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:88
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:95
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:107
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:110
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:116
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:131
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:137
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:143
- High: github-actions-mutable-action-tag .github/workflows/backend-review.yml:165
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- High CVE: [GHSA redacted] bun.lock
- Secret: generic-api-key .devcontainer/docker-compose.yml:60
- Secret: generic-api-key .github/workflows/docker-smoke.yml:99
- Secret: generic-api-key helm/librechat/values.yaml:44
- Secret: generic-api-key helm/librechat/values.yaml:46
- Secret: generic-api-key helm/librechat/values.yaml:47
- Secret: generic-api-key packages/api/src/app/checks.ts:9
- Secret: generic-api-key packages/api/src/app/checks.ts:11
- Secret: generic-api-key packages/api/src/app/checks.ts:12
- High IaC: DS-0002 .devcontainer/Dockerfile
- High IaC: DS-0002 .do/gitnexus/Dockerfile
- High IaC: DS-0029 .do/gitnexus/Dockerfile
- High IaC: DS-0002 Dockerfile.multi
- Dimension evaluation failed
- Critical CVE: [GHSA redacted] bun.lock
- No automated tests
Warning — 247 finding(s)
- FileTooLong: api/typedefs.js api/typedefs.js:0
- FileTooLong: strategies/openidStrategy.js api/strategies/openidStrategy.js:0
- FileTooLong: strategies/openidStrategy.spec.js api/strategies/openidStrategy.spec.js:0
- FileTooLong: utils/tokens.spec.js api/utils/tokens.spec.js:0
- FileTooLong: setup/fake-model.js e2e/setup/fake-model.js:0
- FileTooLong: clients/BaseClient.js api/app/clients/BaseClient.js:0
- FileTooLong: controllers/PermissionsController.js api/server/controllers/PermissionsController.js:0
- FileTooLong: controllers/UserController.js api/server/controllers/UserController.js:0
- FileTooLong: controllers/mcp.js api/server/controllers/mcp.js:0
- FileTooLong: routes/mcp.js api/server/routes/mcp.js:0
- FileTooLong: routes/prompts.js api/server/routes/prompts.js:0
- FileTooLong: routes/share.js api/server/routes/share.js:0
- FileTooLong: services/ActionService.js api/server/services/ActionService.js:0
- FileTooLong: services/AuthService.js api/server/services/AuthService.js:0
- FileTooLong: services/GraphApiService.js api/server/services/GraphApiService.js:0
- FileTooLong: services/MCP.js api/server/services/MCP.js:0
- FileTooLong: services/MCP.spec.js api/server/services/MCP.spec.js:0
- FileTooLong: services/PermissionService.js api/server/services/PermissionService.js:0
- FileTooLong: services/PermissionService.spec.js api/server/services/PermissionService.spec.js:0
- FileTooLong: services/ToolService.js api/server/services/ToolService.js:0
- FileTooLong: specs/BaseClient.test.js api/app/clients/specs/BaseClient.test.js:0
- FileTooLong: agents/callbacks.js api/server/controllers/agents/callbacks.js:0
- FileTooLong: agents/client.js api/server/controllers/agents/client.js:0
- FileTooLong: agents/client.test.js api/server/controllers/agents/client.test.js:0
- FileTooLong: agents/openai.js api/server/controllers/agents/openai.js:0
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- Medium CVE: [GHSA redacted] bun.lock
- (anonymous) (cognitive 18) api/server/routes/memories.js:242
- (anonymous) (cognitive 18) api/server/controllers/agents/openai.js:645
- (anonymous) (cognitive 18) api/server/controllers/agents/openai.js:680
- (anonymous) (cyclomatic 31) api/strategies/ldapStrategy.js:88
- (anonymous) (cyclomatic 31) api/server/controllers/agents/client.js:1126
- (anonymous) (cyclomatic 20) api/strategies/samlStrategy.js:185
- (anonymous) (cyclomatic 20) api/server/routes/mcp.js:105
- (anonymous) (cognitive 30) config/create-user.js:9
- (anonymous) (cognitive 30) api/server/controllers/agents/callbacks.js:1073
- (anonymous) (cognitive 26) api/strategies/samlStrategy.js:185
- (anonymous) (cognitive 26) api/server/controllers/assistants/errors.js:44
- (anonymous) (cognitive 19) config/update.js:57
- (anonymous) (cognitive 19) api/server/routes/mcp.js:105
- (anonymous) (cognitive 16) config/migrate-code-file-duplicates.js:83
- (anonymous) (cognitive 16) api/server/controllers/agents/errors.js:43
- 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
- ResumeAgentController (cyclomatic 77) api/server/controllers/agents/resume.js:509
- sendMessage (cyclomatic 68) api/app/clients/BaseClient.js:550
- processOpenIDAuth (cyclomatic 63) api/strategies/openidStrategy.js:568
- executeResponse (cyclomatic 51) api/server/controllers/agents/responses.js:307
- updateAgentHandler (cyclomatic 50) api/server/controllers/agents/v1.js:674
- loadToolsForExecution (cyclomatic 49) api/server/services/ToolService.js:1649
- loadAgentTools (cyclomatic 46) api/server/services/ToolService.js:1246
- finalizeResumedTurn (cyclomatic 46) api/server/controllers/agents/resume.js:253
- executeOpenAIChatCompletion (cyclomatic 44) api/server/controllers/agents/openai.js:169
- loadToolDefinitionsWrapper (cyclomatic 42) api/server/services/ToolService.js:577
- chatCompletion (cyclomatic 42) api/server/controllers/agents/client.js:2212
- titleConvo (cyclomatic 36) api/server/controllers/agents/client.js:3089
- (anonymous) (cyclomatic 35) api/server/routes/mcp.js:227
- formatAgentMessages (cyclomatic 34) api/app/clients/prompts/formatMessages.js:145
- updateFavoritesController (cyclomatic 33) api/server/controllers/FavoritesController.js:6
- (anonymous) (cyclomatic 33) api/server/routes/config.js:209
- bulkUpdateResourcePermissions (cyclomatic 33) api/server/services/PermissionService.js:712
- ensureGroupPrincipalExists (cyclomatic 31) api/server/services/PermissionService.js:385
- resumeCompletion (cyclomatic 31) api/server/controllers/agents/client.js:2794
- (anonymous) (cyclomatic 30) api/strategies/openIdJwtStrategy.js:101
- refreshController (cyclomatic 30) api/server/controllers/AuthController.js:155
- performSync (cyclomatic 29) api/db/indexSync.js:193
- handle (cyclomatic 29) api/server/controllers/agents/callbacks.js:81
- processAttachments (cyclomatic 28) api/app/clients/BaseClient.js:1376
- checkBan (cyclomatic 28) api/server/middleware/checkBan.js:54
- buildMessages (cyclomatic 28) api/server/controllers/agents/client.js:1019
- _LegacyAgentController (cyclomatic 28) api/server/controllers/agents/request.js:1946
- updateAssistant (cyclomatic 28) api/server/controllers/assistants/v2.js:114
- processValue (cyclomatic 27) api/app/clients/BaseClient.js:1195
- buildEndpointOption (cyclomatic 27) api/server/middleware/buildEndpointOption.js:28
- buildPreLoginPayload (cyclomatic 27) api/server/routes/config.js:55
- _call (cyclomatic 27) api/server/services/MCP.js:1031
- updateUserPluginsController (cyclomatic 26) api/server/controllers/UserController.js:200
- flushRedisCache (cyclomatic 25) config/flush-cache.js:88
- saveMessageToDatabase (cyclomatic 25) api/app/clients/BaseClient.js:941
- updateResourcePermissions (cyclomatic 25) api/server/controllers/PermissionsController.js:59
- logoutController (cyclomatic 25) api/server/controllers/auth/LogoutController.js:24
- (anonymous) (cyclomatic 24) config/create-user.js:9
- createMCPTool (cyclomatic 24) api/server/services/MCP.js:840
- getThemeFromEnv (cyclomatic 24) client/src/utils/getThemeFromEnv.js:5
- searchPrincipals (cyclomatic 23) api/server/controllers/PermissionsController.js:401
- getMCPTools (cyclomatic 23) api/server/controllers/mcp.js:100
- in_progress (cyclomatic 23) api/server/services/AssistantService.js:183
- filterAuthorizedTools (cyclomatic 23) api/server/controllers/agents/v1.js:224
- duplicateAgentHandler (cyclomatic 23) api/server/controllers/agents/v1.js:915
- handleError (cyclomatic 23) api/server/controllers/assistants/chatV1.js:113
- (anonymous) (cyclomatic 23) api/server/controllers/assistants/errors.js:44
- (anonymous) (cyclomatic 22) config/update-banner.js:9
- maybeUninstallOAuthMCP (cyclomatic 22) api/server/controllers/UserController.js:483
- formatMessage (cyclomatic 22) api/app/clients/prompts/formatMessages.js:48
- recordActivityLabelUsage (cyclomatic 22) api/server/controllers/agents/client.js:428
- configureSocialLogins (cyclomatic 21) api/server/socialLogins.js:78
- moderateText (cyclomatic 21) api/server/middleware/moderateText.js:7
- (anonymous) (cyclomatic 21) api/server/controllers/agents/callbacks.js:733
- ensureFilterableAttributes (cyclomatic 20) api/db/indexSync.js:89
- getResourcePermissions (cyclomatic 20) api/server/controllers/PermissionsController.js:197
- uploadFileHandler (cyclomatic 20) api/server/routes/skills.js:190
- getServerConnectionStatus (cyclomatic 20) api/server/services/MCP.js:1359
- processRequiredActions (cyclomatic 20) api/server/services/ToolService.js:224
- handleRunInterrupt (cyclomatic 20) api/server/controllers/agents/client.js:2075
- runAgents (cyclomatic 20) api/server/controllers/agents/client.js:2411
- checkPeoplePickerAccess (cyclomatic 19) api/server/middleware/checkPeoplePickerAccess.js:20
- (anonymous) (cyclomatic 19) api/server/controllers/agents/callbacks.js:1073
- useMemory (cyclomatic 19) api/server/controllers/agents/client.js:1457
- getListAgentsHandler (cyclomatic 19) api/server/controllers/agents/v1.js:1155
- revertAgentVersionHandler (cyclomatic 19) api/server/controllers/agents/v1.js:1418
- processBatch (cyclomatic 17) config/migrate-shared-link-permissions.js:153
- startServer (cyclomatic 17) api/server/index.js:110
- setMessageOptions (cyclomatic 17) api/app/clients/BaseClient.js:327
- _call (cyclomatic 17) api/server/services/ActionService.js:199
- getFileStrategy (cyclomatic 17) api/server/utils/getFileStrategy.js:27
- isValidGenerationClaim (cyclomatic 17) api/server/controllers/agents/request.js:200
- createAgentHandler (cyclomatic 17) api/server/controllers/agents/v1.js:398
- chatV1 (cyclomatic 17) api/server/controllers/assistants/chatV1.js:60
- chatV2 (cyclomatic 17) api/server/controllers/assistants/chatV2.js:54
- getAvailableTools (cyclomatic 16) api/server/controllers/PluginController.js:46
- (anonymous) (cyclomatic 16) api/server/routes/messages.js:25
- streamSharedFile (cyclomatic 16) api/server/routes/share.js:178
- grantPermission (cyclomatic 16) api/server/services/PermissionService.js:66
- single-maintainer — knowledge-concentration (bus factor) risk
- ResumableAgentController (cognitive 193) api/server/controllers/agents/request.js:312
- startGeneration (cognitive 149) api/server/controllers/agents/request.js:1180
- ResumeAgentController (cognitive 102) api/server/controllers/agents/resume.js:509
- disposeClient (cognitive 101) api/server/cleanup.js:87
- sendMessage (cognitive 99) api/app/clients/BaseClient.js:550
- updateAgentHandler (cognitive 88) api/server/controllers/agents/v1.js:674
- processOpenIDAuth (cognitive 86) api/strategies/openidStrategy.js:568
- formatAgentMessages (cognitive 78) api/app/clients/prompts/formatMessages.js:145
- executeResponse (cognitive 71) api/server/controllers/agents/responses.js:307
- loadAgentTools (cognitive 60) api/server/services/ToolService.js:1246
- loadToolDefinitionsWrapper (cognitive 58) api/server/services/ToolService.js:577
- executeOpenAIChatCompletion (cognitive 57) api/server/controllers/agents/openai.js:169
- (anonymous) (cognitive 53) api/server/routes/mcp.js:227
- in_progress (cognitive 53) api/server/services/AssistantService.js:183
- ensureGroupPrincipalExists (cognitive 53) api/server/services/PermissionService.js:385
- loadToolsForExecution (cognitive 53) api/server/services/ToolService.js:1649
- logoutController (cognitive 52) api/server/controllers/auth/LogoutController.js:24
- (anonymous) (cognitive 50) api/server/routes/config.js:209
- bulkUpdateResourcePermissions (cognitive 48) api/server/services/PermissionService.js:712
- chatCompletion (cognitive 48) api/server/controllers/agents/client.js:2212
- finalizeResumedTurn (cognitive 48) api/server/controllers/agents/resume.js:253
- updateFavoritesController (cognitive 45) api/server/controllers/FavoritesController.js:6
- processRequiredActions (cognitive 45) api/server/services/ToolService.js:224
- updateAssistant (cognitive 44) api/server/controllers/assistants/v2.js:114
- refreshController (cognitive 43) api/server/controllers/AuthController.js:155
- updateUserPluginsController (cognitive 43) api/server/controllers/UserController.js:200
- (anonymous) (cognitive 40) api/strategies/openIdJwtStrategy.js:101
- flushRedisCache (cognitive 39) config/flush-cache.js:88
- processValue (cognitive 39) api/app/clients/BaseClient.js:1195
- getMCPTools (cognitive 39) api/server/controllers/mcp.js:100
- (anonymous) (cognitive 39) api/server/controllers/agents/client.js:1126
- titleConvo (cognitive 38) api/server/controllers/agents/client.js:3089
- buildEndpointOption (cognitive 37) api/server/middleware/buildEndpointOption.js:28
- handle (cognitive 37) api/server/controllers/agents/callbacks.js:81
- filterAuthorizedTools (cognitive 37) api/server/controllers/agents/v1.js:224
- buildMessages (cognitive 36) api/server/controllers/agents/client.js:1019
- searchPrincipals (cognitive 35) api/server/controllers/PermissionsController.js:401
- resumeCompletion (cognitive 35) api/server/controllers/agents/client.js:2794
- processBatch (cognitive 34) config/migrate-shared-link-permissions.js:153
- performSync (cognitive 34) api/db/indexSync.js:193
- duplicateAgentHandler (cognitive 34) api/server/controllers/agents/v1.js:915
- moderateText (cognitive 33) api/server/middleware/moderateText.js:7
- (anonymous) (cognitive 33) api/server/controllers/agents/callbacks.js:733
- (anonymous) (cognitive 32) api/strategies/ldapStrategy.js:88
- _call (cognitive 32) api/server/services/ActionService.js:199
- _LegacyAgentController (cognitive 32) api/server/controllers/agents/request.js:1946
- saveMessageToDatabase (cognitive 31) api/app/clients/BaseClient.js:941
- processAttachments (cognitive 31) api/app/clients/BaseClient.js:1376
- createMCPTool (cognitive 31) api/server/services/MCP.js:840
- checkBan (cognitive 30) api/server/middleware/checkBan.js:54
- _call (cognitive 30) api/server/services/MCP.js:1031
- updateResourcePermissions (cognitive 28) api/server/controllers/PermissionsController.js:59
- recordActivityLabelUsage (cognitive 28) api/server/controllers/agents/client.js:428
- (anonymous) (cognitive 27) config/update-banner.js:9
- buildPreLoginPayload (cognitive 26) api/server/routes/config.js:55
- handleError (cognitive 26) api/server/controllers/assistants/chatV1.js:113
- uploadFileHandler (cognitive 25) api/server/routes/skills.js:190
- ensureFilterableAttributes (cognitive 23) api/db/indexSync.js:89
- getMessagesForConversation (cognitive 23) api/app/clients/BaseClient.js:1100
- maybeUninstallOAuthMCP (cognitive 23) api/server/controllers/UserController.js:483
- checkPeoplePickerAccess (cognitive 23) api/server/middleware/checkPeoplePickerAccess.js:20
- getThemeFromEnv (cognitive 23) client/src/utils/getThemeFromEnv.js:5
- getResourcePermissions (cognitive 22) api/server/controllers/PermissionsController.js:197
- (anonymous) (cognitive 22) api/server/routes/messages.js:25
- healMcpToolNames (cognitive 22) api/server/services/MCP.js:246
- getServerConnectionStatus (cognitive 22) api/server/services/MCP.js:1359
- formatMessage (cognitive 22) api/app/clients/prompts/formatMessages.js:48
- handleRunInterrupt (cognitive 22) api/server/controllers/agents/client.js:2075
- revertAgentVersionHandler (cognitive 22) api/server/controllers/agents/v1.js:1418
- clearExpiredFromCache (cognitive 21) api/cache/getLogStores.js:90
- createAgentHandler (cognitive 21) api/server/controllers/agents/v1.js:398
- getListAgentsHandler (cognitive 21) api/server/controllers/agents/v1.js:1155
- migrateAgentPermissionsEnhanced (cognitive 20) config/migrate-agent-permissions.js:23
- configureSocialLogins (cognitive 20) api/server/socialLogins.js:78
- addPreviousAttachments (cognitive 20) api/app/clients/BaseClient.js:1476
- getRequestFileIds (cognitive 20) api/server/controllers/assistants/chatV2.js:220
- flushFileCache (cognitive 19) config/flush-cache.js:228
- connectDb (cognitive 19) api/db/connect.js:49
- startServer (cognitive 19) api/server/index.js:110
- customFetch (cognitive 19) api/strategies/openidStrategy.js:42
- finalizeSubagentContent (cognitive 19) api/server/controllers/agents/client.js:257
- useMemory (cognitive 19) api/server/controllers/agents/client.js:1457
- runAgents (cognitive 19) api/server/controllers/agents/client.js:2411
- migrateToPromptGroupPermissions (cognitive 18) config/migrate-prompt-permissions.js:23
- getAvailableTools (cognitive 18) api/server/controllers/PluginController.js:46
- computeCanEditByServer (cognitive 18) api/server/controllers/mcp.js:247
- validateImageRequest (cognitive 18) api/server/middleware/validateImageRequest.js:62
- performEntraGroupMembershipSync (cognitive 18) api/server/services/PermissionService.js:523
- getFileStrategy (cognitive 18) api/server/utils/getFileStrategy.js:27
- chatV1 (cognitive 18) api/server/controllers/assistants/chatV1.js:60
- chatV2 (cognitive 18) api/server/controllers/assistants/chatV2.js:54
- main (cognitive 17) config/flush-cache.js:290
- callTool (cognitive 17) api/server/controllers/tools.js:99
- processBatch (cognitive 17) api/server/services/GraphApiService.js:310
- ensurePrincipalExists (cognitive 17) api/server/services/PermissionService.js:319
- runMemory (cognitive 17) api/server/controllers/agents/client.js:1669
- setMessageOptions (cognitive 16) api/app/clients/BaseClient.js:327
- getMessagesWithinTokenLimit (cognitive 16) api/app/clients/BaseClient.js:506
- processMessage (cognitive 16) api/app/clients/BaseClient.js:1511
- abortMessage (cognitive 16) api/server/middleware/abortMiddleware.js:102
- streamSharedFile (cognitive 16) api/server/routes/share.js:178
- grantPermission (cognitive 16) api/server/services/PermissionService.js:66
- loadActionToolsForExecution (cognitive 16) api/server/services/ToolService.js:1915
- isValidGenerationClaim (cognitive 16) api/server/controllers/agents/request.js:200
- Unpinned build actions
Recommendation — 12 finding(s)
- Low IaC: DS-0026 .devcontainer/Dockerfile
- Low IaC: DS-0026 .do/gitnexus/Dockerfile
- Low IaC: DS-0026 Dockerfile
- Low IaC: DS-0026 Dockerfile.multi
- Low IaC: DS-0026 otel/langfuse-fanout/Dockerfile
- Test reliability not included
- single-commit history — no usable git history window to measure hotspots
- early-stage repository — too little history to judge knowledge freshness
- No build provenance
- No artifact signing
- No SBOM
- No tests found
Info — 1 finding(s)
- No exposed public API
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source . | 8 | artifacts/raw/gitleaks-history.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --json --quiet --timeout 0 --metrics off . | 270 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | dotnet (no .NET solution) | — | dotnet (no .NET solution): not present in this environment | 0 | — |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 9 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: 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 Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | — |
| D38 · OSV Dependency Vulnerabilities | osv-scanner | — | osv-scanner --format json --recursive . | 130 | artifacts/raw/osv-scanner.json |