Public report — solace-agent-mesh, published 29 Jul 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 29-07-2026 @ 13:08 UTC Public
Code Health Audit

SolaceLabs/solace-Agent-Mesh

54% At Risk

Large · 209,333 LoC · rebuild ~2.9 person-years · weakest lens: Readiness (47%)

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/43dimensions tool-verifieddeterministic · confidence 1.0 · 1 LLM-assisted, advisory
826findings with an exact file:lineof 842 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
43/112dimensions across the health lenses209333 LoC — 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.

SolaceLabs/solace-agent-mesh is sound in substance but carries real gaps (54%). It is not in crisis, but the issues below raise the cost of changing it — friction its consumers ultimately inherit.

It is strongest in Domain Modelling (100%) — the domain model is expressive and well-guarded. Maturity (81%) is solid too.

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 (47%) — 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. Accessibility (55%) is the next concern — it raises ongoing delivery and operational cost.

Leadership focus, highest impact first: Document RTO/RPO and a tested restore procedure (a backup… (DR & Backup); unused dependencies, declare unlisted imports explicitly,… (Dependency Hygiene); text alternative — alt on images (alt="" for purely decorative… (Text alternatives).

For scale: Large (~209,333 production lines); rebuilding it from scratch would take roughly ~2.9 person-years (~1–6 engineers). Approximate, ±~30%.

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

How the score is built — each lens's share of the 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 47% · 46% weightAccessibility 55% · 25% weightArchitecture 56% · 14% weightSecurity 57% · 8% weightCode Health 74% · 4% weightMaturity 81% · 2% weightDomain Modelling 100% · 1% weight

Raise Readiness 47 → 70 (the Healthy floor) ⇒ headline 54 → ~59.

Code composition — where the lines go
Tests 100%
New since the last scan (100+)

182 finding(s) are new versus the previous scan (2026-07-20) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.

  • D3 · FileTooLong: sac/component.py src/solace_agent_mesh/agent/sac/component.py
  • D3 · FileTooLong: protocol/event_handlers.py src/solace_agent_mesh/agent/protocol/event_handlers.py
  • D3 · FileTooLong: http_sse/component.py src/solace_agent_mesh/gateway/http_sse/component.py
  • D3 · FileTooLong: tools/builtin_artifact_tools.py src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py
  • D3 · FileTooLong: base/component.py src/solace_agent_mesh/gateway/base/component.py
  • D3 · FileTooLong: adk/callbacks.py src/solace_agent_mesh/agent/adk/callbacks.py
  • D3 · FileTooLong: a2a/component.py src/solace_agent_mesh/agent/proxies/a2a/component.py
  • D3 · FileTooLong: routers/artifacts.py src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py
  • D3 · FileTooLong: routers/tasks.py src/solace_agent_mesh/gateway/http_sse/routers/tasks.py
  • D3 · FileTooLong: routers/sessions.py src/solace_agent_mesh/gateway/http_sse/routers/sessions.py
  • D3 · FileTooLong: utils/artifact_helpers.py src/solace_agent_mesh/agent/utils/artifact_helpers.py
  • D3 · FileTooLong: tools/deep_research_tools.py src/solace_agent_mesh/agent/tools/deep_research_tools.py
  • D3 · FileTooLong: adk/runner.py src/solace_agent_mesh/agent/adk/runner.py
  • D3 · FileTooLong: tools/audio_tools.py src/solace_agent_mesh/agent/tools/audio_tools.py
  • D3 · FileTooLong: models/lite_llm.py src/solace_agent_mesh/agent/adk/models/lite_llm.py
  • D3 · FileTooLong: routers/prompts.py src/solace_agent_mesh/gateway/http_sse/routers/prompts.py
  • D3 · FileTooLong: services/project_service.py src/solace_agent_mesh/gateway/http_sse/services/project_service.py
  • D3 · FileTooLong: adk/setup.py src/solace_agent_mesh/agent/adk/setup.py
  • D3 · FileTooLong: routers/visualization.py src/solace_agent_mesh/gateway/http_sse/routers/visualization.py
  • D3 · FileTooLong: workflow/dag_executor.py src/solace_agent_mesh/workflow/dag_executor.py
  • D3 · FileTooLong: routers/projects.py src/solace_agent_mesh/gateway/http_sse/routers/projects.py
  • D3 · FileTooLong: scheduler/scheduler_service.py src/solace_agent_mesh/gateway/http_sse/services/scheduler/scheduler_service.py
  • D3 · FileTooLong: services/audio_service.py src/solace_agent_mesh/gateway/http_sse/services/audio_service.py
  • D3 · FileTooLong: embeds/resolver.py src/solace_agent_mesh/common/utils/embeds/resolver.py
  • D3 · FileTooLong: generic/component.py src/solace_agent_mesh/gateway/generic/component.py
  • D3 · FileTooLong: tools/image_tools.py src/solace_agent_mesh/agent/tools/image_tools.py
  • D3 · FileTooLong: adk/services.py src/solace_agent_mesh/agent/adk/services.py
  • D3 · FileTooLong: routers/scheduled_tasks.py src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py
  • D3 · FileTooLong: evaluation/run.py evaluation/run.py
  • D3 · FileTooLong: services/share_service.py src/solace_agent_mesh/gateway/http_sse/services/share_service.py
  • D3 · FileTooLong: structured_invocation/handler.py src/solace_agent_mesh/agent/sac/structured_invocation/handler.py
  • D3 · FileTooLong: base/component.py src/solace_agent_mesh/agent/proxies/base/component.py
  • D3 · FileTooLong: workflow/component.py src/solace_agent_mesh/workflow/component.py
  • D3 · FileTooLong: evaluation/report_data_processor.py evaluation/report_data_processor.py
  • D3 · FileTooLong: a2a/translation.py src/solace_agent_mesh/common/a2a/translation.py
  • D3 · FileTooLong: platform/component.py src/solace_agent_mesh/services/platform/component.py
  • D3 · FileTooLong: evaluation/summary_builder.py evaluation/summary_builder.py
  • D3 · FileTooLong: services/task_logger_service.py src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py
  • D3 · FileTooLong: http_sse/dependencies.py src/solace_agent_mesh/gateway/http_sse/dependencies.py
  • D3 · FileTooLong: tools/index_search_tools.py src/solace_agent_mesh/agent/tools/index_search_tools.py
  • D3 · FileTooLong: routers/share.py src/solace_agent_mesh/gateway/http_sse/routers/share.py
  • D3 · FileTooLong: add_cmd/agent_cmd.py cli/commands/add_cmd/agent_cmd.py
  • D3 · FileTooLong: services/task_builder_assistant.py src/solace_agent_mesh/gateway/http_sse/services/task_builder_assistant.py
  • D3 · FileTooLong: sac/sam_component_base.py src/solace_agent_mesh/common/sac/sam_component_base.py
  • D3 · FileTooLong: artifacts/s3_artifact_service.py src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py
  • D3 · FileTooLong: http_sse/sse_manager.py src/solace_agent_mesh/gateway/http_sse/sse_manager.py
  • D3 · FileTooLong: scheduler/result_handler.py src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py
  • D4 · Duplicated block (38 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py
  • D4 · Duplicated block (34 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/file_converter_service.py
  • D4 · Duplicated block (30 lines × 2) src/solace_agent_mesh/agent/tools/audio_tools.py
  • D4 · Duplicated block (28 lines × 2) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py
  • D4 · Duplicated block (28 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py
  • D4 · Duplicated block (27 lines × 3) src/solace_agent_mesh/gateway/base/component.py
  • D4 · Duplicated block (27 lines × 2) src/solace_agent_mesh/agent/tools/image_tools.py
  • D4 · Duplicated block (27 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/project_service.py
  • D4 · Duplicated block (25 lines × 3) src/solace_agent_mesh/gateway/base/component.py
  • D4 · Duplicated block (25 lines × 2) src/solace_agent_mesh/agent/sac/component.py
  • D4 · Duplicated block (22 lines × 2) src/solace_agent_mesh/core_a2a/service.py
  • D4 · Duplicated block (22 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py
  • D4 · Duplicated block (22 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/feedback.py
  • D4 · Duplicated block (22 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py
  • D4 · Duplicated block (22 lines × 2) src/solace_agent_mesh/workflow/component.py
  • D4 · Duplicated block (21 lines × 2) src/solace_agent_mesh/agent/tools/image_tools.py
  • D4 · Duplicated block (21 lines × 2) src/solace_agent_mesh/gateway/http_sse/repository/share_repository.py
  • D4 · Duplicated block (20 lines × 2) cli/commands/plugin_cmd/create_cmd.py
  • D4 · Duplicated block (20 lines × 2) src/solace_agent_mesh/workflow/dag_executor.py
  • D4 · Duplicated block (19 lines × 2) src/solace_agent_mesh/agent/sac/component.py
  • D4 · Duplicated block (19 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py
  • D4 · Duplicated block (18 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py
  • D4 · Duplicated block (18 lines × 2) src/solace_agent_mesh/agent/adk/intelligent_mcp_callbacks.py
  • D4 · Duplicated block (18 lines × 2) src/solace_agent_mesh/gateway/base/component.py
  • D4 · Duplicated block (18 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/indexing_task_service.py
  • D4 · Duplicated block (17 lines × 3) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py
  • D4 · Duplicated block (17 lines × 2) cli/commands/add_cmd/web_add_agent_step.py
  • D4 · Duplicated block (17 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py
  • D4 · Duplicated block (17 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py
  • D4 · Duplicated block (16 lines × 2) config_portal/backend/server.py
  • D4 · Duplicated block (16 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py
  • D4 · Duplicated block (16 lines × 2) src/solace_agent_mesh/gateway/base/component.py
  • D4 · Duplicated block (15 lines × 4) src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py
  • D4 · Duplicated block (15 lines × 4) src/solace_agent_mesh/agent/tools/deep_research_tools.py
  • D4 · Duplicated block (15 lines × 2) src/solace_agent_mesh/agent/sac/component.py
  • D4 · Duplicated block (15 lines × 2) src/solace_agent_mesh/gateway/http_sse/repository/session_repository.py
  • D4 · Duplicated block (14 lines × 3) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py
  • D4 · Duplicated block (14 lines × 2) cli/commands/init_cmd/broker_step.py
  • D4 · Duplicated block (14 lines × 2) cli/commands/init_cmd/orchestrator_step.py
  • D4 · Duplicated block (14 lines × 2) cli/commands/plugin_cmd/create_cmd.py
  • D4 · Duplicated block (14 lines × 2) src/solace_agent_mesh/agent/adk/models/lite_llm.py
  • D4 · Duplicated block (14 lines × 2) src/solace_agent_mesh/agent/tools/audio_tools.py
  • D4 · Duplicated block (14 lines × 2) src/solace_agent_mesh/gateway/http_sse/component.py
  • D4 · Duplicated block (13 lines × 2) cli/commands/add_cmd/web_add_agent_step.py
  • D4 · Duplicated block (13 lines × 2) src/solace_agent_mesh/agent/tools/image_tools.py
  • D4 · Duplicated block (13 lines × 2) src/solace_agent_mesh/common/a2a/artifact.py
  • D4 · Duplicated block (12 lines × 2) src/solace_agent_mesh/agent/adk/callbacks.py
  • D4 · Duplicated block (12 lines × 2) src/solace_agent_mesh/agent/adk/runner.py
  • D4 · Duplicated block (12 lines × 2) src/solace_agent_mesh/agent/sac/app.py
  • D4 · Duplicated block (12 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py
  • D4 · Duplicated block (12 lines × 2) src/solace_agent_mesh/workflow/dag_executor.py
  • D4 · Duplicated block (11 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_project_users_table.py
  • D4 · Duplicated block (11 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py

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

Rebuild cost & value ~ Modeled — €140,000–€710,000
Cost to rebuild€140,000–€710,000 (1.4–4.4 person-years (2,356–7,474 h), ~1–6 engineers)
Domain complexityStandard — harder problems cost more per line
Quality factor0.8× (at 54% quality) — the last 20% of quality is most of the work
Size & shapeLarge · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)
Dead frontend code~194 LoC unreachable (3 file(s)) — that slice of this estimate buys code with zero runtime value; deleting it is the cheapest win in this report (the R7 card lists every file)

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

How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.3) — vertical slice, domain model × a 0.8× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

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

1
Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
+5.9 pts · Medium effort · DR & Backup
2
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
+5.9 pts · Medium effort · Dependency Hygiene
3
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
+2.5 pts · Medium effort · Text alternatives

Diagnosis — what's actually going on

Value concentrated against a weak lens · Medium · Value at risk
This is a Large asset (~2.9 person-years to rebuild), and its weakest lens is Readiness at 47%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Large, ~2.9 person-years rebuild (209,333 LoC) · weakest lens: Readiness 47%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery). The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 6.6/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 4–8% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2 complexity, D4 duplication, D6 cohesion: averaging 6.6/10 across the code-quality signals
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.

At a glance — Code Health · 74% · Adequate · gated by D2

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

At a glance — Maturity · 81% · Strong

At a glance — Readiness · 47% · Weak · gated by R8

At a glance — Security · 57% · Adequate · gated by D29, D38

At a glance — Domain Modelling · 100% · Exemplary

At a glance — Accessibility · 55% · Adequate

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 Components36High / Critical
A05:2021 — Security Misconfiguration2High / Critical

Roadmap

First, establish a tested disaster recovery plan by documenting RTO/RPO and restore procedures, as backups alone are insufficient. Next, improve dependency hygiene by removing unused packages, explicitly declaring imports, and moving type or test-only packages to devDependencies. Then, enhance accessibility by adding text alternatives for images, SVGs, and videos, and ensure every form control and button has a proper programmatic label. Finally, make custom controls keyboard-operable, remove positive tabindex values, and ensure all anchors have valid hrefs.

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

Do thisHelpsEffortDimension
Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).+5.9 ptsMediumDR & Backup
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.+5.9 ptsMediumDependency Hygiene
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.+2.5 ptsMediumText alternatives
Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.+2.5 ptsMediumForms & labels
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+2.5 ptsMediumKeyboard semantics
Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI.+2.4 ptsMediumA11y enforcement
Break each cycle by extracting the shared piece into a module both sides can import.+2.2 ptsMediumCircular Imports
Use valid, non-abstract roles, supply the ARIA state each role requires, and never put aria-hidden on a focusable element.+2.0 ptsMediumARIA correctness

File quality

Per-file score 0–10 — a quality signature. Of 198 files carrying findings, judged against the Production bar: 2% slop · 70% mixed · 28% near-clean.

FileScoreBandWorst signal
client/webui/frontend/package-lock.json0.0SlopOSV Dependency Vulnerabilities: Critical vulnerability: [GHSA redacted]
config_portal/frontend/package-lock.json0.0SlopOSV Dependency Vulnerabilities: Critical CVE: [GHSA redacted]
uv.lock0.5SlopOSV Dependency Vulnerabilities: Critical CVE: [GHSA redacted]
src/solace_agent_mesh/agent/adk/callbacks.py4.0MixedStatic Analysis (SAST): Medium: python-logger-credential-disclosure
src/solace_agent_mesh/agent/tools/deep_research_tools.py4.0MixedStatic Analysis (SAST): Medium: python-logger-credential-disclosure
src/solace_agent_mesh/agent/proxies/a2a/component.py4.0MixedStatic Analysis (SAST): Medium: python-logger-credential-disclosure
src/solace_agent_mesh/agent/adk/models/lite_llm.py4.0MixedStatic Analysis (SAST): Medium: python-logger-credential-disclosure
.github/workflows/ci.yaml4.8MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
src/solace_agent_mesh/common/oauth/oauth_client.py4.8MixedStatic Analysis (SAST): Medium: python-logger-credential-disclosure
src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py4.9MixedStatic Analysis (SAST): Medium: insecure-hash-algorithm-md5
src/solace_agent_mesh/agent/adk/runner.py4.9MixedStatic Analysis (SAST): Medium: python-logger-credential-disclosure
src/solace_agent_mesh/gateway/http_sse/routers/share.py5.0MixedStatic Analysis (SAST): Medium: directly-returned-format-string
config_portal/backend/server.py5.0MixedStatic Analysis (SAST): High: dangerous-system-call
.github/workflows/release-readiness-check.yaml5.1MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
.github/workflows/release.yml5.1MixedStatic Analysis (SAST): High: gha-curl-pipe-shell
config_portal/backend/plugin_catalog/registry_manager.py5.3MixedStatic Analysis (SAST): Medium: insecure-hash-algorithm-md5
src/solace_agent_mesh/shared/auth/synthetic.py5.7MixedStatic Analysis (SAST): Medium: unverified-jwt-decode
.github/actions/push-docker/action.yml5.8MixedStatic Analysis (SAST): High: run-shell-injection
.github/workflows/build-push-dockerhub.yml5.8MixedStatic Analysis (SAST): High: run-shell-injection
.github/workflows/push-docker.yml5.8MixedStatic Analysis (SAST): High: run-shell-injection

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 43 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 1 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.6 — 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 — 43 dimensions across the health lenses
D1D2D3D4D13D15D16D21D28D29D31D33D34D35D36D38AC1AC2AC3AC4AC5AC6AC7AX5DM6M1M2M3M4P1P3P4P5P6R1R10R2R3R5R6R7R8R9

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, 826 of 842 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.302✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.302✓ 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 019fadfd-4cf5-789b-9a9e-50edbf3d53c9.

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.

  • D19 Documentation Quality — LLM provider failed — The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
  • 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.

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 (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • 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").
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • 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.
  • 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.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A clean result is "no unlabelled native control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
  • DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
  • 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.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (2): 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 Complexity6.2 / 10Adequate✓ 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 6.2 / 10 · rule-coverage 100% · ceiling Prevented

178 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was TaskLoggerService._save_chat_messages_for_background_task at 85.

TaskLoggerService._save_chat_messages_for_background_task (cyclomatic 85)src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:475
callbacks.process_artifact_blocks_callback (cyclomatic 78)src/solace_agent_mesh/agent/adk/callbacks.py:320
builtin_artifact_tools.extract_content_from_artifact (cyclomatic 72)src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:695
deep_research_tools.deep_research (cyclomatic 72)src/solace_agent_mesh/agent/tools/deep_research_tools.py:1945
tasks._submit_task (cyclomatic 71)src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:536

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

What to do

  1. Resolve the 1 TaskLoggerService._save_chat_messages_for_background_task (cyclomatic… finding(s) in Cyclomatic Complexity — start with task_logger_service.py. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 callbacks.process_artifact_blocks_callback (cyclomatic 78) finding(s) in Cyclomatic Complexity — start with callbacks.py. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 builtin_artifact_tools.extract_content_from_artifact (cyclomatic 72) finding(s) in Cyclomatic Complexity — start with builtin_artifact_tools.py. — 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 Complexity4.0 / 10Weak✓ 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 4.0 / 10 · rule-coverage 100% · ceiling Prevented

315 method(s) exceeded the cognitive complexity threshold of 15; the worst was TaskLoggerService._save_chat_messages_for_background_task at 329.

TaskLoggerService._save_chat_messages_for_background_task (cognitive 329)src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:475
callbacks.process_artifact_blocks_callback (cognitive 296)src/solace_agent_mesh/agent/adk/callbacks.py:320
test_declarative_runner._assert_llm_interactions (cognitive 223)tests/integration/scenarios_declarative/test_declarative_runner.py:780
event_handlers.handle_a2a_response (cognitive 201)src/solace_agent_mesh/agent/protocol/event_handlers.py:1894
ResultHandler._handle_success (cognitive 192)src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:259

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

What to do

  1. Resolve the 1 TaskLoggerService._save_chat_messages_for_background_task (cognitive… finding(s) in Cognitive Complexity — start with task_logger_service.py. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 callbacks.process_artifact_blocks_callback (cognitive 296) finding(s) in Cognitive Complexity — start with callbacks.py. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 test_declarative_runner._assert_llm_interactions (cognitive 223) finding(s) in Cognitive Complexity — start with test_declarative_runner.py. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D3 · God Classes8.9 / 10Strong✓ Tool-verified

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

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

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

53 god class(es) detected.

FileTooLong: sac/component.py · ×47src/solace_agent_mesh/agent/sac/component.py:0
TooManyMethods: SamAgentComponent · ×6src/solace_agent_mesh/agent/sac/component.py:122

What to do

  1. Resolve the 47 FileTooLong finding(s) in God Classes — start with component.py (8), event_handlers.py, builtin_artifact_tools.py. — One of this dimension's main actionable groups (47 warning-level).
  2. Resolve the 6 TooManyMethods finding(s) in God Classes — start with component.py (5), task_execution_context.py. — One of this dimension's main actionable groups (6 warning-level).
  3. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

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

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

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

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

174 duplicated block group(s) detected.

Duplicated block (14 lines × 2) · ×18cli/commands/add_cmd/gateway_cmd.py:77
Duplicated block (13 lines × 2) · ×14cli/commands/add_cmd/web_add_agent_step.py:18
Duplicated block (12 lines × 2) · ×13cli/commands/plugin_cmd/create_cmd.py:282
Duplicated block (16 lines × 2) · ×11config_portal/backend/server.py:377
Duplicated block (11 lines × 2) · ×10client/sam-rest-client/src/sam_rest_client/client.py:181

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

✓ On the Gold path — maintain.

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

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.

D15 · Churn × Complexity Hotspots9.7 / 10Exemplary✓ Tool-verified

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

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

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

Top hotspots: client/webui/frontend/src/lib/components/pages/RecentChatsPage.tsx (4×53=212); client/webui/frontend/src/lib/components/pages/ChatPage.tsx (3×60=180); src/solace_agent_mesh/agent/adk/models/lite_llm.py (2×58=116)

Hotspot: client/webui/frontend/src/lib/components/pages/RecentChatsPage.tsx · ×7client/webui/frontend/src/lib/components/pages/RecentChatsPage.tsx

✓ On the Gold path — maintain.

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

D16 · Bus Factor9.0 / 10Exemplary✓ Tool-verified

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

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

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

69 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/solace_agent_mesh/agent/tools/deep_research_tools.py.

Off-boarding risk: anonymized user #1 · ×6
Further sole-owners (lower concentration)

✓ On the Gold path — maintain.

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

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

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

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

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

0 naming inconsistencies across 0 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)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

51 finding(s): 0 critical, 27 high, 22 medium, 2 low.

High: run-shell-injection · ×27.github/actions/push-docker/action.yml:44detected by semgrep finding
Medium: react-dangerouslysetinnerhtml · ×22client/webui/frontend/src/lib/components/chat/rag/CitationPreviewModal.tsx:135detected by semgrep finding
Low: avoid-sqlalchemy-textsrc/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:274detected by semgrep finding

What to do

  1. Resolve the 27 High finding(s) in Static Analysis (SAST) — start with ci.yaml (4), release-readiness-check.yaml (3), release.yml (3). — One of this dimension's main actionable groups (27 issue-level).
  2. Resolve the 22 Medium finding(s) in Static Analysis (SAST) — start with lite_llm.py (5), oauth_client.py (3), callbacks.py (2). — One of this dimension's main actionable groups (22 warning-level).
  3. Resolve the 1 Low finding(s) in Static Analysis (SAST) — start with 20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py. — One of this dimension's main actionable groups (1 recommendation-level).

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

D31 · IaC & Container Security9.3 / 10Exemplary✓ 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 9.3 / 10 · rule-coverage 100% · ceiling Documented

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

Critical IaC: DS-0031Dockerfiledetected by trivy finding
Low IaC: DS-0026Dockerfiledetected by trivy finding

✓ On the Gold path — maintain.

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.

D34 · Knowledge Freshness8.9 / 10Strong✓ Tool-verified

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

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

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

71 of 681 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is templates/gateway_component_template.py.

Orphaned knowledgetemplates/gateway_component_template.py
Further orphaned files (smaller)

What to do

  1. Resolve the 1 Orphaned knowledge finding(s) in Knowledge Freshness — start with gateway_component_template.py. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

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

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

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

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

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

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

Strongest change-coupling: component.py↔config.py 70%; service.ts↔ModelEdit.tsx 60%; ConfigContext.ts↔config.py 56%

Change coupling: component.py ↔ config.py · ×10src/solace_agent_mesh/agent/proxies/a2a/component.py

✓ On the Gold path — maintain.

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

D36 · Supply-chain Provenance & Signing5.0 / 10Adequate✓ 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 5.0 / 10 · rule-coverage 100% · ceiling Documented

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

Build action pinned to a mutable branch
Unpinned build actions
No SBOM

What to do

  1. Resolve the 1 Build action pinned to a mutable branch finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 No SBOM 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.

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

What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — read natively from whatever lockfile the repository ships (Cargo, npm, Go, Python, Maven, RubyGems, …). D33 and D30 add ecosystem-specific scanners on top for npm and .NET.

Method: Multi-ecosystem dependency-CVE scan via osv-scanner --recursive (queries the osv.dev database + parses lockfiles natively across ecosystems: npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven/Gradle pom.xml/gradle.lockfile, PyPI requirements.txt/poetry.lock/Pipfile.lock, Composer composer.lock, RubyGems Gemfile.lock, Hex mix.lock, pub pubspec.lock, Swift Package.resolved); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable only when the repo declares no supported non-.NET dependency lockfile (a NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain); coverage needs a resolved lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.

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

36 finding(s): 3 critical, 18 high, 11 medium, 4 low.

High CVE: [GHSA redacted] · ×16client/webui/frontend/package-lock.jsondetected by osv-scanner finding
Critical CVE: [GHSA redacted] · ×2uv.lockdetected by osv-scanner finding
High vulnerability: [GHSA redacted] · ×2uv.lockdetected by osv-scanner finding
Critical vulnerability: [GHSA redacted]client/webui/frontend/package-lock.jsondetected by osv-scanner finding
Medium CVE: [GHSA redacted] · ×10client/webui/frontend/package-lock.jsondetected by osv-scanner finding

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

What to do

  1. Resolve the 16 High CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (8), uv.lock (8). — One of this dimension's main actionable groups (16 issue-level).
  2. Resolve the 2 Critical CVE finding(s) in OSV Dependency Vulnerabilities — start with uv.lock, package-lock.json. — One of this dimension's main actionable groups (2 issue-level).
  3. Resolve the 2 High vulnerability finding(s) in OSV Dependency Vulnerabilities — start with uv.lock, package-lock.json. — One of this dimension's main actionable groups (2 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.

AC1 · Text alternatives5.0 / 10Weak✓ Tool-verified

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

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

  • A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content. (×5) — chart_section.html:4, modal.html:17, modal.html:20, …

What to do

  • Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
AC2 · Forms & labels4.5 / 10Weak✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

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

  • This UI-library field component has no label / aria-label / aria-labelledby / id / name — and neither does anything it renders — so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a <label htmlFor> pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) — labelling each item leaves the set unnamed. (×22) — AgentMeshCards.tsx:70, ChatInputArea.tsx:1171, FeedbackModal.tsx:60, …
  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label htmlFor>, a wrapping <label>, or aria-label. — PromptsCommand.tsx:253
  • This control has no associated label. Add a <label htmlFor> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×2) — SessionList.tsx:547, RecentChatsPage.tsx:491

What to do

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

Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

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

  • A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>. — root.tsx:27
  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×2) — root.tsx:27, header.html:2

What to do

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

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.

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

  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×7) — EdgeLayer.tsx:101, FlowChartPanel.tsx:226, ContextUsageIndicator.tsx:307, …
  • A click handler on a plain element with no role and no tabindex: even where another element's key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a <button>, or add role + tabindex="0". (×2) — RecentChatsPage.tsx:455, RecentChatsPage.tsx:514

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness7.4 / 10Strong✓ Tool-verified

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.

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

  • This role is not a valid WAI-ARIA role, so assistive tech ignores it. Use a valid role (or the native element). — FileUpload.tsx:152

What to do

  • Use valid, non-abstract roles, supply the ARIA state each role requires, and never put aria-hidden on a focusable element.
AC6 · Visual & motion safety10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

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

AC7 · A11y enforcement6.0 / 10Adequate✓ Tool-verified

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

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

  • An a11y linter is configured (Documented) but there's no automated a11y test or CI gate. Add vitest-axe to verify at runtime, then gate it in CI.

What to do

  • Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI.
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.

DM6 · Domain ↔ infrastructure boundary10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies — a domain aggregate fused to a persistence ORM (TypeORM/Prisma/MikroORM/Sequelize/Mongoose) on its own declaration (active-record) couples the domain to infrastructure. The clean-architecture dependency rule.

Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.

Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.

M1 · Documentation (README)9.5 / 10Exemplary✓ Tool-verified

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

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

What to do

  • Add a README to the 1 of 4 project(s) that lack one — worth up to 0.5 pts.
M2 · Architecture documentation5.0 / 10Adequate✓ Tool-verified

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

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

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

What to do

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

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

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

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

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

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

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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

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

P3 · Security & performance tooling4.0 / 10Weak✓ Tool-verified

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

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

What to do

  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback7.0 / 10Strong✓ 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 & Backup4.0 / 10Weak✓ 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).
  • Enable purge protection / soft-delete (and prevent_destroy on critical resources) so data stores can't be lost to an accidental or malicious delete.
P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

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

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

R1 · Type Safety10.0 / 10Exemplary✓ 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.

R10 · Code Duplication8.0 / 10Strong✓ 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.

  • client/webui/frontend/src/lib/components/chat/ChatInputArea.tsx:110 · client/webui/frontend/src/lib/components/chat/useChatAttachments.ts:235 — ChatInputArea.tsx:110
  • client/webui/frontend/src/lib/components/chat/preview/contentUtils.ts:154 · client/webui/frontend/src/lib/utils/textPreprocessor.ts:31 — contentUtils.ts:154
  • evaluation/report/modal_chart_functions.js:31 · evaluation/report/modal_chart_functions.js:92 — modal_chart_functions.js:31
  • client/webui/frontend/src/lib/components/activities/FlowChart/WorkflowRenderer.tsx:121 · client/webui/frontend/src/lib/components/activities/FlowChart/WorkflowRenderer.tsx:145 — WorkflowRenderer.tsx:121
  • client/webui/frontend/src/lib/components/scheduled-tasks/TaskCard.tsx:14 · client/webui/frontend/src/lib/components/workflowVisualization/WorkflowNodeDetailPanel.tsx:144 — TaskCard.tsx:14
  • evaluation/report/modal_chart_functions.js:181 · evaluation/report/modal_chart_functions.js:293 — modal_chart_functions.js:181
  • config_portal/frontend/app/components/PluginCatalogFlow/components/AddRegistryModal.tsx:118 · config_portal/frontend/app/components/PluginCatalogFlow/components/InstallPluginModal.tsx:119 · config_portal/frontend/app/components/PluginCatalogFlow/components/ReadMoreModal.tsx:108 — AddRegistryModal.tsx:118
  • config_portal/frontend/app/components/steps/agent/AgentCardStep.tsx:442 · config_portal/frontend/app/components/steps/agent/AgentFeaturesStep.tsx:89 · config_portal/frontend/app/components/steps/agent/AgentServicesStep.tsx:201 — AgentCardStep.tsx:442

What to do

  • Extract the duplicated blocks into shared functions/components.
R2 · Cyclomatic Complexity6.0 / 10Adequate✓ 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) — taskVisualizerProcessor.ts:312, FileIcon.tsx:46, processChatEvent.ts:181, …

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files7.5 / 10Strong✓ 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.

What to do

  • Split the oversized components into smaller, focused ones.
R5 · Dependency Freshness9.1 / 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.

What to do

  • Bump outdated dependencies to current versions to limit upgrade debt.
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 Code9.9 / 10Exemplary✓ 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.

  • 2 file(s) (~707 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package.
  • Unreachable from the 16 application, 17 tooling and 779 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 (16 application, 17 tooling, 779 test roots considered) (×3) — types.ts, Toggle.tsx, DatabaseSetup.tsx
  • Nothing imports this binding — it is safe to review for removal. — providerModels.ts:72

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) — dialog.tsx:8, commands.ts:4, VisualizerStepCard.test.tsx:3
  • Declared in client/webui/frontend/package.json but never imported anywhere in that package or its workspace members — dead weight and attack surface. Verify against build tooling before removing.
  • Declared in config_portal/frontend/package.json but never imported anywhere in that package or its workspace members — dead weight and attack surface. Verify against build tooling before removing. (×2)
  • Every import is type-only — move it to devDependencies. — root.tsx:8

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/webui/frontend/src/lib/api/artifacts/hooks.ts → client/webui/frontend/src/lib/api/artifacts/service.ts → client/webui/frontend/src/lib/api/index.ts → client/webui/frontend/src/lib/api/artifacts/index.ts → client/webui/frontend/src/lib/api/artifacts/hooks.ts — hooks.ts
  • client/webui/frontend/src/lib/components/ui/index.ts → client/webui/frontend/src/lib/components/ui/chat/chat-bubble.tsx → client/webui/frontend/src/lib/components/ui/index.ts — FlowChartPanel.tsx
  • config_portal/frontend/app/components/AddAgentFlow.tsx → config_portal/frontend/app/components/steps/agent/AgentBasicInfoStep.tsx → config_portal/frontend/app/components/AddAgentFlow.tsx — AddAgentFlow.tsx
  • config_portal/frontend/app/components/AddGatewayFlow.tsx → config_portal/frontend/app/components/steps/gateway/GatewayArtifactServiceStep.tsx → config_portal/frontend/app/components/AddGatewayFlow.tsx — AddGatewayFlow.tsx
  • config_portal/frontend/app/components/InitializationFlow.tsx → config_portal/frontend/app/components/StepIndicator.tsx → config_portal/frontend/app/components/InitializationFlow.tsx — InitializationFlow.tsx

What to do

  • Break each cycle by extracting the shared piece into a module both sides can import.

WCAG coverage — what static analysis assessed

Statically assessed 15 of 55 WCAG 2.2 Level A/AA success criteria (27%; ≈30% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 40 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

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

Not statically assessed — these 40 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.2.1, 1.2.3, 1.2.4, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

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 Health74%Adequate — gated by D2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture56%Adequate — gated by R9Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity81%StrongSolid.
Readiness47%Weak — gated by R8Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security57%Adequate — gated by D29, D38Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling100%ExemplaryStrongest area.
Accessibility55%AdequateAcceptable, with room to improve.
Not included — 69 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.

  • AX1 Captive dependencies — no DI registrations detected
  • AX10 Code composition — not assessed — code composition is computed by ROLE over the .NET document set and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — no singleton implementations detected
  • AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over the .NET project-reference graph and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX4 Dependency direction — not applicable to a vertical-slice architecture (the inward-dependency rule is for layered/clean styles)
  • AX6 Interface segregation — not assessed — interface segregation is computed over the .NET type surface and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — vertical-slice architecture detected, but individual slices could not be resolved from namespaces or project layout
  • AX8 Test isolation — not assessed — test isolation is computed from the .NET project graph (which projects are test projects, and what they reference) and no such graph was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • 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 — Not assessed: these personal data controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls — Not assessed: these authorization controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C3 Audit Trail — Not assessed: these audit controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — Not assessed: these retention controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • D10 Test Quality — ~137165 lines of test source are present (.ts, .tsx, .py) but the test-quality collector reads C# only, so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included
  • D12 Dependency Hygiene — Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • D14 License Compliance — Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), package.json), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
  • D17 Explicit Debt — explicit-debt markers are read through a C# workspace today, so they were not read for this repository's language — this asserts nothing about how many markers the code carries. Not scored — this is a gap in the analyzer, not a finding about this repository
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D19 Documentation Quality — LLM 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 — Production source is present (.py, .ts, .tsx) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["Acme.Billing"]`, `Catalog: ["Acme.Catalog"]`.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D27 Navigability — No calls could be sampled, so navigability was not assessed — tracing effort is measured over resolved call sites and this target exposed none. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), package.json — not scanned yet) — where an OSV-supported manifest exists, dependency vulnerabilities for this repository are reported under D38 instead.
  • 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.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
  • D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a C#/VB class graph, and this repository's production source is .py, .ts, .tsx, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • D9 Test Distribution — Test source is present (.ts, .tsx, .py) but the test-pyramid classifier reads C# only, so its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • DM1 Aggregate boundaries — not gated in TS source-only: aggregate-vs-value-object classification is not 0-FP-separable (every class-holding-class reads alike) — advisory (the Swift/Dart/Rust parity)
  • DM2 Strongly-typed ids — not gated in TS source-only for the Stage-D scaffold: the branded-type idiom (`type Id = string & {__brand}`) is idiom-rare in TS (4 calibration carriers), so a bare-string-id gap is advisory — Stage-E diversification target (tsjs-stageC.md LESSON-A)
  • DM3 Integration-event coupling — not gated in TS source-only: a cross-package domain leak is not 0-FP-separable from a legitimate shared-kernel package, and most calibration repos are single-package — advisory (candidate-demote)
  • DM4 Rich vs anemic model — not gated in TS source-only for the Stage-D scaffold: the anemic-vs-rich gate is candidate-DETERMINISTIC for TS (behaviour + the component/DTO/readonly-VO exemptions) but the calibration corpus is high-quality (0 witnesses) — advisory, settled at the Stage-E holdout (the Rust/Swift/Dart precedent)
  • DM5 Encapsulated state — not gated in TS source-only for the Stage-D scaffold: TS idiom favours #private/private/readonly (idiom-rare public-mutable break), so DM5 is advisory pending Stage-E messier-repo witnesses (the Rust/Swift/Dart precedent)
  • DM7 Repository granularity — not gated in TS source-only: 'a repository per CHILD entity' needs the aggregate-root structure, which is not source-resolvable; the softest gated dim — advisory
  • 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 — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • P12 CI test-gate honesty — no data
  • P2 Observability — Observability was not assessed: this check reads .NET source (ILogger/Serilog, OpenTelemetry, health checks) and no such source carries this repository's product — because it is written in another language, or because the solution failed to load. Absence of a .NET logging idiom is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
  • P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
  • P8 Schema migrations — not assessed — schema-migration practice is read from EF Core usage in .NET source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF2 Allocation hygiene — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF3 Async & latency hygiene — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • R4 Test Coverage — 779 test file(s) reach none of 48 production file(s) via imports — exercised outside the JS import graph (integration/bundled), not import-reachable
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • SC1 Supply-chain hygiene — no data
  • X1 Async correctness — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X2 Cancellation propagation — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X3 Exception handling — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X4 Structured logging — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X5 Nullable reference types — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository

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 — 51 finding(s)
D29 · Static Analysis (SAST) · High · ×27
  • High: run-shell-injection .github/actions/push-docker/action.yml:44 — Using variable interpolation `${{...}}` with a workflow input in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. A workflow input is not bounded by this step and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
  • High: run-shell-injection .github/actions/push-docker/action.yml:56 — Using variable interpolation `${{...}}` with a step output / a workflow input in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. A step output / a workflow input is not bounded by this step and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
  • High: run-shell-injection .github/workflows/build-push-dockerhub.yml:139 — Using variable interpolation `${{...}}` with a step output / a workflow input in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. A step output / a workflow input is not bounded by this step and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
  • High: run-shell-injection .github/workflows/build-push-dockerhub.yml:178 — Using variable interpolation `${{...}}` with a workflow input in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. A workflow input is not bounded by this step and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
  • High: github-actions-mutable-action-tag .github/workflows/build-push-image.yaml:241 — 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: SolaceDev/solace-public-workflows/prisma-cloud-scan@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/prisma-cloud-scan@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/changelog.yaml:35 — 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: SolaceDev/solace-public-workflows/generate-github-release-notes@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/generate-github-release-notes@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/ci.yaml: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: SolaceDev/solace-public-workflows/.github/actions/pr-size-check@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/.github/actions/pr-size-check@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: secrets-inherit .github/workflows/ci.yaml:169 — This workflow uses `secrets: inherit` to pass all of the calling workflow's secrets to a reusable workflow. This violates the principle of least privilege because the called workflow receives access to every secret in the repository, not just the ones it needs. If the called workflow is compromised or sourced from a third party, an attacker gains access to all repository secrets. Instead, explicitly pass only the secrets that the called workflow requires using the `secrets:` map, e.g. `secrets: { MY_SECRET: ${{ secrets.MY_SECRET }} }`.
  • High: secrets-inherit .github/workflows/ci.yaml:183 — This workflow uses `secrets: inherit` to pass all of the calling workflow's secrets to a reusable workflow. This violates the principle of least privilege because the called workflow receives access to every secret in the repository, not just the ones it needs. If the called workflow is compromised or sourced from a third party, an attacker gains access to all repository secrets. Instead, explicitly pass only the secrets that the called workflow requires using the `secrets:` map, e.g. `secrets: { MY_SECRET: ${{ secrets.MY_SECRET }} }`.
  • High: github-actions-mutable-action-tag .github/workflows/ci.yaml:198 — 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: SolaceDev/solace-public-workflows/workflow-dispatch-and-wait@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/workflow-dispatch-and-wait@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: secrets-inherit .github/workflows/publish.yaml:110 — This workflow uses `secrets: inherit` to pass all of the calling workflow's secrets to a reusable workflow. This violates the principle of least privilege because the called workflow receives access to every secret in the repository, not just the ones it needs. If the called workflow is compromised or sourced from a third party, an attacker gains access to all repository secrets. Instead, explicitly pass only the secrets that the called workflow requires using the `secrets:` map, e.g. `secrets: { MY_SECRET: ${{ secrets.MY_SECRET }} }`.
  • High: run-shell-injection .github/workflows/push-docker.yml:98 — Using variable interpolation `${{...}}` with `github` context data in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
  • High: run-shell-injection .github/workflows/push-docker.yml:135 — Using variable interpolation `${{...}}` with `github` context data in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
  • High: secrets-inherit .github/workflows/release-please.yaml:78 — This workflow uses `secrets: inherit` to pass all of the calling workflow's secrets to a reusable workflow. This violates the principle of least privilege because the called workflow receives access to every secret in the repository, not just the ones it needs. If the called workflow is compromised or sourced from a third party, an attacker gains access to all repository secrets. Instead, explicitly pass only the secrets that the called workflow requires using the `secrets:` map, e.g. `secrets: { MY_SECRET: ${{ secrets.MY_SECRET }} }`.
  • High: github-actions-mutable-action-tag .github/workflows/release-please.yaml:89 — 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: SolaceDev/solace-public-workflows/workflow-dispatch-and-wait@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/workflow-dispatch-and-wait@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release-post-process.yml:133 — 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: SolaceDev/solace-public-workflows/generate-github-release-notes@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/generate-github-release-notes@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release-readiness-check.yaml:214 — 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: SolaceDev/solace-public-workflows/prisma-cloud-scan@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/prisma-cloud-scan@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release-readiness-check.yaml:322 — 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: SolaceDev/solace-public-workflows/guardian-db-sync@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/guardian-db-sync@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release-readiness-check.yaml:333 — 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: SolaceDev/solace-public-workflows/guardian-vulnerability-gate@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/guardian-vulnerability-gate@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: gha-curl-pipe-shell .github/workflows/release.yml:116 — A `run:` step pipes the output of `curl` or `wget` directly into a shell interpreter. This is the "curl | bash" install pattern — if the remote server is compromised or the URL is hijacked, an attacker can execute arbitrary code in your CI runner. Consider downloading the file first, verifying its checksum or signature, and then executing it.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:333 — 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: SolaceDev/solace-public-workflows/.github/actions/hatch-release-prep@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/.github/actions/hatch-release-prep@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:345 — 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: SolaceDev/solace-public-workflows/.github/actions/hatch-release-post@<40-character SHA>`. This step references `SolaceDev/solace-public-workflows/.github/actions/hatch-release-post@main`; resolve the SHA it points at today with `gh api repos/SolaceDev/solace-public-workflows/commits/main --jq .sha`.
  • High: secrets-inherit .github/workflows/ui-ci.yml:208 — This workflow uses `secrets: inherit` to pass all of the calling workflow's secrets to a reusable workflow. This violates the principle of least privilege because the called workflow receives access to every secret in the repository, not just the ones it needs. If the called workflow is compromised or sourced from a third party, an attacker gains access to all repository secrets. Instead, explicitly pass only the secrets that the called workflow requires using the `secrets:` map, e.g. `secrets: { MY_SECRET: ${{ secrets.MY_SECRET }} }`.
  • High: run-shell-injection .github/workflows/ui-release.yml:26 — Using variable interpolation `${{...}}` with a workflow input in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. A workflow input is not bounded by this step and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Reference it as a shell VARIABLE rather than a `${{ }}` interpolation, using your shell's own syntax (`"$ENVVAR"` in bash, `$env:ENVVAR` in PowerShell), so the value is passed as data and never re-expanded as code.
  • High: npm-missing-minimum-release-age client/webui/frontend/.npmrc:1 — This .npmrc does not set a minimum release age or sets it too low. Newly published packages can be malicious or unstable. Add a minimum release age (`min-release-age = 7` for the npm CLI, `minimum-release-age = 7` for pnpm, or `minimumReleaseAge` in `pnpm-workspace.yaml`) — use the key your package manager reads to wait 7 days before resolving newly published package versions. Added in: v11.10 Reference: https://github.blog/changelog/2026-02-18-npm-bulk-trusted-publishing-config-and-script-security-now-generally-available/
  • + 2 more in this group — see findings.md.
D38 · OSV Dependency Vulnerabilities · High CVE · ×16
  • High CVE: [GHSA redacted] client/webui/frontend/package-lock.json — brace-expansion 5.0.5: [GHSA redacted] — brace-expansion is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin brace-expansion to 5.0.7 with an `overrides` entry). This is 1 of 3 advisories this scan raises against brace-expansion 5.0.5, and their fixed versions do not agree — anything below 5.0.8 still leaves at least one of them open, so 5.0.8 is the floor for this package, not this row's target alone. One upgrade of brace-expansion 5.0.5 clears all 3 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] uv.lock — httplib2 0.31.2: [GHSA redacted] — httplib2 is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or raise its floor in your own manifest and re-resolve (`uv lock --upgrade-package httplib2`)).
  • High CVE: [GHSA redacted] uv.lock — joserfc 1.6.7: [GHSA redacted] — joserfc is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or raise its floor in your own manifest and re-resolve (`uv lock --upgrade-package joserfc`)).
  • High CVE: [GHSA redacted] client/webui/frontend/package-lock.json — js-yaml 4.1.1: [GHSA redacted] — upgrade to 4.3.0. This is 1 of 2 advisories this scan raises against js-yaml 4.1.1, and their fixed versions do not agree — anything below 4.3.0 still leaves at least one of them open, so 4.3.0 is the floor for this package, not this row's target alone. (in 2 lockfiles) One upgrade of js-yaml 4.1.1 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] uv.lock — mcp 1.27.0: [GHSA redacted] — mcp is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or raise its floor in your own manifest and re-resolve (`uv lock --upgrade-package mcp`)). This is 1 of 3 advisories this scan raises against mcp 1.27.0, and their fixed versions do not agree — anything below 1.28.1 still leaves at least one of them open, so 1.28.1 is the floor for this package, not this row's target alone. One upgrade of mcp 1.27.0 clears all 3 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] config_portal/frontend/package-lock.json — minimatch 9.0.3: [GHSA redacted] — this repo already declares minimatch ^10.2.1 directly, at or above the fixed 9.0.7; the vulnerable 9.0.3 is a second copy resolved for a dependency that requires an older range. Upgrade those dependents, or pin minimatch with an `overrides` entry so only one copy resolves. This is 1 of 3 advisories this scan raises against minimatch 9.0.3, and their fixed versions do not agree — anything below 9.0.7 still leaves at least one of them open, so 9.0.7 is the floor for this package, not this row's target alone. One upgrade of minimatch 9.0.3 clears all 3 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] uv.lock — pillow 12.2.0: [GHSA redacted] — upgrade to 12.3.0 One upgrade of pillow 12.2.0 clears all 13 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] config_portal/frontend/package-lock.json — postcss 8.5.8: [GHSA redacted] — upgrade to 8.5.12. This is 1 of 3 advisories this scan raises against postcss 8.5.8, and their fixed versions do not agree — anything below 8.5.18 still leaves at least one of them open, so 8.5.18 is the floor for this package, not this row's target alone. One upgrade of postcss 8.5.8 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] uv.lock — pyasn1 0.6.3: [GHSA redacted] — upgrade to 0.6.4 One upgrade of pyasn1 0.6.3 clears all 3 advisories it raises: [GHSA redacted], [GHSA redacted], PYSEC-2026-3455.
  • High CVE: [GHSA redacted] uv.lock — pypdf 6.10.2: [GHSA redacted] — upgrade to 6.14.1. This is 1 of 13 advisories this scan raises against pypdf 6.10.2, and their fixed versions do not agree — anything below 6.14.2 still leaves at least one of them open, so 6.14.2 is the floor for this package, not this row's target alone. One upgrade of pypdf 6.10.2 clears all 13 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] client/webui/frontend/package-lock.json — react-router 7.15.1: [GHSA redacted] — react-router is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin react-router to 7.18.0 with an `overrides` entry). One upgrade of react-router 7.15.1 clears all 5 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] uv.lock — soupsieve 2.8.3: [GHSA redacted] — soupsieve is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or raise its floor in your own manifest and re-resolve (`uv lock --upgrade-package soupsieve`)). One upgrade of soupsieve 2.8.3 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] uv.lock — starlette 0.49.1: [GHSA redacted] — upgrade to 1.3.1. This is 1 of 5 advisories this scan raises against starlette 0.49.1, and their fixed versions do not agree — anything below 1.3.1 still leaves at least one of them open, so 1.3.1 is the floor for this package, not this row's target alone. One upgrade of starlette 0.49.1 clears all 5 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], PYSEC-2026-248.
  • High CVE: [GHSA redacted] config_portal/frontend/package-lock.json — vite 5.4.21: [GHSA redacted] — this repo declares vite ^6.4.1, but the vulnerable 5.4.21 is a SEPARATE copy on another release line, so editing your own vite entry cannot move it: upgrade the dependency that pulls it in (— 6.4.3 is a MAJOR ahead of the resolved 5.4.21, so an `overrides` pin would force a breaking version under a dependent written against 5.4.21; upgrading the declaring package is the remedy, and where no patched release exists in your major line, record the exposure instead). This is 1 of 3 advisories this scan raises against vite 5.4.21, and their fixed versions do not agree — anything below 6.4.3 still leaves at least one of them open, so 6.4.3 is the floor for this package, not this row's target alone. One upgrade of vite 5.4.21 clears all 3 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] config_portal/frontend/package-lock.json — vite 6.4.1: [GHSA redacted] — upgrade to 6.4.2. This is 1 of 4 advisories this scan raises against vite 6.4.1, and their fixed versions do not agree — anything below 6.4.3 still leaves at least one of them open, so 6.4.3 is the floor for this package, not this row's target alone.
  • High CVE: [GHSA redacted] config_portal/frontend/package-lock.json — ws 7.5.10: [GHSA redacted] — this repo already declares ws ^8.21.0 directly, at or above the fixed 7.5.11; the vulnerable 7.5.10 is a second copy resolved for a dependency that requires an older range. Upgrade those dependents, or pin ws with an `overrides` entry so only one copy resolves.
D38 · OSV Dependency Vulnerabilities · Critical CVE · ×2
  • Critical CVE: [GHSA redacted] uv.lock — google-adk 1.18.0: [GHSA redacted] — upgrade to 1.28.1
  • Critical CVE: [GHSA redacted] config_portal/frontend/package-lock.json — tar 6.2.1: [GHSA redacted] — tar is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (— 7.5.19 is a MAJOR ahead of the resolved 6.2.1, so an `overrides` pin would force a breaking version under a dependent written against 6.2.1; upgrading the declaring package is the remedy, and where no patched release exists in your major line, record the exposure instead). This is 1 of 12 advisories this scan raises against tar 6.2.1, and their fixed versions do not agree — anything below 7.5.21 still leaves at least one of them open, so 7.5.21 is the floor for this package, not this row's target alone. One upgrade of tar 6.2.1 clears all 12 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
D38 · OSV Dependency Vulnerabilities · High vulnerability · ×2
  • High vulnerability: [GHSA redacted] uv.lock — gitpython 3.1.50: [GHSA redacted] — upgrade to 3.1.51. This is 1 of 9 advisories this scan raises against gitpython 3.1.50, and their fixed versions do not agree — anything below 3.1.55 still leaves at least one of them open, so 3.1.55 is the floor for this package, not this row's target alone. One upgrade of gitpython 3.1.50 clears all 9 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High vulnerability: [GHSA redacted] client/webui/frontend/package-lock.json — postcss 8.5.14: [GHSA redacted] — upgrade to 8.5.18
D31 · IaC & Container Security · Critical IaC · ×1
  • Critical IaC: DS-0031 Dockerfile — Secrets passed via `build-args` or envs or copied secret files
D34 · Knowledge Freshness · Orphaned knowledge · ×1
  • Orphaned knowledge templates/gateway_component_template.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
D36 · Supply-chain Provenance & Signing · Build action pinned to a mutable branch · ×1
  • Build action pinned to a mutable branch — 18 CI action reference(s) point at a mutable BRANCH rather than a version tag or a commit SHA, 18 of them on a THIRD-PARTY action: `sonarsource/sonarqube-quality-gate-action@master` (.github/workflows/test-and-sonarqube.yml:367), `SolaceDev/solace-public-workflows/.github/workflows/sca-scan-and-guard.yaml@main` (.github/workflows/release.yml:262), `SolaceDev/solace-public-workflows/.github/workflows/hatch_release_security_checks.yml@main` (.github/workflows/release.yml:274), `SolaceDev/solace-public-workflows/.github/actions/hatch-release-prep@main` (.github/workflows/release.yml:333), `SolaceDev/solace-public-workflows/.github/actions/hatch-release-post@main` (.github/workflows/release.yml:345), `SolaceDev/solace-public-workflows/.github/workflows/sca-scan-and-guard.yaml@main` (.github/workflows/release.yml:360), … (+12 more). A branch re-points on every upstream push, so whatever its tip holds when the job runs executes inside your pipeline with that job's secrets — a version tag at least moves only when the publisher cuts a release. Pin these to a full commit SHA first; the remaining tag refs are the same control at a lower blast radius.
D38 · OSV Dependency Vulnerabilities · Critical vulnerability · ×1
  • Critical vulnerability: [GHSA redacted] client/webui/frontend/package-lock.json — @vitest/browser 4.1.9: [GHSA redacted] — @vitest/browser is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin @vitest/browser to 4.1.10 with an `overrides` entry).
Warning — 772 finding(s)
D3 · God Classes · FileTooLong · ×47
  • FileTooLong: sac/component.py src/solace_agent_mesh/agent/sac/component.py:0 — FileTooLong — 2960 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: protocol/event_handlers.py src/solace_agent_mesh/agent/protocol/event_handlers.py:0 — FileTooLong — 2228 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: http_sse/component.py src/solace_agent_mesh/gateway/http_sse/component.py:0 — FileTooLong — 1956 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: tools/builtin_artifact_tools.py src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:0 — FileTooLong — 1876 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: base/component.py src/solace_agent_mesh/gateway/base/component.py:0 — FileTooLong — 1778 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: adk/callbacks.py src/solace_agent_mesh/agent/adk/callbacks.py:0 — FileTooLong — 1442 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: a2a/component.py src/solace_agent_mesh/agent/proxies/a2a/component.py:0 — FileTooLong — 1389 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: routers/artifacts.py src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:0 — FileTooLong — 1360 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: routers/tasks.py src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:0 — FileTooLong — 1303 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: routers/sessions.py src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:0 — FileTooLong — 1250 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: utils/artifact_helpers.py src/solace_agent_mesh/agent/utils/artifact_helpers.py:0 — FileTooLong — 1212 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: tools/deep_research_tools.py src/solace_agent_mesh/agent/tools/deep_research_tools.py:0 — FileTooLong — 1179 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: adk/runner.py src/solace_agent_mesh/agent/adk/runner.py:0 — FileTooLong — 1118 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: tools/audio_tools.py src/solace_agent_mesh/agent/tools/audio_tools.py:0 — FileTooLong — 1060 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: models/lite_llm.py src/solace_agent_mesh/agent/adk/models/lite_llm.py:0 — FileTooLong — 969 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: routers/prompts.py src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:0 — FileTooLong — 937 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: services/project_service.py src/solace_agent_mesh/gateway/http_sse/services/project_service.py:0 — FileTooLong — 908 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: adk/setup.py src/solace_agent_mesh/agent/adk/setup.py:0 — FileTooLong — 906 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: routers/visualization.py src/solace_agent_mesh/gateway/http_sse/routers/visualization.py:0 — FileTooLong — 833 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: workflow/dag_executor.py src/solace_agent_mesh/workflow/dag_executor.py:0 — FileTooLong — 833 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: routers/projects.py src/solace_agent_mesh/gateway/http_sse/routers/projects.py:0 — FileTooLong — 825 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: scheduler/scheduler_service.py src/solace_agent_mesh/gateway/http_sse/services/scheduler/scheduler_service.py:0 — FileTooLong — 812 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: services/audio_service.py src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:0 — FileTooLong — 806 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: embeds/resolver.py src/solace_agent_mesh/common/utils/embeds/resolver.py:0 — FileTooLong — 750 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: generic/component.py src/solace_agent_mesh/gateway/generic/component.py:0 — FileTooLong — 737 significant lines (blank, comment-only and punctuation-only lines excluded).
  • + 22 more in this group — see findings.md.
D29 · Static Analysis (SAST) · Medium · ×22
  • Medium: react-dangerouslysetinnerhtml client/webui/frontend/src/lib/components/chat/rag/CitationPreviewModal.tsx:135 — Detection of dangerouslySetInnerHTML from non-constant definition. This can inadvertently expose users to cross-site scripting (XSS) attacks if this comes from user-provided input. If you have to use dangerouslySetInnerHTML, consider using a sanitization library such as DOMPurify to sanitize your HTML. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: insecure-hash-algorithm-md5 config_portal/backend/plugin_catalog/registry_manager.py:23 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: debug-enabled config_portal/backend/plugin_catalog_server.py:228 — Detected Flask app with debug=True. Do not deploy to production with this flag enabled as it will leak sensitive information. Instead, consider using Flask configuration variables or setting 'debug' using system environment variables. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/adk/callbacks.py:2530 — Detected a python logger call with a potential hardcoded secret "%s Resolved max_input_tokens=%s for model=%s (agent_model_type=%s, cfg_keys=%s, cfg_max=%s)" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/adk/callbacks.py:2549 — Detected a python logger call with a potential hardcoded secret "%s Recorded token usage: input=%d, output=%d, cached=%d, model=%s" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/adk/models/lite_llm.py:491 — Detected a python logger call with a potential hardcoded secret "Token count: role=%s, num_parts=%d, text_image_tokens=%d" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/adk/models/lite_llm.py:498 — Detected a python logger call with a potential hardcoded secret "Failed to count text/image tokens: %s. Continuing with video estimate only." being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/adk/models/lite_llm.py:1296 — Detected a python logger call with a potential hardcoded secret "Model does not support thinking tokens, retrying without: %s" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/adk/models/lite_llm.py:1376 — Detected a python logger call with a potential hardcoded secret "Failed to get OAuth token: %s" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/adk/models/lite_llm.py:1689 — Detected a python logger call with a potential hardcoded secret "LLM Cost calculation: model=%s, prompt_tokens=%s, completion_tokens=%s, " "prompt_cost=$%.6f, completion_cost=$%.6f, total_cost=$%.6f" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/adk/runner.py:206 — Detected a python logger call with a potential hardcoded secret "%s Proactive compaction check: total_tokens=%d, threshold=%d, exceeds=%s" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/proxies/a2a/component.py:1445 — Detected a python logger call with a potential hardcoded secret "%s Fetching new OAuth 2.0 token from %s (scope: %s)" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/proxies/a2a/oauth_token_cache.py:88 — Detected a python logger call with a potential hardcoded secret "Using cached OAuth token for '%s' (context: %s, expires in %.0fs)" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/tools/deep_research_tools.py:252 — Detected a python logger call with a potential hardcoded secret "%s Inheriting base config from default model: api_base=%s, api_key=%s" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/agent/tools/deep_research_tools.py:274 — Detected a python logger call with a potential hardcoded secret "%s Using phase-specific model config: %s (temp=%.1f, max_tokens=%s)" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/common/oauth/oauth_client.py:371 — Detected a python logger call with a potential hardcoded secret "OAuth token request failed with status %d (attempt %d/%d): %s" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/common/oauth/oauth_client.py:381 — Detected a python logger call with a potential hardcoded secret "OAuth token request failed (attempt %d/%d): %s" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: python-logger-credential-disclosure src/solace_agent_mesh/common/oauth/oauth_client.py:390 — Detected a python logger call with a potential hardcoded secret "Unexpected error during OAuth token fetch: %s" being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: insecure-hash-algorithm-md5 src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1680 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: raw-html-format src/solace_agent_mesh/gateway/http_sse/routers/auth.py:204 — Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates (`django.shortcuts.render`) which will safely render HTML instead.
  • Medium: directly-returned-format-string src/solace_agent_mesh/gateway/http_sse/routers/share.py:99 — Detected Flask route directly returning a formatted string. This is subject to cross-site scripting if user input can reach the string. Consider using the template engine instead and rendering pages with 'render_template()'. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: unverified-jwt-decode src/solace_agent_mesh/shared/auth/synthetic.py:268 — Detected JWT token decoded with 'verify=False'. This bypasses any integrity checks for the token which means the token could be tampered with by malicious actors. Ensure that the JWT token is verified.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×18
  • Duplicated block (14 lines × 2) cli/commands/add_cmd/gateway_cmd.py:77 — cli/commands/add_cmd/gateway_cmd.py:77-90 | cli/commands/add_cmd/gateway_cmd.py:92-105
  • Duplicated block (14 lines × 2) cli/commands/init_cmd/broker_step.py:122 — cli/commands/init_cmd/broker_step.py:122-137 | cli/commands/init_cmd/broker_step.py:184-197
  • Duplicated block (14 lines × 2) cli/commands/init_cmd/orchestrator_step.py:523 — cli/commands/init_cmd/orchestrator_step.py:523-538 | cli/commands/init_cmd/webui_gateway_step.py:197-210
  • Duplicated block (14 lines × 2) cli/commands/init_cmd/platform_service_step.py:72 — cli/commands/init_cmd/platform_service_step.py:72-85 | cli/commands/init_cmd/webui_gateway_step.py:217-230
  • Duplicated block (14 lines × 2) cli/commands/plugin_cmd/create_cmd.py:94 — cli/commands/plugin_cmd/create_cmd.py:94-107 | cli/commands/plugin_cmd/create_cmd.py:278-292
  • Duplicated block (14 lines × 2) config_portal/backend/server.py:346 — config_portal/backend/server.py:346-359 | config_portal/backend/server.py:394-407
  • Duplicated block (14 lines × 2) evaluation/report_data_processor.py:312 — evaluation/report_data_processor.py:312-325 | evaluation/report_data_processor.py:522-535
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/agent/adk/models/lite_llm.py:1520 — src/solace_agent_mesh/agent/adk/models/lite_llm.py:1520-1533 | src/solace_agent_mesh/agent/adk/models/lite_llm.py:1549-1563
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/agent/tools/audio_tools.py:527 — src/solace_agent_mesh/agent/tools/audio_tools.py:527-540 | src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:774-790
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/agent/tools/image_tools.py:616 — src/solace_agent_mesh/agent/tools/image_tools.py:616-629 | src/solace_agent_mesh/agent/tools/image_tools.py:840-853
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/agent/utils/tool_context_facade.py:192 — src/solace_agent_mesh/agent/utils/tool_context_facade.py:192-205 | src/solace_agent_mesh/agent/utils/tool_context_facade.py:256-269
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:86 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:86-99 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:184-197
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:88 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:88-101 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:110-123
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/gateway/http_sse/component.py:699 — src/solace_agent_mesh/gateway/http_sse/component.py:699-715 | src/solace_agent_mesh/gateway/http_sse/component.py:816-829
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:767 — src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:767-780 | src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:1017-1030
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:892 — src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:892-905 | src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:955-968
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/indexing_task_service.py:195 — src/solace_agent_mesh/gateway/http_sse/services/indexing_task_service.py:195-208 | src/solace_agent_mesh/gateway/http_sse/services/indexing_task_service.py:260-273
  • Duplicated block (14 lines × 2) src/solace_agent_mesh/workflow/component.py:561 — src/solace_agent_mesh/workflow/component.py:561-574 | src/solace_agent_mesh/workflow/component.py:712-725
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×14
  • Duplicated block (13 lines × 2) cli/commands/add_cmd/web_add_agent_step.py:18 — cli/commands/add_cmd/web_add_agent_step.py:18-31 | cli/commands/init_cmd/web_init_step.py:29-41
  • Duplicated block (13 lines × 2) cli/commands/add_cmd/web_add_agent_step.py:81 — cli/commands/add_cmd/web_add_agent_step.py:81-93 | cli/commands/add_cmd/web_add_gateway_step.py:91-103
  • Duplicated block (13 lines × 2) cli/commands/plugin_cmd/add_cmd.py:14 — cli/commands/plugin_cmd/add_cmd.py:14-26 | cli/commands/plugin_cmd/install_cmd.py:19-31
  • Duplicated block (13 lines × 2) config_portal/backend/plugin_catalog_server.py:81 — config_portal/backend/plugin_catalog_server.py:81-93 | config_portal/backend/plugin_catalog_server.py:124-136
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:300 — src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:300-312 | src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:322-334
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:401 — src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:401-413 | src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:448-460
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:406 — src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:406-418 | src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:501-513
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:573 — src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:573-585 | src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:623-635
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/agent/proxies/base/component.py:607 — src/solace_agent_mesh/agent/proxies/base/component.py:607-619 | src/solace_agent_mesh/agent/proxies/base/component.py:855-867
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/agent/tools/image_tools.py:645 — src/solace_agent_mesh/agent/tools/image_tools.py:645-658 | src/solace_agent_mesh/agent/tools/image_tools.py:863-875
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/common/a2a/artifact.py:259 — src/solace_agent_mesh/common/a2a/artifact.py:259-271 | src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1875-1888
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/common/utils/embeds/modifiers.py:183 — src/solace_agent_mesh/common/utils/embeds/modifiers.py:183-195 | src/solace_agent_mesh/common/utils/embeds/modifiers.py:231-243
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:548 — src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:548-560 | src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:840-852
  • Duplicated block (13 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:711 — src/solace_agent_mesh/gateway/http_sse/services/project_service.py:711-723 | src/solace_agent_mesh/gateway/http_sse/services/project_service.py:1377-1389
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×13
  • Duplicated block (12 lines × 2) cli/commands/plugin_cmd/create_cmd.py:282 — cli/commands/plugin_cmd/create_cmd.py:282-293 | cli/commands/plugin_cmd/create_cmd.py:302-313
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/agent/adk/callbacks.py:2560 — src/solace_agent_mesh/agent/adk/callbacks.py:2560-2571 | src/solace_agent_mesh/agent/sac/component.py:2825-2837
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/agent/adk/runner.py:1451 — src/solace_agent_mesh/agent/adk/runner.py:1451-1465 | src/solace_agent_mesh/agent/sac/component.py:939-950
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/agent/sac/app.py:707 — src/solace_agent_mesh/agent/sac/app.py:707-718 | src/solace_agent_mesh/workflow/app.py:641-653
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/agent/tools/executors/unified_python_executor.py:54 — src/solace_agent_mesh/agent/tools/executors/unified_python_executor.py:54-65 | src/solace_agent_mesh/agent/tools/executors/unified_python_executor.py:76-87
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:67 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:67-78 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:332-353
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:44 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:44-55 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:153-164
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/gateway/http_sse/component.py:2212 — src/solace_agent_mesh/gateway/http_sse/component.py:2212-2223 | src/solace_agent_mesh/gateway/http_sse/component.py:2224-2235
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/gateway/http_sse/repository/entities/chat_task.py:29 — src/solace_agent_mesh/gateway/http_sse/repository/entities/chat_task.py:29-40 | src/solace_agent_mesh/gateway/http_sse/routers/dto/requests/task_requests.py:32-43
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:805 — src/solace_agent_mesh/gateway/http_sse/routers/projects.py:805-816 | src/solace_agent_mesh/gateway/http_sse/routers/projects.py:861-872
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py:849 — src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py:849-860 | src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py:929-940
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:349 — src/solace_agent_mesh/gateway/http_sse/services/project_service.py:349-360 | src/solace_agent_mesh/gateway/http_sse/services/project_service.py:614-625
  • Duplicated block (12 lines × 2) src/solace_agent_mesh/workflow/dag_executor.py:733 — src/solace_agent_mesh/workflow/dag_executor.py:733-746 | src/solace_agent_mesh/workflow/dag_executor.py:904-915
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×11
  • Duplicated block (16 lines × 2) config_portal/backend/server.py:377 — config_portal/backend/server.py:377-393 | config_portal/backend/server.py:470-485
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:203 — src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:203-218 | src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:465-481
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:346 — src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:346-361 | src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:425-440
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/agent/proxies/base/component.py:448 — src/solace_agent_mesh/agent/proxies/base/component.py:448-463 | src/solace_agent_mesh/agent/proxies/base/component.py:534-549
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/agent/proxies/base/component.py:631 — src/solace_agent_mesh/agent/proxies/base/component.py:631-646 | src/solace_agent_mesh/agent/proxies/base/component.py:673-688
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/agent/tools/audio_tools.py:689 — src/solace_agent_mesh/agent/tools/audio_tools.py:689-704 | src/solace_agent_mesh/agent/tools/audio_tools.py:890-905
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/agent/tools/image_tools.py:778 — src/solace_agent_mesh/agent/tools/image_tools.py:778-793 | templates/plugin_tools_template.py:74-89
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/gateway/base/component.py:1446 — src/solace_agent_mesh/gateway/base/component.py:1446-1461 | src/solace_agent_mesh/gateway/base/component.py:1504-1521
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:131 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:131-146 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:149-164
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/gateway/http_sse/repository/session_repository.py:34 — src/solace_agent_mesh/gateway/http_sse/repository/session_repository.py:34-49 | src/solace_agent_mesh/gateway/http_sse/repository/session_repository.py:66-81
  • Duplicated block (16 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:562 — src/solace_agent_mesh/gateway/http_sse/routers/projects.py:562-577 | src/solace_agent_mesh/gateway/http_sse/routers/projects.py:727-742
D35 · Change Coupling · Change coupling · ×10
  • Change coupling: component.py ↔ config.py src/solace_agent_mesh/agent/proxies/a2a/component.py — `src/solace_agent_mesh/agent/proxies/a2a/component.py` and `src/solace_agent_mesh/agent/proxies/a2a/config.py` change together 70% of the time (7 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
  • Change coupling: service.ts ↔ ModelEdit.tsx client/webui/frontend/src/lib/api/models/service.ts — `client/webui/frontend/src/lib/api/models/service.ts` and `client/webui/frontend/src/lib/components/models/ModelEdit.tsx` change together 60% of the time (6 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: ConfigContext.ts ↔ config.py client/webui/frontend/src/lib/contexts/ConfigContext.ts — `client/webui/frontend/src/lib/contexts/ConfigContext.ts` and `src/solace_agent_mesh/gateway/http_sse/routers/config.py` change together 56% of the time (9 of the 16 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: ChatPage.stories.tsx ↔ StoryProvider.tsx client/webui/frontend/src/stories/chat/ChatPage.stories.tsx — `client/webui/frontend/src/stories/chat/ChatPage.stories.tsx` and `client/webui/frontend/src/stories/mocks/StoryProvider.tsx` change together 55% of the time (6 of the 11 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: ChatProvider.tsx ↔ MockChatProvider.tsx client/webui/frontend/src/lib/providers/ChatProvider.tsx — `client/webui/frontend/src/lib/providers/ChatProvider.tsx` and `client/webui/frontend/src/stories/mocks/MockChatProvider.tsx` change together 50% of the time (11 of the 22 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: ProjectCards.tsx ↔ ProjectDetailView.tsx client/webui/frontend/src/lib/components/projects/ProjectCards.tsx — `client/webui/frontend/src/lib/components/projects/ProjectCards.tsx` and `client/webui/frontend/src/lib/components/projects/ProjectDetailView.tsx` change together 50% of the time (7 of the 14 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
  • Change coupling: env_step.py ↔ orchestrator_step.py cli/commands/init_cmd/env_step.py — `cli/commands/init_cmd/env_step.py` and `cli/commands/init_cmd/orchestrator_step.py` change together 50% of the time (6 of the 12 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
  • Change coupling: service.ts ↔ model_configurations_router.py client/webui/frontend/src/lib/api/models/service.ts — `client/webui/frontend/src/lib/api/models/service.ts` and `src/solace_agent_mesh/services/platform/api/routers/model_configurations_router.py` change together 50% of the time (5 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: ProjectsPage.tsx ↔ ProjectProvider.tsx client/webui/frontend/src/lib/components/projects/ProjectsPage.tsx — `client/webui/frontend/src/lib/components/projects/ProjectsPage.tsx` and `client/webui/frontend/src/lib/providers/ProjectProvider.tsx` change together 50% of the time (5 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: KnowledgeSection.tsx ↔ ProjectImportDialog.tsx client/webui/frontend/src/lib/components/projects/KnowledgeSection.tsx — `client/webui/frontend/src/lib/components/projects/KnowledgeSection.tsx` and `client/webui/frontend/src/lib/components/projects/ProjectImportDialog.tsx` change together 50% of the time (5 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
D38 · OSV Dependency Vulnerabilities · Medium CVE · ×10
  • Medium CVE: [GHSA redacted] client/webui/frontend/package-lock.json — dompurify 3.4.2: [GHSA redacted] — upgrade to 3.4.7. This is 1 of 8 advisories this scan raises against dompurify 3.4.2, and their fixed versions do not agree — anything below 3.4.12 still leaves at least one of them open, so 3.4.12 is the floor for this package, not this row's target alone. One upgrade of dompurify 3.4.2 clears all 9 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • Medium CVE: [GHSA redacted] config_portal/frontend/package-lock.json — estree-util-value-to-estree 1.3.0: [GHSA redacted] — estree-util-value-to-estree is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (— 3.3.3 is a MAJOR ahead of the resolved 1.3.0, so an `overrides` pin would force a breaking version under a dependent written against 1.3.0; upgrading the declaring package is the remedy, and where no patched release exists in your major line, record the exposure instead).
  • Medium CVE: [GHSA redacted] uv.lock — pydantic-settings 2.13.1: [GHSA redacted] — pydantic-settings is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or raise its floor in your own manifest and re-resolve (`uv lock --upgrade-package pydantic-settings`)).
  • Medium CVE: [GHSA redacted] uv.lock — python-liquid 2.2.0: [GHSA redacted] — upgrade to 2.2.1
  • Medium CVE: PYSEC-2026-3040 uv.lock — python-multipart 0.0.30: PYSEC-2026-3040 — upgrade to 0.0.31
  • Medium CVE: [GHSA redacted] client/webui/frontend/package-lock.json — qs 6.14.2: [GHSA redacted] — qs is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin qs to 6.15.2 with an `overrides` entry). (in 2 lockfiles)
  • Medium CVE: [GHSA redacted] config_portal/frontend/package-lock.json — react-router-dom 6.30.4: [GHSA redacted] — no fixed version has been published yet. Track the advisory, and remove or replace react-router-dom if the exposure is not acceptable until one lands.
  • Medium CVE: [GHSA redacted] uv.lock — setuptools 80.10.2: [GHSA redacted] — upgrade to 83.0.0
  • Medium CVE: [GHSA redacted] client/webui/frontend/package-lock.json — uuid 8.3.2: [GHSA redacted] — this repo already declares uuid ^13.0.0 directly, at or above the fixed 11.1.1; the vulnerable 8.3.2 is a second copy resolved for a dependency that requires an older range. Upgrade those dependents, or pin uuid with an `overrides` entry so only one copy resolves.
  • Medium CVE: [GHSA redacted] config_portal/frontend/package-lock.json — valibot 1.3.1: [GHSA redacted] — valibot is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin valibot to 1.4.2 with an `overrides` entry).
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×10
  • Duplicated block (11 lines × 2) client/sam-rest-client/src/sam_rest_client/client.py:181 — client/sam-rest-client/src/sam_rest_client/client.py:181-191 | client/sam-rest-client/src/sam_rest_client/client.py:208-218
  • Duplicated block (11 lines × 2) config_portal/backend/plugin_catalog/scraper.py:313 — config_portal/backend/plugin_catalog/scraper.py:313-323 | config_portal/backend/plugin_catalog/scraper.py:387-397
  • Duplicated block (11 lines × 2) src/solace_agent_mesh/agent/tools/deep_research_tools.py:2359 — src/solace_agent_mesh/agent/tools/deep_research_tools.py:2359-2369 | src/solace_agent_mesh/agent/tools/deep_research_tools.py:2381-2391
  • Duplicated block (11 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_project_users_table.py:77 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_project_users_table.py:77-87 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:209-223
  • Duplicated block (11 lines × 2) src/solace_agent_mesh/gateway/http_sse/components/task_logger_forwarder.py:54 — src/solace_agent_mesh/gateway/http_sse/components/task_logger_forwarder.py:54-64 | src/solace_agent_mesh/gateway/http_sse/components/visualization_forwarder_component.py:55-65
  • Duplicated block (11 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1132 — src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1132-1142 | src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1528-1538
  • Duplicated block (11 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:126 — src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:126-136 | src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:183-194
  • Duplicated block (11 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/share.py:781 — src/solace_agent_mesh/gateway/http_sse/routers/share.py:781-791 | src/solace_agent_mesh/gateway/http_sse/routers/share.py:822-832
  • Duplicated block (11 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:1214 — src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:1214-1224 | src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:1232-1242
  • Duplicated block (11 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/session_service.py:137 — src/solace_agent_mesh/gateway/http_sse/services/session_service.py:137-148 | src/solace_agent_mesh/gateway/http_sse/services/session_service.py:491-501
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×9
  • Duplicated block (7 lines × 2) src/solace_agent_mesh/agent/proxies/a2a/component.py:1190 — src/solace_agent_mesh/agent/proxies/a2a/component.py:1190-1196 | src/solace_agent_mesh/agent/proxies/a2a/component.py:1253-1265
  • Duplicated block (7 lines × 2) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1667 — src/solace_agent_mesh/agent/tools/deep_research_tools.py:1667-1673 | src/solace_agent_mesh/agent/tools/deep_research_tools.py:1683-1689
  • Duplicated block (7 lines × 2) src/solace_agent_mesh/agent/tools/time_tools.py:102 — src/solace_agent_mesh/agent/tools/time_tools.py:102-109 | src/solace_agent_mesh/agent/tools/web_tools.py:424-430
  • Duplicated block (7 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:244 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:244-251 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:379-385
  • Duplicated block (7 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:130 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:130-136 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_project_users_table.py:68-74
  • Duplicated block (7 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/share.py:473 — src/solace_agent_mesh/gateway/http_sse/routers/share.py:473-479 | src/solace_agent_mesh/gateway/http_sse/routers/share.py:518-524
  • Duplicated block (7 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:284 — src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:284-290 | src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:324-330
  • Duplicated block (7 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:346 — src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:346-352 | src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:613-622
  • Duplicated block (7 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:559 — src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:559-565 | src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:635-643
D15 · Churn × Complexity Hotspots · Hotspot · ×7
  • Hotspot: client/webui/frontend/src/lib/components/pages/RecentChatsPage.tsx client/webui/frontend/src/lib/components/pages/RecentChatsPage.tsx — client/webui/frontend/src/lib/components/pages/RecentChatsPage.tsx changed 4 times in last 90 days, max complexity 53. 1 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: client/webui/frontend/src/lib/components/pages/ChatPage.tsx client/webui/frontend/src/lib/components/pages/ChatPage.tsx — client/webui/frontend/src/lib/components/pages/ChatPage.tsx changed 3 times in last 90 days, max complexity 60.
  • Hotspot: src/solace_agent_mesh/agent/adk/models/lite_llm.py src/solace_agent_mesh/agent/adk/models/lite_llm.py — src/solace_agent_mesh/agent/adk/models/lite_llm.py changed 2 times in last 90 days, max complexity 58. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: src/solace_agent_mesh/agent/protocol/event_handlers.py src/solace_agent_mesh/agent/protocol/event_handlers.py — src/solace_agent_mesh/agent/protocol/event_handlers.py changed 2 times in last 90 days, max complexity 57. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: client/webui/frontend/src/lib/providers/ChatProvider.tsx client/webui/frontend/src/lib/providers/ChatProvider.tsx — client/webui/frontend/src/lib/providers/ChatProvider.tsx changed 2 times in last 90 days, max complexity 56.
  • Hotspot: client/webui/frontend/src/lib/components/chat/ChatInputArea.tsx client/webui/frontend/src/lib/components/chat/ChatInputArea.tsx — client/webui/frontend/src/lib/components/chat/ChatInputArea.tsx changed 2 times in last 90 days, max complexity 34. 1 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: src/solace_agent_mesh/agent/sac/structured_invocation/handler.py src/solace_agent_mesh/agent/sac/structured_invocation/handler.py — src/solace_agent_mesh/agent/sac/structured_invocation/handler.py changed 2 times in last 90 days, max complexity 20. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×7
  • Duplicated block (19 lines × 2) cli/commands/init_cmd/webui_gateway_step.py:58 — cli/commands/init_cmd/webui_gateway_step.py:58-76 | cli/commands/init_cmd/webui_gateway_step.py:127-145
  • Duplicated block (19 lines × 2) config_portal/backend/plugin_catalog/scraper.py:344 — config_portal/backend/plugin_catalog/scraper.py:344-362 | config_portal/backend/plugin_catalog/scraper.py:418-436
  • Duplicated block (19 lines × 2) src/solace_agent_mesh/agent/adk/models/dynamic_model_provider.py:263 — src/solace_agent_mesh/agent/adk/models/dynamic_model_provider.py:263-281 | src/solace_agent_mesh/gateway/http_sse/component.py:521-539
  • Duplicated block (19 lines × 2) src/solace_agent_mesh/agent/sac/component.py:2504 — src/solace_agent_mesh/agent/sac/component.py:2504-2523 | src/solace_agent_mesh/agent/sac/component.py:2719-2737
  • Duplicated block (19 lines × 2) src/solace_agent_mesh/gateway/base/component.py:1473 — src/solace_agent_mesh/gateway/base/component.py:1473-1491 | src/solace_agent_mesh/gateway/base/component.py:1536-1554
  • Duplicated block (19 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:337 — src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:337-356 | src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:377-395
  • Duplicated block (19 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/share.py:344 — src/solace_agent_mesh/gateway/http_sse/routers/share.py:344-362 | src/solace_agent_mesh/gateway/http_sse/routers/share.py:405-423
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×7
  • Duplicated block (17 lines × 2) cli/commands/add_cmd/web_add_agent_step.py:49 — cli/commands/add_cmd/web_add_agent_step.py:49-65 | cli/commands/add_cmd/web_add_gateway_step.py:58-75
  • Duplicated block (17 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:164 — src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:164-180 | src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:174-191
  • Duplicated block (17 lines × 2) src/solace_agent_mesh/common/services/employee_service.py:133 — src/solace_agent_mesh/common/services/employee_service.py:133-149 | src/solace_agent_mesh/common/services/identity_service.py:103-119
  • Duplicated block (17 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:42 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:42-58 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:91-107
  • Duplicated block (17 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:79 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:79-95 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:188-204
  • Duplicated block (17 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:67 — src/solace_agent_mesh/gateway/http_sse/routers/projects.py:67-83 | src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:153-169
  • Duplicated block (17 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:594 — src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:594-610 | src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:668-686
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×7
  • Duplicated block (8 lines × 2) client/sam-rest-client/src/sam_rest_client/client.py:214 — client/sam-rest-client/src/sam_rest_client/client.py:214-221 | client/sam-rest-client/src/sam_rest_client/client.py:236-243
  • Duplicated block (8 lines × 2) evaluation/report_data_processor.py:172 — evaluation/report_data_processor.py:172-182 | evaluation/report_data_processor.py:746-753
  • Duplicated block (8 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:125 — src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:125-132 | src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:135-142
  • Duplicated block (8 lines × 2) src/solace_agent_mesh/agent/adk/mcp_content_processor.py:573 — src/solace_agent_mesh/agent/adk/mcp_content_processor.py:573-580 | src/solace_agent_mesh/agent/adk/mcp_content_processor.py:584-591
  • Duplicated block (8 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:192 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:192-199 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:199-206
  • Duplicated block (8 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:81 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:81-88 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:152-159
  • Duplicated block (8 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py:708 — src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py:708-715 | src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py:954-962
D3 · God Classes · TooManyMethods · ×6
  • TooManyMethods: SamAgentComponent src/solace_agent_mesh/agent/sac/component.py:122 — TooManyMethods — 72 methods.
  • TooManyMethods: WebUIBackendComponent src/solace_agent_mesh/gateway/http_sse/component.py:127 — TooManyMethods — 47 methods.
  • TooManyMethods: BaseGatewayComponent src/solace_agent_mesh/gateway/base/component.py:89 — TooManyMethods — 43 methods.
  • TooManyMethods: A2AProxyComponent src/solace_agent_mesh/agent/proxies/a2a/component.py:69 — TooManyMethods — 33 methods.
  • TooManyMethods: TaskExecutionContext src/solace_agent_mesh/agent/sac/task_execution_context.py:13 — TooManyMethods — 32 methods.
  • TooManyMethods: GenericGatewayComponent src/solace_agent_mesh/gateway/generic/component.py:86 — TooManyMethods — 32 methods.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×6
  • Duplicated block (22 lines × 2) src/solace_agent_mesh/agent/tools/audio_tools.py:730 — src/solace_agent_mesh/agent/tools/audio_tools.py:730-751 | src/solace_agent_mesh/agent/tools/audio_tools.py:936-957
  • Duplicated block (22 lines × 2) src/solace_agent_mesh/core_a2a/service.py:96 — src/solace_agent_mesh/core_a2a/service.py:96-117 | src/solace_agent_mesh/core_a2a/service.py:188-210
  • Duplicated block (22 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:142 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:142-163 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:205-227
  • Duplicated block (22 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/feedback.py:57 — src/solace_agent_mesh/gateway/http_sse/routers/feedback.py:57-90 | src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:981-1002
  • Duplicated block (22 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:180 — src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:180-202 | src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:327-348
  • Duplicated block (22 lines × 2) src/solace_agent_mesh/workflow/component.py:643 — src/solace_agent_mesh/workflow/component.py:643-665 | src/solace_agent_mesh/workflow/component.py:791-812
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×6
  • Duplicated block (9 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:352 — src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:352-360 | src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:388-396
  • Duplicated block (9 lines × 2) src/solace_agent_mesh/agent/tools/web_tools.py:230 — src/solace_agent_mesh/agent/tools/web_tools.py:230-239 | src/solace_agent_mesh/agent/tools/web_tools.py:250-258
  • Duplicated block (9 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:49 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:49-57 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:158-166
  • Duplicated block (9 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:143 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:143-152 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:169-177
  • Duplicated block (9 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260123_add_share_links_tables.py:108 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260123_add_share_links_tables.py:108-116 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260320_add_project_user_pins_table.py:40-48
  • Duplicated block (9 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:251 — src/solace_agent_mesh/gateway/http_sse/services/project_service.py:251-259 | src/solace_agent_mesh/gateway/http_sse/services/project_service.py:295-303
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×5
  • Duplicated block (18 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:354 — src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:354-371 | src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:523-542
  • Duplicated block (18 lines × 2) src/solace_agent_mesh/agent/adk/intelligent_mcp_callbacks.py:438 — src/solace_agent_mesh/agent/adk/intelligent_mcp_callbacks.py:438-456 | src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:1680-1697
  • Duplicated block (18 lines × 2) src/solace_agent_mesh/gateway/base/component.py:1209 — src/solace_agent_mesh/gateway/base/component.py:1209-1226 | src/solace_agent_mesh/services/platform/component.py:609-626
  • Duplicated block (18 lines × 2) src/solace_agent_mesh/gateway/http_sse/repository/scheduled_task_repository.py:131 — src/solace_agent_mesh/gateway/http_sse/repository/scheduled_task_repository.py:131-148 | src/solace_agent_mesh/gateway/http_sse/repository/scheduled_task_repository.py:167-184
  • Duplicated block (18 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/indexing_task_service.py:154 — src/solace_agent_mesh/gateway/http_sse/services/indexing_task_service.py:154-172 | src/solace_agent_mesh/gateway/http_sse/services/indexing_task_service.py:227-244
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×5
  • Duplicated block (15 lines × 2) .github/helper_scripts/build_frontend.py:69 — .github/helper_scripts/build_frontend.py:69-83 | .github/helper_scripts/build_frontend.py:109-123
  • Duplicated block (15 lines × 2) src/solace_agent_mesh/agent/sac/component.py:2753 — src/solace_agent_mesh/agent/sac/component.py:2753-2767 | src/solace_agent_mesh/agent/sac/component.py:3078-3093
  • Duplicated block (15 lines × 2) src/solace_agent_mesh/gateway/http_sse/repository/session_repository.py:328 — src/solace_agent_mesh/gateway/http_sse/repository/session_repository.py:328-343 | src/solace_agent_mesh/gateway/http_sse/repository/session_repository.py:370-384
  • Duplicated block (15 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:303 — src/solace_agent_mesh/gateway/http_sse/routers/projects.py:303-317 | src/solace_agent_mesh/gateway/http_sse/routers/projects.py:917-931
  • Duplicated block (15 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:916 — src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:916-930 | src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:1048-1062
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×5
  • Duplicated block (10 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250910_d5b3f8f2e9a0_create_initial_database.py:41 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250910_d5b3f8f2e9a0_create_initial_database.py:41-50 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250910_d5b3f8f2e9a0_create_initial_database.py:74-83
  • Duplicated block (10 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:46 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:46-55 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:143-152
  • Duplicated block (10 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py:620 — src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py:620-629 | src/solace_agent_mesh/gateway/http_sse/routers/scheduled_tasks.py:650-665
  • Duplicated block (10 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:494 — src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:494-503 | src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:511-520
  • Duplicated block (10 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/scheduler/scheduler_service.py:736 — src/solace_agent_mesh/gateway/http_sse/services/scheduler/scheduler_service.py:736-745 | src/solace_agent_mesh/gateway/http_sse/services/scheduler/scheduler_service.py:779-788
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×5
  • Duplicated block (6 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:286 — src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:286-291 | src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:303-308
  • Duplicated block (6 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250910_d5b3f8f2e9a0_create_initial_database.py:81 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250910_d5b3f8f2e9a0_create_initial_database.py:81-86 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:232-237
  • Duplicated block (6 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:61 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:61-66 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py:158-163
  • Duplicated block (6 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:326 — src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:326-331 | src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:737-742
  • Duplicated block (6 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:737 — src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:737-742 | src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:644-649
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×4
  • Duplicated block (27 lines × 2) src/solace_agent_mesh/agent/tools/image_tools.py:287 — src/solace_agent_mesh/agent/tools/image_tools.py:287-313 | src/solace_agent_mesh/agent/tools/image_tools.py:420-456
  • Duplicated block (27 lines × 2) src/solace_agent_mesh/common/utils/embeds/modifiers.py:59 — src/solace_agent_mesh/common/utils/embeds/modifiers.py:59-85 | src/solace_agent_mesh/common/utils/embeds/modifiers.py:110-136
  • Duplicated block (27 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:743 — src/solace_agent_mesh/gateway/http_sse/services/project_service.py:743-780 | src/solace_agent_mesh/gateway/http_sse/services/project_service.py:832-858
  • Duplicated block (27 lines × 2) src/solace_agent_mesh/workflow/agent_caller.py:116 — src/solace_agent_mesh/workflow/agent_caller.py:116-142 | src/solace_agent_mesh/workflow/agent_caller.py:209-235
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×4
  • Duplicated block (21 lines × 2) cli/commands/init_cmd/orchestrator_step.py:173 — cli/commands/init_cmd/orchestrator_step.py:173-193 | cli/commands/init_cmd/orchestrator_step.py:228-248
  • Duplicated block (21 lines × 2) src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:216 — src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:216-236 | src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:299-319
  • Duplicated block (21 lines × 2) src/solace_agent_mesh/agent/tools/image_tools.py:549 — src/solace_agent_mesh/agent/tools/image_tools.py:549-569 | src/solace_agent_mesh/agent/tools/image_tools.py:799-820
  • Duplicated block (21 lines × 2) src/solace_agent_mesh/gateway/http_sse/repository/share_repository.py:323 — src/solace_agent_mesh/gateway/http_sse/repository/share_repository.py:323-348 | src/solace_agent_mesh/gateway/http_sse/repository/share_repository.py:529-549
D4 · Code Duplication · Duplicated block (30 lines × 2) · ×3
  • Duplicated block (30 lines × 2) src/solace_agent_mesh/agent/tools/audio_tools.py:616 — src/solace_agent_mesh/agent/tools/audio_tools.py:616-645 | src/solace_agent_mesh/agent/tools/audio_tools.py:766-801
  • Duplicated block (30 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:112 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:112-141 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:175-204
  • Duplicated block (30 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:107 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:107-136 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:216-245
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×3
  • Duplicated block (28 lines × 2) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:1375 — src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:1375-1410 | src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:1951-1978
  • Duplicated block (28 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1404 — src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1404-1431 | src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1603-1630
  • Duplicated block (28 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:237 — src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:237-264 | src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:333-360
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×3
  • Duplicated block (25 lines × 2) src/solace_agent_mesh/agent/sac/component.py:2648 — src/solace_agent_mesh/agent/sac/component.py:2648-2672 | src/solace_agent_mesh/agent/sac/component.py:2776-2800
  • Duplicated block (25 lines × 2) src/solace_agent_mesh/agent/sac/component.py:3965 — src/solace_agent_mesh/agent/sac/component.py:3965-3989 | src/solace_agent_mesh/gateway/http_sse/component.py:2278-2302
  • Duplicated block (25 lines × 2) src/solace_agent_mesh/gateway/http_sse/components/task_logger_forwarder.py:81 — src/solace_agent_mesh/gateway/http_sse/components/task_logger_forwarder.py:81-105 | src/solace_agent_mesh/gateway/http_sse/components/visualization_forwarder_component.py:92-116
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×3
  • Duplicated block (23 lines × 2) src/solace_agent_mesh/agent/tools/image_tools.py:253 — src/solace_agent_mesh/agent/tools/image_tools.py:253-275 | src/solace_agent_mesh/agent/tools/image_tools.py:388-410
  • Duplicated block (23 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_project_users_table.py:42 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_project_users_table.py:42-64 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_project_users_table.py:79-101
  • Duplicated block (23 lines × 2) src/solace_agent_mesh/gateway/http_sse/repository/sse_event_buffer_repository.py:113 — src/solace_agent_mesh/gateway/http_sse/repository/sse_event_buffer_repository.py:113-135 | src/solace_agent_mesh/gateway/http_sse/repository/sse_event_buffer_repository.py:223-245
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×3
  • Duplicated block (20 lines × 2) cli/commands/plugin_cmd/create_cmd.py:71 — cli/commands/plugin_cmd/create_cmd.py:71-93 | cli/commands/plugin_cmd/create_cmd.py:126-145
  • Duplicated block (20 lines × 2) src/solace_agent_mesh/gateway/http_sse/sse_manager.py:542 — src/solace_agent_mesh/gateway/http_sse/sse_manager.py:542-561 | src/solace_agent_mesh/gateway/http_sse/sse_manager.py:645-664
  • Duplicated block (20 lines × 2) src/solace_agent_mesh/workflow/dag_executor.py:482 — src/solace_agent_mesh/workflow/dag_executor.py:482-501 | src/solace_agent_mesh/workflow/dag_executor.py:541-562
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×3
  • Duplicated block (9 lines × 3) src/solace_agent_mesh/agent/tools/audio_tools.py:1321 — src/solace_agent_mesh/agent/tools/audio_tools.py:1321-1329 | src/solace_agent_mesh/agent/tools/image_tools.py:342-350 | src/solace_agent_mesh/agent/tools/image_tools.py:486-494
  • Duplicated block (9 lines × 3) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:43 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:43-51 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:72-80 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:122-130
  • Duplicated block (9 lines × 3) src/solace_agent_mesh/gateway/http_sse/services/prompt_builder_assistant.py:278 — src/solace_agent_mesh/gateway/http_sse/services/prompt_builder_assistant.py:278-286 | src/solace_agent_mesh/gateway/http_sse/services/task_builder_assistant.py:524-534 | src/solace_agent_mesh/gateway/http_sse/services/task_builder_assistant.py:741-749
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×3
  • Duplicated block (5 lines × 3) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:117 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py:117-121 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260123_add_share_links_tables.py:111-116 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260320_add_project_user_pins_table.py:43-48
  • Duplicated block (5 lines × 3) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:204 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py:204-208 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260319_create_scheduled_tasks_tables.py:72-76 | src/solace_agent_mesh/services/platform/alembic/versions/20260305_add_outbox_events.py:40-44
  • Duplicated block (5 lines × 3) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260123_add_share_links_tables.py:35 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260123_add_share_links_tables.py:35-39 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260319_create_scheduled_tasks_tables.py:127-131 | src/solace_agent_mesh/services/platform/alembic/versions/20260316_create_model_configurations_table.py:29-33
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×3
  • Duplicated block (5 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250910_d5b3f8f2e9a0_create_initial_database.py:70 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250910_d5b3f8f2e9a0_create_initial_database.py:70-74 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260319_create_scheduled_tasks_tables.py:69-73
  • Duplicated block (5 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260207_add_sse_event_buffer.py:28 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260207_add_sse_event_buffer.py:28-32 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260222_add_document_conversion_cache.py:35-40
  • Duplicated block (5 lines × 2) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260319_create_scheduled_tasks_tables.py:88 — src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260319_create_scheduled_tasks_tables.py:88-92 | src/solace_agent_mesh/gateway/http_sse/alembic/versions/20260319_create_scheduled_tasks_tables.py:130-134
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×2
  • Duplicated block (24 lines × 2) cli/commands/tools_cmd.py:36 — cli/commands/tools_cmd.py:36-59 | cli/commands/tools_cmd.py:94-117
  • Duplicated block (24 lines × 2) src/solace_agent_mesh/agent/sac/component.py:4007 — src/solace_agent_mesh/agent/sac/component.py:4007-4030 | src/solace_agent_mesh/gateway/http_sse/component.py:2316-2339
D4 · Code Duplication · Duplicated block (15 lines × 4) · ×2
  • Duplicated block (15 lines × 4) src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:230 — src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:230-244 | src/solace_agent_mesh/agent/adk/artifacts/azure_artifact_service.py:526-540 | src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:250-264 | src/solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py:707-722
  • Duplicated block (15 lines × 4) src/solace_agent_mesh/agent/tools/deep_research_tools.py:428 — src/solace_agent_mesh/agent/tools/deep_research_tools.py:428-444 | src/solace_agent_mesh/agent/tools/deep_research_tools.py:494-520 | src/solace_agent_mesh/agent/tools/deep_research_tools.py:570-601 | src/solace_agent_mesh/agent/tools/deep_research_tools.py:1040-1054
D1 · Cyclomatic Complexity · TaskLoggerService._save_chat_messages_for_background_task (cyclomatic 85) · ×1
  • TaskLoggerService._save_chat_messages_for_background_task (cyclomatic 85) src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:475 — TaskLoggerService._save_chat_messages_for_background_task has cyclomatic complexity 85 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · callbacks.process_artifact_blocks_callback (cyclomatic 78) · ×1
  • callbacks.process_artifact_blocks_callback (cyclomatic 78) src/solace_agent_mesh/agent/adk/callbacks.py:320 — callbacks.process_artifact_blocks_callback has cyclomatic complexity 78 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · builtin_artifact_tools.extract_content_from_artifact (cyclomatic 72) · ×1
  • builtin_artifact_tools.extract_content_from_artifact (cyclomatic 72) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:695 — builtin_artifact_tools.extract_content_from_artifact has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · deep_research_tools.deep_research (cyclomatic 72) · ×1
  • deep_research_tools.deep_research (cyclomatic 72) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1945 — deep_research_tools.deep_research has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · tasks._submit_task (cyclomatic 71) · ×1
  • tasks._submit_task (cyclomatic 71) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:536 — tasks._submit_task has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · A2AProxyComponent._process_downstream_response (cyclomatic 62) · ×1
  • A2AProxyComponent._process_downstream_response (cyclomatic 62) src/solace_agent_mesh/agent/proxies/a2a/component.py:1905 — A2AProxyComponent._process_downstream_response has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ResultHandler._handle_success (cyclomatic 62) · ×1
  • ResultHandler._handle_success (cyclomatic 62) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:259 — ResultHandler._handle_success has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_declarative_runner._assert_event_details (cyclomatic 61) · ×1
  • test_declarative_runner._assert_event_details (cyclomatic 61) tests/integration/scenarios_declarative/test_declarative_runner.py:2594 — test_declarative_runner._assert_event_details has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseGatewayComponent._resolve_embeds_and_handle_signals (cyclomatic 59) · ×1
  • BaseGatewayComponent._resolve_embeds_and_handle_signals (cyclomatic 59) src/solace_agent_mesh/gateway/base/component.py:1331 — BaseGatewayComponent._resolve_embeds_and_handle_signals has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LiteLlm.generate_content_async (cyclomatic 58) · ×1
  • LiteLlm.generate_content_async (cyclomatic 58) src/solace_agent_mesh/agent/adk/models/lite_llm.py:1308 — LiteLlm.generate_content_async has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · event_handlers.handle_a2a_response (cyclomatic 57) · ×1
  • event_handlers.handle_a2a_response (cyclomatic 57) src/solace_agent_mesh/agent/protocol/event_handlers.py:1894 — event_handlers.handle_a2a_response has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_declarative_runner._assert_llm_interactions (cyclomatic 54) · ×1
  • test_declarative_runner._assert_llm_interactions (cyclomatic 54) tests/integration/scenarios_declarative/test_declarative_runner.py:780 — test_declarative_runner._assert_llm_interactions has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_declarative_runner.test_declarative_scenario (cyclomatic 52) · ×1
  • test_declarative_runner.test_declarative_scenario (cyclomatic 52) tests/integration/scenarios_declarative/test_declarative_runner.py:1795 — test_declarative_runner.test_declarative_scenario has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · web_tools.web_request (cyclomatic 48) · ×1
  • web_tools.web_request (cyclomatic 48) src/solace_agent_mesh/agent/tools/web_tools.py:68 — web_tools.web_request has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · tasks.get_task_title_data (cyclomatic 48) · ×1
  • tasks.get_task_title_data (cyclomatic 48) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:1486 — tasks.get_task_title_data has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · callbacks.inject_dynamic_instructions_callback (cyclomatic 47) · ×1
  • callbacks.inject_dynamic_instructions_callback (cyclomatic 47) src/solace_agent_mesh/agent/adk/callbacks.py:1761 — callbacks.inject_dynamic_instructions_callback has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · builtin_artifact_tools.artifact_search_and_replace_regex (cyclomatic 47) · ×1
  • builtin_artifact_tools.artifact_search_and_replace_regex (cyclomatic 47) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:2178 — builtin_artifact_tools.artifact_search_and_replace_regex has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · sessions.get_session_context_usage (cyclomatic 46) · ×1
  • sessions.get_session_context_usage (cyclomatic 46) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:1334 — sessions.get_session_context_usage has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · artifacts.list_all_artifacts (cyclomatic 45) · ×1
  • artifacts.list_all_artifacts (cyclomatic 45) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:764 — artifacts.list_all_artifacts has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · converter.convert_data (cyclomatic 43) · ×1
  • converter.convert_data (cyclomatic 43) src/solace_agent_mesh/common/utils/embeds/converter.py:91 — converter.convert_data has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · config.get_app_config (cyclomatic 42) · ×1
  • config.get_app_config (cyclomatic 42) src/solace_agent_mesh/gateway/http_sse/routers/config.py:323 — config.get_app_config has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TaskBuilderAssistant._llm_response (cyclomatic 42) · ×1
  • TaskBuilderAssistant._llm_response (cyclomatic 42) src/solace_agent_mesh/gateway/http_sse/services/task_builder_assistant.py:381 — TaskBuilderAssistant._llm_response has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · services.initialize_artifact_service (cyclomatic 41) · ×1
  • services.initialize_artifact_service (cyclomatic 41) src/solace_agent_mesh/agent/adk/services.py:780 — services.initialize_artifact_service has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SamAgentComponent.__init__ (cyclomatic 40) · ×1
  • SamAgentComponent.__init__ (cyclomatic 40) src/solace_agent_mesh/agent/sac/component.py:133 — SamAgentComponent.__init__ has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · artifact_helpers.load_artifact_content_or_metadata (cyclomatic 39) · ×1
  • artifact_helpers.load_artifact_content_or_metadata (cyclomatic 39) src/solace_agent_mesh/agent/utils/artifact_helpers.py:1417 — artifact_helpers.load_artifact_content_or_metadata has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · tasks.get_task_events (cyclomatic 39) · ×1
  • tasks.get_task_events (cyclomatic 39) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:1050 — tasks.get_task_events has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · visualization.update_visualization_stream_config (cyclomatic 39) · ×1
  • visualization.update_visualization_stream_config (cyclomatic 39) src/solace_agent_mesh/gateway/http_sse/routers/visualization.py:796 — visualization.update_visualization_stream_config has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · visualization_mapper.infer_visualization_event_details (cyclomatic 39) · ×1
  • visualization_mapper.infer_visualization_event_details (cyclomatic 39) src/solace_agent_mesh/gateway/http_sse/visualization_mapper.py:31 — visualization_mapper.infer_visualization_event_details has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TaskBuilderAssistant.validate_conflict (cyclomatic 38) · ×1
  • TaskBuilderAssistant.validate_conflict (cyclomatic 38) src/solace_agent_mesh/gateway/http_sse/services/task_builder_assistant.py:669 — TaskBuilderAssistant.validate_conflict has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · orchestrator_step.create_orchestrator_config (cyclomatic 37) · ×1
  • orchestrator_step.create_orchestrator_config (cyclomatic 37) cli/commands/init_cmd/orchestrator_step.py:43 — orchestrator_step.create_orchestrator_config has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · install_cmd.install_plugin (cyclomatic 37) · ×1
  • install_cmd.install_plugin (cyclomatic 37) cli/commands/plugin_cmd/install_cmd.py:77 — install_cmd.install_plugin has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WebUIBackendComponent.cleanup (cyclomatic 37) · ×1
  • WebUIBackendComponent.cleanup (cyclomatic 37) src/solace_agent_mesh/gateway/http_sse/component.py:1951 — WebUIBackendComponent.cleanup has cyclomatic complexity 37 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · ProjectService.import_project_from_zip (cyclomatic 37) · ×1
  • ProjectService.import_project_from_zip (cyclomatic 37) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:1162 — ProjectService.import_project_from_zip has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · resolver._evaluate_artifact_content_embed_with_chain (cyclomatic 36) · ×1
  • resolver._evaluate_artifact_content_embed_with_chain (cyclomatic 36) src/solace_agent_mesh/common/utils/embeds/resolver.py:79 — resolver._evaluate_artifact_content_embed_with_chain has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseGatewayComponent._handle_resolved_signals (cyclomatic 36) · ×1
  • BaseGatewayComponent._handle_resolved_signals (cyclomatic 36) src/solace_agent_mesh/gateway/base/component.py:608 — BaseGatewayComponent._handle_resolved_signals has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseGatewayComponent._process_parsed_a2a_event (cyclomatic 36) · ×1
  • BaseGatewayComponent._process_parsed_a2a_event (cyclomatic 36) src/solace_agent_mesh/gateway/base/component.py:1740 — BaseGatewayComponent._process_parsed_a2a_event has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · visualization.subscribe_to_visualization_stream (cyclomatic 36) · ×1
  • visualization.subscribe_to_visualization_stream (cyclomatic 36) src/solace_agent_mesh/gateway/http_sse/routers/visualization.py:218 — visualization.subscribe_to_visualization_stream has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SchedulerService._execute_scheduled_task_inner (cyclomatic 36) · ×1
  • SchedulerService._execute_scheduled_task_inner (cyclomatic 36) src/solace_agent_mesh/gateway/http_sse/services/scheduler/scheduler_service.py:557 — SchedulerService._execute_scheduled_task_inner has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ResultHandler._save_chat_task (cyclomatic 35) · ×1
  • ResultHandler._save_chat_task (cyclomatic 35) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:510 — ResultHandler._save_chat_task has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · setup._load_mcp_tool (cyclomatic 34) · ×1
  • setup._load_mcp_tool (cyclomatic 34) src/solace_agent_mesh/agent/adk/setup.py:446 — setup._load_mcp_tool has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · sessions.save_task (cyclomatic 33) · ×1
  • sessions.save_task (cyclomatic 33) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:278 — sessions.save_task has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · share.get_shared_artifact_content (cyclomatic 33) · ×1
  • share.get_shared_artifact_content (cyclomatic 33) src/solace_agent_mesh/gateway/http_sse/routers/share.py:536 — share.get_shared_artifact_content has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TaskLoggerService.log_event (cyclomatic 33) · ×1
  • TaskLoggerService.log_event (cyclomatic 33) src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:40 — TaskLoggerService.log_event has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · event_handlers._handle_send_message_request (cyclomatic 32) · ×1
  • event_handlers._handle_send_message_request (cyclomatic 32) src/solace_agent_mesh/agent/protocol/event_handlers.py:1215 — event_handlers._handle_send_message_request has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · runner.create_compaction_event (cyclomatic 31) · ×1
  • runner.create_compaction_event (cyclomatic 31) src/solace_agent_mesh/agent/adk/runner.py:334 — runner.create_compaction_event has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · modifiers._apply_template (cyclomatic 31) · ×1
  • modifiers._apply_template (cyclomatic 31) src/solace_agent_mesh/common/utils/embeds/modifiers.py:418 — modifiers._apply_template has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WebUIBackendComponent._visualization_message_processor_loop (cyclomatic 31) · ×1
  • WebUIBackendComponent._visualization_message_processor_loop (cyclomatic 31) src/solace_agent_mesh/gateway/http_sse/component.py:1031 — WebUIBackendComponent._visualization_message_processor_loop has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · callbacks.manage_large_mcp_tool_responses_callback (cyclomatic 30) · ×1
  • callbacks.manage_large_mcp_tool_responses_callback (cyclomatic 30) src/solace_agent_mesh/agent/adk/callbacks.py:1055 — callbacks.manage_large_mcp_tool_responses_callback has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · translation._prepare_a2a_filepart_for_adk (cyclomatic 30) · ×1
  • translation._prepare_a2a_filepart_for_adk (cyclomatic 30) src/solace_agent_mesh/common/a2a/translation.py:109 — translation._prepare_a2a_filepart_for_adk has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · artifacts.upload_artifact_with_session (cyclomatic 30) · ×1
  • artifacts.upload_artifact_with_session (cyclomatic 30) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:256 — artifacts.upload_artifact_with_session has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PromptBuilderAssistant._llm_response (cyclomatic 30) · ×1
  • PromptBuilderAssistant._llm_response (cyclomatic 30) src/solace_agent_mesh/gateway/http_sse/services/prompt_builder_assistant.py:191 — PromptBuilderAssistant._llm_response has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShareService.get_shared_session_view (cyclomatic 30) · ×1
  • ShareService.get_shared_session_view (cyclomatic 30) src/solace_agent_mesh/gateway/http_sse/services/share_service.py:321 — ShareService.get_shared_session_view has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · conftest.clear_generic_gateway_state_between_tests (cyclomatic 30) · ×1
  • conftest.clear_generic_gateway_state_between_tests (cyclomatic 30) tests/integration/gateway/generic/conftest.py:132 — conftest.clear_generic_gateway_state_between_tests has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_declarative_runner._setup_scenario_environment (cyclomatic 30) · ×1
  • test_declarative_runner._setup_scenario_environment (cyclomatic 30) tests/integration/scenarios_declarative/test_declarative_runner.py:85 — test_declarative_runner._setup_scenario_environment has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · common.execute_task (cyclomatic 29) · ×1
  • common.execute_task (cyclomatic 29) cli/commands/task_cmd/common.py:112 — common.execute_task has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SamAgentComponent.process_and_publish_adk_event (cyclomatic 29) · ×1
  • SamAgentComponent.process_and_publish_adk_event (cyclomatic 29) src/solace_agent_mesh/agent/sac/component.py:2048 — SamAgentComponent.process_and_publish_adk_event has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · A2AProxyComponent._get_or_create_a2a_client (cyclomatic 28) · ×1
  • A2AProxyComponent._get_or_create_a2a_client (cyclomatic 28) src/solace_agent_mesh/agent/proxies/a2a/component.py:1503 — A2AProxyComponent._get_or_create_a2a_client has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · tasks._inject_project_context (cyclomatic 28) · ×1
  • tasks._inject_project_context (cyclomatic 28) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:343 — tasks._inject_project_context has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · gateway_cmd.create_gateway_files (cyclomatic 27) · ×1
  • gateway_cmd.create_gateway_files (cyclomatic 27) cli/commands/add_cmd/gateway_cmd.py:15 — gateway_cmd.create_gateway_files has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AudioService.get_speech_config (cyclomatic 27) · ×1
  • AudioService.get_speech_config (cyclomatic 27) src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:1202 — AudioService.get_speech_config has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ModelConfigService.test_connection (cyclomatic 27) · ×1
  • ModelConfigService.test_connection (cyclomatic 27) src/solace_agent_mesh/services/platform/services/model_config_service.py:590 — ModelConfigService.test_connection has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · agent_cmd._write_agent_yaml_from_data (cyclomatic 26) · ×1
  • agent_cmd._write_agent_yaml_from_data (cyclomatic 26) cli/commands/add_cmd/agent_cmd.py:40 — agent_cmd._write_agent_yaml_from_data has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · runner.run_adk_async_task (cyclomatic 26) · ×1
  • runner.run_adk_async_task (cyclomatic 26) src/solace_agent_mesh/agent/adk/runner.py:1725 — runner.run_adk_async_task has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · A2AProxyComponent._extract_security_scheme_name (cyclomatic 26) · ×1
  • A2AProxyComponent._extract_security_scheme_name (cyclomatic 26) src/solace_agent_mesh/agent/proxies/a2a/component.py:193 — A2AProxyComponent._extract_security_scheme_name has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SamAgentComponent._inject_peer_tools_callback (cyclomatic 26) · ×1
  • SamAgentComponent._inject_peer_tools_callback (cyclomatic 26) src/solace_agent_mesh/agent/sac/component.py:1000 — SamAgentComponent._inject_peer_tools_callback has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · converter.serialize_data (cyclomatic 26) · ×1
  • converter.serialize_data (cyclomatic 26) src/solace_agent_mesh/common/utils/embeds/converter.py:311 — converter.serialize_data has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ModelListService._fetch_models_from_provider (cyclomatic 26) · ×1
  • ModelListService._fetch_models_from_provider (cyclomatic 26) src/solace_agent_mesh/services/platform/services/model_list_service.py:201 — ModelListService._fetch_models_from_provider has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · callbacks.audit_log_openapi_tool_execution_result (cyclomatic 25) · ×1
  • callbacks.audit_log_openapi_tool_execution_result (cyclomatic 25) src/solace_agent_mesh/agent/adk/callbacks.py:3258 — callbacks.audit_log_openapi_tool_execution_result has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · runner._repair_dangling_tool_calls_in_session (cyclomatic 25) · ×1
  • runner._repair_dangling_tool_calls_in_session (cyclomatic 25) src/solace_agent_mesh/agent/adk/runner.py:1035 — runner._repair_dangling_tool_calls_in_session has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · artifact_helpers.save_artifact_with_metadata (cyclomatic 25) · ×1
  • artifact_helpers.save_artifact_with_metadata (cyclomatic 25) src/solace_agent_mesh/agent/utils/artifact_helpers.py:371 — artifact_helpers.save_artifact_with_metadata has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · projects.add_project_artifacts (cyclomatic 25) · ×1
  • projects.add_project_artifacts (cyclomatic 25) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:371 — projects.add_project_artifacts has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WorkflowExecutorComponent._get_workflow_config_json (cyclomatic 25) · ×1
  • WorkflowExecutorComponent._get_workflow_config_json (cyclomatic 25) src/solace_agent_mesh/workflow/component.py:237 — WorkflowExecutorComponent._get_workflow_config_json has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TemplateDataService.generate_breakdown_content (cyclomatic 24) · ×1
  • TemplateDataService.generate_breakdown_content (cyclomatic 24) evaluation/report_data_processor.py:488 — TemplateDataService.generate_breakdown_content has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · callbacks.sanitize_tool_names_callback (cyclomatic 24) · ×1
  • callbacks.sanitize_tool_names_callback (cyclomatic 24) src/solace_agent_mesh/agent/adk/callbacks.py:2911 — callbacks.sanitize_tool_names_callback has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · builtin_artifact_tools.apply_embed_and_create_artifact (cyclomatic 24) · ×1
  • builtin_artifact_tools.apply_embed_and_create_artifact (cyclomatic 24) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:515 — builtin_artifact_tools.apply_embed_and_create_artifact has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · image_tools.generate_image_with_gemini (cyclomatic 24) · ×1
  • image_tools.generate_image_with_gemini (cyclomatic 24) src/solace_agent_mesh/agent/tools/image_tools.py:719 — image_tools.generate_image_with_gemini has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · prompts.import_prompt (cyclomatic 24) · ×1
  • prompts.import_prompt (cyclomatic 24) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:1184 — prompts.import_prompt has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_declarative_runner._assert_artifact_state (cyclomatic 24) · ×1
  • test_declarative_runner._assert_artifact_state (cyclomatic 24) tests/integration/scenarios_declarative/test_declarative_runner.py:1355 — test_declarative_runner._assert_artifact_state has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · callbacks.solace_llm_response_callback (cyclomatic 23) · ×1
  • callbacks.solace_llm_response_callback (cyclomatic 23) src/solace_agent_mesh/agent/adk/callbacks.py:2419 — callbacks.solace_llm_response_callback has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SamAgentComponent._filter_tools_by_capability_callback (cyclomatic 23) · ×1
  • SamAgentComponent._filter_tools_by_capability_callback (cyclomatic 23) src/solace_agent_mesh/agent/sac/component.py:1358 — SamAgentComponent._filter_tools_by_capability_callback has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · deep_research_tools._select_sources_to_fetch (cyclomatic 23) · ×1
  • deep_research_tools._select_sources_to_fetch (cyclomatic 23) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1446 — deep_research_tools._select_sources_to_fetch has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · image_tools.edit_image_with_gemini (cyclomatic 23) · ×1
  • image_tools.edit_image_with_gemini (cyclomatic 23) src/solace_agent_mesh/agent/tools/image_tools.py:507 — image_tools.edit_image_with_gemini has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PeerAgentTool._build_enhanced_description (cyclomatic 23) · ×1
  • PeerAgentTool._build_enhanced_description (cyclomatic 23) src/solace_agent_mesh/agent/tools/peer_agent_tool.py:78 — PeerAgentTool._build_enhanced_description has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WebUIBackendComponent._extract_involved_agents_for_viz (cyclomatic 23) · ×1
  • WebUIBackendComponent._extract_involved_agents_for_viz (cyclomatic 23) src/solace_agent_mesh/gateway/http_sse/component.py:2169 — WebUIBackendComponent._extract_involved_agents_for_viz has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ModelConfigService.update (cyclomatic 23) · ×1
  • ModelConfigService.update (cyclomatic 23) src/solace_agent_mesh/services/platform/services/model_config_service.py:398 — ModelConfigService.update has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · cli.main_async (cyclomatic 22) · ×1
  • cli.main_async (cyclomatic 22) client/sam-rest-client/src/sam_rest_client/cli.py:35 — cli.main_async has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · event_handlers.handle_a2a_request (cyclomatic 22) · ×1
  • event_handlers.handle_a2a_request (cyclomatic 22) src/solace_agent_mesh/agent/protocol/event_handlers.py:1571 — event_handlers.handle_a2a_request has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · artifact_types.get_artifact_info (cyclomatic 22) · ×1
  • artifact_types.get_artifact_info (cyclomatic 22) src/solace_agent_mesh/agent/tools/artifact_types.py:205 — artifact_types.get_artifact_info has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · audio_tools.concatenate_audio (cyclomatic 22) · ×1
  • audio_tools.concatenate_audio (cyclomatic 22) src/solace_agent_mesh/agent/tools/audio_tools.py:980 — audio_tools.concatenate_audio has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · audio_tools.transcribe_audio (cyclomatic 22) · ×1
  • audio_tools.transcribe_audio (cyclomatic 22) src/solace_agent_mesh/agent/tools/audio_tools.py:1146 — audio_tools.transcribe_audio has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · evaluators._evaluate_artifact_content_embed (cyclomatic 22) · ×1
  • evaluators._evaluate_artifact_content_embed (cyclomatic 22) src/solace_agent_mesh/common/utils/embeds/evaluators.py:281 — evaluators._evaluate_artifact_content_embed has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · liquid_renderer._prepare_template_context (cyclomatic 22) · ×1
  • liquid_renderer._prepare_template_context (cyclomatic 22) src/solace_agent_mesh/common/utils/templates/liquid_renderer.py:69 — liquid_renderer._prepare_template_context has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AudioService.generate_speech_gemini (cyclomatic 22) · ×1
  • AudioService.generate_speech_gemini (cyclomatic 22) src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:632 — AudioService.generate_speech_gemini has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · lite_llm._get_completion_inputs (cyclomatic 21) · ×1
  • lite_llm._get_completion_inputs (cyclomatic 21) src/solace_agent_mesh/agent/adk/models/lite_llm.py:805 — lite_llm._get_completion_inputs has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · services._filter_session_by_latest_compaction (cyclomatic 21) · ×1
  • services._filter_session_by_latest_compaction (cyclomatic 21) src/solace_agent_mesh/agent/adk/services.py:221 — services._filter_session_by_latest_compaction has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · event_handlers.process_event (cyclomatic 21) · ×1
  • event_handlers.process_event (cyclomatic 21) src/solace_agent_mesh/agent/protocol/event_handlers.py:156 — event_handlers.process_event has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · A2AProxyComponent._construct_synthetic_agent_card (cyclomatic 21) · ×1
  • A2AProxyComponent._construct_synthetic_agent_card (cyclomatic 21) src/solace_agent_mesh/agent/proxies/a2a/component.py:398 — A2AProxyComponent._construct_synthetic_agent_card has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SamAgentComponent.finalize_task_success (cyclomatic 21) · ×1
  • SamAgentComponent.finalize_task_success (cyclomatic 21) src/solace_agent_mesh/agent/sac/component.py:2503 — SamAgentComponent.finalize_task_success has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · audio_tools._get_voice_for_speaker (cyclomatic 21) · ×1
  • audio_tools._get_voice_for_speaker (cyclomatic 21) src/solace_agent_mesh/agent/tools/audio_tools.py:221 — audio_tools._get_voice_for_speaker has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · audio_tools.multi_speaker_text_to_speech (cyclomatic 21) · ×1
  • audio_tools.multi_speaker_text_to_speech (cyclomatic 21) src/solace_agent_mesh/agent/tools/audio_tools.py:758 — audio_tools.multi_speaker_text_to_speech has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · translation.format_adk_event_as_a2a (cyclomatic 21) · ×1
  • translation.format_adk_event_as_a2a (cyclomatic 21) src/solace_agent_mesh/common/a2a/translation.py:522 — translation.format_adk_event_as_a2a has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · evaluators._evaluate_artifact_meta_embed (cyclomatic 21) · ×1
  • evaluators._evaluate_artifact_meta_embed (cyclomatic 21) src/solace_agent_mesh/common/utils/embeds/evaluators.py:151 — evaluators._evaluate_artifact_meta_embed has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseGatewayComponent._message_processor_loop (cyclomatic 21) · ×1
  • BaseGatewayComponent._message_processor_loop (cyclomatic 21) src/solace_agent_mesh/gateway/base/component.py:2234 — BaseGatewayComponent._message_processor_loop has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · artifacts.get_scheduled_task_artifact (cyclomatic 21) · ×1
  • artifacts.get_scheduled_task_artifact (cyclomatic 21) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1718 — artifacts.get_scheduled_task_artifact has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProjectService.add_artifacts_to_project (cyclomatic 21) · ×1
  • ProjectService.add_artifacts_to_project (cyclomatic 21) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:568 — ProjectService.add_artifacts_to_project has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SchedulerService._submit_task_to_agent_mesh (cyclomatic 21) · ×1
  • SchedulerService._submit_task_to_agent_mesh (cyclomatic 21) src/solace_agent_mesh/gateway/http_sse/services/scheduler/scheduler_service.py:871 — SchedulerService._submit_task_to_agent_mesh has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · artifact_copy_utils.copy_project_artifacts_to_session (cyclomatic 21) · ×1
  • artifact_copy_utils.copy_project_artifacts_to_session (cyclomatic 21) src/solace_agent_mesh/gateway/http_sse/utils/artifact_copy_utils.py:84 — artifact_copy_utils.copy_project_artifacts_to_session has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · model_configuration_seeder._infer_provider (cyclomatic 21) · ×1
  • model_configuration_seeder._infer_provider (cyclomatic 21) src/solace_agent_mesh/services/platform/services/model_configuration_seeder.py:25 — model_configuration_seeder._infer_provider has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_declarative_runner._assert_http_responses (cyclomatic 21) · ×1
  • test_declarative_runner._assert_http_responses (cyclomatic 21) tests/integration/scenarios_declarative/test_declarative_runner.py:567 — test_declarative_runner._assert_http_responses has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_declarative_runner._assert_generated_artifacts (cyclomatic 21) · ×1
  • test_declarative_runner._assert_generated_artifacts (cyclomatic 21) tests/integration/scenarios_declarative/test_declarative_runner.py:1514 — test_declarative_runner._assert_generated_artifacts has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · intelligent_mcp_callbacks.save_mcp_response_as_artifact_intelligent (cyclomatic 20) · ×1
  • intelligent_mcp_callbacks.save_mcp_response_as_artifact_intelligent (cyclomatic 20) src/solace_agent_mesh/agent/adk/intelligent_mcp_callbacks.py:107 — intelligent_mcp_callbacks.save_mcp_response_as_artifact_intelligent has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ADKToolWrapper.__call__ (cyclomatic 20) · ×1
  • ADKToolWrapper.__call__ (cyclomatic 20) src/solace_agent_mesh/agent/adk/tool_wrapper.py:197 — ADKToolWrapper.__call__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AuthenticationConfig.validate_auth_config (cyclomatic 20) · ×1
  • AuthenticationConfig.validate_auth_config (cyclomatic 20) src/solace_agent_mesh/agent/proxies/a2a/config.py:81 — AuthenticationConfig.validate_auth_config has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · StructuredInvocationHandler._parse_result_embed (cyclomatic 20) · ×1
  • StructuredInvocationHandler._parse_result_embed (cyclomatic 20) src/solace_agent_mesh/agent/sac/structured_invocation/handler.py:966 — StructuredInvocationHandler._parse_result_embed has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · document_conversion.convert_to_pdf (cyclomatic 20) · ×1
  • document_conversion.convert_to_pdf (cyclomatic 20) src/solace_agent_mesh/gateway/http_sse/routers/document_conversion.py:121 — document_conversion.convert_to_pdf has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · prompts.update_prompt_group (cyclomatic 20) · ×1
  • prompts.update_prompt_group (cyclomatic 20) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:543 — prompts.update_prompt_group has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · sse._prepare_replay_events (cyclomatic 20) · ×1
  • sse._prepare_replay_events (cyclomatic 20) src/solace_agent_mesh/gateway/http_sse/routers/sse.py:24 — sse._prepare_replay_events has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SSEManager.send_event (cyclomatic 20) · ×1
  • SSEManager.send_event (cyclomatic 20) src/solace_agent_mesh/gateway/http_sse/sse_manager.py:352 — SSEManager.send_event has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DatabaseExceptionHandler.handle_integrity_error (cyclomatic 20) · ×1
  • DatabaseExceptionHandler.handle_integrity_error (cyclomatic 20) src/solace_agent_mesh/shared/database/database_exceptions.py:23 — DatabaseExceptionHandler.handle_integrity_error has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MemoryReportGenerator._format_node_children (cyclomatic 20) · ×1
  • MemoryReportGenerator._format_node_children (cyclomatic 20) tests/sam-test-infrastructure/src/sam_test_infrastructure/memory_monitor/report_generator.py:88 — MemoryReportGenerator._format_node_children has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EmbedResolvingMCPTool._resolve_embeds_recursively (cyclomatic 19) · ×1
  • EmbedResolvingMCPTool._resolve_embeds_recursively (cyclomatic 19) src/solace_agent_mesh/agent/adk/embed_resolving_mcp_toolset.py:179 — EmbedResolvingMCPTool._resolve_embeds_recursively has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · event_handlers.publish_agent_card (cyclomatic 19) · ×1
  • event_handlers.publish_agent_card (cyclomatic 19) src/solace_agent_mesh/agent/protocol/event_handlers.py:2643 — event_handlers.publish_agent_card has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · deep_research_tools._extract_text_from_llm_response (cyclomatic 19) · ×1
  • deep_research_tools._extract_text_from_llm_response (cyclomatic 19) src/solace_agent_mesh/agent/tools/deep_research_tools.py:41 — deep_research_tools._extract_text_from_llm_response has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · deep_research_tools._generate_research_report (cyclomatic 19) · ×1
  • deep_research_tools._generate_research_report (cyclomatic 19) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1765 — deep_research_tools._generate_research_report has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · image_tools.create_image_from_description (cyclomatic 19) · ×1
  • image_tools.create_image_from_description (cyclomatic 19) src/solace_agent_mesh/agent/tools/image_tools.py:39 — image_tools.create_image_from_description has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · index_search_tools.format_location_range (cyclomatic 19) · ×1
  • index_search_tools.format_location_range (cyclomatic 19) src/solace_agent_mesh/agent/tools/index_search_tools.py:273 — index_search_tools.format_location_range has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · translation._extract_text_from_parts (cyclomatic 19) · ×1
  • translation._extract_text_from_parts (cyclomatic 19) src/solace_agent_mesh/common/a2a/translation.py:460 — translation._extract_text_from_parts has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AudioService.stream_speech (cyclomatic 19) · ×1
  • AudioService.stream_speech (cyclomatic 19) src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:1013 — AudioService.stream_speech has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · bm25_indexer_service.build_bm25_index (cyclomatic 19) · ×1
  • bm25_indexer_service.build_bm25_index (cyclomatic 19) src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:420 — bm25_indexer_service.build_bm25_index has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · conditional._eval_node (cyclomatic 19) · ×1
  • conditional._eval_node (cyclomatic 19) src/solace_agent_mesh/workflow/flow_control/conditional.py:60 — conditional._eval_node has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · agent_cmd.create_agent_config (cyclomatic 18) · ×1
  • agent_cmd.create_agent_config (cyclomatic 18) cli/commands/add_cmd/agent_cmd.py:339 — agent_cmd.create_agent_config has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RegistryManager.add_registry (cyclomatic 18) · ×1
  • RegistryManager.add_registry (cyclomatic 18) config_portal/backend/plugin_catalog/registry_manager.py:85 — RegistryManager.add_registry has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PluginScraper._parse_config_yaml (cyclomatic 18) · ×1
  • PluginScraper._parse_config_yaml (cyclomatic 18) config_portal/backend/plugin_catalog/scraper.py:172 — PluginScraper._parse_config_yaml has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · lite_llm._content_to_message_param (cyclomatic 18) · ×1
  • lite_llm._content_to_message_param (cyclomatic 18) src/solace_agent_mesh/agent/adk/models/lite_llm.py:282 — lite_llm._content_to_message_param has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SamAgentComponent.finalize_task_with_cleanup (cyclomatic 18) · ×1
  • SamAgentComponent.finalize_task_with_cleanup (cyclomatic 18) src/solace_agent_mesh/agent/sac/component.py:3148 — SamAgentComponent.finalize_task_with_cleanup has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · patch_adk._filter_whitespace_only_text_parts_inplace (cyclomatic 18) · ×1
  • patch_adk._filter_whitespace_only_text_parts_inplace (cyclomatic 18) src/solace_agent_mesh/agent/sac/patch_adk.py:24 — patch_adk._filter_whitespace_only_text_parts_inplace has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · audio_tools.text_to_speech (cyclomatic 18) · ×1
  • audio_tools.text_to_speech (cyclomatic 18) src/solace_agent_mesh/agent/tools/audio_tools.py:606 — audio_tools.text_to_speech has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · dynamic_tool._get_schema_from_signature (cyclomatic 18) · ×1
  • dynamic_tool._get_schema_from_signature (cyclomatic 18) src/solace_agent_mesh/agent/tools/dynamic_tool.py:310 — dynamic_tool._get_schema_from_signature has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseGatewayComponent.submit_a2a_task (cyclomatic 18) · ×1
  • BaseGatewayComponent.submit_a2a_task (cyclomatic 18) src/solace_agent_mesh/gateway/base/component.py:326 — BaseGatewayComponent.submit_a2a_task has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · artifacts.get_latest_artifact (cyclomatic 18) · ×1
  • artifacts.get_latest_artifact (cyclomatic 18) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1294 — artifacts.get_latest_artifact has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · projects.delete_project_artifact (cyclomatic 18) · ×1
  • projects.delete_project_artifact (cyclomatic 18) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:583 — projects.delete_project_artifact has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · projects.import_project (cyclomatic 18) · ×1
  • projects.import_project (cyclomatic 18) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:1011 — projects.import_project has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · prompts.list_prompt_groups (cyclomatic 18) · ×1
  • prompts.list_prompt_groups (cyclomatic 18) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:277 — prompts.list_prompt_groups has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ResultHandler._extract_rag_from_task_events (cyclomatic 18) · ×1
  • ResultHandler._extract_rag_from_task_events (cyclomatic 18) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:703 — ResultHandler._extract_rag_from_task_events has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WorkflowDefinition.validate_dag_structure (cyclomatic 18) · ×1
  • WorkflowDefinition.validate_dag_structure (cyclomatic 18) src/solace_agent_mesh/workflow/app.py:455 — WorkflowDefinition.validate_dag_structure has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · event_handlers.handle_cancel_request (cyclomatic 18) · ×1
  • event_handlers.handle_cancel_request (cyclomatic 18) src/solace_agent_mesh/workflow/protocol/event_handlers.py:394 — event_handlers.handle_cancel_request has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_declarative_runner._assert_gateway_event_sequence (cyclomatic 18) · ×1
  • test_declarative_runner._assert_gateway_event_sequence (cyclomatic 18) tests/integration/scenarios_declarative/test_declarative_runner.py:1196 — test_declarative_runner._assert_gateway_event_sequence has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TestGatewayComponent._translate_external_input (cyclomatic 18) · ×1
  • TestGatewayComponent._translate_external_input (cyclomatic 18) tests/sam-test-infrastructure/src/sam_test_infrastructure/gateway_interface/component.py:79 — TestGatewayComponent._translate_external_input has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TestLLMServer._verify_tool_responses (cyclomatic 18) · ×1
  • TestLLMServer._verify_tool_responses (cyclomatic 18) tests/sam-test-infrastructure/src/sam_test_infrastructure/llm_server/server.py:524 — TestLLMServer._verify_tool_responses has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.discover_config_files (cyclomatic 17) · ×1
  • utils.discover_config_files (cyclomatic 17) cli/utils.py:232 — utils.discover_config_files has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PluginScraper._scrape_git_registry (cyclomatic 17) · ×1
  • PluginScraper._scrape_git_registry (cyclomatic 17) config_portal/backend/plugin_catalog/scraper.py:255 — PluginScraper._scrape_git_registry has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SamAgentComponent._format_final_task_status (cyclomatic 17) · ×1
  • SamAgentComponent._format_final_task_status (cyclomatic 17) src/solace_agent_mesh/agent/sac/component.py:2457 — SamAgentComponent._format_final_task_status has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ShareService._load_task_events_for_session (cyclomatic 17) · ×1
  • ShareService._load_task_events_for_session (cyclomatic 17) src/solace_agent_mesh/gateway/http_sse/services/share_service.py:500 — ShareService._load_task_events_for_session has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PlatformServiceComponent.cleanup (cyclomatic 17) · ×1
  • PlatformServiceComponent.cleanup (cyclomatic 17) src/solace_agent_mesh/services/platform/component.py:681 — PlatformServiceComponent.cleanup has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · create_cmd.setup_plugin_type_src (cyclomatic 16) · ×1
  • create_cmd.setup_plugin_type_src (cyclomatic 16) cli/commands/plugin_cmd/create_cmd.py:43 — create_cmd.setup_plugin_type_src has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · migrate_declarative_tests.transform_data (cyclomatic 16) · ×1
  • migrate_declarative_tests.transform_data (cyclomatic 16) scripts/migrate_declarative_tests.py:29 — migrate_declarative_tests.transform_data has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · migrate_declarative_tests.main (cyclomatic 16) · ×1
  • migrate_declarative_tests.main (cyclomatic 16) scripts/migrate_declarative_tests.py:119 — migrate_declarative_tests.main has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EmbedResolvingMCPTool._is_auth_error (cyclomatic 16) · ×1
  • EmbedResolvingMCPTool._is_auth_error (cyclomatic 16) src/solace_agent_mesh/agent/adk/embed_resolving_mcp_toolset.py:349 — EmbedResolvingMCPTool._is_auth_error has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · lite_llm._model_response_to_chunk (cyclomatic 16) · ×1
  • lite_llm._model_response_to_chunk (cyclomatic 16) src/solace_agent_mesh/agent/adk/models/lite_llm.py:661 — lite_llm._model_response_to_chunk has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseProxyComponent._update_agent_card_for_proxy (cyclomatic 16) · ×1
  • BaseProxyComponent._update_agent_card_for_proxy (cyclomatic 16) src/solace_agent_mesh/agent/proxies/base/component.py:341 — BaseProxyComponent._update_agent_card_for_proxy has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · builtin_artifact_tools.list_artifacts (cyclomatic 16) · ×1
  • builtin_artifact_tools.list_artifacts (cyclomatic 16) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:203 — builtin_artifact_tools.list_artifacts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · deep_research_tools._generate_sources_section (cyclomatic 16) · ×1
  • deep_research_tools._generate_sources_section (cyclomatic 16) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1696 — deep_research_tools._generate_sources_section has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FeatureRegistry._parse_definition (cyclomatic 16) · ×1
  • FeatureRegistry._parse_definition (cyclomatic 16) src/solace_agent_mesh/common/features/registry.py:122 — FeatureRegistry._parse_definition has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · converter._parse_string_to_list_of_dicts (cyclomatic 16) · ×1
  • converter._parse_string_to_list_of_dicts (cyclomatic 16) src/solace_agent_mesh/common/utils/embeds/converter.py:20 — converter._parse_string_to_list_of_dicts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · resolver._log_data_state (cyclomatic 16) · ×1
  • resolver._log_data_state (cyclomatic 16) src/solace_agent_mesh/common/utils/embeds/resolver.py:32 — resolver._log_data_state has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · resolver.evaluate_embed (cyclomatic 16) · ×1
  • resolver.evaluate_embed (cyclomatic 16) src/solace_agent_mesh/common/utils/embeds/resolver.py:853 — resolver.evaluate_embed has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · prompts.get_all_prompt_groups (cyclomatic 16) · ×1
  • prompts.get_all_prompt_groups (cyclomatic 16) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:194 — prompts.get_all_prompt_groups has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · tasks.get_task_status (cyclomatic 16) · ×1
  • tasks.get_task_status (cyclomatic 16) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:188 — tasks.get_task_status has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ProjectService.update_project (cyclomatic 16) · ×1
  • ProjectService.update_project (cyclomatic 16) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:923 — ProjectService.update_project has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ResultHandler._handle_status_update (cyclomatic 16) · ×1
  • ResultHandler._handle_status_update (cyclomatic 16) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:170 — ResultHandler._handle_status_update has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TaskLoggerService._inherit_rag_from_session (cyclomatic 16) · ×1
  • TaskLoggerService._inherit_rag_from_session (cyclomatic 16) src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:428 — TaskLoggerService._inherit_rag_from_session has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · share_utils.anonymize_chat_task (cyclomatic 16) · ×1
  • share_utils.anonymize_chat_task (cyclomatic 16) src/solace_agent_mesh/gateway/http_sse/utils/share_utils.py:135 — share_utils.anonymize_chat_task has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · synthetic.validate_synthetic_token (cyclomatic 16) · ×1
  • synthetic.validate_synthetic_token (cyclomatic 16) src/solace_agent_mesh/shared/auth/synthetic.py:247 — synthetic.validate_synthetic_token has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DAGExecutor.execute_workflow (cyclomatic 16) · ×1
  • DAGExecutor.execute_workflow (cyclomatic 16) src/solace_agent_mesh/workflow/dag_executor.py:214 — DAGExecutor.execute_workflow has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DAGExecutor.execute_node (cyclomatic 16) · ×1
  • DAGExecutor.execute_node (cyclomatic 16) src/solace_agent_mesh/workflow/dag_executor.py:364 — DAGExecutor.execute_node has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DAGExecutor.resolve_value (cyclomatic 16) · ×1
  • DAGExecutor.resolve_value (cyclomatic 16) src/solace_agent_mesh/workflow/dag_executor.py:938 — DAGExecutor.resolve_value has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_declarative_runner._assert_dict_subset (cyclomatic 16) · ×1
  • test_declarative_runner._assert_dict_subset (cyclomatic 16) tests/integration/scenarios_declarative/test_declarative_runner.py:2908 — test_declarative_runner._assert_dict_subset has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · test_workflow_agent_card.get_workflow_config_json (cyclomatic 16) · ×1
  • test_workflow_agent_card.get_workflow_config_json (cyclomatic 16) tests/unit/workflow/test_workflow_agent_card.py:21 — test_workflow_agent_card.get_workflow_config_json has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D19 · Documentation Quality · LLM evaluation failed · ×1
  • LLM evaluation failed — JSON parse error: Expected end of string, but instead reached end of data. Path: $.findings[1].issue | LineNumber: 0 | BytePositionInLine: 1199.
D2 · Cognitive Complexity · TaskLoggerService._save_chat_messages_for_background_task (cognitive 329) · ×1
  • TaskLoggerService._save_chat_messages_for_background_task (cognitive 329) src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:475 — TaskLoggerService._save_chat_messages_for_background_task has cognitive complexity 329 (threshold 15). Drivers by points: if/else 261, loops 32, boolean chains 14, error handling 11, ternaries 11 (nesting depth added 246). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks.process_artifact_blocks_callback (cognitive 296) · ×1
  • callbacks.process_artifact_blocks_callback (cognitive 296) src/solace_agent_mesh/agent/adk/callbacks.py:320 — callbacks.process_artifact_blocks_callback has cognitive complexity 296 (threshold 15). Drivers by points: if/else 227, ternaries 25, error handling 19, boolean chains 14, loops 11 (nesting depth added 219). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_llm_interactions (cognitive 223) · ×1
  • test_declarative_runner._assert_llm_interactions (cognitive 223) tests/integration/scenarios_declarative/test_declarative_runner.py:780 — test_declarative_runner._assert_llm_interactions has cognitive complexity 223 (threshold 15). Drivers by points: if/else 150, loops 36, error handling 19, ternaries 10, boolean chains 8 (nesting depth added 169). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers.handle_a2a_response (cognitive 201) · ×1
  • event_handlers.handle_a2a_response (cognitive 201) src/solace_agent_mesh/agent/protocol/event_handlers.py:1894 — event_handlers.handle_a2a_response has cognitive complexity 201 (threshold 15). Drivers by points: if/else 141, error handling 25, loops 17, ternaries 10, boolean chains 8 (nesting depth added 142). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ResultHandler._handle_success (cognitive 192) · ×1
  • ResultHandler._handle_success (cognitive 192) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:259 — ResultHandler._handle_success has cognitive complexity 192 (threshold 15). Drivers by points: if/else 135, loops 26, ternaries 19, boolean chains 11, error handling 1 (nesting depth added 130). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BaseGatewayComponent._resolve_embeds_and_handle_signals (cognitive 155) · ×1
  • BaseGatewayComponent._resolve_embeds_and_handle_signals (cognitive 155) src/solace_agent_mesh/gateway/base/component.py:1331 — BaseGatewayComponent._resolve_embeds_and_handle_signals has cognitive complexity 155 (threshold 15). Drivers by points: if/else 107, error handling 20, boolean chains 13, ternaries 10, loops 5 (nesting depth added 95). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · tasks.get_task_title_data (cognitive 139) · ×1
  • tasks.get_task_title_data (cognitive 139) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:1486 — tasks.get_task_title_data has cognitive complexity 139 (threshold 15). Drivers by points: if/else 92, loops 24, error handling 13, boolean chains 8, ternaries 2 (nesting depth added 91). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_event_details (cognitive 136) · ×1
  • test_declarative_runner._assert_event_details (cognitive 136) tests/integration/scenarios_declarative/test_declarative_runner.py:2594 — test_declarative_runner._assert_event_details has cognitive complexity 136 (threshold 15). Drivers by points: if/else 95, loops 18, boolean chains 9, ternaries 9, error handling 5 (nesting depth added 80). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · visualization.update_visualization_stream_config (cognitive 122) · ×1
  • visualization.update_visualization_stream_config (cognitive 122) src/solace_agent_mesh/gateway/http_sse/routers/visualization.py:796 — visualization.update_visualization_stream_config has cognitive complexity 122 (threshold 15). Drivers by points: if/else 94, loops 21, boolean chains 7 (nesting depth added 78). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · tasks._submit_task (cognitive 120) · ×1
  • tasks._submit_task (cognitive 120) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:536 — tasks._submit_task has cognitive complexity 120 (threshold 15). Drivers by points: if/else 76, error handling 19, boolean chains 18, loops 5, ternaries 2 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LiteLlm.generate_content_async (cognitive 118) · ×1
  • LiteLlm.generate_content_async (cognitive 118) src/solace_agent_mesh/agent/adk/models/lite_llm.py:1308 — LiteLlm.generate_content_async has cognitive complexity 118 (threshold 15). Drivers by points: if/else 80, boolean chains 17, loops 13, error handling 8 (nesting depth added 64). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · deep_research_tools.deep_research (cognitive 115) · ×1
  • deep_research_tools.deep_research (cognitive 115) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1945 — deep_research_tools.deep_research has cognitive complexity 115 (threshold 15). Drivers by points: if/else 66, boolean chains 16, error handling 15, loops 9, ternaries 9 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2AProxyComponent._process_downstream_response (cognitive 106) · ×1
  • A2AProxyComponent._process_downstream_response (cognitive 106) src/solace_agent_mesh/agent/proxies/a2a/component.py:1905 — A2AProxyComponent._process_downstream_response has cognitive complexity 106 (threshold 15). Drivers by points: if/else 68, ternaries 20, boolean chains 12, loops 6 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BaseGatewayComponent._handle_resolved_signals (cognitive 105) · ×1
  • BaseGatewayComponent._handle_resolved_signals (cognitive 105) src/solace_agent_mesh/gateway/base/component.py:608 — BaseGatewayComponent._handle_resolved_signals has cognitive complexity 105 (threshold 15). Drivers by points: if/else 86, error handling 16, boolean chains 2, loops 1 (nesting depth added 72). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner.test_declarative_scenario (cognitive 105) · ×1
  • test_declarative_runner.test_declarative_scenario (cognitive 105) tests/integration/scenarios_declarative/test_declarative_runner.py:1795 — test_declarative_runner.test_declarative_scenario has cognitive complexity 105 (threshold 15). Drivers by points: if/else 74, loops 27, boolean chains 3, error handling 1 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · builtin_artifact_tools.extract_content_from_artifact (cognitive 103) · ×1
  • builtin_artifact_tools.extract_content_from_artifact (cognitive 103) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:695 — builtin_artifact_tools.extract_content_from_artifact has cognitive complexity 103 (threshold 15). Drivers by points: if/else 64, error handling 15, boolean chains 14, loops 6, ternaries 4 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifacts.list_all_artifacts (cognitive 103) · ×1
  • artifacts.list_all_artifacts (cognitive 103) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:764 — artifacts.list_all_artifacts has cognitive complexity 103 (threshold 15). Drivers by points: if/else 59, boolean chains 14, error handling 13, loops 13, ternaries 4 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · conftest.clear_generic_gateway_state_between_tests (cognitive 102) · ×1
  • conftest.clear_generic_gateway_state_between_tests (cognitive 102) tests/integration/gateway/generic/conftest.py:132 — conftest.clear_generic_gateway_state_between_tests has cognitive complexity 102 (threshold 15). Drivers by points: if/else 88, loops 7, error handling 6, boolean chains 1 (nesting depth added 73). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · tasks.get_task_events (cognitive 96) · ×1
  • tasks.get_task_events (cognitive 96) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:1050 — tasks.get_task_events has cognitive complexity 96 (threshold 15). Drivers by points: if/else 80, boolean chains 10, loops 4, error handling 2 (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TemplateDataService.generate_breakdown_content (cognitive 93) · ×1
  • TemplateDataService.generate_breakdown_content (cognitive 93) evaluation/report_data_processor.py:488 — TemplateDataService.generate_breakdown_content has cognitive complexity 93 (threshold 15). Drivers by points: if/else 65, loops 13, ternaries 10, boolean chains 5 (nesting depth added 69). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BaseGatewayComponent._process_parsed_a2a_event (cognitive 81) · ×1
  • BaseGatewayComponent._process_parsed_a2a_event (cognitive 81) src/solace_agent_mesh/gateway/base/component.py:1740 — BaseGatewayComponent._process_parsed_a2a_event has cognitive complexity 81 (threshold 15). Drivers by points: if/else 60, ternaries 9, boolean chains 8, error handling 4 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · visualization_mapper.infer_visualization_event_details (cognitive 80) · ×1
  • visualization_mapper.infer_visualization_event_details (cognitive 80) src/solace_agent_mesh/gateway/http_sse/visualization_mapper.py:31 — visualization_mapper.infer_visualization_event_details has cognitive complexity 80 (threshold 15). Drivers by points: if/else 46, ternaries 27, boolean chains 5, error handling 2 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks.inject_dynamic_instructions_callback (cognitive 78) · ×1
  • callbacks.inject_dynamic_instructions_callback (cognitive 78) src/solace_agent_mesh/agent/adk/callbacks.py:1761 — callbacks.inject_dynamic_instructions_callback has cognitive complexity 78 (threshold 15). Drivers by points: if/else 61, loops 8, boolean chains 6, error handling 3 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · converter.convert_data (cognitive 77) · ×1
  • converter.convert_data (cognitive 77) src/solace_agent_mesh/common/utils/embeds/converter.py:91 — converter.convert_data has cognitive complexity 77 (threshold 15). Drivers by points: error handling 38, if/else 33, boolean chains 5, ternaries 1 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifact_helpers.load_artifact_content_or_metadata (cognitive 75) · ×1
  • artifact_helpers.load_artifact_content_or_metadata (cognitive 75) src/solace_agent_mesh/agent/utils/artifact_helpers.py:1417 — artifact_helpers.load_artifact_content_or_metadata has cognitive complexity 75 (threshold 15). Drivers by points: if/else 48, error handling 17, ternaries 4, boolean chains 3, loops 3 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebUIBackendComponent._visualization_message_processor_loop (cognitive 75) · ×1
  • WebUIBackendComponent._visualization_message_processor_loop (cognitive 75) src/solace_agent_mesh/gateway/http_sse/component.py:1031 — WebUIBackendComponent._visualization_message_processor_loop has cognitive complexity 75 (threshold 15). Drivers by points: if/else 54, error handling 8, boolean chains 7, loops 6 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · visualization.subscribe_to_visualization_stream (cognitive 74) · ×1
  • visualization.subscribe_to_visualization_stream (cognitive 74) src/solace_agent_mesh/gateway/http_sse/routers/visualization.py:218 — visualization.subscribe_to_visualization_stream has cognitive complexity 74 (threshold 15). Drivers by points: if/else 61, error handling 5, loops 5, boolean chains 3 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · sessions.save_task (cognitive 72) · ×1
  • sessions.save_task (cognitive 72) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:278 — sessions.save_task has cognitive complexity 72 (threshold 15). Drivers by points: if/else 45, boolean chains 7, error handling 7, loops 7, ternaries 6 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · sessions.get_session_context_usage (cognitive 71) · ×1
  • sessions.get_session_context_usage (cognitive 71) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:1334 — sessions.get_session_context_usage has cognitive complexity 71 (threshold 15). Drivers by points: if/else 35, boolean chains 20, ternaries 7, error handling 5, loops 4 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · builtin_artifact_tools.artifact_search_and_replace_regex (cognitive 70) · ×1
  • builtin_artifact_tools.artifact_search_and_replace_regex (cognitive 70) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:2178 — builtin_artifact_tools.artifact_search_and_replace_regex has cognitive complexity 70 (threshold 15). Drivers by points: if/else 35, boolean chains 15, loops 9, ternaries 7, error handling 4 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TaskBuilderAssistant._llm_response (cognitive 69) · ×1
  • TaskBuilderAssistant._llm_response (cognitive 69) src/solace_agent_mesh/gateway/http_sse/services/task_builder_assistant.py:381 — TaskBuilderAssistant._llm_response has cognitive complexity 69 (threshold 15). Drivers by points: if/else 49, boolean chains 8, error handling 4, loops 4, ternaries 4 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._setup_scenario_environment (cognitive 69) · ×1
  • test_declarative_runner._setup_scenario_environment (cognitive 69) tests/integration/scenarios_declarative/test_declarative_runner.py:85 — test_declarative_runner._setup_scenario_environment has cognitive complexity 69 (threshold 15). Drivers by points: if/else 53, error handling 7, loops 7, ternaries 2 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · web_tools.web_request (cognitive 68) · ×1
  • web_tools.web_request (cognitive 68) src/solace_agent_mesh/agent/tools/web_tools.py:68 — web_tools.web_request has cognitive complexity 68 (threshold 15). Drivers by points: if/else 42, error handling 16, loops 6, boolean chains 2, ternaries 2 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · config.get_app_config (cognitive 68) · ×1
  • config.get_app_config (cognitive 68) src/solace_agent_mesh/gateway/http_sse/routers/config.py:323 — config.get_app_config has cognitive complexity 68 (threshold 15). Drivers by points: if/else 54, boolean chains 11, ternaries 2, error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · services.initialize_artifact_service (cognitive 67) · ×1
  • services.initialize_artifact_service (cognitive 67) src/solace_agent_mesh/agent/adk/services.py:780 — services.initialize_artifact_service has cognitive complexity 67 (threshold 15). Drivers by points: if/else 38, error handling 15, boolean chains 8, loops 6 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProjectService.import_project_from_zip (cognitive 67) · ×1
  • ProjectService.import_project_from_zip (cognitive 67) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:1162 — ProjectService.import_project_from_zip has cognitive complexity 67 (threshold 15). Drivers by points: if/else 35, error handling 15, ternaries 9, loops 5, boolean chains 3 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TaskLoggerService.log_event (cognitive 64) · ×1
  • TaskLoggerService.log_event (cognitive 64) src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:40 — TaskLoggerService.log_event has cognitive complexity 64 (threshold 15). Drivers by points: if/else 39, ternaries 15, boolean chains 7, error handling 3 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ResultHandler._save_chat_task (cognitive 62) · ×1
  • ResultHandler._save_chat_task (cognitive 62) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:510 — ResultHandler._save_chat_task has cognitive complexity 62 (threshold 15). Drivers by points: if/else 36, loops 10, boolean chains 6, ternaries 6, error handling 4 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SchedulerService._execute_scheduled_task_inner (cognitive 62) · ×1
  • SchedulerService._execute_scheduled_task_inner (cognitive 62) src/solace_agent_mesh/gateway/http_sse/services/scheduler/scheduler_service.py:557 — SchedulerService._execute_scheduled_task_inner has cognitive complexity 62 (threshold 15). Drivers by points: if/else 38, boolean chains 13, error handling 7, ternaries 3, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent.__init__ (cognitive 61) · ×1
  • SamAgentComponent.__init__ (cognitive 61) src/solace_agent_mesh/agent/sac/component.py:133 — SamAgentComponent.__init__ has cognitive complexity 61 (threshold 15). Drivers by points: if/else 40, error handling 11, boolean chains 7, loops 3 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent.process_and_publish_adk_event (cognitive 61) · ×1
  • SamAgentComponent.process_and_publish_adk_event (cognitive 61) src/solace_agent_mesh/agent/sac/component.py:2048 — SamAgentComponent.process_and_publish_adk_event has cognitive complexity 61 (threshold 15). Drivers by points: if/else 48, boolean chains 9, loops 3, error handling 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebUIBackendComponent._extract_involved_agents_for_viz (cognitive 61) · ×1
  • WebUIBackendComponent._extract_involved_agents_for_viz (cognitive 61) src/solace_agent_mesh/gateway/http_sse/component.py:2169 — WebUIBackendComponent._extract_involved_agents_for_viz has cognitive complexity 61 (threshold 15). Drivers by points: if/else 54, boolean chains 4, error handling 3 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · install_cmd.install_plugin (cognitive 57) · ×1
  • install_cmd.install_plugin (cognitive 57) cli/commands/plugin_cmd/install_cmd.py:77 — install_cmd.install_plugin has cognitive complexity 57 (threshold 15). Drivers by points: if/else 45, error handling 8, boolean chains 4 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · tasks._inject_project_context (cognitive 57) · ×1
  • tasks._inject_project_context (cognitive 57) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:343 — tasks._inject_project_context has cognitive complexity 57 (threshold 15). Drivers by points: if/else 43, boolean chains 7, loops 4, error handling 3 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · orchestrator_step.create_orchestrator_config (cognitive 56) · ×1
  • orchestrator_step.create_orchestrator_config (cognitive 56) cli/commands/init_cmd/orchestrator_step.py:43 — orchestrator_step.create_orchestrator_config has cognitive complexity 56 (threshold 15). Drivers by points: if/else 40, boolean chains 5, ternaries 5, error handling 3, loops 3 (nesting depth added 11). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · resolver._evaluate_artifact_content_embed_with_chain (cognitive 55) · ×1
  • resolver._evaluate_artifact_content_embed_with_chain (cognitive 55) src/solace_agent_mesh/common/utils/embeds/resolver.py:79 — resolver._evaluate_artifact_content_embed_with_chain has cognitive complexity 55 (threshold 15). Drivers by points: if/else 28, error handling 14, boolean chains 7, ternaries 5, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · setup._load_mcp_tool (cognitive 54) · ×1
  • setup._load_mcp_tool (cognitive 54) src/solace_agent_mesh/agent/adk/setup.py:446 — setup._load_mcp_tool has cognitive complexity 54 (threshold 15). Drivers by points: if/else 33, error handling 7, loops 7, boolean chains 5, ternaries 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ChartDataService._calculate_category_scores (cognitive 53) · ×1
  • ChartDataService._calculate_category_scores (cognitive 53) evaluation/report_data_processor.py:289 — ChartDataService._calculate_category_scores has cognitive complexity 53 (threshold 15). Drivers by points: if/else 34, loops 12, boolean chains 4, ternaries 3 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks.manage_large_mcp_tool_responses_callback (cognitive 52) · ×1
  • callbacks.manage_large_mcp_tool_responses_callback (cognitive 52) src/solace_agent_mesh/agent/adk/callbacks.py:1055 — callbacks.manage_large_mcp_tool_responses_callback has cognitive complexity 52 (threshold 15). Drivers by points: if/else 43, boolean chains 4, error handling 3, ternaries 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2AProxyComponent._extract_security_scheme_name (cognitive 52) · ×1
  • A2AProxyComponent._extract_security_scheme_name (cognitive 52) src/solace_agent_mesh/agent/proxies/a2a/component.py:193 — A2AProxyComponent._extract_security_scheme_name has cognitive complexity 52 (threshold 15). Drivers by points: if/else 45, boolean chains 6, loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebUIBackendComponent.cleanup (cognitive 52) · ×1
  • WebUIBackendComponent.cleanup (cognitive 52) src/solace_agent_mesh/gateway/http_sse/component.py:1951 — WebUIBackendComponent.cleanup has cognitive complexity 52 (threshold 15). Drivers by points: error handling 24, if/else 22, boolean chains 6 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · runner.create_compaction_event (cognitive 50) · ×1
  • runner.create_compaction_event (cognitive 50) src/solace_agent_mesh/agent/adk/runner.py:334 — runner.create_compaction_event has cognitive complexity 50 (threshold 15). Drivers by points: if/else 31, boolean chains 7, loops 7, ternaries 3, error handling 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers.handle_cancel_request (cognitive 50) · ×1
  • event_handlers.handle_cancel_request (cognitive 50) src/solace_agent_mesh/workflow/protocol/event_handlers.py:394 — event_handlers.handle_cancel_request has cognitive complexity 50 (threshold 15). Drivers by points: if/else 40, error handling 6, boolean chains 2, loops 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · runner.run_adk_async_task (cognitive 49) · ×1
  • runner.run_adk_async_task (cognitive 49) src/solace_agent_mesh/agent/adk/runner.py:1725 — runner.run_adk_async_task has cognitive complexity 49 (threshold 15). Drivers by points: if/else 24, error handling 13, loops 9, boolean chains 3 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PeerAgentTool._build_enhanced_description (cognitive 49) · ×1
  • PeerAgentTool._build_enhanced_description (cognitive 49) src/solace_agent_mesh/agent/tools/peer_agent_tool.py:78 — PeerAgentTool._build_enhanced_description has cognitive complexity 49 (threshold 15). Drivers by points: if/else 36, loops 7, boolean chains 6 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · translation._prepare_a2a_filepart_for_adk (cognitive 49) · ×1
  • translation._prepare_a2a_filepart_for_adk (cognitive 49) src/solace_agent_mesh/common/a2a/translation.py:109 — translation._prepare_a2a_filepart_for_adk has cognitive complexity 49 (threshold 15). Drivers by points: if/else 29, ternaries 10, boolean chains 9, error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ShareService.get_shared_session_view (cognitive 49) · ×1
  • ShareService.get_shared_session_view (cognitive 49) src/solace_agent_mesh/gateway/http_sse/services/share_service.py:321 — ShareService.get_shared_session_view has cognitive complexity 49 (threshold 15). Drivers by points: if/else 35, boolean chains 5, loops 5, error handling 2, ternaries 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AudioService.get_speech_config (cognitive 48) · ×1
  • AudioService.get_speech_config (cognitive 48) src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:1202 — AudioService.get_speech_config has cognitive complexity 48 (threshold 15). Drivers by points: if/else 31, boolean chains 11, ternaries 6 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent._inject_peer_tools_callback (cognitive 47) · ×1
  • SamAgentComponent._inject_peer_tools_callback (cognitive 47) src/solace_agent_mesh/agent/sac/component.py:1000 — SamAgentComponent._inject_peer_tools_callback has cognitive complexity 47 (threshold 15). Drivers by points: if/else 31, loops 7, boolean chains 4, error handling 4, ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent.finalize_task_with_cleanup (cognitive 47) · ×1
  • SamAgentComponent.finalize_task_with_cleanup (cognitive 47) src/solace_agent_mesh/agent/sac/component.py:3148 — SamAgentComponent.finalize_task_with_cleanup has cognitive complexity 47 (threshold 15). Drivers by points: if/else 31, error handling 14, boolean chains 1, ternaries 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks.solace_llm_response_callback (cognitive 46) · ×1
  • callbacks.solace_llm_response_callback (cognitive 46) src/solace_agent_mesh/agent/adk/callbacks.py:2419 — callbacks.solace_llm_response_callback has cognitive complexity 46 (threshold 15). Drivers by points: if/else 34, boolean chains 4, error handling 4, ternaries 4 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PromptBuilderAssistant._llm_response (cognitive 46) · ×1
  • PromptBuilderAssistant._llm_response (cognitive 46) src/solace_agent_mesh/gateway/http_sse/services/prompt_builder_assistant.py:191 — PromptBuilderAssistant._llm_response has cognitive complexity 46 (threshold 15). Drivers by points: if/else 27, boolean chains 7, loops 5, ternaries 4, error handling 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WorkflowExecutorComponent._get_workflow_config_json (cognitive 46) · ×1
  • WorkflowExecutorComponent._get_workflow_config_json (cognitive 46) src/solace_agent_mesh/workflow/component.py:237 — WorkflowExecutorComponent._get_workflow_config_json has cognitive complexity 46 (threshold 15). Drivers by points: if/else 45, loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2AProxyComponent._get_or_create_a2a_client (cognitive 45) · ×1
  • A2AProxyComponent._get_or_create_a2a_client (cognitive 45) src/solace_agent_mesh/agent/proxies/a2a/component.py:1503 — A2AProxyComponent._get_or_create_a2a_client has cognitive complexity 45 (threshold 15). Drivers by points: if/else 35, error handling 6, boolean chains 2, ternaries 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · gateway_cmd.create_gateway_files (cognitive 44) · ×1
  • gateway_cmd.create_gateway_files (cognitive 44) cli/commands/add_cmd/gateway_cmd.py:15 — gateway_cmd.create_gateway_files has cognitive complexity 44 (threshold 15). Drivers by points: if/else 27, ternaries 6, boolean chains 5, loops 4, error handling 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers._handle_send_message_request (cognitive 44) · ×1
  • event_handlers._handle_send_message_request (cognitive 44) src/solace_agent_mesh/agent/protocol/event_handlers.py:1215 — event_handlers._handle_send_message_request has cognitive complexity 44 (threshold 15). Drivers by points: if/else 30, boolean chains 6, ternaries 4, error handling 2, loops 2 (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · sse._prepare_replay_events (cognitive 44) · ×1
  • sse._prepare_replay_events (cognitive 44) src/solace_agent_mesh/gateway/http_sse/routers/sse.py:24 — sse._prepare_replay_events has cognitive complexity 44 (threshold 15). Drivers by points: if/else 34, loops 6, boolean chains 2, error handling 1, ternaries 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · share.get_shared_artifact_content (cognitive 43) · ×1
  • share.get_shared_artifact_content (cognitive 43) src/solace_agent_mesh/gateway/http_sse/routers/share.py:536 — share.get_shared_artifact_content has cognitive complexity 43 (threshold 15). Drivers by points: if/else 31, boolean chains 5, error handling 5, loops 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ShareService._format_task_events (cognitive 43) · ×1
  • ShareService._format_task_events (cognitive 43) src/solace_agent_mesh/gateway/http_sse/services/share_service.py:591 — ShareService._format_task_events has cognitive complexity 43 (threshold 15). Drivers by points: if/else 39, boolean chains 3, loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WorkflowDefinition.validate_dag_structure (cognitive 43) · ×1
  • WorkflowDefinition.validate_dag_structure (cognitive 43) src/solace_agent_mesh/workflow/app.py:455 — WorkflowDefinition.validate_dag_structure has cognitive complexity 43 (threshold 15). Drivers by points: if/else 32, loops 10, boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · utils.discover_config_files (cognitive 42) · ×1
  • utils.discover_config_files (cognitive 42) cli/utils.py:232 — utils.discover_config_files has cognitive complexity 42 (threshold 15). Drivers by points: if/else 24, loops 16, boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModalDataService.generate_modal_test_data (cognitive 42) · ×1
  • ModalDataService.generate_modal_test_data (cognitive 42) evaluation/report_data_processor.py:388 — ModalDataService.generate_modal_test_data has cognitive complexity 42 (threshold 15). Drivers by points: if/else 32, loops 10 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_http_responses (cognitive 42) · ×1
  • test_declarative_runner._assert_http_responses (cognitive 42) tests/integration/scenarios_declarative/test_declarative_runner.py:567 — test_declarative_runner._assert_http_responses has cognitive complexity 42 (threshold 15). Drivers by points: if/else 33, loops 4, error handling 3, boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · cli.main_async (cognitive 41) · ×1
  • cli.main_async (cognitive 41) client/sam-rest-client/src/sam_rest_client/cli.py:35 — cli.main_async has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17, error handling 11, loops 8, ternaries 3, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent._filter_tools_by_capability_callback (cognitive 41) · ×1
  • SamAgentComponent._filter_tools_by_capability_callback (cognitive 41) src/solace_agent_mesh/agent/sac/component.py:1358 — SamAgentComponent._filter_tools_by_capability_callback has cognitive complexity 41 (threshold 15). Drivers by points: if/else 28, loops 7, boolean chains 4, ternaries 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifacts.upload_artifact_with_session (cognitive 41) · ×1
  • artifacts.upload_artifact_with_session (cognitive 41) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:256 — artifacts.upload_artifact_with_session has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23, error handling 12, boolean chains 5, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · projects.add_project_artifacts (cognitive 41) · ×1
  • projects.add_project_artifacts (cognitive 41) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:371 — projects.add_project_artifacts has cognitive complexity 41 (threshold 15). Drivers by points: if/else 27, ternaries 6, error handling 4, boolean chains 3, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_artifact_state (cognitive 41) · ×1
  • test_declarative_runner._assert_artifact_state (cognitive 41) tests/integration/scenarios_declarative/test_declarative_runner.py:1355 — test_declarative_runner._assert_artifact_state has cognitive complexity 41 (threshold 15). Drivers by points: if/else 27, boolean chains 6, error handling 6, loops 1, ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · tasks.get_task_status (cognitive 40) · ×1
  • tasks.get_task_status (cognitive 40) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:188 — tasks.get_task_status has cognitive complexity 40 (threshold 15). Drivers by points: if/else 30, boolean chains 6, loops 4 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AudioService.stream_speech (cognitive 40) · ×1
  • AudioService.stream_speech (cognitive 40) src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:1013 — AudioService.stream_speech has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22, loops 10, error handling 4, ternaries 3, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DAGExecutor.execute_workflow (cognitive 40) · ×1
  • DAGExecutor.execute_workflow (cognitive 40) src/solace_agent_mesh/workflow/dag_executor.py:214 — DAGExecutor.execute_workflow has cognitive complexity 40 (threshold 15). Drivers by points: if/else 24, loops 9, ternaries 6, boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · common.execute_task (cognitive 39) · ×1
  • common.execute_task (cognitive 39) cli/commands/task_cmd/common.py:112 — common.execute_task has cognitive complexity 39 (threshold 15). Drivers by points: if/else 25, error handling 8, boolean chains 3, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MetricsCalculationService.calculate_run_statistics (cognitive 39) · ×1
  • MetricsCalculationService.calculate_run_statistics (cognitive 39) evaluation/report_data_processor.py:207 — MetricsCalculationService.calculate_run_statistics has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26, loops 10, ternaries 2, boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · migrate_declarative_tests.transform_data (cognitive 39) · ×1
  • migrate_declarative_tests.transform_data (cognitive 39) scripts/migrate_declarative_tests.py:29 — migrate_declarative_tests.transform_data has cognitive complexity 39 (threshold 15). Drivers by points: if/else 29, loops 8, boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · runner._repair_dangling_tool_calls_in_session (cognitive 39) · ×1
  • runner._repair_dangling_tool_calls_in_session (cognitive 39) src/solace_agent_mesh/agent/adk/runner.py:1035 — runner._repair_dangling_tool_calls_in_session has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18, loops 11, boolean chains 9, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TaskBuilderAssistant.validate_conflict (cognitive 39) · ×1
  • TaskBuilderAssistant.validate_conflict (cognitive 39) src/solace_agent_mesh/gateway/http_sse/services/task_builder_assistant.py:669 — TaskBuilderAssistant.validate_conflict has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16, boolean chains 13, ternaries 6, error handling 4 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · services._filter_session_by_latest_compaction (cognitive 38) · ×1
  • services._filter_session_by_latest_compaction (cognitive 38) src/solace_agent_mesh/agent/adk/services.py:221 — services._filter_session_by_latest_compaction has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23, ternaries 6, loops 5, boolean chains 4 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifact_types.get_artifact_info (cognitive 38) · ×1
  • artifact_types.get_artifact_info (cognitive 38) src/solace_agent_mesh/agent/tools/artifact_types.py:205 — artifact_types.get_artifact_info has cognitive complexity 38 (threshold 15). Drivers by points: if/else 31, boolean chains 5, loops 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · converter.serialize_data (cognitive 38) · ×1
  • converter.serialize_data (cognitive 38) src/solace_agent_mesh/common/utils/embeds/converter.py:311 — converter.serialize_data has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21, error handling 13, boolean chains 3, ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · modifiers._apply_template (cognitive 38) · ×1
  • modifiers._apply_template (cognitive 38) src/solace_agent_mesh/common/utils/embeds/modifiers.py:418 — modifiers._apply_template has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21, boolean chains 6, error handling 6, ternaries 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SSEManager.send_event (cognitive 38) · ×1
  • SSEManager.send_event (cognitive 38) src/solace_agent_mesh/gateway/http_sse/sse_manager.py:352 — SSEManager.send_event has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19, error handling 11, loops 4, ternaries 3, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_generated_artifacts (cognitive 38) · ×1
  • test_declarative_runner._assert_generated_artifacts (cognitive 38) tests/integration/scenarios_declarative/test_declarative_runner.py:1514 — test_declarative_runner._assert_generated_artifacts has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22, error handling 12, boolean chains 2, loops 1, ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · intelligent_mcp_callbacks.save_mcp_response_as_artifact_intelligent (cognitive 37) · ×1
  • intelligent_mcp_callbacks.save_mcp_response_as_artifact_intelligent (cognitive 37) src/solace_agent_mesh/agent/adk/intelligent_mcp_callbacks.py:107 — intelligent_mcp_callbacks.save_mcp_response_as_artifact_intelligent has cognitive complexity 37 (threshold 15). Drivers by points: if/else 28, error handling 8, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifact_helpers.save_artifact_with_metadata (cognitive 37) · ×1
  • artifact_helpers.save_artifact_with_metadata (cognitive 37) src/solace_agent_mesh/agent/utils/artifact_helpers.py:371 — artifact_helpers.save_artifact_with_metadata has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18, error handling 10, boolean chains 5, ternaries 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · dynamic_tool._get_schema_from_signature (cognitive 36) · ×1
  • dynamic_tool._get_schema_from_signature (cognitive 36) src/solace_agent_mesh/agent/tools/dynamic_tool.py:310 — dynamic_tool._get_schema_from_signature has cognitive complexity 36 (threshold 15). Drivers by points: if/else 30, boolean chains 5, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModelConfigService.test_connection (cognitive 36) · ×1
  • ModelConfigService.test_connection (cognitive 36) src/solace_agent_mesh/services/platform/services/model_config_service.py:590 — ModelConfigService.test_connection has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22, boolean chains 9, loops 3, error handling 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · builtin_artifact_tools.list_artifacts (cognitive 35) · ×1
  • builtin_artifact_tools.list_artifacts (cognitive 35) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:203 — builtin_artifact_tools.list_artifacts has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19, error handling 14, boolean chains 1, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bm25_indexer_service.build_bm25_index (cognitive 35) · ×1
  • bm25_indexer_service.build_bm25_index (cognitive 35) src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:420 — bm25_indexer_service.build_bm25_index has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22, loops 10, boolean chains 2, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · agent_cmd._write_agent_yaml_from_data (cognitive 34) · ×1
  • agent_cmd._write_agent_yaml_from_data (cognitive 34) cli/commands/add_cmd/agent_cmd.py:40 — agent_cmd._write_agent_yaml_from_data has cognitive complexity 34 (threshold 15). Drivers by points: if/else 24, error handling 5, boolean chains 3, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EmbedResolvingMCPTool._resolve_embeds_recursively (cognitive 34) · ×1
  • EmbedResolvingMCPTool._resolve_embeds_recursively (cognitive 34) src/solace_agent_mesh/agent/adk/embed_resolving_mcp_toolset.py:179 — EmbedResolvingMCPTool._resolve_embeds_recursively has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16, error handling 13, loops 4, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BaseProxyComponent._initial_discovery_sync (cognitive 34) · ×1
  • BaseProxyComponent._initial_discovery_sync (cognitive 34) src/solace_agent_mesh/agent/proxies/base/component.py:414 — BaseProxyComponent._initial_discovery_sync has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23, error handling 5, ternaries 5, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BaseGatewayComponent._message_processor_loop (cognitive 34) · ×1
  • BaseGatewayComponent._message_processor_loop (cognitive 34) src/solace_agent_mesh/gateway/base/component.py:2234 — BaseGatewayComponent._message_processor_loop has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22, error handling 6, boolean chains 5, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ResultHandler._extract_rag_from_task_events (cognitive 34) · ×1
  • ResultHandler._extract_rag_from_task_events (cognitive 34) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:703 — ResultHandler._extract_rag_from_task_events has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22, boolean chains 5, loops 3, error handling 2, ternaries 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · tools_cmd.format_tool_table (cognitive 33) · ×1
  • tools_cmd.format_tool_table (cognitive 33) cli/commands/tools_cmd.py:93 — tools_cmd.format_tool_table has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15, loops 10, ternaries 6, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModelResultsProcessor.create_test_case_results (cognitive 33) · ×1
  • ModelResultsProcessor.create_test_case_results (cognitive 33) evaluation/report_data_processor.py:720 — ModelResultsProcessor.create_test_case_results has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20, loops 7, boolean chains 2, error handling 2, ternaries 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · prompts.import_prompt (cognitive 33) · ×1
  • prompts.import_prompt (cognitive 33) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:1184 — prompts.import_prompt has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20, boolean chains 5, loops 4, error handling 2, ternaries 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModelListService._fetch_models_from_provider (cognitive 33) · ×1
  • ModelListService._fetch_models_from_provider (cognitive 33) src/solace_agent_mesh/services/platform/services/model_list_service.py:201 — ModelListService._fetch_models_from_provider has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25, loops 4, boolean chains 2, error handling 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_gateway_event_sequence (cognitive 33) · ×1
  • test_declarative_runner._assert_gateway_event_sequence (cognitive 33) tests/integration/scenarios_declarative/test_declarative_runner.py:1196 — test_declarative_runner._assert_gateway_event_sequence has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23, boolean chains 6, loops 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RegistryManager.get_all_registries (cognitive 32) · ×1
  • RegistryManager.get_all_registries (cognitive 32) config_portal/backend/plugin_catalog/registry_manager.py:25 — RegistryManager.get_all_registries has cognitive complexity 32 (threshold 15). Drivers by points: error handling 14, if/else 14, loops 3, ternaries 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · migrate_declarative_tests.main (cognitive 32) · ×1
  • migrate_declarative_tests.main (cognitive 32) scripts/migrate_declarative_tests.py:119 — migrate_declarative_tests.main has cognitive complexity 32 (threshold 15). Drivers by points: if/else 27, loops 3, error handling 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks.sanitize_tool_names_callback (cognitive 32) · ×1
  • callbacks.sanitize_tool_names_callback (cognitive 32) src/solace_agent_mesh/agent/adk/callbacks.py:2911 — callbacks.sanitize_tool_names_callback has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19, boolean chains 6, ternaries 4, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2AProxyComponent._construct_synthetic_agent_card (cognitive 32) · ×1
  • A2AProxyComponent._construct_synthetic_agent_card (cognitive 32) src/solace_agent_mesh/agent/proxies/a2a/component.py:398 — A2AProxyComponent._construct_synthetic_agent_card has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, ternaries 3, error handling 2, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AuthenticationConfig.validate_auth_config (cognitive 32) · ×1
  • AuthenticationConfig.validate_auth_config (cognitive 32) src/solace_agent_mesh/agent/proxies/a2a/config.py:81 — AuthenticationConfig.validate_auth_config has cognitive complexity 32 (threshold 15). Drivers by points: if/else 26, error handling 5, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · audio_tools._get_voice_for_speaker (cognitive 32) · ×1
  • audio_tools._get_voice_for_speaker (cognitive 32) src/solace_agent_mesh/agent/tools/audio_tools.py:221 — audio_tools._get_voice_for_speaker has cognitive complexity 32 (threshold 15). Drivers by points: if/else 32 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · auth_headers.build_static_auth_headers (cognitive 32) · ×1
  • auth_headers.build_static_auth_headers (cognitive 32) src/solace_agent_mesh/common/auth_headers.py:12 — auth_headers.build_static_auth_headers has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, ternaries 4, loops 2, boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamComponentBase.process_event (cognitive 32) · ×1
  • SamComponentBase.process_event (cognitive 32) src/solace_agent_mesh/common/sac/sam_component_base.py:170 — SamComponentBase.process_event has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16, error handling 15, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AudioService.generate_speech_gemini (cognitive 32) · ×1
  • AudioService.generate_speech_gemini (cognitive 32) src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:632 — AudioService.generate_speech_gemini has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19, error handling 8, boolean chains 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifact_copy_utils.copy_project_artifacts_to_session (cognitive 32) · ×1
  • artifact_copy_utils.copy_project_artifacts_to_session (cognitive 32) src/solace_agent_mesh/gateway/http_sse/utils/artifact_copy_utils.py:84 — artifact_copy_utils.copy_project_artifacts_to_session has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, ternaries 5, error handling 4, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DAGExecutor.resolve_value (cognitive 32) · ×1
  • DAGExecutor.resolve_value (cognitive 32) src/solace_agent_mesh/workflow/dag_executor.py:938 — DAGExecutor.resolve_value has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22, loops 8, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TestLLMServer._verify_tool_responses (cognitive 32) · ×1
  • TestLLMServer._verify_tool_responses (cognitive 32) tests/sam-test-infrastructure/src/sam_test_infrastructure/llm_server/server.py:524 — TestLLMServer._verify_tool_responses has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, error handling 3, boolean chains 2, loops 1, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MetricsCalculationService.calculate_model_performance (cognitive 31) · ×1
  • MetricsCalculationService.calculate_model_performance (cognitive 31) evaluation/report_data_processor.py:158 — MetricsCalculationService.calculate_model_performance has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, loops 6, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · lite_llm._content_to_message_param (cognitive 31) · ×1
  • lite_llm._content_to_message_param (cognitive 31) src/solace_agent_mesh/agent/adk/models/lite_llm.py:282 — lite_llm._content_to_message_param has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17, ternaries 7, boolean chains 4, loops 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers.handle_a2a_request (cognitive 31) · ×1
  • event_handlers.handle_a2a_request (cognitive 31) src/solace_agent_mesh/agent/protocol/event_handlers.py:1571 — event_handlers.handle_a2a_request has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17, error handling 8, ternaries 4, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ShareService._load_task_events_for_session (cognitive 31) · ×1
  • ShareService._load_task_events_for_session (cognitive 31) src/solace_agent_mesh/gateway/http_sse/services/share_service.py:500 — ShareService._load_task_events_for_session has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19, error handling 5, boolean chains 4, loops 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DatabaseExceptionHandler.handle_integrity_error (cognitive 31) · ×1
  • DatabaseExceptionHandler.handle_integrity_error (cognitive 31) src/solace_agent_mesh/shared/database/database_exceptions.py:23 — DatabaseExceptionHandler.handle_integrity_error has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17, boolean chains 8, loops 5, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · setup.load_adk_tools (cognitive 30) · ×1
  • setup.load_adk_tools (cognitive 30) src/solace_agent_mesh/agent/adk/setup.py:803 — setup.load_adk_tools has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, loops 5, error handling 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · deep_research_tools._select_sources_to_fetch (cognitive 30) · ×1
  • deep_research_tools._select_sources_to_fetch (cognitive 30) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1446 — deep_research_tools._select_sources_to_fetch has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17, boolean chains 6, loops 4, error handling 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RegistryManager.add_registry (cognitive 29) · ×1
  • RegistryManager.add_registry (cognitive 29) config_portal/backend/plugin_catalog/registry_manager.py:85 — RegistryManager.add_registry has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18, error handling 8, boolean chains 1, loops 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers.process_event (cognitive 29) · ×1
  • event_handlers.process_event (cognitive 29) src/solace_agent_mesh/agent/protocol/event_handlers.py:156 — event_handlers.process_event has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19, error handling 7, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent._format_final_task_status (cognitive 29) · ×1
  • SamAgentComponent._format_final_task_status (cognitive 29) src/solace_agent_mesh/agent/sac/component.py:2457 — SamAgentComponent._format_final_task_status has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, loops 5, boolean chains 3, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent.finalize_task_success (cognitive 29) · ×1
  • SamAgentComponent.finalize_task_success (cognitive 29) src/solace_agent_mesh/agent/sac/component.py:2503 — SamAgentComponent.finalize_task_success has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16, error handling 8, boolean chains 3, ternaries 2 (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · artifact_preloading.resolve_artifact_params (cognitive 29) · ×1
  • artifact_preloading.resolve_artifact_params (cognitive 29) src/solace_agent_mesh/agent/tools/artifact_preloading.py:138 — artifact_preloading.resolve_artifact_params has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15, error handling 8, loops 4, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifact_types.is_artifact_type (cognitive 29) · ×1
  • artifact_types.is_artifact_type (cognitive 29) src/solace_agent_mesh/agent/tools/artifact_types.py:136 — artifact_types.is_artifact_type has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, loops 4, boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · audio_tools.concatenate_audio (cognitive 29) · ×1
  • audio_tools.concatenate_audio (cognitive 29) src/solace_agent_mesh/agent/tools/audio_tools.py:980 — audio_tools.concatenate_audio has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22, error handling 4, boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DAGExecutor._resolve_template (cognitive 29) · ×1
  • DAGExecutor._resolve_template (cognitive 29) src/solace_agent_mesh/workflow/dag_executor.py:993 — DAGExecutor._resolve_template has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22, loops 4, boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · runner._run_with_compaction_retry (cognitive 28) · ×1
  • runner._run_with_compaction_retry (cognitive 28) src/solace_agent_mesh/agent/adk/runner.py:1232 — runner._run_with_compaction_retry has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, error handling 5, boolean chains 2, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers._handle_cancel_task_request (cognitive 28) · ×1
  • event_handlers._handle_cancel_task_request (cognitive 28) src/solace_agent_mesh/agent/protocol/event_handlers.py:439 — event_handlers._handle_cancel_task_request has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17, error handling 6, loops 3, boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers._resolve_or_create_session (cognitive 28) · ×1
  • event_handlers._resolve_or_create_session (cognitive 28) src/solace_agent_mesh/agent/protocol/event_handlers.py:585 — event_handlers._resolve_or_create_session has cognitive complexity 28 (threshold 15). Drivers by points: error handling 18, if/else 9, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · deep_research_tools._generate_research_report (cognitive 28) · ×1
  • deep_research_tools._generate_research_report (cognitive 28) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1765 — deep_research_tools._generate_research_report has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, boolean chains 6, error handling 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · image_tools.edit_image_with_gemini (cognitive 28) · ×1
  • image_tools.edit_image_with_gemini (cognitive 28) src/solace_agent_mesh/agent/tools/image_tools.py:507 — image_tools.edit_image_with_gemini has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, error handling 8, ternaries 3, boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · translation._extract_text_from_parts (cognitive 28) · ×1
  • translation._extract_text_from_parts (cognitive 28) src/solace_agent_mesh/common/a2a/translation.py:460 — translation._extract_text_from_parts has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, error handling 9, boolean chains 4, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · share_utils.anonymize_chat_task (cognitive 28) · ×1
  • share_utils.anonymize_chat_task (cognitive 28) src/solace_agent_mesh/gateway/http_sse/utils/share_utils.py:135 — share_utils.anonymize_chat_task has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, error handling 5, ternaries 4, boolean chains 2, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks.audit_log_openapi_tool_execution_result (cognitive 27) · ×1
  • callbacks.audit_log_openapi_tool_execution_result (cognitive 27) src/solace_agent_mesh/agent/adk/callbacks.py:3258 — callbacks.audit_log_openapi_tool_execution_result has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17, boolean chains 8, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EmbedResolvingMCPTool._is_auth_error (cognitive 27) · ×1
  • EmbedResolvingMCPTool._is_auth_error (cognitive 27) src/solace_agent_mesh/agent/adk/embed_resolving_mcp_toolset.py:349 — EmbedResolvingMCPTool._is_auth_error has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, boolean chains 4, error handling 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ADKToolWrapper.__call__ (cognitive 27) · ×1
  • ADKToolWrapper.__call__ (cognitive 27) src/solace_agent_mesh/agent/adk/tool_wrapper.py:197 — ADKToolWrapper.__call__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16, boolean chains 6, loops 4, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers.publish_agent_card (cognitive 27) · ×1
  • event_handlers.publish_agent_card (cognitive 27) src/solace_agent_mesh/agent/protocol/event_handlers.py:2643 — event_handlers.publish_agent_card has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17, ternaries 5, loops 3, boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · deep_research_tools._generate_sources_section (cognitive 27) · ×1
  • deep_research_tools._generate_sources_section (cognitive 27) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1696 — deep_research_tools._generate_sources_section has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, ternaries 8, loops 4, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · image_tools.generate_image_with_gemini (cognitive 27) · ×1
  • image_tools.generate_image_with_gemini (cognitive 27) src/solace_agent_mesh/agent/tools/image_tools.py:719 — image_tools.generate_image_with_gemini has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16, error handling 6, ternaries 3, boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SamAppBase._get_db_engines_from_components (cognitive 27) · ×1
  • SamAppBase._get_db_engines_from_components (cognitive 27) src/solace_agent_mesh/common/app_base.py:132 — SamAppBase._get_db_engines_from_components has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17, loops 6, boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · resolver.evaluate_embed (cognitive 27) · ×1
  • resolver.evaluate_embed (cognitive 27) src/solace_agent_mesh/common/utils/embeds/resolver.py:853 — resolver.evaluate_embed has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, ternaries 8, boolean chains 3, error handling 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProjectService.add_artifacts_to_project (cognitive 27) · ×1
  • ProjectService.add_artifacts_to_project (cognitive 27) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:568 — ProjectService.add_artifacts_to_project has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15, error handling 7, loops 2, ternaries 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · tools_cmd.format_tool_table_brief (cognitive 26) · ×1
  • tools_cmd.format_tool_table_brief (cognitive 26) cli/commands/tools_cmd.py:35 — tools_cmd.format_tool_table_brief has cognitive complexity 26 (threshold 15). Drivers by points: loops 10, if/else 9, ternaries 6, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PluginScraper._parse_config_yaml (cognitive 26) · ×1
  • PluginScraper._parse_config_yaml (cognitive 26) config_portal/backend/plugin_catalog/scraper.py:172 — PluginScraper._parse_config_yaml has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, boolean chains 3, error handling 2, loops 2, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PluginScraper._scrape_git_registry (cognitive 26) · ×1
  • PluginScraper._scrape_git_registry (cognitive 26) config_portal/backend/plugin_catalog/scraper.py:255 — PluginScraper._scrape_git_registry has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, error handling 5, boolean chains 4, loops 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EvaluationRunner._display_summary (cognitive 26) · ×1
  • EvaluationRunner._display_summary (cognitive 26) evaluation/run.py:836 — EvaluationRunner._display_summary has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, loops 4, error handling 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · lite_llm._get_completion_inputs (cognitive 26) · ×1
  • lite_llm._get_completion_inputs (cognitive 26) src/solace_agent_mesh/agent/adk/models/lite_llm.py:805 — lite_llm._get_completion_inputs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, boolean chains 5, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StructuredInvocationHandler._parse_result_embed (cognitive 26) · ×1
  • StructuredInvocationHandler._parse_result_embed (cognitive 26) src/solace_agent_mesh/agent/sac/structured_invocation/handler.py:966 — StructuredInvocationHandler._parse_result_embed has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14, error handling 4, boolean chains 3, loops 3, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · translation.format_adk_event_as_a2a (cognitive 26) · ×1
  • translation.format_adk_event_as_a2a (cognitive 26) src/solace_agent_mesh/common/a2a/translation.py:522 — translation.format_adk_event_as_a2a has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11, boolean chains 10, error handling 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · auth_headers.build_full_auth_headers (cognitive 26) · ×1
  • auth_headers.build_full_auth_headers (cognitive 26) src/solace_agent_mesh/common/auth_headers.py:111 — auth_headers.build_full_auth_headers has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, error handling 4, loops 2, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifacts.get_scheduled_task_artifact (cognitive 26) · ×1
  • artifacts.get_scheduled_task_artifact (cognitive 26) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1718 — artifacts.get_scheduled_task_artifact has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14, boolean chains 6, error handling 3, loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IndexingTaskService.convert_and_index_upload_async (cognitive 26) · ×1
  • IndexingTaskService.convert_and_index_upload_async (cognitive 26) src/solace_agent_mesh/gateway/http_sse/services/indexing_task_service.py:64 — IndexingTaskService.convert_and_index_upload_async has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10, ternaries 7, error handling 4, boolean chains 3, loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · conftest.test_gateway_app_instance (cognitive 26) · ×1
  • conftest.test_gateway_app_instance (cognitive 26) tests/integration/conftest.py:2347 — conftest.test_gateway_app_instance has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, loops 5, ternaries 4, boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_artifact_streaming_embed_resolution.extract_artifact_progress_chunks (cognitive 26) · ×1
  • test_artifact_streaming_embed_resolution.extract_artifact_progress_chunks (cognitive 26) tests/integration/scenarios_programmatic/agent/test_artifact_streaming_embed_resolution.py:30 — test_artifact_streaming_embed_resolution.extract_artifact_progress_chunks has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, boolean chains 3, error handling 3, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SSEClient._parse_sse_stream (cognitive 25) · ×1
  • SSEClient._parse_sse_stream (cognitive 25) cli/commands/task_cmd/sse_client.py:86 — SSEClient._parse_sse_stream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9, error handling 6, loops 6, ternaries 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · lite_llm._model_response_to_chunk (cognitive 25) · ×1
  • lite_llm._model_response_to_chunk (cognitive 25) src/solace_agent_mesh/agent/adk/models/lite_llm.py:661 — lite_llm._model_response_to_chunk has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, boolean chains 5, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifact_helpers.generate_artifact_metadata_summary (cognitive 25) · ×1
  • artifact_helpers.generate_artifact_metadata_summary (cognitive 25) src/solace_agent_mesh/agent/utils/artifact_helpers.py:802 — artifact_helpers.generate_artifact_metadata_summary has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, error handling 5, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · resolver.resolve_embeds_in_string (cognitive 25) · ×1
  • resolver.resolve_embeds_in_string (cognitive 25) src/solace_agent_mesh/common/utils/embeds/resolver.py:493 — resolver.resolve_embeds_in_string has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, boolean chains 3, error handling 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebUIBackendComponent.process_event (cognitive 25) · ×1
  • WebUIBackendComponent.process_event (cognitive 25) src/solace_agent_mesh/gateway/http_sse/component.py:433 — WebUIBackendComponent.process_event has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, error handling 4, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · document_conversion.convert_to_pdf (cognitive 25) · ×1
  • document_conversion.convert_to_pdf (cognitive 25) src/solace_agent_mesh/gateway/http_sse/routers/document_conversion.py:121 — document_conversion.convert_to_pdf has cognitive complexity 25 (threshold 15). Drivers by points: error handling 13, if/else 10, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModelConfigService.update (cognitive 25) · ×1
  • ModelConfigService.update (cognitive 25) src/solace_agent_mesh/services/platform/services/model_config_service.py:398 — ModelConfigService.update has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, boolean chains 6, ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · MemoryReportGenerator._format_node_children (cognitive 25) · ×1
  • MemoryReportGenerator._format_node_children (cognitive 25) tests/sam-test-infrastructure/src/sam_test_infrastructure/memory_monitor/report_generator.py:88 — MemoryReportGenerator._format_node_children has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 2, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · web_init_step.perform_web_init (cognitive 24) · ×1
  • web_init_step.perform_web_init (cognitive 24) cli/commands/init_cmd/web_init_step.py:10 — web_init_step.perform_web_init has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, loops 5, boolean chains 3, error handling 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PluginScraper._parse_pyproject (cognitive 24) · ×1
  • PluginScraper._parse_pyproject (cognitive 24) config_portal/backend/plugin_catalog/scraper.py:86 — PluginScraper._parse_pyproject has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, error handling 3, loops 2, boolean chains 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2AProxyComponent._execute_with_retries (cognitive 24) · ×1
  • A2AProxyComponent._execute_with_retries (cognitive 24) src/solace_agent_mesh/agent/proxies/a2a/component.py:789 — A2AProxyComponent._execute_with_retries has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, error handling 10, boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2AProxyComponent._handle_outbound_artifacts (cognitive 24) · ×1
  • A2AProxyComponent._handle_outbound_artifacts (cognitive 24) src/solace_agent_mesh/agent/proxies/a2a/component.py:1773 — A2AProxyComponent._handle_outbound_artifacts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 3, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent.cleanup (cognitive 24) · ×1
  • SamAgentComponent.cleanup (cognitive 24) src/solace_agent_mesh/agent/sac/component.py:3646 — SamAgentComponent.cleanup has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, error handling 6, boolean chains 4, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · evaluators._evaluate_artifact_content_embed (cognitive 24) · ×1
  • evaluators._evaluate_artifact_content_embed (cognitive 24) src/solace_agent_mesh/common/utils/embeds/evaluators.py:281 — evaluators._evaluate_artifact_content_embed has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, boolean chains 6, error handling 4, ternaries 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · projects.delete_project_artifact (cognitive 24) · ×1
  • projects.delete_project_artifact (cognitive 24) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:583 — projects.delete_project_artifact has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, error handling 7, boolean chains 3 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · prompts.list_prompt_groups (cognitive 24) · ×1
  • prompts.list_prompt_groups (cognitive 24) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:277 — prompts.list_prompt_groups has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 11, boolean chains 5, if/else 4, error handling 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SchedulerService._submit_task_to_agent_mesh (cognitive 24) · ×1
  • SchedulerService._submit_task_to_agent_mesh (cognitive 24) src/solace_agent_mesh/gateway/http_sse/services/scheduler/scheduler_service.py:871 — SchedulerService._submit_task_to_agent_mesh has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, boolean chains 4, error handling 4, loops 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · GoogleSearchTool.search (cognitive 24) · ×1
  • GoogleSearchTool.search (cognitive 24) src/solace_agent_mesh/tools/web_search/google_search.py:36 — GoogleSearchTool.search has cognitive complexity 24 (threshold 15). Drivers by points: error handling 11, if/else 9, loops 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_summary_in_text (cognitive 24) · ×1
  • test_declarative_runner._assert_summary_in_text (cognitive 24) tests/integration/scenarios_declarative/test_declarative_runner.py:680 — test_declarative_runner._assert_summary_in_text has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, boolean chains 5, loops 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MetricsReporter.assert_thresholds (cognitive 24) · ×1
  • MetricsReporter.assert_thresholds (cognitive 24) tests/stress/metrics/reporter.py:158 — MetricsReporter.assert_thresholds has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, loops 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_workflow_agent_card.get_workflow_config_json (cognitive 24) · ×1
  • test_workflow_agent_card.get_workflow_config_json (cognitive 24) tests/unit/workflow/test_workflow_agent_card.py:21 — test_workflow_agent_card.get_workflow_config_json has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ToolResultProcessor._process_tool_result (cognitive 23) · ×1
  • ToolResultProcessor._process_tool_result (cognitive 23) src/solace_agent_mesh/agent/adk/tool_result_processor.py:154 — ToolResultProcessor._process_tool_result has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 2, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · audio_tools.multi_speaker_text_to_speech (cognitive 23) · ×1
  • audio_tools.multi_speaker_text_to_speech (cognitive 23) src/solace_agent_mesh/agent/tools/audio_tools.py:758 — audio_tools.multi_speaker_text_to_speech has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 4, error handling 3, loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · audio_tools.transcribe_audio (cognitive 23) · ×1
  • audio_tools.transcribe_audio (cognitive 23) src/solace_agent_mesh/agent/tools/audio_tools.py:1146 — audio_tools.transcribe_audio has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, error handling 7, boolean chains 2, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · builtin_artifact_tools._perform_single_replacement (cognitive 23) · ×1
  • builtin_artifact_tools._perform_single_replacement (cognitive 23) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:2079 — builtin_artifact_tools._perform_single_replacement has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, loops 3, error handling 2, ternaries 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · evaluators._evaluate_artifact_meta_embed (cognitive 23) · ×1
  • evaluators._evaluate_artifact_meta_embed (cognitive 23) src/solace_agent_mesh/common/utils/embeds/evaluators.py:151 — evaluators._evaluate_artifact_meta_embed has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, boolean chains 5, error handling 5, ternaries 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · liquid_renderer._prepare_template_context (cognitive 23) · ×1
  • liquid_renderer._prepare_template_context (cognitive 23) src/solace_agent_mesh/common/utils/templates/liquid_renderer.py:69 — liquid_renderer._prepare_template_context has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, boolean chains 6, error handling 6 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GenericGatewayComponent.load_artifact_content (cognitive 23) · ×1
  • GenericGatewayComponent.load_artifact_content (cognitive 23) src/solace_agent_mesh/gateway/generic/component.py:486 — GenericGatewayComponent.load_artifact_content has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9, ternaries 8, error handling 5, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebUIBackendComponent._add_visualization_subscription (cognitive 23) · ×1
  • WebUIBackendComponent._add_visualization_subscription (cognitive 23) src/solace_agent_mesh/gateway/http_sse/component.py:1279 — WebUIBackendComponent._add_visualization_subscription has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, boolean chains 2, error handling 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · tasks._load_scheduler_conversation_history (cognitive 23) · ×1
  • tasks._load_scheduler_conversation_history (cognitive 23) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:83 — tasks._load_scheduler_conversation_history has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, error handling 3, loops 3, ternaries 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ResultHandler._handle_status_update (cognitive 23) · ×1
  • ResultHandler._handle_status_update (cognitive 23) src/solace_agent_mesh/gateway/http_sse/services/scheduler/result_handler.py:170 — ResultHandler._handle_status_update has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TaskLoggerService._inherit_rag_from_session (cognitive 23) · ×1
  • TaskLoggerService._inherit_rag_from_session (cognitive 23) src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:428 — TaskLoggerService._inherit_rag_from_session has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, boolean chains 5, loops 5, ternaries 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlatformServiceComponent.cleanup (cognitive 23) · ×1
  • PlatformServiceComponent.cleanup (cognitive 23) src/solace_agent_mesh/services/platform/component.py:681 — PlatformServiceComponent.cleanup has cognitive complexity 23 (threshold 15). Drivers by points: error handling 12, if/else 10, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks.repair_history_callback (cognitive 22) · ×1
  • callbacks.repair_history_callback (cognitive 22) src/solace_agent_mesh/agent/adk/callbacks.py:965 — callbacks.repair_history_callback has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks._generate_tool_instructions_from_registry (cognitive 22) · ×1
  • callbacks._generate_tool_instructions_from_registry (cognitive 22) src/solace_agent_mesh/agent/adk/callbacks.py:1718 — callbacks._generate_tool_instructions_from_registry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, loops 5, boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks.after_tool_callback_inject_metadata (cognitive 22) · ×1
  • callbacks.after_tool_callback_inject_metadata (cognitive 22) src/solace_agent_mesh/agent/adk/callbacks.py:2073 — callbacks.after_tool_callback_inject_metadata has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, error handling 8, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · patch_adk._filter_whitespace_only_text_parts_inplace (cognitive 22) · ×1
  • patch_adk._filter_whitespace_only_text_parts_inplace (cognitive 22) src/solace_agent_mesh/agent/sac/patch_adk.py:24 — patch_adk._filter_whitespace_only_text_parts_inplace has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 6, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · builtin_artifact_tools.apply_embed_and_create_artifact (cognitive 22) · ×1
  • builtin_artifact_tools.apply_embed_and_create_artifact (cognitive 22) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:515 — builtin_artifact_tools.apply_embed_and_create_artifact has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 5, error handling 2, ternaries 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · index_search_tools._perform_search (cognitive 22) · ×1
  • index_search_tools._perform_search (cognitive 22) src/solace_agent_mesh/agent/tools/index_search_tools.py:468 — index_search_tools._perform_search has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, loops 8, ternaries 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebUIBackendComponent.__init__ (cognitive 22) · ×1
  • WebUIBackendComponent.__init__ (cognitive 22) src/solace_agent_mesh/gateway/http_sse/component.py:132 — WebUIBackendComponent.__init__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, error handling 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · artifacts.get_latest_artifact (cognitive 22) · ×1
  • artifacts.get_latest_artifact (cognitive 22) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1294 — artifacts.get_latest_artifact has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, error handling 6, boolean chains 5 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · projects.import_project (cognitive 22) · ×1
  • projects.import_project (cognitive 22) src/solace_agent_mesh/gateway/http_sse/routers/projects.py:1011 — projects.import_project has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, error handling 5, boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · prompts.get_all_prompt_groups (cognitive 22) · ×1
  • prompts.get_all_prompt_groups (cognitive 22) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:194 — prompts.get_all_prompt_groups has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 10, boolean chains 5, error handling 3, if/else 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._get_actual_event_purpose (cognitive 22) · ×1
  • test_declarative_runner._get_actual_event_purpose (cognitive 22) tests/integration/scenarios_declarative/test_declarative_runner.py:2515 — test_declarative_runner._get_actual_event_purpose has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MemoryDiffReportGenerator._format_node_and_children (cognitive 22) · ×1
  • MemoryDiffReportGenerator._format_node_and_children (cognitive 22) tests/sam-test-infrastructure/src/sam_test_infrastructure/memory_monitor/diff_generator.py:218 — MemoryDiffReportGenerator._format_node_and_children has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 3, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · create_cmd.setup_plugin_type_src (cognitive 21) · ×1
  • create_cmd.setup_plugin_type_src (cognitive 21) cli/commands/plugin_cmd/create_cmd.py:43 — create_cmd.setup_plugin_type_src has cognitive complexity 21 (threshold 15). Drivers by points: error handling 19, boolean chains 1, if/else 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · tools_cmd.tools_to_json (cognitive 21) · ×1
  • tools_cmd.tools_to_json (cognitive 21) cli/commands/tools_cmd.py:172 — tools_cmd.tools_to_json has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 6, error handling 3, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BaseProxyComponent._update_agent_card_for_proxy (cognitive 21) · ×1
  • BaseProxyComponent._update_agent_card_for_proxy (cognitive 21) src/solace_agent_mesh/agent/proxies/base/component.py:341 — BaseProxyComponent._update_agent_card_for_proxy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, boolean chains 4, loops 3, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StructuredInvocationHandler._finalize_structured_invocation (cognitive 21) · ×1
  • StructuredInvocationHandler._finalize_structured_invocation (cognitive 21) src/solace_agent_mesh/agent/sac/structured_invocation/handler.py:803 — StructuredInvocationHandler._finalize_structured_invocation has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, ternaries 3, boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · image_tools.create_image_from_description (cognitive 21) · ×1
  • image_tools.create_image_from_description (cognitive 21) src/solace_agent_mesh/agent/tools/image_tools.py:39 — image_tools.create_image_from_description has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, error handling 7, boolean chains 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · LocalFileIdentityService.search_users (cognitive 21) · ×1
  • LocalFileIdentityService.search_users (cognitive 21) src/solace_agent_mesh/common/services/providers/local_file_identity_service.py:113 — LocalFileIdentityService.search_users has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 4, ternaries 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BaseGatewayComponent.submit_a2a_task (cognitive 21) · ×1
  • BaseGatewayComponent.submit_a2a_task (cognitive 21) src/solace_agent_mesh/gateway/base/component.py:326 — BaseGatewayComponent.submit_a2a_task has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, error handling 3, boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · prompts.update_prompt_group (cognitive 21) · ×1
  • prompts.update_prompt_group (cognitive 21) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:543 — prompts.update_prompt_group has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8, boolean chains 5, ternaries 5, error handling 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · FeedbackService._publish_feedback_event (cognitive 21) · ×1
  • FeedbackService._publish_feedback_event (cognitive 21) src/solace_agent_mesh/gateway/http_sse/services/feedback_service.py:165 — FeedbackService._publish_feedback_event has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, error handling 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SessionService.get_session_messages_from_tasks (cognitive 21) · ×1
  • SessionService.get_session_messages_from_tasks (cognitive 21) src/solace_agent_mesh/gateway/http_sse/services/session_service.py:608 — SessionService.get_session_messages_from_tasks has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 10, if/else 8, loops 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DAGExecutor._handle_control_node_child_completion (cognitive 21) · ×1
  • DAGExecutor._handle_control_node_child_completion (cognitive 21) src/solace_agent_mesh/workflow/dag_executor.py:1161 — DAGExecutor._handle_control_node_child_completion has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, ternaries 2, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers.handle_agent_response (cognitive 21) · ×1
  • event_handlers.handle_agent_response (cognitive 21) src/solace_agent_mesh/workflow/protocol/event_handlers.py:267 — event_handlers.handle_agent_response has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, error handling 4, ternaries 3, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_downstream_auth_headers (cognitive 21) · ×1
  • test_declarative_runner._assert_downstream_auth_headers (cognitive 21) tests/integration/scenarios_declarative/test_declarative_runner.py:2377 — test_declarative_runner._assert_downstream_auth_headers has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_stress._precompile_llm_responses (cognitive 21) · ×1
  • test_stress._precompile_llm_responses (cognitive 21) tests/system/test_stress.py:176 — test_stress._precompile_llm_responses has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, loops 9 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · agent_cmd.create_agent_config (cognitive 20) · ×1
  • agent_cmd.create_agent_config (cognitive 20) cli/commands/add_cmd/agent_cmd.py:339 — agent_cmd.create_agent_config has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 5, error handling 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · PluginScraper.install_plugin_cli (cognitive 20) · ×1
  • PluginScraper.install_plugin_cli (cognitive 20) config_portal/backend/plugin_catalog/scraper.py:499 — PluginScraper.install_plugin_cli has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, error handling 4, boolean chains 2, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers.handle_sam_event (cognitive 20) · ×1
  • event_handlers.handle_sam_event (cognitive 20) src/solace_agent_mesh/agent/protocol/event_handlers.py:2902 — event_handlers.handle_sam_event has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, error handling 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent._publish_status_update_with_buffer_flush (cognitive 20) · ×1
  • SamAgentComponent._publish_status_update_with_buffer_flush (cognitive 20) src/solace_agent_mesh/agent/sac/component.py:1909 — SamAgentComponent._publish_status_update_with_buffer_flush has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · resolver._log_data_state (cognitive 20) · ×1
  • resolver._log_data_state (cognitive 20) src/solace_agent_mesh/common/utils/embeds/resolver.py:32 — resolver._log_data_state has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 12, if/else 5, error handling 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · initializer.initialize (cognitive 20) · ×1
  • initializer.initialize (cognitive 20) src/solace_agent_mesh/common/utils/initializer.py:10 — initializer.initialize has cognitive complexity 20 (threshold 15). Drivers by points: error handling 11, if/else 7, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifacts._resolve_storage_context (cognitive 20) · ×1
  • artifacts._resolve_storage_context (cognitive 20) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:150 — artifacts._resolve_storage_context has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, error handling 4, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IndexingTaskService._rebuild_index_async (cognitive 20) · ×1
  • IndexingTaskService._rebuild_index_async (cognitive 20) src/solace_agent_mesh/gateway/http_sse/services/indexing_task_service.py:383 — IndexingTaskService._rebuild_index_async has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, error handling 8, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ShareService.add_share_users (cognitive 20) · ×1
  • ShareService.add_share_users (cognitive 20) src/solace_agent_mesh/gateway/http_sse/services/share_service.py:764 — ShareService.add_share_users has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, error handling 3, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · task_builder_assistant._validate_task_updates (cognitive 20) · ×1
  • task_builder_assistant._validate_task_updates (cognitive 20) src/solace_agent_mesh/gateway/http_sse/services/task_builder_assistant.py:57 — task_builder_assistant._validate_task_updates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, error handling 3, boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModelConfigService.get_models_from_provider_by_id (cognitive 20) · ×1
  • ModelConfigService.get_models_from_provider_by_id (cognitive 20) src/solace_agent_mesh/services/platform/services/model_config_service.py:194 — ModelConfigService.get_models_from_provider_by_id has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 6, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WorkflowExecutorComponent._execute_exit_handlers (cognitive 20) · ×1
  • WorkflowExecutorComponent._execute_exit_handlers (cognitive 20) src/solace_agent_mesh/workflow/component.py:458 — WorkflowExecutorComponent._execute_exit_handlers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 3, error handling 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DAGExecutor.handle_node_completion (cognitive 20) · ×1
  • DAGExecutor.handle_node_completion (cognitive 20) src/solace_agent_mesh/workflow/dag_executor.py:1063 — DAGExecutor.handle_node_completion has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 3, ternaries 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · conditional._eval_node (cognitive 20) · ×1
  • conditional._eval_node (cognitive 20) src/solace_agent_mesh/workflow/flow_control/conditional.py:60 — conditional._eval_node has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · conftest.mcp_server_harness (cognitive 20) · ×1
  • conftest.mcp_server_harness (cognitive 20) tests/integration/conftest.py:177 — conftest.mcp_server_harness has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, error handling 6, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TestGatewayComponent._translate_external_input (cognitive 20) · ×1
  • TestGatewayComponent._translate_external_input (cognitive 20) tests/sam-test-infrastructure/src/sam_test_infrastructure/gateway_interface/component.py:79 — TestGatewayComponent._translate_external_input has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 3, loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TestGatewayComponent.clear_captured_outputs (cognitive 20) · ×1
  • TestGatewayComponent.clear_captured_outputs (cognitive 20) tests/sam-test-infrastructure/src/sam_test_infrastructure/gateway_interface/component.py:465 — TestGatewayComponent.clear_captured_outputs has cognitive complexity 20 (threshold 15). Drivers by points: error handling 8, loops 8, if/else 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · run_cmd.run (cognitive 19) · ×1
  • run_cmd.run (cognitive 19) cli/commands/run_cmd.py:58 — run_cmd.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, error handling 2, loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CSSProcessor.inline_modal_assets (cognitive 19) · ×1
  • CSSProcessor.inline_modal_assets (cognitive 19) evaluation/report_generator.py:300 — CSSProcessor.inline_modal_assets has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, error handling 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · runner._schedule_finalization (cognitive 19) · ×1
  • runner._schedule_finalization (cognitive 19) src/solace_agent_mesh/agent/adk/runner.py:1475 — runner._schedule_finalization has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 4, ternaries 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent._remove_tool (cognitive 19) · ×1
  • SamAgentComponent._remove_tool (cognitive 19) src/solace_agent_mesh/agent/sac/component.py:1176 — SamAgentComponent._remove_tool has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · deep_research_tools._extract_text_from_llm_response (cognitive 19) · ×1
  • deep_research_tools._extract_text_from_llm_response (cognitive 19) src/solace_agent_mesh/agent/tools/deep_research_tools.py:41 — deep_research_tools._extract_text_from_llm_response has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 8 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DynamicTool.run_async (cognitive 19) · ×1
  • DynamicTool.run_async (cognitive 19) src/solace_agent_mesh/agent/tools/dynamic_tool.py:191 — DynamicTool.run_async has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 2, ternaries 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · index_search_tools._validate_and_extract_zip (cognitive 19) · ×1
  • index_search_tools._validate_and_extract_zip (cognitive 19) src/solace_agent_mesh/agent/tools/index_search_tools.py:45 — index_search_tools._validate_and_extract_zip has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifact.prepare_file_part_for_publishing (cognitive 19) · ×1
  • artifact.prepare_file_part_for_publishing (cognitive 19) src/solace_agent_mesh/common/a2a/artifact.py:94 — artifact.prepare_file_part_for_publishing has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, error handling 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · resolver.resolve_embeds_recursively_in_string (cognitive 19) · ×1
  • resolver.resolve_embeds_recursively_in_string (cognitive 19) src/solace_agent_mesh/common/utils/embeds/resolver.py:701 — resolver.resolve_embeds_recursively_in_string has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 4, error handling 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SSEManager.close_all_for_task (cognitive 19) · ×1
  • SSEManager.close_all_for_task (cognitive 19) src/solace_agent_mesh/gateway/http_sse/sse_manager.py:596 — SSEManager.close_all_for_task has cognitive complexity 19 (threshold 15). Drivers by points: error handling 9, if/else 8, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DeclarativeAgentExecutor.execute (cognitive 19) · ×1
  • DeclarativeAgentExecutor.execute (cognitive 19) tests/integration/test_support/a2a_agent/executor.py:24 — DeclarativeAgentExecutor.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 2, error handling 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · catalog_cmd.catalog (cognitive 18) · ×1
  • catalog_cmd.catalog (cognitive 18) cli/commands/plugin_cmd/catalog_cmd.py:59 — catalog_cmd.catalog has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, error handling 3, boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · MessageAssembler._process_status_update (cognitive 18) · ×1
  • MessageAssembler._process_status_update (cognitive 18) cli/commands/task_cmd/message_assembler.py:75 — MessageAssembler._process_status_update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, ternaries 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SAMRestClient._invoke_async (cognitive 18) · ×1
  • SAMRestClient._invoke_async (cognitive 18) client/sam-rest-client/src/sam_rest_client/client.py:204 — SAMRestClient._invoke_async has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, error handling 7, loops 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MCPContentProcessor._create_parsed_data_summary (cognitive 18) · ×1
  • MCPContentProcessor._create_parsed_data_summary (cognitive 18) src/solace_agent_mesh/agent/adk/mcp_content_processor.py:566 — MCPContentProcessor._create_parsed_data_summary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, ternaries 6, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · lite_llm.calculate_content_tokens (cognitive 18) · ×1
  • lite_llm.calculate_content_tokens (cognitive 18) src/solace_agent_mesh/agent/adk/models/lite_llm.py:434 — lite_llm.calculate_content_tokens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, ternaries 6, error handling 2, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FencedBlockStreamParser._process_in_block (cognitive 18) · ×1
  • FencedBlockStreamParser._process_in_block (cognitive 18) src/solace_agent_mesh/agent/adk/stream_parser.py:351 — FencedBlockStreamParser._process_in_block has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StructuredInvocationHandler._return_structured_result (cognitive 18) · ×1
  • StructuredInvocationHandler._return_structured_result (cognitive 18) src/solace_agent_mesh/agent/sac/structured_invocation/handler.py:1213 — StructuredInvocationHandler._return_structured_result has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, error handling 3, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · builtin_artifact_tools._internal_create_artifact (cognitive 18) · ×1
  • builtin_artifact_tools._internal_create_artifact (cognitive 18) src/solace_agent_mesh/agent/tools/builtin_artifact_tools.py:51 — builtin_artifact_tools._internal_create_artifact has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, error handling 5, ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · deep_research_tools._parse_json_from_llm_response (cognitive 18) · ×1
  • deep_research_tools._parse_json_from_llm_response (cognitive 18) src/solace_agent_mesh/agent/tools/deep_research_tools.py:88 — deep_research_tools._parse_json_from_llm_response has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 6, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · 20251023_add_soft_delete_and_search._upgrade_standard (cognitive 18) · ×1
  • 20251023_add_soft_delete_and_search._upgrade_standard (cognitive 18) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:30 — 20251023_add_soft_delete_and_search._upgrade_standard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · 20251023_add_soft_delete_and_search._upgrade_mysql (cognitive 18) · ×1
  • 20251023_add_soft_delete_and_search._upgrade_mysql (cognitive 18) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:79 — 20251023_add_soft_delete_and_search._upgrade_mysql has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · 20251023_add_soft_delete_and_search.downgrade (cognitive 18) · ×1
  • 20251023_add_soft_delete_and_search.downgrade (cognitive 18) src/solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py:128 — 20251023_add_soft_delete_and_search.downgrade has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebUIBackendComponent._ensure_scheduler_result_flow_is_running (cognitive 18) · ×1
  • WebUIBackendComponent._ensure_scheduler_result_flow_is_running (cognitive 18) src/solace_agent_mesh/gateway/http_sse/component.py:808 — WebUIBackendComponent._ensure_scheduler_result_flow_is_running has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SSEEventBufferRepository.buffer_events_batch (cognitive 18) · ×1
  • SSEEventBufferRepository.buffer_events_batch (cognitive 18) src/solace_agent_mesh/gateway/http_sse/repository/sse_event_buffer_repository.py:142 — SSEEventBufferRepository.buffer_events_batch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, boolean chains 3, loops 3, error handling 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · artifacts.get_specific_artifact_version (cognitive 18) · ×1
  • artifacts.get_specific_artifact_version (cognitive 18) src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1506 — artifacts.get_specific_artifact_version has cognitive complexity 18 (threshold 15). Drivers by points: error handling 8, if/else 8, boolean chains 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProjectService.create_project (cognitive 18) · ×1
  • ProjectService.create_project (cognitive 18) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:307 — ProjectService.create_project has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, ternaries 5, boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ShareService.fork_shared_chat (cognitive 18) · ×1
  • ShareService.fork_shared_chat (cognitive 18) src/solace_agent_mesh/gateway/http_sse/services/share_service.py:1010 — ShareService.fork_shared_chat has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 4, boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · task_builder_assistant._validate_inline_component (cognitive 18) · ×1
  • task_builder_assistant._validate_inline_component (cognitive 18) src/solace_agent_mesh/gateway/http_sse/services/task_builder_assistant.py:106 — task_builder_assistant._validate_inline_component has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AgentCaller._construct_agent_message (cognitive 18) · ×1
  • AgentCaller._construct_agent_message (cognitive 18) src/solace_agent_mesh/workflow/agent_caller.py:326 — AgentCaller._construct_agent_message has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 2, error handling 2, loops 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers.handle_task_request (cognitive 18) · ×1
  • event_handlers.handle_task_request (cognitive 18) src/solace_agent_mesh/workflow/protocol/event_handlers.py:90 — event_handlers.handle_task_request has cognitive complexity 18 (threshold 15). Drivers by points: error handling 6, if/else 5, ternaries 5, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TestLLMServer._generate_stream_chunks (cognitive 18) · ×1
  • TestLLMServer._generate_stream_chunks (cognitive 18) tests/sam-test-infrastructure/src/sam_test_infrastructure/llm_server/server.py:358 — TestLLMServer._generate_stream_chunks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PluginScraper.clear_git_cache (cognitive 17) · ×1
  • PluginScraper.clear_git_cache (cognitive 17) config_portal/backend/plugin_catalog/scraper.py:57 — PluginScraper.clear_git_cache has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DynamicModelProvider._ensure_config_listener_flow_is_running (cognitive 17) · ×1
  • DynamicModelProvider._ensure_config_listener_flow_is_running (cognitive 17) src/solace_agent_mesh/agent/adk/models/dynamic_model_provider.py:251 — DynamicModelProvider._ensure_config_listener_flow_is_running has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · services.create_session_service_from_config (cognitive 17) · ×1
  • services.create_session_service_from_config (cognitive 17) src/solace_agent_mesh/agent/adk/services.py:579 — services.create_session_service_from_config has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers.handle_agent_card_message (cognitive 17) · ×1
  • event_handlers.handle_agent_card_message (cognitive 17) src/solace_agent_mesh/agent/protocol/event_handlers.py:1824 — event_handlers.handle_agent_card_message has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SamAgentComponent.finalize_task_error (cognitive 17) · ×1
  • SamAgentComponent.finalize_task_error (cognitive 17) src/solace_agent_mesh/agent/sac/component.py:3021 — SamAgentComponent.finalize_task_error has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 6, boolean chains 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · audio_tools.text_to_speech (cognitive 17) · ×1
  • audio_tools.text_to_speech (cognitive 17) src/solace_agent_mesh/agent/tools/audio_tools.py:606 — audio_tools.text_to_speech has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, error handling 3. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · deep_research_tools._fetch_selected_sources (cognitive 17) · ×1
  • deep_research_tools._fetch_selected_sources (cognitive 17) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1562 — deep_research_tools._fetch_selected_sources has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, ternaries 5, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OAuth2RetryClient._execute_with_retry (cognitive 17) · ×1
  • OAuth2RetryClient._execute_with_retry (cognitive 17) src/solace_agent_mesh/common/oauth/oauth_client.py:341 — OAuth2RetryClient._execute_with_retry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 6, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · modifiers._parse_modifier_chain (cognitive 17) · ×1
  • modifiers._parse_modifier_chain (cognitive 17) src/solace_agent_mesh/common/utils/embeds/modifiers.py:743 — modifiers._parse_modifier_chain has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebUIBackendComponent._ensure_visualization_flow_is_running (cognitive 17) · ×1
  • WebUIBackendComponent._ensure_visualization_flow_is_running (cognitive 17) src/solace_agent_mesh/gateway/http_sse/component.py:509 — WebUIBackendComponent._ensure_visualization_flow_is_running has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · WebUIBackendComponent._ensure_task_logger_flow_is_running (cognitive 17) · ×1
  • WebUIBackendComponent._ensure_task_logger_flow_is_running (cognitive 17) src/solace_agent_mesh/gateway/http_sse/component.py:693 — WebUIBackendComponent._ensure_task_logger_flow_is_running has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · WebUIBackendComponent._scheduler_result_loop (cognitive 17) · ×1
  • WebUIBackendComponent._scheduler_result_loop (cognitive 17) src/solace_agent_mesh/gateway/http_sse/component.py:899 — WebUIBackendComponent._scheduler_result_loop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, error handling 6, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WebUIBackendComponent._remove_visualization_subscription_nolock (cognitive 17) · ×1
  • WebUIBackendComponent._remove_visualization_subscription_nolock (cognitive 17) src/solace_agent_mesh/gateway/http_sse/component.py:1414 — WebUIBackendComponent._remove_visualization_subscription_nolock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, error handling 2 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · feedback.get_feedback (cognitive 17) · ×1
  • feedback.get_feedback (cognitive 17) src/solace_agent_mesh/gateway/http_sse/routers/feedback.py:42 — feedback.get_feedback has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 5, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProjectService.update_project (cognitive 17) · ×1
  • ProjectService.update_project (cognitive 17) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:923 — ProjectService.update_project has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 4, ternaries 4 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SessionService.move_session_to_project (cognitive 17) · ×1
  • SessionService.move_session_to_project (cognitive 17) src/solace_agent_mesh/gateway/http_sse/services/session_service.py:342 — SessionService.move_session_to_project has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TaskLoggerService._infer_event_details (cognitive 17) · ×1
  • TaskLoggerService._infer_event_details (cognitive 17) src/solace_agent_mesh/gateway/http_sse/services/task_logger_service.py:288 — TaskLoggerService._infer_event_details has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SyntheticAuthConfig.from_component (cognitive 17) · ×1
  • SyntheticAuthConfig.from_component (cognitive 17) src/solace_agent_mesh/shared/auth/synthetic.py:118 — SyntheticAuthConfig.from_component has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · DAGExecutor._get_inherited_branch (cognitive 17) · ×1
  • DAGExecutor._get_inherited_branch (cognitive 17) src/solace_agent_mesh/workflow/dag_executor.py:310 — DAGExecutor._get_inherited_branch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_concurrent_sessions_with_auth.test_session_isolation_under_load (cognitive 17) · ×1
  • test_concurrent_sessions_with_auth.test_session_isolation_under_load (cognitive 17) tests/integration/apis/persistence/test_concurrent_sessions_with_auth.py:226 — test_concurrent_sessions_with_auth.test_session_isolation_under_load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 6, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StressSSEClient.subscribe_to_task (cognitive 17) · ×1
  • StressSSEClient.subscribe_to_task (cognitive 17) tests/stress/harness/sse_client.py:86 — StressSSEClient.subscribe_to_task has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 3, loops 3, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · reporter.create_comparison_report (cognitive 17) · ×1
  • reporter.create_comparison_report (cognitive 17) tests/stress/metrics/reporter.py:218 — reporter.create_comparison_report has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 8 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · env_step.create_env_file (cognitive 16) · ×1
  • env_step.create_env_file (cognitive 16) cli/commands/init_cmd/env_step.py:51 — env_step.create_env_file has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 4, loops 2, ternaries 2, error handling 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · FilesystemArtifactService.list_artifact_keys (cognitive 16) · ×1
  • FilesystemArtifactService.list_artifact_keys (cognitive 16) src/solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py:275 — FilesystemArtifactService.list_artifact_keys has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, error handling 4, loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · callbacks.auto_continue_on_max_tokens_callback (cognitive 16) · ×1
  • callbacks.auto_continue_on_max_tokens_callback (cognitive 16) src/solace_agent_mesh/agent/adk/callbacks.py:2747 — callbacks.auto_continue_on_max_tokens_callback has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · patch_adk._patch_get_contents (cognitive 16) · ×1
  • patch_adk._patch_get_contents (cognitive 16) src/solace_agent_mesh/agent/sac/patch_adk.py:81 — patch_adk._patch_get_contents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · builtin_data_analysis_tools.create_chart_from_plotly_config (cognitive 16) · ×1
  • builtin_data_analysis_tools.create_chart_from_plotly_config (cognitive 16) src/solace_agent_mesh/agent/tools/builtin_data_analysis_tools.py:96 — builtin_data_analysis_tools.create_chart_from_plotly_config has cognitive complexity 16 (threshold 15). Drivers by points: error handling 9, if/else 7 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · deep_research_tools._prepare_findings_for_report (cognitive 16) · ×1
  • deep_research_tools._prepare_findings_for_report (cognitive 16) src/solace_agent_mesh/agent/tools/deep_research_tools.py:1655 — deep_research_tools._prepare_findings_for_report has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, loops 4, ternaries 3, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · converter._parse_string_to_list_of_dicts (cognitive 16) · ×1
  • converter._parse_string_to_list_of_dicts (cognitive 16) src/solace_agent_mesh/common/utils/embeds/converter.py:20 — converter._parse_string_to_list_of_dicts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, error handling 4 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · template_resolver.resolve_template_blocks_in_string (cognitive 16) · ×1
  • template_resolver.resolve_template_blocks_in_string (cognitive 16) src/solace_agent_mesh/common/utils/templates/template_resolver.py:24 — template_resolver.resolve_template_blocks_in_string has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 4, error handling 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GenericGatewayComponent.get_user_identity (cognitive 16) · ×1
  • GenericGatewayComponent.get_user_identity (cognitive 16) src/solace_agent_mesh/gateway/generic/component.py:295 — GenericGatewayComponent.get_user_identity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GenericGatewayComponent._task_to_sam_error (cognitive 16) · ×1
  • GenericGatewayComponent._task_to_sam_error (cognitive 16) src/solace_agent_mesh/gateway/generic/component.py:1100 — GenericGatewayComponent._task_to_sam_error has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · main.http_exception_handler (cognitive 16) · ×1
  • main.http_exception_handler (cognitive 16) src/solace_agent_mesh/gateway/http_sse/main.py:393 — main.http_exception_handler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AudioService.generate_speech_polly (cognitive 16) · ×1
  • AudioService.generate_speech_polly (cognitive 16) src/solace_agent_mesh/gateway/http_sse/services/audio_service.py:807 — AudioService.generate_speech_polly has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, error handling 6, boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · BackgroundTaskMonitor.check_timeouts (cognitive 16) · ×1
  • BackgroundTaskMonitor.check_timeouts (cognitive 16) src/solace_agent_mesh/gateway/http_sse/services/background_task_monitor.py:43 — BackgroundTaskMonitor.check_timeouts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, error handling 3, boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProjectService.export_project_as_zip (cognitive 16) · ×1
  • ProjectService.export_project_as_zip (cognitive 16) src/solace_agent_mesh/gateway/http_sse/services/project_service.py:1059 — ProjectService.export_project_as_zip has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, boolean chains 4, error handling 3, loops 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NotificationService.notify_execution_complete (cognitive 16) · ×1
  • NotificationService.notify_execution_complete (cognitive 16) src/solace_agent_mesh/gateway/http_sse/services/scheduler/notification_service.py:99 — NotificationService.notify_execution_complete has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, error handling 4, boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · model_configuration_seeder._infer_provider (cognitive 16) · ×1
  • model_configuration_seeder._infer_provider (cognitive 16) src/solace_agent_mesh/services/platform/services/model_configuration_seeder.py:25 — model_configuration_seeder._infer_provider has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 6, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · event_handlers._extract_workflow_input (cognitive 16) · ×1
  • event_handlers._extract_workflow_input (cognitive 16) src/solace_agent_mesh/workflow/protocol/event_handlers.py:34 — event_handlers._extract_workflow_input has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 3, error handling 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · conftest.a2a_message_validator (cognitive 16) · ×1
  • conftest.a2a_message_validator (cognitive 16) tests/integration/conftest.py:2484 — conftest.a2a_message_validator has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 5, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_oauth_token_requests (cognitive 16) · ×1
  • test_declarative_runner._assert_oauth_token_requests (cognitive 16) tests/integration/scenarios_declarative/test_declarative_runner.py:2441 — test_declarative_runner._assert_oauth_token_requests has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 4, error handling 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_declarative_runner._assert_dict_subset (cognitive 16) · ×1
  • test_declarative_runner._assert_dict_subset (cognitive 16) tests/integration/scenarios_declarative/test_declarative_runner.py:2908 — test_declarative_runner._assert_dict_subset has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5, boolean chains 4, loops 4, ternaries 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_helpers.extract_outputs_from_event_list (cognitive 16) · ×1
  • test_helpers.extract_outputs_from_event_list (cognitive 16) tests/integration/scenarios_programmatic/test_helpers.py:83 — test_helpers.extract_outputs_from_event_list has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 2, ternaries 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · A2AMessageValidator.validate_message (cognitive 16) · ×1
  • A2AMessageValidator.validate_message (cognitive 16) tests/sam-test-infrastructure/src/sam_test_infrastructure/a2a_validator/validator.py:201 — A2AMessageValidator.validate_message has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
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. 18 floating ref(s) across 8 workflow file(s), 18 of them mutable BRANCH refs (reported separately, pin those first).
D38 · OSV Dependency Vulnerabilities · Medium vulnerability · ×1
  • Medium vulnerability: [GHSA redacted] config_portal/frontend/package-lock.json — esbuild 0.17.6: [GHSA redacted] — esbuild is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin esbuild to 0.25.0 with an `overrides` entry).
D4 · Code Duplication · Duplicated block (38 lines × 2) · ×1
  • Duplicated block (38 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:89 — src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:89-127 | src/solace_agent_mesh/gateway/http_sse/services/bm25_indexer_service.py:228-265
D4 · Code Duplication · Duplicated block (34 lines × 2) · ×1
  • Duplicated block (34 lines × 2) src/solace_agent_mesh/gateway/http_sse/services/file_converter_service.py:150 — src/solace_agent_mesh/gateway/http_sse/services/file_converter_service.py:150-186 | src/solace_agent_mesh/gateway/http_sse/services/file_converter_service.py:232-265
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×1
  • Duplicated block (31 lines × 2) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:638 — src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:638-668 | src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:703-733
D4 · Code Duplication · Duplicated block (27 lines × 3) · ×1
  • Duplicated block (27 lines × 3) src/solace_agent_mesh/gateway/base/component.py:1071 — src/solace_agent_mesh/gateway/base/component.py:1071-1102 | src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1406-1432 | src/solace_agent_mesh/gateway/http_sse/routers/artifacts.py:1605-1631
D4 · Code Duplication · Duplicated block (25 lines × 4) · ×1
  • Duplicated block (25 lines × 4) src/solace_agent_mesh/gateway/http_sse/services/data_retention_service.py:243 — src/solace_agent_mesh/gateway/http_sse/services/data_retention_service.py:243-267 | src/solace_agent_mesh/gateway/http_sse/services/data_retention_service.py:296-320 | src/solace_agent_mesh/gateway/http_sse/services/data_retention_service.py:354-378 | src/solace_agent_mesh/gateway/http_sse/services/data_retention_service.py:404-428
D4 · Code Duplication · Duplicated block (25 lines × 3) · ×1
  • Duplicated block (25 lines × 3) src/solace_agent_mesh/gateway/base/component.py:717 — src/solace_agent_mesh/gateway/base/component.py:717-742 | src/solace_agent_mesh/gateway/base/component.py:845-870 | src/solace_agent_mesh/gateway/base/component.py:962-986
D4 · Code Duplication · Duplicated block (24 lines × 3) · ×1
  • Duplicated block (24 lines × 3) src/solace_agent_mesh/gateway/base/component.py:781 — src/solace_agent_mesh/gateway/base/component.py:781-804 | src/solace_agent_mesh/gateway/base/component.py:896-919 | src/solace_agent_mesh/gateway/base/component.py:1013-1036
D4 · Code Duplication · Duplicated block (17 lines × 3) · ×1
  • Duplicated block (17 lines × 3) src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:547 — src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:547-567 | src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:621-641 | src/solace_agent_mesh/gateway/http_sse/routers/sessions.py:941-957
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×1
  • Duplicated block (14 lines × 3) src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:1085 — src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:1085-1104 | src/solace_agent_mesh/gateway/http_sse/routers/tasks.py:1189-1202 | src/solace_agent_mesh/gateway/http_sse/services/share_service.py:602-617
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×1
  • Duplicated block (11 lines × 3) src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:516 — src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:516-526 | src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:814-824 | src/solace_agent_mesh/gateway/http_sse/routers/prompts.py:889-899
Recommendation — 17 finding(s)
D16 · Bus Factor · Off-boarding risk · ×6
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 24 significant file(s) lose their only recent owner (largest: src/solace_agent_mesh/agent/tools/deep_research_tools.py). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 10 significant file(s) lose their only recent owner (largest: config_portal/frontend/app/components/steps/agent/AgentToolsStep.tsx). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #3 — If anonymized user #3 becomes unavailable, 6 significant file(s) lose their only recent owner (largest: config_portal/frontend/app/components/PluginCatalogFlow/PluginCatalogFlow.tsx). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #4 — If anonymized user #4 becomes unavailable, 6 significant file(s) lose their only recent owner (largest: src/solace_agent_mesh/shared/auth/synthetic.py). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #5 — If anonymized user #5 becomes unavailable, 5 significant file(s) lose their only recent owner (largest: client/webui/frontend/src/lib/providers/SSEProvider.tsx). Pair on, review, or document these before any departure.
  • Off-boarding risk: anonymized user #6 — If anonymized user #6 becomes unavailable, 5 significant file(s) lose their only recent owner (largest: src/solace_agent_mesh/agent/adk/mcp_content_processor.py). Pair on, review, or document these before any departure.
D38 · OSV Dependency Vulnerabilities · Low CVE · ×3
  • Low CVE: [GHSA redacted] client/webui/frontend/package-lock.json — @babel/core 7.29.0: [GHSA redacted] — @babel/core is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin @babel/core to 7.29.6 with an `overrides` entry). (in 2 lockfiles)
  • Low CVE: [GHSA redacted] config_portal/frontend/package-lock.json — body-parser 1.20.4: [GHSA redacted] — body-parser is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin body-parser to 1.20.6 with an `overrides` entry).
  • Low CVE: [GHSA redacted] client/webui/frontend/package-lock.json — diff 7.0.0: [GHSA redacted] — diff is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (— 8.0.3 is a MAJOR ahead of the resolved 7.0.0, so an `overrides` pin would force a breaking version under a dependent written against 7.0.0; upgrading the declaring package is the remedy, and where no patched release exists in your major line, record the exposure instead).
D11 · Test Reliability · Test reliability not included · ×1
  • Test reliability not included — Test source is present (.ts, .tsx, .py) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 8 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (69 single-owned of 681 analysed files in total).
D29 · Static Analysis (SAST) · Low · ×1
  • Low: avoid-sqlalchemy-text src/solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py:274 — sqlalchemy.text passes the constructed SQL statement to the database mostly unchanged. This means that the usual SQL injection protections are not applied and this function is vulnerable to SQL injection if user input can reach here. Use normal SQLAlchemy operators (such as `or_()`, `and_()`, etc.) to construct SQL. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
D31 · IaC & Container Security · Low IaC · ×1
  • Low IaC: DS-0026 Dockerfile — No HEALTHCHECK defined
D34 · Knowledge Freshness · Further orphaned files (smaller) · ×1
  • Further orphaned files (smaller) — 70 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than listed individually (71 orphaned of 681 analysed files in total).
D36 · Supply-chain Provenance & Signing · No SBOM · ×1
  • No SBOM — No SBOM generation or committed SBOM found — produce one with what your ecosystem ships (`cyclonedx-py` over the resolved Python environment/lockfile, `syft` (or `anchore/sbom-action` in CI) over the source tree or released image). Publish it as a release asset (`*.spdx.json` / `*.cdx.json`) so consumers can see what they are installing.
D38 · OSV Dependency Vulnerabilities · Low vulnerability · ×1
  • Low vulnerability: [GHSA redacted] client/webui/frontend/package-lock.json — esbuild 0.27.7: [GHSA redacted] — esbuild is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin esbuild to 0.28.1 with an `overrides` entry).
D8 · Code Coverage · Coverage not included · ×1
  • Coverage not included — suite not readable by the collector — Coverage NOT READ here — but this repository measures it: a coverage step in CI (`pytest tests/ --ignore=tests/integration --cov --cov`) show(s) coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.ts, .tsx, .py), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored. To have the real number read, produce a coverage report in a standard format (lcov — `vitest --coverage`, `jest --coverage`, `bun test --coverage --coverage-reporter=lcov`, or `nyc`, or `coverage run -m pytest` then `coverage xml`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored.
Info — 2 finding(s)
D12 · Dependency Hygiene · Dependency hygiene not measured · ×1
  • Dependency hygiene not measured — dependency manifest found but not parsed for hygiene — This repository's dependency manifest (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), package.json) was found, but this pass cannot parse it for hygiene, so no package was assessed. Zero packages read is NOT a clean dependency tree, so this is NOT SCORED — a gap in the analyzer, not a verdict about this repository. This row is about dependency HYGIENE — outdated, deprecated or unmaintained direct dependencies; known CVEs in the same dependency graph are a separate question, reported under D38 wherever the manifest is OSV-readable.
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 .0artifacts/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 .51artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnone (no readable dependency manifest)none (no readable dependency manifest): not present in this environment0
D31 · IaC & Container Securitytrivytrivy config --format json --quiet .2artifacts/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
D37 · Vulnerability-disclosure Policydisclosuredisclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner --format json --recursive .36artifacts/raw/osv-scanner.json
D40 · Network Egress Confinementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0
D41 · Kernel & Syscall Confinementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0
D42 · Runtime Threat Enforcementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0

Run 019fadfd-4cf5-789b-9a9e-50edbf3d53c9 · 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