Public report of Atmosphere/atmosphere, published 22 October 2026. It has the same score, grades and number of findings as the full report. The details of security findings (where they are in the code, which known vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey → Signed and filed in the standard's public register, 22 October 2026, 20:00 UTC · Survey ID cd_7b0b2ade5d8a48389297e3def661a86f

Atmosphere/atmosphere

Measured 22 October 2026, 19:30 UTC, at code version 9581e62

CAI score 49out of 100 At risk Down 11 since the last survey

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A large codebase: 302,537 lines of product code in 61 projects, tests not counted · Estimated rebuild effort: about 4.5 person-years · Weakest lens: Accessibility, 39

Findings by how serious they are

225 critical 1731 serious 152 minor

15 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.

This survey was produced by

Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
22 October 2026, 19:30 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that implements it, and today Watchdog is the only one that does.

A critical security finding is open, such as a library with a known critical vulnerability or a password or key found in the code. The score itself is unchanged, but its band shows At risk until the finding is fixed. See the Security and Compliance lens.

The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

85of 89 dimensions measured by tools. The other 4 are advisory notes from an AI model, which explain the code but don't count towards the score.
2085of 2108 findings point to an exact file and line, so you can open each one in the code. The other 23 concern the repository as a whole, such as missing documentation.
89dimensions across 7 lenses, read from 302,537 lines of product code in 61 projects.
Chapters

Executive summary

Atmosphere/atmosphere scores 49 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged.

The weakest lens counts most in the score, and here that is Accessibility, which scores 39 and is rated Weak. Its Visual & motion safety dimension scores 1 out of 10, and until that reaches 4, Accessibility can't be rated higher than Adequate. The first actions are to resolve the 1 No ADRs found finding(s) in ADR Quality and to reconcile the README with reality: .harness/README.md names `feedback_drift_log.md`, but no file or folder `feedback_drift_log.md` exists; atmosphere.js/README.md names `atmosphere.js/chat`, but no file or folder `atmosphere.js/chat` exists; atmosphere.js/README.md names `atmosphere.js/react`, but no file or folder `atmosphere.js/react` exists; atmosphere.js/README.md names `atmosphere.js/svelte`, but no file or folder `atmosphere.js/svelte` exists; atmosphere.js/README.md names `atmosphere.js/react-native`, but no file or folder `atmosphere.js/react-native` exists, and if Accessibility rose to 70, the score would rise from 49 to about 58.

225 findings are critical: 202 in Static Analysis (SAST), six in Forms & labels, five in Keyboard semantics, four in Change Coupling, three in Dependency Vulnerabilities, two in License Compliance, two in Secrets (history) and one in IaC & Container Security.

Watchdog couldn't measure 14 dimensions in this code, among them Code Coverage, Test Reliability and Dependency Hygiene, so they are left out of the score. The product code is 302,537 lines, which would take an estimated 4.5 person-years, around €660,000, to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts for The lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Accessibility 39 · counts for 46%Maturity 44 · counts for 25%Production Readiness 64 · counts for 14%Security and Compliance 73 · counts for 8%Code Health 73 · counts for 4%Performance 80 · counts for 2%Architecture 89 · counts for 1%

If Accessibility rose from 39 to 70, the lowest score rated Strong, the score would rise from 49 to about 58.

Code composition: what the lines of code are
Product code 51%Tests 49%
New since the last survey: 466 findings

These 466 critical or serious findings weren't in the previous survey, on 8 October 2026. The first 100 are listed here, and the findings file in the download package lists them all.

  • Cyclomatic Complexity · AiPipeline.executeAdmitted (cyclomatic 73) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • Cyclomatic Complexity · RequestView.detached (cyclomatic 30) modules/ai/src/main/java/org/atmosphere/ai/RunScopedResource.java
  • Cyclomatic Complexity · source_scan.project_columns (cyclomatic 29) scripts/lib/source_scan.py
  • Cyclomatic Complexity · RunReattachSupport.replayPendingRun (cyclomatic 27) modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java
  • Cyclomatic Complexity · index.subscribeStreaming (cyclomatic 25) atmosphere.js/src/streaming/index.ts
  • Cyclomatic Complexity · BaseTransport.captureRunId (cyclomatic 24) atmosphere.js/src/transports/base.ts
  • Cyclomatic Complexity · AtmosphereSpringAiAlibabaEnvironmentPostProcessor.postProcessEnvironment (cyclomatic 23) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java
  • Cyclomatic Complexity · ScopePolicy.<init> (cyclomatic 23) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java
  • Cyclomatic Complexity · WorkspaceExtensions.applyRuntime (cyclomatic 22) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java
  • Cyclomatic Complexity · RoomCatchUp.frames (cyclomatic 21) modules/ai/src/main/java/org/atmosphere/ai/resume/RoomCatchUp.java
  • Cyclomatic Complexity · LongPollingReplies.deliver (cyclomatic 21) modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java
  • Cyclomatic Complexity · AtmosphereConsoleInfoEndpoint.info (cyclomatic 19) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java
  • Cyclomatic Complexity · AtmosphereSpringAiEnvironmentPostProcessor.postProcessEnvironment (cyclomatic 19) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java
  • Cyclomatic Complexity · ScopePolicyResolver.reportScopeOverrides (cyclomatic 19) modules/agent/src/main/java/org/atmosphere/agent/skill/ScopePolicyResolver.java
  • Cyclomatic Complexity · filter_ai_state_sites.main (cyclomatic 19) scripts/lib/filter_ai_state_sites.py
  • Cyclomatic Complexity · source_scan.main (cyclomatic 19) scripts/lib/source_scan.py
  • Cyclomatic Complexity · mathSpans.extractMath (cyclomatic 19) REDACTED
  • Cyclomatic Complexity · ManagedAtmosphereHandler.stateChange (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java
  • Cyclomatic Complexity · RoomCatchUp.mergeCached (cyclomatic 18) modules/ai/src/main/java/org/atmosphere/ai/resume/RoomCatchUp.java
  • Cyclomatic Complexity · AiEnvironment.close (cyclomatic 18) modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java
  • Cyclomatic Complexity · AdkEventAdapter.onEvent (cyclomatic 18) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkEventAdapter.java
  • Cyclomatic Complexity · ToolAwareStreamingResponseHandler.completeRound (cyclomatic 17) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java
  • Cyclomatic Complexity · AiEndpointHandler.prepareTurn (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java
  • Cyclomatic Complexity · RunEventCapturingSession.emit (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventCapturingSession.java
  • Cyclomatic Complexity · AtmosphereProtocol.buildRequest (cyclomatic 17) atmosphere.js/src/utils/protocol.ts
  • Cyclomatic Complexity · SemanticKernelStreamingAdapter.drainToolTurn (cyclomatic 16) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelStreamingAdapter.java
  • Cyclomatic Complexity · SemanticKernelToolBridge.sendToolsUnderTheirOwnNames (cyclomatic 16) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelToolBridge.java
  • Cyclomatic Complexity · ManagedAtmosphereHandler.handleRequest (cyclomatic 16) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java
  • Cyclomatic Complexity · DefaultBroadcaster.removeAtmosphereResource (cyclomatic 16) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java
  • Cyclomatic Complexity · AgentHandler.onRequest (cyclomatic 16) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentHandler.java
  • Cyclomatic Complexity · AtmosphereEmbabelEnvironmentPostProcessor.postProcessEnvironment (cyclomatic 16) modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/AtmosphereEmbabelEnvironmentPostProcessor.kt
  • Cyclomatic Complexity · LongPollingTransport.poll (cyclomatic 16) atmosphere.js/src/transports/long-polling.ts
  • Cyclomatic Complexity · AgUiEventTranslator.translate (cyclomatic 16) modules/spring-boot-starter/frontend/src/transports/agui.ts
  • Cognitive Complexity · AiPipeline.executeAdmitted (cognitive 91) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • Cognitive Complexity · source_scan.project_columns (cognitive 57) scripts/lib/source_scan.py
  • Cognitive Complexity · mathSpans.extractMath (cognitive 48) REDACTED
  • Cognitive Complexity · ManagedAtmosphereHandler.stateChange (cognitive 41) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java
  • Cognitive Complexity · RoomCatchUp.frames (cognitive 36) modules/ai/src/main/java/org/atmosphere/ai/resume/RoomCatchUp.java
  • Cognitive Complexity · ScopePolicy.<init> (cognitive 35) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java
  • Cognitive Complexity · RequestView.detached (cognitive 34) modules/ai/src/main/java/org/atmosphere/ai/RunScopedResource.java
  • Cognitive Complexity · RunReattachSupport.replayPendingRun (cognitive 32) modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java
  • Cognitive Complexity · ScopePolicyResolver.resolve (cognitive 31) modules/agent/src/main/java/org/atmosphere/agent/skill/ScopePolicyResolver.java
  • Cognitive Complexity · index.subscribeStreaming (cognitive 31) atmosphere.js/src/streaming/index.ts
  • Cognitive Complexity · AtmosphereSpringAiAlibabaEnvironmentPostProcessor.postProcessEnvironment (cognitive 30) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java
  • Cognitive Complexity · RoomCatchUp.mergeCached (cognitive 27) modules/ai/src/main/java/org/atmosphere/ai/resume/RoomCatchUp.java
  • Cognitive Complexity · LongPollingReplies.deliver (cognitive 27) modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java
  • Cognitive Complexity · filter_ai_state_sites.main (cognitive 27) scripts/lib/filter_ai_state_sites.py
  • Cognitive Complexity · AtmosphereEmbabelEnvironmentPostProcessor.postProcessEnvironment (cognitive 25) modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/AtmosphereEmbabelEnvironmentPostProcessor.kt
  • Cognitive Complexity · SemanticKernelToolBridge.sendToolsUnderTheirOwnNames (cognitive 24) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelToolBridge.java
  • Cognitive Complexity · ToolAwareStreamingResponseHandler.completeRound (cognitive 24) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java
  • Cognitive Complexity · ManagedAtmosphereHandler.handleRequest (cognitive 23) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java
  • Cognitive Complexity · AiEndpointHandler.prepareTurn (cognitive 23) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java
  • Cognitive Complexity · ScopePolicyResolver.reportScopeOverrides (cognitive 23) modules/agent/src/main/java/org/atmosphere/agent/skill/ScopePolicyResolver.java
  • Cognitive Complexity · InjectableObjectFactory.requestScoped (cognitive 22) modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java
  • Cognitive Complexity · AiEnvironment.close (cognitive 22) modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java
  • Cognitive Complexity · AtmosphereProtocol.buildRequest (cognitive 22) atmosphere.js/src/utils/protocol.ts
  • Cognitive Complexity · AtmosphereSpringAiEnvironmentPostProcessor.postProcessEnvironment (cognitive 21) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java
  • Cognitive Complexity · SemanticKernelAgentRuntime.doExecuteWithHandle (cognitive 21) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java
  • Cognitive Complexity · DefaultBroadcaster.removeAtmosphereResource (cognitive 21) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java
  • Cognitive Complexity · RunReattachSupport.cacheDelivered (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java
  • Cognitive Complexity · Room.onMessage (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/LongPollingRoomReplies.java
  • Cognitive Complexity · AgUiEventMapper.toAgUi (cognitive 19) modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java
  • Cognitive Complexity · SemanticKernelStreamingAdapter.drainToolTurn (cognitive 18) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelStreamingAdapter.java
  • Cognitive Complexity · DurableSessionInterceptor.inspect (cognitive 17) modules/durable-sessions/src/main/java/org/atmosphere/session/DurableSessionInterceptor.java
  • Cognitive Complexity · RunEventCapturingSession.emit (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventCapturingSession.java
  • Cognitive Complexity · AtmosphereConsoleInfoEndpoint.detectEndpoint (cognitive 16) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java
  • Cognitive Complexity · CancelAwareStreamingHandler.onCompleteResponse (cognitive 16) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java
  • Cognitive Complexity · AtmosphereResourceImpl.enterCancelled (cognitive 16) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java
  • Cognitive Complexity · A2aCoordinatorBridge.handlePrompt (cognitive 16) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java
  • Cognitive Complexity · RunEventReplayBuffer.dropOldest (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java
  • Cognitive Complexity · RunEventReplayBuffer.join (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java
  • Cognitive Complexity · RequestView.invoke (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/RunScopedResource.java
  • Cognitive Complexity · AgentScopeEventForwarder.accept (cognitive 16) modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeEventForwarder.java
  • Cognitive Complexity · A2aChatTransport.exchange (cognitive 16) modules/spring-boot-starter/frontend/src/transports/a2a.ts
  • God Classes · TooManyMethods: AiEnvironment modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java
  • God Classes · MethodTooLong: AiPipeline.executeAdmitted modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • God Classes · TooManyMethods: RunEventReplayBuffer modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java
  • God Classes · TooManyMethods: AiConfig modules/ai/src/main/java/org/atmosphere/ai/AiConfig.java
  • God Classes · ClassTooLong: RunReattachSupport modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java
  • God Classes · FileTooLong: composables/useAtmosphereChat.ts modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts
  • God Classes · ClassTooLong: AiEnvironment modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java
  • God Classes · ClassTooLong: LongPollingRoomReplies modules/ai/src/main/java/org/atmosphere/ai/LongPollingRoomReplies.java
  • God Classes · ClassTooLong: RunEventReplayBuffer modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java
  • God Classes · TooManyMethods: BaseTransport atmosphere.js/src/transports/base.ts
  • God Classes · FileTooLong: resume/RunReattachSupport.java modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java
  • God Classes · FileTooLong: ai/LongPollingRoomReplies.java modules/ai/src/main/java/org/atmosphere/ai/LongPollingRoomReplies.java
  • God Classes · ClassTooLong: AiPipeline modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • God Classes · FileTooLong: ai/AiEnvironment.java modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java
  • God Classes · ClassTooLong: AiConfig modules/ai/src/main/java/org/atmosphere/ai/AiConfig.java
  • God Classes · FileTooLong: resume/RunEventReplayBuffer.java modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java
  • God Classes · TooManyMethods: ToolExecutionHelper modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java
  • God Classes · MethodTooLong: AgUiEventMapper.toAgUi modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java
  • God Classes · FunctionTooLong: index.subscribeStreaming atmosphere.js/src/streaming/index.ts
  • God Classes · TooManyMethods: AiPipeline modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • God Classes · TooManyMethods: AtmosphereAiAutoConfiguration modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java
  • God Classes · TooManyMethods: AtmosphereAiAutoConfiguration modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java
  • God Classes · FileTooLong: webtransport/ReactorNettyTransportServer.java modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java
  • God Classes · ClassTooLong: DefaultStreamingSession modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java
  • God Classes · MethodTooLong: EmbabelAgentRuntime.executeAtmosphereNative modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt
  • God Classes · MethodTooLong: SpringAiAlibabaAgentRuntime.doExecute modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaAgentRuntime.java

Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.

Fixed since the last survey: 145 findings

These 145 critical or serious findings were in the previous survey, on 8 October 2026, and are gone from this one. The first 100 are listed here.

  • Cyclomatic Complexity · AiPipeline.execute (cyclomatic 73) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • Cyclomatic Complexity · source_scan.project (cyclomatic 29) scripts/lib/source_scan.py
  • Cyclomatic Complexity · ManagedAtmosphereHandler.onStateChange (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java
  • Cyclomatic Complexity · ToolAwareStreamingResponseHandler.onCompleteResponse (cyclomatic 16) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java
  • Cyclomatic Complexity · ManagedAtmosphereHandler.onRequest (cyclomatic 16) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java
  • Cognitive Complexity · AiPipeline.execute (cognitive 88) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • Cognitive Complexity · source_scan.project (cognitive 57) scripts/lib/source_scan.py
  • Cognitive Complexity · ManagedAtmosphereHandler.onStateChange (cognitive 41) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java
  • Cognitive Complexity · ToolAwareStreamingResponseHandler.onCompleteResponse (cognitive 23) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java
  • Cognitive Complexity · ManagedAtmosphereHandler.onRequest (cognitive 23) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java
  • Cognitive Complexity · A2aAgentTransport.send (cognitive 23) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java
  • Cognitive Complexity · LocalAgentTransport.send (cognitive 19) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/LocalAgentTransport.java
  • God Classes · MethodTooLong: AiPipeline.execute modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • God Classes · FunctionTooLong: useAtmosphereChat.useAtmosphereChat.handleStreamingEvent modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts
  • God Classes · ClassTooLong: useAtmosphereChat modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts
  • Code Duplication · Near-duplicate member pair (29 shared lines) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt
  • Code Duplication · Near-duplicate member pair (25 shared lines) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java
  • Code Duplication · Edited copy of a member (78 corresponding lines) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java
  • Code Duplication · Edited copy of a member (31 corresponding lines) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java
  • Code Duplication · Edited copy of a member (18 corresponding lines) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java
  • Code Duplication · Edited copy of a member (20 corresponding lines) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java
  • Code Duplication · Edited copy of a member (12 corresponding lines) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java
  • Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java
  • Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkRootAgent.java
  • Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java
  • Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java
  • Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java
  • Code Duplication · Duplicated block (62 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java
  • Code Duplication · Duplicated block (23–38 lines × 2) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java
  • Code Duplication · Duplicated block (32–34 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java
  • Code Duplication · Duplicated block (30–31 lines × 2) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java
  • Code Duplication · Duplicated block (28–30 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • Code Duplication · Duplicated block (27–30 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java
  • Code Duplication · Duplicated block (19–23 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java
  • Code Duplication · Duplicated block (11–21 lines × 2) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelStreamingAdapter.java
  • Code Duplication · Duplicated block (18–20 lines × 2) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java
  • Code Duplication · Duplicated block (14–18 lines × 2) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/AtmosphereLangChain4jAutoConfiguration.java
  • Code Duplication · Duplicated block (11–14 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java
  • Code Duplication · Duplicated block (14 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeResolver.java
  • Code Duplication · Duplicated block (13–14 lines × 2) REDACTED
  • Code Duplication · Duplicated block (14 lines × 2) modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java
  • Code Duplication · Duplicated block (13 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java
  • Code Duplication · Duplicated block (4–12 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/processor/PromptMethodInvoker.java
  • Code Duplication · Duplicated block (10–11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java
  • Code Duplication · Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java
  • Code Duplication · Duplicated block (9–11 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java
  • Code Duplication · Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java
  • Code Duplication · Duplicated block (10 lines × 2) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java
  • Code Duplication · Duplicated block (9 lines × 7) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java
  • Code Duplication · Duplicated block (9 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java
  • Code Duplication · Duplicated block (9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java
  • Code Duplication · Duplicated block (8 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java
  • Code Duplication · Duplicated block (8 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • Code Duplication · Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java
  • Code Duplication · Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java
  • Code Duplication · Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java
  • Code Duplication · Duplicated block (7 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java
  • Code Duplication · Duplicated block (6 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java
  • Code Duplication · Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java
  • Code Duplication · Duplicated block (7 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java
  • Code Duplication · Duplicated block (6 lines × 2) modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgentRuntime.java
  • Code Duplication · Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java
  • Code Duplication · Duplicated block (8 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java
  • Code Duplication · Duplicated block (11 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java
  • Code Duplication · Duplicated block (10 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java
  • Code Duplication · Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/rag/InjectionClassifierResolver.java
  • Code Duplication · Duplicated block (8 lines × 2) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java
  • Code Duplication · Duplicated block (7 lines × 2) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaAutoConfiguration.java
  • Code Duplication · Duplicated block (5 lines × 2) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt
  • Code Duplication · Duplicated block (10 lines × 2) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt
  • Code Duplication · Duplicated block (7 lines × 2) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt
  • Code Duplication · Members sharing a duplicated core (20 members, 50+ identical tokens) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java
  • Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java
  • Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java
  • Cohesion (LCOM4) · Low cohesion: Builder (LCOM4 9) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java
  • Cohesion (LCOM4) · Low cohesion: Builder (LCOM4 8) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java
  • Cohesion (LCOM4) · Low cohesion: Builder (LCOM4 5) modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java
  • Test Quality · No assertions: message bubbles display author modules/integration-tests/e2e/quarkus-chat.spec.ts
  • Test Quality · No assertions: message bubbles display author modules/integration-tests/e2e/embedded-jetty-chat.spec.ts
  • Test Quality · No assertions: message bubbles display author modules/integration-tests/e2e/chat.spec.ts
  • Churn × Complexity Hotspots · Hotspot: modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java
  • Churn × Complexity Hotspots · Repeated repair: atmosphere.js/src/transports/long-polling.ts atmosphere.js/src/transports/long-polling.ts
  • Churn × Complexity Hotspots · Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java
  • Churn × Complexity Hotspots · Repeated repair: atmosphere.js/src/utils/protocol.ts atmosphere.js/src/utils/protocol.ts
  • Static Analysis (SAST) · High: REDACTED REDACTED
  • Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High vulnerability: [GHSA redacted] REDACTED
  • Dependency Vulnerabilities · High vulnerability: [GHSA redacted] REDACTED
  • Change Coupling · Change coupling: App.vue ↔ AtmosphereConsoleInfoEndpoint.java modules/spring-boot-starter/frontend/src/App.vue
  • Supply-chain Provenance & Signing · REDACTED
  • Supply-chain Provenance & Signing · REDACTED
  • Supply-chain Provenance & Signing · REDACTED
  • Code Duplication · Forked directory tree (7 identical files, ~532 KB × 2 trees) REDACTED
  • Code Duplication · Forked directory tree (7 identical files, ~532 KB × 2 trees) REDACTED
Rebuild cost: about €660,000 · Estimate
Cost to rebuild€220,000 to €1,100,000, for 3,627 to 11,508 hours of work, about 4.5 person-years for 2 to 9 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 49. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeLarge: 302,537 lines of product code

How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.

Top priorities

The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.

1
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Raises the score by about 7 points · Low effort · ADR Quality
2
Reconcile the README with reality: .harness/README.md names `feedback_drift_log.md`, but no file or folder `feedback_drift_log.md` exists; atmosphere.js/README.md names `atmosphere.js/chat`, but no file or folder `atmosphere.js/chat` exists; atmosphere.js/README.md names `atmosphere.js/react`, but no file or folder `atmosphere.js/react` exists; atmosphere.js/README.md names `atmosphere.js/svelte`, but no file or folder `atmosphere.js/svelte` exists; atmosphere.js/README.md names `atmosphere.js/react-native`, but no file or folder `atmosphere.js/react-native` exists.
Raises the score by about 6 points · Medium effort · Documentation accuracy
3
Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
Raises the score by about 5 points · Medium effort · Visual & motion safety

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Where the investment is most exposed · Value at risk
This code would cost about €660,000 to build again, about 4.5 person-years of work. Its weakest lens is Accessibility, at 39 (Weak). Accessibility is about whether the interface is built so that everyone can use it, including people who can't see the screen or can't use a mouse. Because the weakest lens counts most in the score, work on Accessibility also moves the score most.
Based on: the rebuild estimate · the Accessibility grade · how much each lens counts
What to do: Start with the Accessibility actions in Top priorities.
If you do one thing first · First action
Resolve the 1 No ADRs found finding(s) in ADR Quality. Of all the actions in this report, it raises the score most for the work it takes: about 7 points for low effort, because it clears the 1 ADR Quality findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 7.4 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 2% to 5% on every change. The history of the code shows how much it changes: about 275,696 lines over the last 90 days, which is about 1,118,100 lines a year. At that pace, the extra work comes to an estimated 55.9 to 372.7 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of Watchdog's own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

Architecture — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways — a layering smell or cycle. A clean layered graph has none.

arch atmosphere-a2a atmosphere-a2a atmosphere-ai atmosphere-ai atmosphere-a2a->atmosphere-ai atmosphere-protocol-common atmosphere-protocol-common atmosphere-a2a->atmosphere-protocol-common atmosphere-runtime atmosphere-runtime atmosphere-a2a->atmosphere-runtime atmosphere-admin atmosphere-admin atmosphere-admin->atmosphere-a2a atmosphere-agent atmosphere-agent atmosphere-admin->atmosphere-agent atmosphere-admin->atmosphere-ai atmosphere-ai-test atmosphere-ai-test atmosphere-admin->atmosphere-ai-test atmosphere-coordinator atmosphere-coordinator atmosphere-admin->atmosphere-coordinator atmosphere-mcp atmosphere-mcp atmosphere-admin->atmosphere-mcp atmosphere-admin->atmosphere-runtime atmosphere-agent->atmosphere-a2a atmosphere-agui atmosphere-agui atmosphere-agent->atmosphere-agui atmosphere-agent->atmosphere-ai atmosphere-channels atmosphere-channels atmosphere-agent->atmosphere-channels atmosphere-agent->atmosphere-mcp atmosphere-agent->atmosphere-runtime atmosphere-agui->atmosphere-ai atmosphere-agui->atmosphere-protocol-common atmosphere-agui->atmosphere-runtime atmosphere-ai->atmosphere-runtime atmosphere-ai-spring-boot-starter atmosphere-ai-spring-boot-starter atmosphere-ai-spring-boot-starter->atmosphere-agent atmosphere-ai-spring-boot-starter->atmosphere-ai atmosphere-checkpoint atmosphere-checkpoint atmosphere-ai-spring-boot-starter->atmosphere-checkpoint atmosphere-ai-spring-boot-starter->atmosphere-coordinator atmosphere-spring-boot-starter atmosphere-spring-boot-starter atmosphere-ai-spring-boot-starter->atmosphere-spring-boot-starter atmosphere-ai-test->atmosphere-ai atmosphere-ai-test->atmosphere-runtime atmosphere-channels->atmosphere-ai atmosphere-channels->atmosphere-runtime atmosphere-checkpoint->atmosphere-ai atmosphere-checkpoint->atmosphere-coordinator atmosphere-coordinator->atmosphere-a2a atmosphere-coordinator->atmosphere-agent atmosphere-coordinator->atmosphere-agui atmosphere-coordinator->atmosphere-ai atmosphere-coordinator->atmosphere-channels atmosphere-coordinator->atmosphere-mcp atmosphere-coordinator->atmosphere-runtime atmosphere-durable-sessions atmosphere-durable-sessions atmosphere-durable-sessions->atmosphere-runtime atmosphere-grpc atmosphere-grpc atmosphere-grpc->atmosphere-runtime atmosphere-integration-tests atmosphere-integration-tests atmosphere-integration-tests->atmosphere-a2a atmosphere-integration-tests->atmosphere-agent atmosphere-integration-tests->atmosphere-ai atmosphere-integration-tests->atmosphere-checkpoint atmosphere-integration-tests->atmosphere-coordinator atmosphere-integration-tests->atmosphere-grpc atmosphere-integration-tests->atmosphere-mcp atmosphere-integration-tests->atmosphere-runtime atmosphere-mcp->atmosphere-ai atmosphere-mcp->atmosphere-protocol-common atmosphere-mcp->atmosphere-runtime atmosphere-protocol-common->atmosphere-runtime atmosphere-quarkus-admin-extension atmosphere-quarkus-admin-extension atmosphere-quarkus-admin-extension->atmosphere-admin atmosphere-quarkus-admin-extension->atmosphere-ai atmosphere-quarkus-admin-extension->atmosphere-coordinator atmosphere-quarkus-extension atmosphere-quarkus-extension atmosphere-quarkus-admin-extension->atmosphere-quarkus-extension atmosphere-quarkus-extension->atmosphere-ai atmosphere-quarkus-extension->atmosphere-checkpoint atmosphere-quarkus-extension->atmosphere-runtime atmosphere-spring-boot-starter->atmosphere-a2a atmosphere-spring-boot-starter->atmosphere-admin atmosphere-spring-boot-starter->atmosphere-agent atmosphere-spring-boot-starter->atmosphere-agui atmosphere-spring-boot-starter->atmosphere-ai atmosphere-spring-boot-starter->atmosphere-ai-test atmosphere-spring-boot-starter->atmosphere-checkpoint atmosphere-spring-boot-starter->atmosphere-coordinator atmosphere-spring-boot-starter->atmosphere-durable-sessions atmosphere-spring-boot-starter->atmosphere-grpc atmosphere-spring-boot-starter->atmosphere-mcp atmosphere-spring-boot-starter->atmosphere-runtime atmosphere-spring-boot3-starter atmosphere-spring-boot3-starter atmosphere-spring-boot3-starter->atmosphere-a2a atmosphere-spring-boot3-starter->atmosphere-admin atmosphere-spring-boot3-starter->atmosphere-agent atmosphere-spring-boot3-starter->atmosphere-agui atmosphere-spring-boot3-starter->atmosphere-ai atmosphere-spring-boot3-starter->atmosphere-checkpoint atmosphere-spring-boot3-starter->atmosphere-coordinator atmosphere-spring-boot3-starter->atmosphere-durable-sessions atmosphere-spring-boot3-starter->atmosphere-grpc atmosphere-spring-boot3-starter->atmosphere-mcp atmosphere-spring-boot3-starter->atmosphere-runtime __more__ +41 more projects

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

355 modules, with 728 dependencies between them. 8 loops run through 54 of the modules, marked above the diagonal.

The table shows the 40 modules with the most connections; 315 more are left out to keep it readable.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 atmosphere_js.src.resilience.types2 atmosphere_js.src.streaming.types3 atmosphere_js.src.types4 atmosphere_js.src.transports.base5 org.atmosphere.ai.fs6 org.atmosphere.ai.plan7 org.atmosphere.coordinator.journal8 org.atmosphere.websocket9 atmosphere_js.src.core.atmosphere10 org.atmosphere.inject11 atmosphere_js.src.hooks.react12 atmosphere_js.src.hooks.svelte13 atmosphere_js.src.hooks.vue14 org.atmosphere.util15 org.atmosphere.handler16 org.atmosphere.interceptor17 org.atmosphere.cpr18 org.atmosphere.ai.preset19 org.atmosphere.ai.resume20 org.atmosphere.room21 org.atmosphere.ai.llm22 org.atmosphere.ai.annotation23 org.atmosphere.ai.governance24 org.atmosphere.ai.tool25 org.atmosphere.ai.approval26 org.atmosphere.ai27 org.atmosphere.a2a.runtime28 org.atmosphere.ai.memory29 org.atmosphere.ai.processor30 org.atmosphere.channels31 org.atmosphere.checkpoint32 org.atmosphere.coordinator.fleet33 org.atmosphere.verifier34 org.atmosphere.admin.ai35 org.atmosphere.agent.processor36 org.atmosphere.coordinator.processor37 org.atmosphere.integrationtests.ai38 org.atmosphere.quarkus.runtime39 org.atmosphere.admin40 org.atmosphere.spring.boot
1 atmosphere_js.src.resilience.types
2 atmosphere_js.src.streaming.types
3 atmosphere_js.src.types
4 atmosphere_js.src.transports.base5
5 org.atmosphere.ai.fs131
6 org.atmosphere.ai.plan131
7 org.atmosphere.coordinator.journal11
8 org.atmosphere.websocket1135
9 atmosphere_js.src.core.atmosphere41
10 org.atmosphere.inject2143
11 atmosphere_js.src.hooks.react121
12 atmosphere_js.src.hooks.svelte274
13 atmosphere_js.src.hooks.vue1294
14 org.atmosphere.util132
15 org.atmosphere.handler114
16 org.atmosphere.interceptor1113
17 org.atmosphere.cpr106523
18 org.atmosphere.ai.preset112
19 org.atmosphere.ai.resume1323118
20 org.atmosphere.room122
21 org.atmosphere.ai.llm125444
22 org.atmosphere.ai.annotation21114
23 org.atmosphere.ai.governance4218
24 org.atmosphere.ai.tool3134
25 org.atmosphere.ai.approval453
26 org.atmosphere.ai22439231355
27 org.atmosphere.a2a.runtime32
28 org.atmosphere.ai.memory31116
29 org.atmosphere.ai.processor113015211326
30 org.atmosphere.channels4
31 org.atmosphere.checkpoint714
32 org.atmosphere.coordinator.fleet228
33 org.atmosphere.verifier11
34 org.atmosphere.admin.ai1621
35 org.atmosphere.agent.processor19141463
36 org.atmosphere.coordinator.processor361141345
37 org.atmosphere.integrationtests.ai11141210712
38 org.atmosphere.quarkus.runtime1811224
39 org.atmosphere.admin1111
40 org.atmosphere.spring.boot22112471715151112241412
Uses a module listed above itPart of a loopThe module itself
1 atmosphere_js.src.resilience.types2 atmosphere_js.src.streaming.types3 atmosphere_js.src.types4 atmosphere_js.src.transports.base5 org.atmosphere.ai.fs6 org.atmosphere.ai.plan7 org.atmosphere.coordinator.journal8 org.atmosphere.websocket9 atmosphere_js.src.core.atmosphere10 org.atmosphere.inject11 atmosphere_js.src.hooks.react12 atmosphere_js.src.hooks.svelte13 atmosphere_js.src.hooks.vue14 org.atmosphere.util15 org.atmosphere.handler16 org.atmosphere.interceptor17 org.atmosphere.cpr18 org.atmosphere.ai.preset19 org.atmosphere.ai.resume20 org.atmosphere.room21 org.atmosphere.ai.llm22 org.atmosphere.ai.annotation23 org.atmosphere.ai.governance24 org.atmosphere.ai.tool25 org.atmosphere.ai.approval26 org.atmosphere.ai27 org.atmosphere.a2a.runtime28 org.atmosphere.ai.memory29 org.atmosphere.ai.processor30 org.atmosphere.channels31 org.atmosphere.checkpoint32 org.atmosphere.coordinator.fleet33 org.atmosphere.verifier34 org.atmosphere.admin.ai35 org.atmosphere.agent.processor36 org.atmosphere.coordinator.processor37 org.atmosphere.integrationtests.ai38 org.atmosphere.quarkus.runtime39 org.atmosphere.admin40 org.atmosphere.spring.bootatmosphere_js.src.resilience.types1atmosphere_js.src.streaming.types2atmosphere_js.src.types3atmosphere_js.src.transports.base4org.atmosphere.ai.fs5org.atmosphere.ai.plan6org.atmosphere.coordinator.journal7org.atmosphere.websocket8atmosphere_js.src.core.atmosphere9org.atmosphere.inject10atmosphere_js.src.hooks.react11atmosphere_js.src.hooks.svelte12atmosphere_js.src.hooks.vue13org.atmosphere.util14org.atmosphere.handler15org.atmosphere.interceptor16org.atmosphere.cpr17org.atmosphere.ai.preset18org.atmosphere.ai.resume19org.atmosphere.room20org.atmosphere.ai.llm21org.atmosphere.ai.annotation22org.atmosphere.ai.governance23org.atmosphere.ai.tool24org.atmosphere.ai.approval25org.atmosphere.ai26org.atmosphere.a2a.runtime27org.atmosphere.ai.memory28org.atmosphere.ai.processor29org.atmosphere.channels30org.atmosphere.checkpoint31org.atmosphere.coordinator.fleet32org.atmosphere.verifier33org.atmosphere.admin.ai34org.atmosphere.agent.processor35org.atmosphere.coordinator.processor36org.atmosphere.integrationtests.ai37org.atmosphere.quarkus.runtime38org.atmosphere.admin39org.atmosphere.spring.boot4051311311111354121431212741294132114111310652311213231181221254442111442183134453224392313553231116113015211326471422811162119141463361141345111412107121811224111122112471715151112241412+315 more modules (most-connected shown)

At a glance — Code Health · 73% · Strong ·

At a glance — Architecture · 89% · Strong ·

At a glance — Maturity · 44% · Weak · gated by M2, M4 ·

At a glance — Readiness · 64% · Adequate · gated by P7 ·

At a glance — Security · 73% · Adequate · gated by D29 ·

At a glance — Accessibility · 39% · Weak · gated by AC4, AC6 ·

At a glance — Performance · 80% · Strong ·

Security & Compliance — OWASP Top-10 mapping

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

OWASP categoryFindingsSeverity
A05:2025 — Injection228High / Critical
A03:2025 — Software Supply Chain Failures28High / Critical
A07:2025 — Authentication Failures3High / Critical
A02:2025 — Security Misconfiguration3High / Critical

Roadmap

First, resolve the missing architecture decision records and ensure all design choices are documented with their context and consequences. Next, fix the critical accessibility issues by adding visible focus styles, respecting reduced motion preferences, and improving color contrast to meet safety standards. Then, make custom controls fully keyboard-operable and correct anchor links to ensure proper navigation semantics. Finally, reconcile the README files with the actual repository structure to eliminate documentation drift and ensure accuracy.

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

Do thisHelpsEffortDimension
Resolve the 1 No ADRs found finding(s) in ADR Quality.+6.9 ptsLowADR Quality
Reconcile the README with reality: .harness/README.md names `feedback_drift_log.md`, but no file or folder `feedback_drift_log.md` exists; atmosphere.js/README.md names `atmosphere.js/chat`, but no file or folder `atmosphere.js/chat` exists; atmosphere.js/README.md names `atmosphere.js/react`, but no file or folder `atmosphere.js/react` exists; atmosphere.js/README.md names `atmosphere.js/svelte`, but no file or folder `atmosphere.js/svelte` exists; atmosphere.js/README.md names `atmosphere.js/react-native`, but no file or folder `atmosphere.js/react-native` exists.+5.8 ptsMediumDocumentation accuracy
Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.+4.7 ptsMediumVisual & motion safety
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.+4.6 ptsMediumArchitecture documentation
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+4.1 ptsMediumKeyboard semantics
Resolve the 2 Banned license finding(s) in License Compliance.+1.6 ptsLowLicense Compliance
Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with vitest-axe in tests, then gate axe/pa11y/Lighthouse in CI.+2.9 ptsMediumA11y enforcement
Improve Test Distribution — currently 5.0/10.+1.7 ptsMediumTest Distribution

File quality

Per-file score 0–10 — a quality signature. Of 482 files carrying findings, judged against the Production bar: 4% slop · 60% mixed · 36% near-clean.

FileScoreBandWorst signal
REDACTED1.1SlopStatic Analysis (SAST): High: REDACTED
REDACTED1.6SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.4SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.4SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.5SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.0SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.0SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.0SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED
REDACTED3.7SlopStatic Analysis (SAST): High: REDACTED

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 225

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 1731

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 152

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 15

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

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

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, 2085 of 2108 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
Watchdog duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ 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 · 3.2.533✓ 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 01a16518-58f9-70cf-9838-0ee0bbbb0ad7.

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.

  • D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: this repository's production source spans .cts, .ts, .tsx, .java, and our analyzer cannot run the .java test suite(s) — so no coverage was collected for the repository as a whole. The JavaScript/TypeScript half did build and run, and its own line coverage came back at 85.5% — but that is a figure for one half of the product, and we do not publish a partial one as if it were complete. This is OUR limitation, not a defect in the repo — coverage is excluded from the score rather than counted as a near-zero. In the meantime, produce a coverage report in a standard format (lcov — `vitest --coverage`, `jest --coverage`, `bun test --coverage --coverage-reporter=lcov`, or `nyc`, or JaCoCo XML — `mvn jacoco:report`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures and real coverage will be read. You can widen what we reach: optional: produce a coverage report in a standard format (JaCoCo XML — `mvn jacoco:report`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then both halves are read on the next scan.
  • D10 Test Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 1,760 test(s) behind this row are the ones the JavaScript/TypeScript census could read, and this repository also carries at least 1,559 test source file(s) (.java, .kt, .rb) that it cannot: it reads JavaScript/TypeScript test declarations off disk, so a JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
  • D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability NOT SCORED: this repository's production source includes .java, and the jvm executor ran against the .java half and did not finish re-running within its tier budget — so reliability was not measured for the repository as a whole. The JavaScript/TypeScript (vitest via `npm ci --ignore-scripts` in atmosphere.js/ (846 tests); vitest via `npm ci --ignore-scripts` in modules/spring-boot-starter/frontend/ (131 tests); bun:test via `npm install --ignore-scripts` (no lockfile) in samples/spring-boot-ai-classroom/expo-client/ (38 tests)): measured (0 flaky) suite(s) did re-run, and came back with 0 flaky across 1 measured tier(s) — but that is a figure for one half of the product, and we do not publish a partial one as if it were complete. This is OUR limitation, not a defect in the repo — test reliability is excluded from the score rather than counted. The half was driven by a runner we ship, so this is not a missing-runner gap.
  • D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 100 Maven/Gradle manifest(s) were read, stating a version for 60 dependency(ies) and leaving 830 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • D14 License Compliance — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares package.json, but the licence verdict published here was taken over its JVM dependencies. Nothing was read about its npm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (165 contributor(s) across 9332 commit(s) sampled, automation and bot accounts excluded). One of them holds 90% of the history; the other 164 hold 0.1% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
  • D19 Documentation Quality — evaluation did not complete — Documentation Quality not included (check did not complete) — excluded from the score.
  • D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
  • D30 Dependency Vulnerabilities — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (osv) WERE scanned and every vulnerability they reported is included in this result; npm was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that npm is free of known-vulnerable dependencies.
  • D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `atmosphere.js/src/index.ts`, `atmosphere.js/src/react-native/rn-types.d.ts`, `atmosphere.js/src/streaming/types.ts`, `atmosphere.js/src/types/index.ts`, `modules/admin/src/main/java/org/atmosphere/admin/AdminEventProducer.java`, … (+65 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • D43 Malicious Dependencies — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The scanner produced no output at all, so no dependency was actually scanned. 1 of 2 declared ecosystem(s) (osv) WERE scanned and every vulnerability they reported is included in this result; npm was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that npm is free of known-vulnerable dependencies.
  • AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DockerCompose (samples/spring-boot-otel-chat/docker-compose.yml). compose up failed (exit 18 — an image could not be pulled) — jaeger Pulling jaeger Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: jaeger Pulling jaeger Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
  • C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
  • C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
  • C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
  • C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
  • C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
  • ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check decides whether a handler's mutation is safe to re-run by recognising its persistence writes (a database save, a repository write, an event publish) and its guards. Those markers are .NET member names, so in this repository's language a write such as `repository.save(order)` is not recognised and a same-named call on an unrelated library type could be. The handlers were found; their idempotency was neither confirmed nor ruled out.
  • GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and this repository's Java, Kotlin, Python, Vue components is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • R10 Code Duplication — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 7 further occurrence(s) are not listed individually; the score already reflects all 47.
  • S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
  • X3 Exception handling — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 18 further occurrence(s) are not listed individually; the score already reflects all 58.

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 — an in-process token-stream comparison over sliding windows, with type-aware normalization — so 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.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • 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 click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled 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. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • 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.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (4): D21, D22, D26, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They 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 Complexity5.6 / 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: Documented → Verified → Prevented · effective 5.6 / 10 · rule-coverage 100% · ceiling Prevented

149 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was useAtmosphereChat.useAtmosphereChat.handleStreamingEvent at 143. A further 4 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being CohereChatClient.parseRound at 18 — they are counted neither in the figure above nor in this dimension's score. 2 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: modules/spring-boot-starter/frontend/src/transports/atmosphere.ts (AtmosphereChatTransport.connect at 18), modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java (MsAgentOsPolicy.matches at 16). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

REDACTED.loadMetrics (cyclomatic 41) · ×3modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/admin/index.html:296
AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cyclomatic 17) · ×2modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1477
AtmosphereAutoConfiguration.scanAnnotations (cyclomatic 16) · ×2modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:111
useAtmosphereChat.useAtmosphereChat.handleStreamingEvent (cyclomatic 143)modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:463
AiStreamingSession.stream (cyclomatic 102)modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1464

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

What to do

  1. Bring the 3 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with useAtmosphereChat.useAtmosphereChat.handleStreamingEvent (cyclomatic 143), AiStreamingSession.stream (cyclomatic 102), AiPipeline.executeAdmitted (cyclomatic 73). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cyclomatic Complexity from 5.6 to about 6.5/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.
  2. 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 Complexity5.4 / 10Adequate✓ 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: Documented → Verified → Prevented · effective 5.4 / 10 · rule-coverage 100% · ceiling Prevented

308 method(s) exceeded the cognitive complexity threshold of 15; the worst was useAtmosphereChat.useAtmosphereChat.handleStreamingEvent at 184.

REDACTED.loadMetrics (cognitive 33) · ×3modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/admin/index.html:296
REDACTED.window.addEventListener("message") (cognitive 17) · ×3REDACTED:108
AtmosphereAutoConfiguration.scanAnnotations (cognitive 29) · ×2modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:111
SpringAtmosphereObjectFactory.injectSpringBeans (cognitive 21) · ×2modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:93
AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cognitive 20) · ×2modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1477

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

What to do

  1. Bring the 2 bodies over 120 down to 120 or less in Cognitive Complexity — start with useAtmosphereChat.useAtmosphereChat.handleStreamingEvent (cognitive 184), AiStreamingSession.stream (cognitive 151). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cognitive Complexity from 5.4 to about 5.8/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
  2. 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: Documented → Verified → Prevented · effective 8.9 / 10 · rule-coverage 100% · ceiling Prevented

141 god class(es) detected.

TooManyMethods: AtmosphereFramework · ×47modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:106
ClassTooLong: AiEndpointHandler · ×38modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:87
FileTooLong: processor/AiEndpointHandler.java · ×33modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java
MethodTooLong: AiStreamingSession.stream · ×17modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1464
FunctionTooLong: useStreamingRN.useStreamingRN · ×6atmosphere.js/src/hooks/react-native/useStreamingRN.ts:202

What to do

  1. Resolve the 47 TooManyMethods finding(s) in God Classes — start with AtmosphereProperties.java (4), AtmosphereRequestImpl.java (2), AtmosphereAdminEndpoint.java (2). — One of this dimension's main actionable groups (47 warning-level).
  2. Resolve the 38 ClassTooLong finding(s) in God Classes — start with AtmosphereAiAutoConfiguration.java (2), AtmosphereProperties.java (2), AiEndpointHandler.java. — One of this dimension's main actionable groups (38 warning-level).
  3. Resolve the 33 FileTooLong finding(s) in God Classes — start with AtmosphereAiAutoConfiguration.java (2), AtmosphereProperties.java (2), AiEndpointHandler.java. — One of this dimension's main actionable groups (33 warning-level).
  4. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D4 · Code Duplication9.0 / 10Stronggated by 645 serious findings✓ 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: Documented → Verified → Prevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Verified

608 duplicated block group(s) detected. A further 37 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 43 of the 645 are in trees this repository does not ship — vendored, example/demo, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.

Duplicated block (7 lines × 2) · ×66modules/admin/src/main/java/org/atmosphere/admin/framework/FrameworkController.java:234
Duplicated block (6 lines × 2) · ×47modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:290
Duplicated block (8 lines × 2) · ×46modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:240
Duplicated block (5 lines × 2) · ×42modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:191
Duplicated block (9 lines × 2) · ×40modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowController.java:149

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

What to do

  1. Resolve the 66 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with AtmosphereAdminEndpoint.java (11), AtmosphereAiAutoConfiguration.java (5), AtmosphereAdminAutoConfiguration.java (3). — One of this dimension's main actionable groups (66 warning-level).
  2. Resolve the 47 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with AtmosphereAiAutoConfiguration.java (5), AtmosphereAdminEndpoint.java (4), AgentProcessor.java (3). — One of this dimension's main actionable groups (47 warning-level).
  3. Resolve the 46 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with AtmosphereAiAutoConfiguration.java (5), AtmosphereAdminEndpoint.java (4), WebSocket.java (3). — One of this dimension's main actionable groups (46 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D5 · Coupling9.4 / 10Stronggated by 4 serious findings✓ Tool-verified

What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.

Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.

Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 9.4 / 10 · rule-coverage 100% · ceiling Prevented

61 production modules (Maven+npm+Python), 0 dependency cycle(s), 1 unstable depended-on module(s). Read from the build's own module declarations; 3 module(s) off the main sequence, with abstractness counted on 57 of the 61 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).

Off the main sequence: atmosphere-ai · ×3
Unstable project atmosphere-spring-boot-starter

What to do

  1. Resolve the 3 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (3 warning-level).
  2. Resolve the 1 Unstable project atmosphere-spring-boot-starter finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
  3. Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D6 · Cohesion (LCOM4)9.7 / 10Stronggated by 14 serious findings✓ Tool-verified

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

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

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

Maturity: Documented → Verified → Prevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Verified

14 of 647 classes have LCOM4 above 3.

Low cohesion: Builder (LCOM4 34) · ×14modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:1035

What to do

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

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

D9 · Test Distribution5.0 / 10Weak✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 5.0 / 10 · rule-coverage 100% · ceiling Documented

1799 test methods: 1101 unit, 0 integration, 0 BDD, 698 e2e. The JavaScript/TypeScript suite contributes 1760 `it`/`test` case(s) across 236 test file(s) declaring at least one; its tier split is read from package names and paths only. The Python suite contributes 39 test function(s) across 5 file(s) declaring at least one — every `def test…` in a file pytest or unittest would collect, which is those frameworks' own definition of a case; a parametrize table counts once, so this is a floor. Its tier split is read from file names and paths only.

What to do

  1. Improve Test Distribution — currently 5.0/10. — 1799 test methods: 1101 unit, 0 integration, 0 BDD, 698 e2e. The JavaScript/TypeScript suite contributes 1760 `it`/`test` case(s) across 236 test file(s) declaring at least one; its tier split is read from package names and paths only. The Python suite contributes 39 test function(s) across 5 file(s) declaring at least one — every `def test…` in a file pytest or unittest would collect, which is those frameworks' own definition of a case; a parametrize table counts once, so this is a floor. Its tier split is read from file names and paths only.

Detailed fixes: d9_recommendation.md.

D10 · Test Quality9.2 / 10Stronggated by 87 serious findings✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 9.2 / 10 · rule-coverage 100% · ceiling Prevented

24 skipped, 61 zero-assertion, 2 synchronised by a fixed sleep, no mocking-framework packages referenced (hand-written doubles or no mocking) across 1760 tests. Measured on the JavaScript/TypeScript suite only — at least 1,559 test source file(s) (.java, .kt, .rb) went unread, so its test quality is unmeasured and is not in these counts.

No assertions: should log warning on POST failure (not throw) · ×61atmosphere.js/tests/unit/streaming-transport.test.ts:496
Skipped test: (unnamed test) · ×24e2e/tests/personal-assistant.spec.ts:59
Fixed-sleep synchronisation: should handle AbortError gracefully on disconnect during connect · ×2atmosphere.js/tests/unit/streaming-transport.test.ts:357
Mock-dominated test: should call error handler when read loop throws · ×12atmosphere.js/tests/unit/webtransport.test.ts:1203

What to do

  1. Resolve the 61 No assertions finding(s) in Test Quality — start with session-token-expiry.spec.ts (6), embedded-jetty-chat.spec.ts (5), durable-sessions.spec.ts (5). — One of this dimension's main actionable groups (61 warning-level).
  2. Resolve the 24 Skipped test finding(s) in Test Quality — start with quarkus-ai-chat.spec.ts (6), personal-assistant.spec.ts (4), webtransport.spec.ts (3). — One of this dimension's main actionable groups (24 warning-level).
  3. Resolve the 2 Fixed-sleep synchronisation finding(s) in Test Quality — start with streaming-transport.test.ts, long-polling.test.ts. — One of this dimension's main actionable groups (2 warning-level).
  4. Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D13 · REDACTED 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: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

REDACTED scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance6.0 / 10Adequate✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Verified

2 of 32 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 100 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. 830 further coordinate(s) are declared with no version at the declaration site — inherited from a parent POM, a BOM or an unresolved Gradle version reference — and are NOT graded: this verdict covers what the checkout pins, not the full transitive graph. ★ COVERAGE OF THIS VERDICT: it grades this repository's JVM dependencies and nothing else. The repository also declares package.json, and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.

Banned license: org.openjdk.jmh:jmh-core · ×2

What to do

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

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

D15 · Churn × Complexity Hotspots9.7 / 10Stronggated by 127 serious findings✓ 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: Documented → Verified → Prevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java (50×102=5100); modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java (80×44=3520); modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts (23×143=3289) Repeated repair below the complexity floor: modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java (24 of 28 changes were fixes); modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java (20 of 26 changes were fixes); modules/ai/src/main/java/org/atmosphere/ai/AiConfig.java (10 of 19 changes were fixes)

Hotspot: modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java · ×69modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1464
Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java · ×58modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java:769

What to do

  1. Resolve the 69 Hotspot finding(s) in Churn × Complexity Hotspots — start with AtmosphereAiAutoConfiguration.java (2), atmosphere.ts (2), AiStreamingSession.java. — One of this dimension's main actionable groups (69 warning-level).
  2. Resolve the 58 Repeated repair finding(s) in Churn × Complexity Hotspots — start with DefaultStreamingSession.java, RunEventReplayBuffer.java, AiConfig.java. — One of this dimension's main actionable groups (58 warning-level).

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

D17 · Explicit Debt10.0 / 10Stronggated by 1 serious finding✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

1 deducted task-comment markers across 302537 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

HackCommentmodules/cpr/src/main/java/org/atmosphere/cpr/ContainerInitializer.java:59

What to do

  1. Resolve the 1 HackComment finding(s) in Explicit Debt — start with ContainerInitializer.java. — One of this dimension's main actionable groups (1 warning-level).

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

D20 · ADR Quality0.0 / 10Critical✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

No architecture decision records were found.

No ADRs found

What to do

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

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

D21 · Naming ConsistencyExemplary◐ 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: Documented → Verified → Prevented · 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.

D22 · Internal API ConsistencyExemplary◐ Sampled · advisory

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

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

Maturity: Documented → Verified → Prevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 API inconsistencies across a 400-member sample of 79 exposed types.

✓ On the Gold path — maintain.

Detailed fixes: d22_recommendation.md.

D26 · Project Cohesion8.8 / 10Strong✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 8.8 / 10 · rule-coverage 100% · ceiling Documented

4 of 59 build units (Maven, Python, npm) flagged as possibly oversized/incoherent.

Split modules/ai
Split modules/cpr

What to do

  1. Resolve the 1 Split modules/ai finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 Split modules/cpr finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

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

D28 · Secrets (history)8.0 / 10Adequategated by 2 critical findings✓ Tool-verified

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

Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 8.0 / 10 · rule-coverage 100% · ceiling Documented

2 finding(s): 0 critical, 2 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.

REDACTED
REDACTED

What to do

  1. Resolve the 2 REDACTED finding(s) in Secrets (history) — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
  2. Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).

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

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

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

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

228 finding(s): 0 critical, 202 high, 22 medium, 4 low. 159 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 107 file(s) — `.agents/skills/bilan/bilan.sh` (lines 154–156, line 189, line 643, …), `.agents/skills/bilan/hooks/stop-gate.sh` (lines 32–105), `.agents/skills/carnet/carnet.sh`, `.agents/skills/carnet/hooks/auto-claim.sh` (lines 145–161, lines 165–192, lines 194–201, …), `.agents/skills/carnet/hooks/prompt-status.sh` (lines 73–83, line 90, line 182), … (+102 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 5 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 19 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (18), REDACTED. — One of this dimension's main actionable groups (19 issue-level).
  2. Resolve the 13 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (10), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (13 issue-level).
  3. No action in Static Analysis (SAST) — all 158 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (158 issue-level, 0 of them charged here).

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

D30 · Dependency Vulnerabilities7.3 / 10Adequategated by 3 critical findings✓ Tool-verified

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.

Maturity: Documented → Verified → Prevented · effective 7.3 / 10 · rule-coverage 100% · ceiling Documented

4 finding(s): 1 critical, 2 high, 1 medium, 0 low. Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (osv), and the findings above are real and complete for them. npm was not scanned (npm: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.

REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 2 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
  2. Resolve the 1 Critical vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  3. Resolve the 1 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

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

D31 · IaC & Container Security9.5 / 10Adequategated by 1 critical finding✓ 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: Documented → Verified → Prevented · effective 9.5 / 10 · rule-coverage 100% · ceiling Documented

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

REDACTED
REDACTED
REDACTED

What to do

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

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

D34 · Knowledge Freshness10.0 / 10Exemplary✓ 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: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 1214 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is modules/cpr/src/main/java/org/atmosphere/util/ChunkConcatReaderPool.java. Counted over 1214 of the 1722 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned files with no living knowledge
Orphaned filemodules/cpr/src/main/java/org/atmosphere/util/ChunkConcatReaderPool.java:1

✓ On the Gold path — maintain.

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

D35 · Change Coupling9.9 / 10Adequategated by 4 critical findings✓ 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. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: long-polling.ts↔streaming.ts 90%; playwright.config.ts↔AiFeatureTestServer.java 69%; AdminResource.java↔AtmosphereAdminEndpoint.java 60%

Boundary-crossing change coupling: AdminResource.java ↔ AtmosphereAdminEndpoint.java · ×4modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1
Change coupling: long-polling.ts ↔ streaming.ts · ×3atmosphere.js/src/transports/long-polling.ts:1

What to do

  1. Resolve the 4 Boundary-crossing change coupling finding(s) in Change Coupling — start with AdminResource.java, KoogAgentRuntime.kt, ToolAwareStreamingResponseHandler.java. — One of this dimension's main actionable groups (4 issue-level).
  2. Resolve the 3 Change coupling finding(s) in Change Coupling — start with long-polling.ts, playwright.config.ts, streaming.ts. — One of this dimension's main actionable groups (3 warning-level).

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: Documented → Verified → Prevented · effective 5.0 / 10 · rule-coverage 100% · ceiling Documented

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

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 15 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (15 warning-level).
  2. Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).

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

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

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

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

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

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

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (osv). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (osv), and the findings above are real and complete for them. npm was not scanned (npm: the scanner produced no output at all, so no dependency was actually scanned), so this is not the whole dependency surface and the result is reported at reduced confidence.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.

Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 208 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

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

Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, 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.

Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.

AC2 · Forms & labels6.1 / 10Adequate✓ 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, a click handler on a plain element names the control it declares, 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.

Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. (×3) — modules/spring-boot-starter/frontend/src/components/ChatInput.vue:41, modules/spring-boot-starter/frontend/src/components/Validation.vue:129, modules/spring-boot-starter/frontend/src/components/Workspace.vue:355
  • This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×3) — modules/spring-boot-starter/frontend/src/components/GovernanceDecisions.vue:54, modules/spring-boot-starter/frontend/src/components/Workspace.vue:292, modules/spring-boot-starter/frontend/src/components/Workspace.vue:344

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 structure6.3 / 10Adequate✓ 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.

Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×5) — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/admin/index.html:2, modules/spring-boot-starter/src/main/resources/META-INF/resources/atmosphere/admin/evals.html:17, REDACTED: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 semantics1.8 / 10Critical✓ Tool-verified

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, 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.

Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".

  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. (×5) — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/admin/index.html:77, modules/spring-boot-starter/frontend/src/components/GovernancePolicies.vue:47, modules/spring-boot-starter/frontend/src/components/Tape.vue:195, …

What to do

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

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, 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.

Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

AC6 · Visual & motion safety1.0 / 10Critical✓ Tool-verified

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.

Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • `.input-field[data-v-a3f1cbae]` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×6) — samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, …
  • `.vue-flow__nodesselection-rect:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×6) — samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, …
  • `.vue-flow__edge.selected` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×6) — samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, …
  • `.input-field` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — modules/spring-boot-starter/frontend/src/components/ChatInput.vue:100
  • `.send-btn[data-v-a3f1cbae]` moves (`transition: opacity .15s,transform .1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. (×6) — samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, …
  • `.tool-card[data-v-9f6f4961]` moves (`animation: .3s slideIn-9f6f4961`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. (×6) — samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, …
  • `.dot[data-v-fc56de36]` moves (`animation: 1.4s infinite both bounce-fc56de36`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. (×6) — samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1, …
  • `.dot` moves (`animation: bounce 1.4s infinite both`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — modules/spring-boot-starter/frontend/src/components/ChatContainer.vue:445
  • `.send-btn` moves (`transition: opacity 0.15s, transform 0.1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — modules/spring-boot-starter/frontend/src/components/ChatInput.vue:131
  • `.tool-card` moves (`animation: slideIn 0.3s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — modules/spring-boot-starter/frontend/src/components/ToolCard.vue:112

What to do

  • Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AC7 · A11y enforcement4.0 / 10Weak✓ Tool-verified

Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an accessibility checker configured over the markup (an a11y lint rule set, e.g. eslint-plugin-jsx-a11y or vuejs-accessibility where the project lints JavaScript) and an automated accessibility assertion wired into tests or CI (axe/pa11y/Lighthouse or an equivalent) — on the Documented→Verified→Prevented ladder.

Method: Repo config/CI scan: an accessibility checker configured over the markup (an a11y lint rule set such as eslint-plugin-jsx-a11y / vuejs-accessibility where JavaScript is linted) and an automated accessibility assertion in tests or CI (axe/pa11y/Lighthouse or equivalent), graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.

Coverage: Population: the repository's own tooling configuration — lint config, test and CI files — NOT the markup. It is read for a configured accessibility checker and an automated accessibility assertion (axe/pa11y/Lighthouse, or a native-toolkit equivalent), and it credits an INVOCATION, never a mention: a licence filename, an import comment or a doc reference earns no rung. Enforcement configured entirely outside the repository leaves no evidence here and cannot be credited.

  • No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 39 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.

What to do

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

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

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

AX10 · Code composition9.9 / 10Exemplary✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

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

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

What to do

  • The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX2 · Stateful singletons6.4 / 10Adequate✓ Tool-verified

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

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

  • `ReactorNettyTransportServer` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (certificateHashBase64; e.g. `certificateHashBase64` in `buildQuicSslContext` at line 313). — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:81
  • `AtmosphereDurableRunsProducer` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (expiryCloseables, sqliteJournalPath; e.g. `expiryCloseables` in `onShutdown` at line 265). — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:60
  • `DurableSessionInterceptor` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (config; e.g. `config` in `configure` at line 131). — modules/durable-sessions/src/main/java/org/atmosphere/session/DurableSessionInterceptor.java:49
  • `BoundedMemoryCache` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (maxSize, ttlNanos; e.g. `maxSize` in `configure` at line 69). — modules/cpr/src/main/java/org/atmosphere/cache/BoundedMemoryCache.java:43
  • `AtmosphereFramework` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (shutdownHook, useNativeImplementation, isCometSupportSpecified, useBlockingImplementation, useStreamForFlushingComments, asyncSupport; e.g. `shutdownHook` in `destroy` at line 770). — modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:106
  • `AtmosphereProducers` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (config; e.g. `config` in `configure` at line 37). — modules/cpr/src/main/java/org/atmosphere/inject/AtmosphereProducers.java:33
  • `AuthInterceptor` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (validator, refresher, queryParamName, disconnectOnFailure; e.g. `validator` in `configure` at line 87). — modules/cpr/src/main/java/org/atmosphere/interceptor/AuthInterceptor.java:44
  • `RoomProtocolInterceptor` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (roomManager, maxBodyBytes, authorizer; e.g. `roomManager` in `configure` at line 109). — modules/cpr/src/main/java/org/atmosphere/room/RoomProtocolInterceptor.java:73
  • `PiiRedactionFilter` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (patterns; e.g. `patterns` in `addPattern` at line 81). — modules/ai/src/main/java/org/atmosphere/ai/filter/PiiRedactionFilter.java:33

What to do

  • Java/Kotlin: keep container singletons stateless — move per-request data into locals or a request-scoped bean — or back the state with java.util.concurrent types (ConcurrentHashMap, AtomicInteger/AtomicReference), guard it with synchronized / a Lock (Kotlin: withLock), or mark a flag that is only ever overwritten volatile (@Volatile).
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

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

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

Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.

  • `AtmosphereConfig` declares 19 abstract methods: `ai`, `broadcasterCacheClass`, `broadcasterClass`, `cacheEnabled`, `consoleEndpoint`, `consoleSubtitle`, `consoleTransport`, `container`, `durableRuns`, `durableSessions`, `heartbeatInterval`, `initParams`, `loadOnStartup`, `packages`, `servletPath`, `sessionSupport`, `vertx`, `webTransport`, `websocketSupport`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConfig.java:34
  • `AtmosphereRequest` declares 28 abstract methods: `body`, `body`, `body`, `body`, `body`, `contentType`, `contextPath`, `destroy`, `destroy`, `destroyable`, `destroyed`, `dispatchRequestAsynchronously`, `getHeader`, `header`, `headers`, `headersMap`, `isDestroyable`, `localAttributes`, `method`, `pathInfo`, `queryString`, `queryStringsMap`, `requestURI`, `requestURL`, `resource`, `servletPath`, `uuid`, `wrappedRequest`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 28 declarations carry 23 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 23 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java:42
  • `Builder` declares 40 abstract methods: `attributes`, `authType`, `body`, `body`, `body`, `build`, `contentLength`, `contentType`, `contextPath`, `cookies`, `destroyable`, `dispatchRequestAsynchronously`, `encoding`, `headers`, `inputStream`, `isSSecure`, `isSecure`, `localAddr`, `localInetSocketAddress`, `localName`, `localPort`, `locale`, `method`, `pathInfo`, `principal`, `queryString`, `queryStrings`, `reader`, `remoteAddr`, `remoteHost`, `remoteInetSocketAddress`, `remotePort`, `request`, `requestURI`, `requestURL`, `serverName`, `serverPort`, `servletPath`, `session`, `userPrincipal`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 40 declarations carry 38 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 38 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java:192
  • `AtmosphereResource` declares 39 abstract methods: `addBroadcaster`, `addEventListener`, `broadcasters`, `close`, `forceBinaryWrite`, `forceBinaryWrite`, `getAtmosphereConfig`, `getAtmosphereHandler`, `getAtmosphereResourceEvent`, `getBroadcaster`, `getRequest`, `getResponse`, `getSerializer`, `initialize`, `isCancelled`, `isResumed`, `isSuspended`, `notifyListeners`, `notifyListeners`, `removeBroadcaster`, `removeEventListener`, `removeEventListeners`, `removeFromAllBroadcasters`, `resume`, `resumeOnBroadcast`, `resumeOnBroadcast`, `session`, `session`, `setBroadcaster`, `setSerializer`, `suspend`, `suspend`, `suspend`, `transport`, `uuid`, `write`, `write`, `writeOnTimeout`, `writeOnTimeout`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 39 declarations carry 31 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 31 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResource.java:30
  • `AtmosphereResourceFactory` declares 17 abstract methods under just 10 distinct name(s): `configure`, `create`, `create`, `create`, `create`, `create`, `create`, `create`, `create`, `destroy`, `find`, `findAll`, `locate`, `registerUuidForFindCandidate`, `remove`, `resources`, `unRegisterUuidForFindCandidate`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 17 separate responsibilities: a caller binds to 10 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 17 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. — modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceFactory.java:30
  • `AtmosphereResponse` declares 24 abstract methods: `asyncIOWriter`, `close`, `closeStreamOrWriter`, `delegateToNativeResponse`, `destroy`, `destroy`, `destroyable`, `destroyed`, `getAsyncIOWriter`, `getResponse`, `getStatusMessage`, `headers`, `isDestroyable`, `request`, `request`, `resource`, `setResponse`, `uuid`, `write`, `write`, `write`, `write`, `write`, `write`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 24 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResponse.java:33
  • `Broadcaster` declares 30 abstract methods: `addAtmosphereResource`, `addBroadcasterLifeCyclePolicyListener`, `addBroadcasterListener`, `awaitAndBroadcast`, `broadcast`, `broadcast`, `broadcast`, `broadcastOnResume`, `delayBroadcast`, `delayBroadcast`, `destroy`, `getAtmosphereResources`, `getBroadcasterConfig`, `getBroadcasterLifeCyclePolicy`, `getID`, `getScope`, `initialize`, `isDestroyed`, `releaseExternalResources`, `removeAtmosphereResource`, `removeBroadcasterLifeCyclePolicyListener`, `removeBroadcasterListener`, `resumeAll`, `scheduleFixedBroadcast`, `scheduleFixedBroadcast`, `setBroadcasterConfig`, `setBroadcasterLifeCyclePolicy`, `setID`, `setScope`, `setSuspendPolicy`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 30 declarations carry 26 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 26 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — modules/cpr/src/main/java/org/atmosphere/cpr/Broadcaster.java:48
  • `BroadcasterFactory` declares 16 abstract methods under just 10 distinct name(s): `add`, `addBroadcasterListener`, `broadcasterListeners`, `configure`, `destroy`, `get`, `get`, `get`, `lookup`, `lookup`, `lookup`, `lookup`, `lookupAll`, `remove`, `remove`, `removeBroadcasterListener`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 10 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. — modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterFactory.java:27

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
  • Where the width is an overload set rather than separate responsibilities, collapse the overloads instead — segregating those relieves no caller.
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

IC1 · Incompleteness & stubs10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's Java: methods that only throw a "not implemented" exception, methods that take inputs and return a constant or do nothing, dead `if (false)` branches, and skeleton classes most of whose methods are holes.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

M1 · Documentation (README)8.2 / 10Strong✓ Tool-verified

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

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

What to do

  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 22 of 104 project(s) that lack one — worth up to 0.4 pts.
M2 · Architecture documentation2.0 / 10Critical✓ Tool-verified

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

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

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
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 accuracy0.0 / 10Critical◐ 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.

  • .harness/README.md names `feedback_drift_log.md`, but no file or folder `feedback_drift_log.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .harness/README.md:184
  • atmosphere.js/README.md names `atmosphere.js/chat`, but no file or folder `atmosphere.js/chat` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:25
  • atmosphere.js/README.md names `atmosphere.js/react`, but no file or folder `atmosphere.js/react` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:395
  • atmosphere.js/README.md names `atmosphere.js/svelte`, but no file or folder `atmosphere.js/svelte` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:605
  • atmosphere.js/README.md names `atmosphere.js/react-native`, but no file or folder `atmosphere.js/react-native` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:678
  • atmosphere.js/README.md installs `#` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:740
  • atmosphere.js/README.md installs `optional,` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:740
  • atmosphere.js/README.md installs `for` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:740
  • atmosphere.js/README.md installs `network-aware` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:740
  • atmosphere.js/README.md installs `reconnection` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:740
  • atmosphere.js/README.md links to `LICENSE`, but `atmosphere.js/LICENSE` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — atmosphere.js/README.md:1349
  • docs/governance-policy-plane.md names `.tar.gz`, but no file or folder `.tar.gz` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/governance-policy-plane.md:272
  • docs/governance-policy-plane.md names `META-INF/services/org.atmosphere.ai.governance.GovernancePolicy`, but no file or folder `META-INF/services/org.atmosphere.ai.governance.GovernancePolicy` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/governance-policy-plane.md:306
  • docs/sovereign-deploy.md links to `./audits/vision-parity-2026-05-22.md`, but `docs/audits/vision-parity-2026-05-22.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/sovereign-deploy.md:157
  • modules/a2a/README.md names `agent/authenticatedExtendedCard`, but no file or folder `agent/authenticatedExtendedCard` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/a2a/README.md:10
  • modules/agent/README.md names `feedback_primitive_needs_consumer.md`, but no file or folder `feedback_primitive_needs_consumer.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/agent/README.md:82
  • modules/ai-decision-typesafe/README.md names `api.md`, but no file or folder `api.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/ai-decision-typesafe/README.md:23
  • modules/ai-decision-typesafe/README.md names `models.md`, but no file or folder `models.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/ai-decision-typesafe/README.md:133
  • modules/ai/README.md documents the environment variable `DURABLE_RUN`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/ai/README.md:600
  • modules/ai/README.md documents the environment variable `TOOL_REPLAY`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/ai/README.md:600
  • modules/ai/README.md names `.tar.gz`, but no file or folder `.tar.gz` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/ai/README.md:2875
  • modules/cohere/README.md links to `../../docs/audits/vision-parity-2026-05-22.md`, but `docs/audits/vision-parity-2026-05-22.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/cohere/README.md:102
  • modules/coordinator/README.md names `META-INF/services/org.atmosphere.coordinator.fleet.AgentActivityListener`, but no file or folder `META-INF/services/org.atmosphere.coordinator.fleet.AgentActivityListener` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/coordinator/README.md:244
  • modules/crewai/README.md documents the environment variable `ATMOSPHERE_CREWAI_SIDECAR_HEALTH_TIMEOUT_MS`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/crewai/README.md:99
  • modules/crewai/README.md documents the environment variable `ATMOSPHERE_CREWAI_SIDECAR_REQUEST_TIMEOUT_MS`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/crewai/README.md:100
  • modules/embabel/README.md documents the environment variable `OPENAI_CUSTOM_API_KEY`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/embabel/README.md:62
  • modules/embabel/README.md documents the environment variable `OPENAI_CUSTOM_MODELS`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/embabel/README.md:62
  • modules/interactions/README.md names `atmosphere.js/interactions`, but no file or folder `atmosphere.js/interactions` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/interactions/README.md:131
  • modules/mcp/README.md names `resources/read`, but no file or folder `resources/read` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/mcp/README.md:51
  • modules/mcp/README.md names `resources/templates/list`, but no file or folder `resources/templates/list` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/mcp/README.md:51
  • modules/mcp/README.md names `prompts/get`, but no file or folder `prompts/get` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/mcp/README.md:52
  • modules/mcp/README.md names `resources/list`, but no file or folder `resources/list` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/mcp/README.md:78
  • modules/mcp/README.md names `prompts/list`, but no file or folder `prompts/list` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/mcp/README.md:78
  • modules/wasync/README.md names `java.net.http`, but no file or folder `java.net.http` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/wasync/README.md:3
  • modules/crewai/sidecar/README.md documents the environment variable `CREWAI_TELEMETRY_OPT_OUT`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — modules/crewai/sidecar/README.md:70

What to do

  • Reconcile the README with reality: .harness/README.md names `feedback_drift_log.md`, but no file or folder `feedback_drift_log.md` exists; atmosphere.js/README.md names `atmosphere.js/chat`, but no file or folder `atmosphere.js/chat` exists; atmosphere.js/README.md names `atmosphere.js/react`, but no file or folder `atmosphere.js/react` exists; atmosphere.js/README.md names `atmosphere.js/svelte`, but no file or folder `atmosphere.js/svelte` exists; atmosphere.js/README.md names `atmosphere.js/react-native`, but no file or folder `atmosphere.js/react-native` exists.
P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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

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

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

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

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.

  • 1980/2501 types (79%) declared in the published library are public. For a library, every public type is a stability contract — keep implementation types off the surface and expose only the intended API.

What to do

  • Keep implementation types off the public surface (Java: package-private (no modifier), or leave its package out of `module-info` exports; Kotlin: `internal`) so internals can change without breaking consumers.
P2 · Observability9.9 / 10Exemplary✓ Tool-verified

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

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

  • Only 54/56 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`, `cli/npx`.
  • `atmosphere.js/src/hooks/react/useAtmosphere.ts` reports through `console.*` at line 78 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/hooks/react/useAtmosphere.ts:78
  • `atmosphere.js/src/interactions/client.ts` reports through `console.*` at line 233 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/interactions/client.ts:233
  • `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 65 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/react-native/platform.ts:65
  • `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 77 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/react-native/platform.ts:77
  • `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 80 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/react-native/platform.ts:80
  • `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 86 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/react-native/platform.ts:86
  • `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 97 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/react-native/platform.ts:97
  • `atmosphere.js/src/resilience/connection-status.ts` reports through `console.*` at line 42 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/resilience/connection-status.ts:42
  • `atmosphere.js/src/room/rooms.ts` reports through `console.*` at line 45 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/room/rooms.ts:45
  • `atmosphere.js/src/room/rooms.ts` reports through `console.*` at line 46 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/room/rooms.ts:46
  • `atmosphere.js/src/room/rooms.ts` reports through `console.*` at line 47 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/room/rooms.ts:47
  • `atmosphere.js/src/transports/base.ts` reports through `console.*` at line 570 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/transports/base.ts:570
  • `atmosphere.js/src/utils/logger.ts` reports through `console.*` at line 32 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/utils/logger.ts:32
  • `atmosphere.js/src/utils/logger.ts` reports through `console.*` at line 38 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/utils/logger.ts:38
  • `atmosphere.js/src/utils/logger.ts` reports through `console.*` at line 44 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/utils/logger.ts:44
  • `atmosphere.js/src/utils/logger.ts` reports through `console.*` at line 50 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline. — atmosphere.js/src/utils/logger.ts:50

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
  • Route service-code `console.*` output through the module's structured logger (with named fields), so delivery outcomes and failures reach the log pipeline with a level.
P3 · Security & performance tooling7.0 / 10Strong✓ 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

  • Dependabot is configured but does not watch `pip`, `gitsubmodule` — add those `package-ecosystem` entries to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback10.0 / 10Exemplary✓ Tool-verified

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

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

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.

P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

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

Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.

  • `.openConnection(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. (×3) — modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:307, modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:329, modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:333

What to do

  • Set connect and read timeouts on every client (`RestTemplateBuilder.connectTimeout/readTimeout`, WebClient `responseTimeout`, `HttpRequest.Builder.timeout`, `HttpURLConnection.setReadTimeout`, Feign `connectTimeout`/`readTimeout` in configuration), and wrap calls to dependencies in resilience4j `@Retry`/`@CircuitBreaker`/`@TimeLimiter` (or Spring Retry).
PF1 · Benchmark discipline9.0 / 10Exemplary✓ Tool-verified

Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.

Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.

  • A JMH/Jetpack Benchmark suite exists but nothing turns on its allocation measurement — allocations (the main way hot code pressures a garbage collector or allocator) aren't being measured. — modules/benchmarks/src/main/java/org/atmosphere/benchmarks/jmh/PolicyEvalBenchmark.java

What to do

  • Run JMH with the GC profiler (`-prof gc`, or addProfiler(GCProfiler.class)) so allocation rate regressions are visible, not just time.
PF2 · Allocation hygiene6.2 / 10Adequate✓ Tool-verified

Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.

Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — in .NET Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit; off .NET, with comments and strings blanked, Go's sync.Pool, preallocated slices/maps, Grow, strconv.Append* and buf[:0] reuse; the JVM's NIO buffer views, MemorySegment, primitive collections, pools and literal presizes (plus Kotlin primitive arrays and value classes, Scala AnyVal and @specialized); Swift's reserveCapacity, ContiguousArray, withUnsafe* access and ~Copyable. Activated off .NET on the same floor (400 lines, and benchmarks or 8 uses); Rust and garbage-collected scripting languages are not applicable. Reward-only. Deterministic, syntax/text detection.

What to do

  • Raise allocation-aware density on the hot paths — currently 92 use(s) across 282,047 production line(s) (~0.3/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
  • Java: on hot paths, work through buffer views (ByteBuffer/LongBuffer slices, MemorySegment) instead of copies, avoid boxing with primitive collections (fastutil, Eclipse Collections, HPPC, Trove), presize collections and StringBuilders, and pool expensive buffers (Netty's pooled allocator, commons-pool).
  • Kotlin: on hot paths, use primitive arrays (IntArray, LongArray …) and @JvmInline value classes instead of boxed values, primitive collections (androidx.collection, fastutil) instead of boxed ones, and presize collections and StringBuilders.
PF3 · Async & latency hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from the language model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

R1 · Type Safety9.8 / 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.

What to do

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

React / JS · Code Health — Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm over JS/TS tokens, D-386): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.

Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Deterministic.

  • modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/ and samples/chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1
  • modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/ and samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1
  • modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/ and samples/grpc-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1
  • modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/ and samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1
  • modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/ and samples/chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1
  • modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/ and samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1
  • modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/ and samples/grpc-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1
  • modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/ and samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1
  • 17 duplicated blocks under atmosphere.js/src/hooks/ have copies in at least two of the sibling directories react, react-native, shared, svelte, vue — 8 of them are reported below, and 9 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 17 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 17 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 17 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — atmosphere.js/src/hooks/react-native/useStreamingRN.ts:208
  • atmosphere.js/src/hooks/react-native/useStreamingRN.ts:208 · atmosphere.js/src/hooks/react/useStreaming.ts:182 — the two spans are one implementation copied and then locally edited — 929 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/hooks/react-native/useStreamingRN.ts:208
  • atmosphere.js/src/hooks/react-native/useChatRN.ts:26 · atmosphere.js/src/hooks/react/useChat.ts:23 — the two spans are one implementation copied and then locally edited — 915 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/hooks/react-native/useChatRN.ts:26
  • atmosphere.js/src/hooks/svelte/atmosphere.ts:57 · atmosphere.js/src/hooks/svelte/room.ts:51 — the two spans are one implementation copied and then locally edited — 287 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/hooks/svelte/atmosphere.ts:57
  • atmosphere.js/src/hooks/react/useOptimistic.ts:24 · atmosphere.js/src/hooks/vue/useOptimistic.ts:21 — the two spans are one implementation copied and then locally edited — 424 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/hooks/react/useOptimistic.ts:24
  • atmosphere.js/src/transports/sse.ts:53 · atmosphere.js/src/transports/websocket.ts:52 — the two spans are one implementation copied and then locally edited — 278 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/transports/sse.ts:53
  • atmosphere.js/src/transports/long-polling.ts:28 · atmosphere.js/src/transports/streaming.ts:28 — the two spans are one implementation copied and then locally edited — 276 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/transports/long-polling.ts:28
  • atmosphere.js/src/streaming/index.ts:358 · atmosphere.js/src/streaming/index.ts:411 — the two spans are one implementation copied and then locally edited — 249 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/streaming/index.ts:358
  • atmosphere.js/src/hooks/react/ConnectionStatusBadge.tsx:18 · atmosphere.js/src/hooks/vue/ConnectionStatusBadge.ts:17 — the two spans are one implementation copied and then locally edited — 135 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/hooks/react/ConnectionStatusBadge.tsx:18
  • modules/spring-boot-starter/frontend/src/transports/a2a.ts:148 · modules/spring-boot-starter/frontend/src/transports/agui.ts:157 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — modules/spring-boot-starter/frontend/src/transports/a2a.ts:148
  • atmosphere.js/src/hooks/svelte/optimistic.ts:83 · atmosphere.js/src/hooks/vue/useOptimistic.ts:62 — the two spans are one implementation copied and then locally edited — 151 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/hooks/svelte/optimistic.ts:83
  • atmosphere.js/src/transports/streaming.ts:161 · atmosphere.js/src/transports/webtransport.ts:372 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — atmosphere.js/src/transports/streaming.ts:161
  • atmosphere.js/src/transports/websocket.ts:250 · atmosphere.js/src/transports/webtransport.ts:458 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — atmosphere.js/src/transports/websocket.ts:250
  • atmosphere.js/src/transports/sse.ts:146 · atmosphere.js/src/transports/streaming.ts:164 · atmosphere.js/src/transports/websocket.ts:182 · atmosphere.js/src/transports/webtransport.ts:375 — the 4 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — atmosphere.js/src/transports/sse.ts:146
  • atmosphere.js/src/hooks/svelte/chat.ts:118 · atmosphere.js/src/hooks/vue/useChat.ts:61 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — atmosphere.js/src/hooks/svelte/chat.ts:118
  • atmosphere.js/src/transports/long-polling.ts:231 · atmosphere.js/src/transports/sse.ts:225 · atmosphere.js/src/transports/streaming.ts:238 — the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — atmosphere.js/src/transports/long-polling.ts:231
  • atmosphere.js/src/transports/websocket.ts:112 · atmosphere.js/src/transports/webtransport.ts:197 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — atmosphere.js/src/transports/websocket.ts:112
  • atmosphere.js/src/hooks/svelte/chat.ts:47 · atmosphere.js/src/hooks/vue/useChat.ts:37 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are. — atmosphere.js/src/hooks/svelte/chat.ts:47
  • modules/spring-boot-starter/frontend/src/components/Interactions.vue:142 · modules/spring-boot-starter/frontend/src/components/Interactions.vue:162 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — modules/spring-boot-starter/frontend/src/components/Interactions.vue:142
  • atmosphere.js/src/transports/base.ts:447 · atmosphere.js/src/transports/webtransport.ts:229 — the two spans are one implementation copied and then locally edited — 61 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/transports/base.ts:447
  • atmosphere.js/src/transports/long-polling.ts:175 · atmosphere.js/src/transports/sse.ts:156 · atmosphere.js/src/transports/streaming.ts:174 · atmosphere.js/src/transports/websocket.ts:192 · +1 more site(s) not listed — the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — atmosphere.js/src/transports/long-polling.ts:175
  • atmosphere.js/src/transports/sse.ts:202 · atmosphere.js/src/transports/websocket.ts:237 · atmosphere.js/src/transports/webtransport.ts:436 — the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — atmosphere.js/src/transports/sse.ts:202
  • modules/spring-boot-starter/frontend/src/components/Observability.vue:197 · modules/spring-boot-starter/frontend/src/components/Rooms.vue:32 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — modules/spring-boot-starter/frontend/src/components/Observability.vue:197
  • atmosphere.js/src/hooks/react/useStreaming.ts:228 · atmosphere.js/src/hooks/react/useStreaming.ts:245 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — atmosphere.js/src/hooks/react/useStreaming.ts:228
  • atmosphere.js/src/hooks/svelte/atmosphere.ts:117 · atmosphere.js/src/hooks/svelte/room.ts:115 · atmosphere.js/src/hooks/svelte/streaming.ts:146 — the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete. — atmosphere.js/src/hooks/svelte/atmosphere.ts:117
  • modules/spring-boot-starter/frontend/src/components/Checkpoints.vue:37 · modules/spring-boot-starter/frontend/src/components/Tape.vue:147 — the two spans are one implementation copied and then locally edited — 70 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — modules/spring-boot-starter/frontend/src/components/Checkpoints.vue:37
  • atmosphere.js/src/hooks/svelte/messageHistory.ts:55 · atmosphere.js/src/hooks/svelte/optimistic.ts:60 — the two spans are one implementation copied and then locally edited — 63 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — atmosphere.js/src/hooks/svelte/messageHistory.ts:55
  • atmosphere.js/src/react-native/event-source-polyfill.ts:145 · atmosphere.js/src/react-native/event-source-polyfill.ts:164 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — atmosphere.js/src/react-native/event-source-polyfill.ts:145
  • atmosphere.js/src/interactions/client.ts:290 · atmosphere.js/src/interactions/client.ts:325 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — atmosphere.js/src/interactions/client.ts:290
  • atmosphere.js/src/transports/streaming.ts:250 · atmosphere.js/src/transports/webtransport.ts:473 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — atmosphere.js/src/transports/streaming.ts:250
  • modules/spring-boot-starter/frontend/src/components/Tape.vue:70 · modules/spring-boot-starter/frontend/src/components/Tape.vue:104 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — modules/spring-boot-starter/frontend/src/components/Tape.vue:70
  • modules/spring-boot-starter/frontend/src/components/Checkpoints.vue:21 · modules/spring-boot-starter/frontend/src/components/GovernanceCommitments.vue:5 · modules/spring-boot-starter/frontend/src/components/GovernancePolicies.vue:5 — the 3 copies are spread across 3 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited. — modules/spring-boot-starter/frontend/src/components/Checkpoints.vue:21

What to do

  • Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R2 · Cyclomatic Complexity9.4 / 10Exemplary✓ 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.

  • handleStreamingEvent has cyclomatic complexity 145 and cognitive complexity 202; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:463
  • dispatch has cyclomatic complexity 36 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — atmosphere.js/src/streaming/index.ts:346
  • (anonymous) has cyclomatic complexity 33 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/src/App.vue:236
  • main has cyclomatic complexity 28 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:93
  • message has cyclomatic complexity 27 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — atmosphere.js/src/streaming/index.ts:101
  • onBridgeMessage has cyclomatic complexity 21 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/src/components/McpApps.vue:237
  • subscribe has cyclomatic complexity 20 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — atmosphere.js/src/core/atmosphere.ts:66
  • buildRequest has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — atmosphere.js/src/utils/protocol.ts:112
  • extractMath has cyclomatic complexity 19 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:91
  • extractErrorShape has cyclomatic complexity 19 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:365
  • meterFromPrometheus has cyclomatic complexity 17 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/src/lib/metrics.ts:221
  • parseFrames has cyclomatic complexity 16 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — atmosphere.js/src/interactions/client.ts:389
  • handleEvent has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/integration-tests/e2e/helpers/ai-ws-client.ts:177
  • _parseEvent has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — atmosphere.js/src/react-native/event-source-polyfill.ts:196
  • run has cyclomatic complexity 14 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/src/transports/agui.ts:184
  • run has cyclomatic complexity 14 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/scripts/vue-check-ts7.cjs:32
  • handleIncoming has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — atmosphere.js/src/room/rooms.ts:244
  • (anonymous) has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/src/App.vue:169
  • adoptSessionOfInFlightPrompt has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:265
  • statsFromActuator has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — modules/spring-boot-starter/frontend/src/lib/metrics.ts:93

What to do

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

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

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

  • modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts has 1177 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:1
  • modules/spring-boot-starter/frontend/src/components/Interactions.vue has 632 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — modules/spring-boot-starter/frontend/src/components/Interactions.vue:1
  • atmosphere.js/src/transports/base.ts has 624 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — atmosphere.js/src/transports/base.ts:1
  • modules/spring-boot-starter/frontend/src/components/Workspace.vue has 610 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — modules/spring-boot-starter/frontend/src/components/Workspace.vue:1
  • modules/spring-boot-starter/frontend/src/App.vue has 571 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — modules/spring-boot-starter/frontend/src/App.vue:1
  • atmosphere.js/src/types/index.ts has 536 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — atmosphere.js/src/types/index.ts:1
  • atmosphere.js/src/hooks/react-native/useStreamingRN.ts has 483 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — atmosphere.js/src/hooks/react-native/useStreamingRN.ts:1
  • modules/spring-boot-starter/frontend/src/components/McpApps.vue has 452 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — modules/spring-boot-starter/frontend/src/components/McpApps.vue:1
  • atmosphere.js/src/transports/webtransport.ts has 451 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — atmosphere.js/src/transports/webtransport.ts:1
  • atmosphere.js/src/streaming/index.ts has 441 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — atmosphere.js/src/streaming/index.ts:1
  • modules/spring-boot-starter/frontend/src/components/Validation.vue has 431 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — modules/spring-boot-starter/frontend/src/components/Validation.vue:1
  • modules/spring-boot-starter/frontend/src/lib/metrics.ts has 420 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — modules/spring-boot-starter/frontend/src/lib/metrics.ts:1
  • atmosphere.js/src/utils/protocol.ts has 418 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — atmosphere.js/src/utils/protocol.ts:1
  • modules/spring-boot-starter/frontend/src/components/ChatContainer.vue has 412 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — modules/spring-boot-starter/frontend/src/components/ChatContainer.vue:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage8.9 / 10Strong✓ Tool-verified

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

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

  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×13) — REDACTED:1, atmosphere.js/scripts/build-dts.mjs:1, scripts/lib/playwright_spec_projects.mjs:1, …

What to do

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

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

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D30, which answers dependency vulnerabilities for every ecosystem). Deterministic.

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

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

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

R7 · Dead Code9.5 / 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.

  • Unreachable from the 44 application, 14 tooling and 254 test entry point(s) detected in this repo. Gate removals on `npm run dev` — an undetected custom entry would make these reachable.
  • no import path from any entry point (44 application, 14 tooling, 254 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×2) — atmosphere.js/consumer-check/consume-cjs.cts, atmosphere.js/consumer-check/consume.ts
  • Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/react-native/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/react-native/index.ts in the same commit, or the barrel will import a name that no longer exists. (×4) — atmosphere.js/src/hooks/react-native/ConnectionStatusBadgeRN.tsx:92, atmosphere.js/src/hooks/react-native/useAtmosphereRN.ts:80, atmosphere.js/src/hooks/react/useConnectionStatus.ts:65, …
  • Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/react/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/react/index.ts in the same commit, or the barrel will import a name that no longer exists. — atmosphere.js/src/hooks/react/ConnectionStatusBadge.tsx:104
  • Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/vue/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/vue/index.ts in the same commit, or the barrel will import a name that no longer exists. (×2) — atmosphere.js/src/hooks/vue/ConnectionStatusBadge.ts:71, atmosphere.js/src/hooks/vue/useConnectionStatus.ts:51
  • Nothing in its class reads or assigns this private field (for a constructor parameter property: it is stored and never read), and no string key or test reaches it by name. Remove it, or use it where it was meant to take effect. — modules/integration-tests/e2e/helpers/grpc-client.ts:14
  • This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it. — modules/integration-tests/e2e/mcp-bidirectional.spec.ts:39

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 Hygiene9.5 / 10Exemplary✓ 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.

  • Declared in modules/integration-tests/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports10.0 / 10Exemplary✓ 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.

X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.

Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.

X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.

Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.

Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.

X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.

Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.

X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.

Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.

X17 · Uncapped recursion over a caller-supplied document3.5 / 10Weak✓ Tool-verified

Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.

Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.

  • `build_remote_tool` is public, takes a document from its caller (line 234) and hands it to `_coerce_type`, which calls itself at line 120 (`_coerce_type`) with a piece of `schema` — and nowhere in `_coerce_type` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_coerce_type` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — modules/crewai/sidecar/src/atmosphere_crewai_bridge/tools.py:120

What to do

  • Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.

Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.

X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.

Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.

X2 · Cancellation propagation6.8 / 10Adequate✓ Tool-verified

Other · Code Health — Whether async functions that make a cancellable request accept or pass on an AbortSignal (adoption curve).

Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.

  • Only 9/19 async functions that make a cancellable request (fetch, axios, ky, ofetch) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
  • `probe` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/composables/useVerifier.ts:85
  • `check` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/composables/useVerifier.ts:108
  • `createInteraction` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:68
  • `continueInteraction` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:77
  • `getInteraction` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:86
  • `listInteractions` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:94
  • `cancelInteraction` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:102
  • `load` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/composables/useGovernance.ts:87
  • `unarySend` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/transports/grpc.ts:254
  • `connect` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`. — modules/spring-boot-starter/frontend/src/transports/agui.ts:151

What to do

  • Thread an AbortSignal through async functions that make requests, so the work stops when its caller gives up.
X20 · Mistyped argument guard5.5 / 10Adequate✓ Tool-verified

Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.

Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.

  • The guard on line 127 rejects `path` and line 128 reports that rejection as `NullPointerException` — but the condition's own test `path.isEmpty()` is true of a value that is NOT null: it is satisfied by an EMPTY `path`, and on that path `path` was already proven non-null by the very expression that decided it. So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `NullPointerException` to handle a real null handles the empty case with it, and whoever reads the stack trace later is told a failure the source disproves. Throw `IllegalArgumentException` for the empty case, or split the guard and throw each on its own condition. — modules/cpr/src/main/java/org/atmosphere/cpr/DefaultMetaBroadcaster.java:128

What to do

  • Each finding names the throw and the test in its own condition that is true of a NON-null value. Confirm from the two, then throw the exception that describes what was actually wrong: on the JVM `IllegalArgumentException` for a value that arrived empty (`Objects.requireNonNull(x)` for the null half, Kotlin's `require(x.isNotEmpty())` for the empty one), in Dart `ArgumentError.value(x, 'x', 'must not be empty')`, in F# `invalidArg (nameof x) "must not be empty"` (keeping `nullArg` for the null half). Splitting the two conditions is usually clearer than picking one exception for both: they are different failures and the caller may want to handle them differently.
X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.

Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.

X22 · Contradicted release guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.

Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.

X23 · Unguarded diagnostic materialisation10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.

Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.

X24 · Document value interpolated into markup unescaped4.0 / 10Weak✓ Tool-verified

Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.

Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.

  • `formattedContent()` is text this program did not author, and it is written into the text of an element through Vue's `v-html` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — modules/spring-boot-starter/frontend/src/components/ChatMessage.vue:35
  • `renderedResult` is text this program did not author, and it is written into the text of an element through Vue's `v-html` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — modules/spring-boot-starter/frontend/src/components/ToolCard.vue:98

What to do

  • Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.

Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.

X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.

X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. Whether a `for` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items are never seen. Whether a walk over a `Hash` or `Set` (`each`, `each_pair`, `map`, `for … in` and the other block walks) leaves it alone — Ruby refuses `rehash`, `replace`, `compare_by_identity` and `transform_keys!` on a Hash, and `reset`, `replace`, `compare_by_identity` and `map!` on a Set, while it is being iterated: the call raises `RuntimeError` at once and the remaining entries are never seen. Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.

Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.

X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.

Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.

X3 · Exception handling7.3 / 10Strong✓ Tool-verified

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

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

  • `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it. (×6) — atmosphere.js/src/core/atmosphere.ts:111, atmosphere.js/src/hooks/react-native/useAtmosphereRN.ts:118, atmosphere.js/src/hooks/react-native/useAtmosphereRN.ts:148, …
  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×11) — atmosphere.js/src/interactions/client.ts:377, atmosphere.js/src/interactions/client.ts:411, atmosphere.js/src/transports/webtransport.ts:120, …
  • `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — atmosphere.js/src/transports/base.ts:524
  • `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×8) — modules/admin/src/main/java/org/atmosphere/admin/agent/AgentController.java:248, modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:410, modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1250, …
  • `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×11) — modules/ai/src/main/java/org/atmosphere/ai/approval/ApprovalRegistry.java:197, modules/ai/src/main/java/org/atmosphere/ai/approval/ApprovalRegistry.java:211, modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:149, …
  • `catch (Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×3) — modules/ai/src/main/java/org/atmosphere/ai/code/RhinoEvalEngine.java:45, modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceTracer.java:74, modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java:335

What to do

  • Swallowed exception (empty catch)
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

X4 · Structured logging7.8 / 10Strong✓ Tool-verified

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

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.

  • `warn` at line 200 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:200
  • `warn` at line 89 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/annotation/RoomServiceProcessor.java:89
  • `warn` at line 197 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/container/Servlet30CometSupport.java:197
  • `warn` at line 222 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/container/Servlet30CometSupport.java:222
  • `trace` at line 304 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:304
  • `trace` at line 341 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:341
  • `trace` at line 703 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:703
  • `warn` at line 972 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:972
  • `trace` at line 256 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:256
  • `error` at line 363 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:363
  • `trace` at line 379 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:379
  • `error` at line 401 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:401
  • `trace` at line 281 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/interceptor/AtmosphereResourceStateRecovery.java:281
  • `info` at line 237 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:237
  • `info` at line 276 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:276
  • `debug` at line 452 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:452
  • `warn` at line 140 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:140
  • `warn` at line 155 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:155
  • `error` at line 69 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — modules/cpr/src/main/java/org/atmosphere/websocket/protocol/EchoProtocol.java:69

What to do

  • Interpolated log message defeats structured logging
X5 · Nullable reference types9.0 / 10Exemplary✓ Tool-verified

Other · Code Health — Whether strict null checking is enabled and not undermined by heavy `!` assertion — TypeScript's `strictNullChecks` (which `strict` turns on) is what makes `string` exclude `null` and `undefined`, and the postfix `!` is the operator that silences it.

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

  • 9/10 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
  • ~0.5 `!` null assertions per 1k TypeScript source lines — 9 assertion(s) across the 18302 source line(s) of the 112 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: modules/spring-boot-starter/frontend/src/lib/tapeGraph.ts (3), atmosphere.js/src/core/atmosphere.ts (1), atmosphere.js/src/core/handler-gate.ts (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.

What to do

  • The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).

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 Health73%StrongSolid.
Architecture89%StrongStrongest area.
Maturity44%Weak — gated by M2, M4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness64%Adequate — gated by P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security73%Adequate — gated by D29Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility39%Weak — gated by AC4, AC6Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance80%StrongSolid.
Unscored — 4 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • P12 CI test-gate honesty — 6 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 7 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X9 Subsumed condition operand — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises 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 a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises 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 a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises 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.
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 35 check(s) not relevant to this codebase

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

  • AX4 Dependency direction — not applicable to a CQRS architecture (the inward-dependency rule is for layered/clean styles)
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — jaeger Pulling jaeger Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: jaeger Pulling jaeger Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
  • C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises 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 a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises 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.
  • D11 Test Reliability — Test reliability not scored — polyglot repository, one half's runner produced no measurement
  • D12 Dependency Hygiene — Not scored — 100 Maven/Gradle manifest(s) were read, stating a version for 60 dependency(ies) and leaving 830 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • D16 Bus Factor — single-maintainer repository — bus factor is not applicable
  • 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 — Documentation Quality not included (check did not complete)
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.java), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D32 Data Compliance (PII/GDPR) — 70 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • 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.
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not measured — polyglot repository, one half has no runner
  • DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 733 value object(s); 8 domain event(s); its domain events are published by services or handlers — no domain entity raises one
  • ED1 Event-Driven — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 1 event handler(s); 1 CQRS handler(s)
  • ED5 Idempotency — Not assessed, and this one is on us: 2 command handler(s) or message consumer(s) were found here, but this check does not yet recognise persistence writes in this repository's language. Idempotency was neither confirmed nor ruled out — this is a limit of the analyzer, not a finding about your code.
  • ES1 Event Sourcing — not scored — this repository shows only 1 of the 3 signals this lens looks for (an Axon event-sourcing framework (@Aggregate/@CommandHandler/@EventSourcingHandler annotations))
  • GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — coverage data present for 76 file(s), but no domain-layer files were identified: no covered file's path contains any of the markers this check keys on (/domain/, /aggregates/, /valueobjects/, /domainmodel/, .domain/, /entities/), which are matched case-insensitively anywhere in the path. With no domain partition there is nothing to compare the web/controller layer against — if this repository keeps its business rules under a folder named none of those, that naming is what the check cannot see, not the domain logic.
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises 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 — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

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.

Critical — 225 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 133 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D35 · Change Coupling · Boundary-crossing change coupling · ×4
  • Boundary-crossing change coupling: AdminResource.java ↔ AtmosphereAdminEndpoint.java modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1 — `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java` (context quarkus-admin-extension) and `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` (context spring-boot-starter) sit in DIFFERENT parts of the tree yet change together 60% of the time (9 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `487d5380` feat(admin): execute saved workflow manifests through AgentFleet with…; `373d0d91` feat(admin): expose fleet health, make VerifyCli launchable, honest f…; `eb99aba8` feat(admin): wire the agent-state control plane to both admin transpo… — run `git show` on any of them.
  • Boundary-crossing change coupling: KoogAgentRuntime.kt ↔ ToolAwareStreamingResponseHandler.java modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:1 — `modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt` (context koog) and `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java` (context langchain4j) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `b9b1af4a` fix(ai): thread ToolApprovalPolicy through all 5 runtime bridge call …; `3a92220a` feat(ai): fire onToolCall/onToolResult and toolCallDelta from every r…; `bf8887c7` feat(ai): add token telemetry, soft-cancel, policy plumbing, and A2A … — run `git show` on any of them.
  • Boundary-crossing change coupling: ToolAwareStreamingResponseHandler.java ↔ SpringAiAgentRuntime.java modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java:1 — `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java` (context langchain4j) and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java` (context spring-ai) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `a71866c8` refactor(ai): add TokenUsage.fromCounts and migrate adapter usage tra…; `b9b1af4a` fix(ai): thread ToolApprovalPolicy through all 5 runtime bridge call …; `3a92220a` feat(ai): fire onToolCall/onToolResult and toolCallDelta from every r… — run `git show` on any of them.
  • Boundary-crossing change coupling: BuiltInAgentRuntime.java ↔ ToolAwareStreamingResponseHandler.java modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java:1 — `modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java` (context ai) and `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java` (context langchain4j) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `b9b1af4a` fix(ai): thread ToolApprovalPolicy through all 5 runtime bridge call …; `3a92220a` feat(ai): fire onToolCall/onToolResult and toolCallDelta from every r…; `bf8887c7` feat(ai): add token telemetry, soft-cancel, policy plumbing, and A2A … — run `git show` on any of them.
AC2 · Forms & labels · <select> without a programmatic label · ×3
  • <select> without a programmatic label modules/spring-boot-starter/frontend/src/components/GovernanceDecisions.vue:54 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label modules/spring-boot-starter/frontend/src/components/Workspace.vue:292 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
  • <select> without a programmatic label modules/spring-boot-starter/frontend/src/components/Workspace.vue:344 — This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
AC4 · Keyboard semantics · Click handler on a non-interactive <span> · ×3
  • Click handler on a non-interactive <span> modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/admin/index.html:77 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <span> REDACTED:78 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <span> REDACTED:78 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
AC2 · Forms & labels · <input> without a programmatic label · ×2
  • <input> without a programmatic label modules/spring-boot-starter/frontend/src/components/Validation.vue:129 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <input> without a programmatic label modules/spring-boot-starter/frontend/src/components/Workspace.vue:355 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
AC4 · Keyboard semantics · Click handler on a non-interactive <tr> · ×2
  • Click handler on a non-interactive <tr> modules/spring-boot-starter/frontend/src/components/GovernancePolicies.vue:47 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <tr> modules/spring-boot-starter/frontend/src/components/Tape.vue:195 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
D14 · License Compliance · Banned license · ×2
  • Banned license: org.openjdk.jmh:jmh-core — `org.openjdk.jmh:jmh-core` 1.37 is published on Maven Central under `GPL-2.0`, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact's POM `<licenses>` block — following `<parent>` where the POM inherits them — and normalised to SPDX before it was judged, because Maven publishes the name as free text (`GNU Affero General Public License v3` is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven's own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception.
  • Banned license: org.openjdk.jmh:jmh-generator-annprocess — `org.openjdk.jmh:jmh-generator-annprocess` 1.37 is published on Maven Central under `GPL-2.0`, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact's POM `<licenses>` block — following `<parent>` where the POM inherits them — and normalised to SPDX before it was judged, because Maven publishes the name as free text (`GNU Affero General Public License v3` is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven's own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception.
D28 · Secrets (history) · REDACTED · ×2
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · High CVE · ×2
  • REDACTED
  • REDACTED
AC2 · Forms & labels · <textarea> without a programmatic label · ×1
  • <textarea> without a programmatic label modules/spring-boot-starter/frontend/src/components/ChatInput.vue:41 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D30 · Dependency Vulnerabilities · Critical vulnerability · ×1
  • REDACTED
D31 · IaC & Container Security · High IaC · ×1
  • REDACTED
Serious — 1731 finding(s)
D15 · Churn × Complexity Hotspots · Hotspot · ×69
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1464 — modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java changed 50 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 102 in AiStreamingSession.stream at line 1464. 36 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:1223 — modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java changed 80 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in AiEndpointHandler.dispatchPrompt at line 1223. 68 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:463 — modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 143 in useAtmosphereChat.useAtmosphereChat.handleStreamingEvent at line 463. 18 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java:767 — modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in RunReattachSupport.replayPendingRun at line 767. 34 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:630 — modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in AiPipeline.executeAdmitted at line 630. 10 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:296 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar at line 296. 10 of those changes were fix/bug commits, and the other 10 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:140 — modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in AiEndpointProcessor.handle at line 140. 10 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:189 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in CoordinatorProcessor.handle at line 189. 15 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:681 — modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in DefaultBroadcaster.deliverPush at line 681. 15 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1643 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in OpenAiCompatibleClient.processResponsesApiSSELine at line 1643. 9 of those changes were fix/bug commits, and the other 9 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: atmosphere.js/src/transports/base.ts atmosphere.js/src/transports/base.ts:511 — atmosphere.js/src/transports/base.ts changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in BaseTransport.captureRunId at line 511. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- atmosphere.js/src/transports/base.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:299 — modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar at line 299. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java:728 — modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in ToolExecutionHelper.executeWithApprovalLive at line 728. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:98 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in AgentProcessor.handle at line 98. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: samples/spring-boot-ai-classroom/expo-client/App.tsx samples/spring-boot-ai-classroom/expo-client/App.tsx:120 — samples/spring-boot-ai-classroom/expo-client/App.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in App.Classroom at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- samples/spring-boot-ai-classroom/expo-client/App.tsx`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java:622 — modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in AiEnvironment.close at line 622. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: atmosphere.js/src/core/atmosphere.ts atmosphere.js/src/core/atmosphere.ts:66 — atmosphere.js/src/core/atmosphere.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in Atmosphere.subscribe at line 66. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- atmosphere.js/src/core/atmosphere.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: atmosphere.js/src/hooks/react-native/useStreamingRN.ts atmosphere.js/src/hooks/react-native/useStreamingRN.ts:202 — atmosphere.js/src/hooks/react-native/useStreamingRN.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in useStreamingRN.useStreamingRN at line 202. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- atmosphere.js/src/hooks/react-native/useStreamingRN.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:862 — modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in KoogAgentRuntime.executeWithExecutor at line 862. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventCapturingSession.java modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventCapturingSession.java:196 — modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventCapturingSession.java changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in RunEventCapturingSession.emit at line 196. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventCapturingSession.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:272 — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in LangChain4jAgentRuntime.doExecuteWithHandle at line 272. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:509 — modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in LongPollingReplies.deliver at line 509. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java:69 — modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in AgUiEventMapper.toAgUi at line 69. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt:619 — modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in EmbabelAgentRuntime.executeAtmosphereNative at line 619. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: atmosphere.js/src/streaming/index.ts atmosphere.js/src/streaming/index.ts:49 — atmosphere.js/src/streaming/index.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in index.subscribeStreaming at line 49. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- atmosphere.js/src/streaming/index.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 44 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×66
  • Duplicated block (7 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/framework/FrameworkController.java:234 — modules/admin/src/main/java/org/atmosphere/admin/framework/FrameworkController.java:234-240 | modules/admin/src/main/java/org/atmosphere/admin/framework/FrameworkController.java:259-265 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/framework/FrameworkController.java:234` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1277 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1277-1283 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1525-1531 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1277` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:116 — modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:116-122 | modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:214-220 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:116` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/fs/WorkspaceAgentFileSystem.java:131 — modules/ai/src/main/java/org/atmosphere/ai/fs/WorkspaceAgentFileSystem.java:131-138 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:236-242 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:458 — modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:458-464 | modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:320-326 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:458` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1130 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1130-1136 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1760-1766 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1129` calls `has`, `get`, `asLong` and `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1759` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/plan/FileSystemAgentPlanStore.java:209 — modules/ai/src/main/java/org/atmosphere/ai/plan/FileSystemAgentPlanStore.java:209-216 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:360-366 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/plan/FileSystemAgentPlanStore.java:209` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/tape/TapeReplay.java:157 — modules/ai/src/main/java/org/atmosphere/ai/tape/TapeReplay.java:157-163 | modules/ai/src/main/java/org/atmosphere/ai/tape/TapeTrainingExtractor.java:166-174 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/tape/TapeReplay.java:157` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:522 — modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:522-528 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:532-538 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:522` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:82 — modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:82-88 | modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:85-91 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:82` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/cpr/src/main/java/org/atmosphere/config/managed/Invoker.java:122 — modules/cpr/src/main/java/org/atmosphere/config/managed/Invoker.java:122-128 | modules/cpr/src/main/java/org/atmosphere/config/managed/Invoker.java:159-165 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/config/managed/Invoker.java:122` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:387 — modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:387-393 | modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:420-426 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:387` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (7 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:152 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:152-161 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:314-320 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:152` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:502 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:502-508 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1439-1445 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:522 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:522-528 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:269-275 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:653 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:653-659 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:341-347 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:653` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (7 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:906 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:906-912 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java:232-238 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java:190 — modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java:190-196 | modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java:208-214 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java:190` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/evals/EvalRun.java:63 — modules/admin/src/main/java/org/atmosphere/admin/evals/EvalRun.java:63-69 | modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowManifest.java:135-141 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgentRuntime.java:142 — modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgentRuntime.java:142-148 | modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaAgentRuntime.java:186-192 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java:299 — modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java:299-305 | modules/ai/src/main/java/org/atmosphere/ai/AiEventForwardingListener.java:137-143 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/batch/BatchError.java:44 — modules/ai/src/main/java/org/atmosphere/ai/batch/BatchError.java:44-50 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiError.java:43-49 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/batch/BatchExecutor.java:593 — modules/ai/src/main/java/org/atmosphere/ai/batch/BatchExecutor.java:593-599 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiChatHandler.java:567-573 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:303 — modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:303-309 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiChatHandler.java:428-434 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:312 — modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:312-318 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiChatHandler.java:437-443 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • + 41 more in this group — see findings.md.
D10 · Test Quality · No assertions · ×61
  • No assertions: should log warning on POST failure (not throw) atmosphere.js/tests/unit/streaming-transport.test.ts:496 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should log warning on POST failure atmosphere.js/tests/unit/sse.test.ts:230 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should ignore messages for unknown rooms atmosphere.js/tests/unit/rooms.test.ts:308 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: should handle malformed messages gracefully atmosphere.js/tests/unit/rooms.test.ts:369 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: multiple transports can connect sequentially modules/integration-tests/e2e/webtransport-raw.spec.ts:45 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: client receives broadcast messages via SSE modules/integration-tests/e2e/sse-transport.spec.ts:23 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: SSE connection receives multiple sequential messages modules/integration-tests/e2e/sse-transport.spec.ts:49 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fast client receives all messages even when slow client is connected modules/integration-tests/e2e/slow-consumer.spec.ts:16 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: broadcaster handles burst of messages to multiple consumers modules/integration-tests/e2e/slow-consumer.spec.ts:49 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: fresh connection works without token modules/integration-tests/e2e/session-token-expiry.spec.ts:18 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: expired/invalid token is rejected gracefully modules/integration-tests/e2e/session-token-expiry.spec.ts:25 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: stale token from different server instance modules/integration-tests/e2e/session-token-expiry.spec.ts:36 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: multiple connections with same token do not conflict modules/integration-tests/e2e/session-token-expiry.spec.ts:47 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: connection cleanup after disconnect modules/integration-tests/e2e/session-token-expiry.spec.ts:62 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: rapid connect/disconnect cycles do not leak resources modules/integration-tests/e2e/session-token-expiry.spec.ts:78 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: two users in same room see each other via presence modules/integration-tests/e2e/rooms-api.spec.ts:97 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: broadcast message is received by all room members modules/integration-tests/e2e/rooms-api.spec.ts:134 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: typing indicator is broadcast to other room members modules/integration-tests/e2e/room-typing-direct.spec.ts:49 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: direct message to non-existent member returns error modules/integration-tests/e2e/room-typing-direct.spec.ts:146 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: leave presence is broadcast to remaining members modules/integration-tests/e2e/room-typing-direct.spec.ts:169 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: client reconnects after server restart (raw WebSocket) modules/integration-tests/e2e/reconnection.spec.ts:17 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: server restart does not leave stale state modules/integration-tests/e2e/reconnection.spec.ts:37 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: page loads and connects modules/integration-tests/e2e/quarkus-chat.spec.ts:16 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: user can join and send messages modules/integration-tests/e2e/quarkus-chat.spec.ts:22 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: status bar shows Connected modules/integration-tests/e2e/quarkus-chat.spec.ts:32 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* — so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • + 36 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Repeated repair · ×58
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java:769 — modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java changed 28 times in last 90 days and 24 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is DefaultStreamingSession.bufferForLongPolling at line 769), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai,mcp): log a refused cleartext key once and a tool failure without a stack”; “fix(ai): a timed-out @Prompt turn ends with an error frame the client keeps, live and on reload”; “fix(ai): log a rate-limited turn as one warning, not an error with a stack”; “fix(ai): log an approval that ran out with its turn as a warning, not an error”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java:897 — modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java changed 26 times in last 90 days and 20 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 11 (its worst body is RunEventReplayBuffer.append at line 897), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): a long reply stays whole in its run's replay”; “fix(ai): a reattached client follows a handoff made while it follows the run”; “fix(ai): a reattach to a run that handed its turn off follows it to the target's run”; “fix(ai): replay a reconnecting client's own reply in its session's numbering”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/AiConfig.java modules/ai/src/main/java/org/atmosphere/ai/AiConfig.java:1315 — modules/ai/src/main/java/org/atmosphere/ai/AiConfig.java changed 19 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 11 (its worst body is AiConfig.parseDuration at line 1315), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): every runtime sends an API key over plain http only to a loopback host”; “fix(ai): stop the LLM_* environment fallback from replacing settings or publishing them per request”; “fix(ai): keep a workspace RUNTIME.md's generation values on its own settings”; “fix(ai): keep the prompt-cache-key and logprobs modes an OpenAI-compatible client was built with”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/AiConfig.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/resume/RunRegistry.java modules/ai/src/main/java/org/atmosphere/ai/resume/RunRegistry.java:272 — modules/ai/src/main/java/org/atmosphere/ai/resume/RunRegistry.java changed 13 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 10 (its worst body is RunRegistry.register at line 272), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): resume a reconnect from what its client last received, cache overflow included”; “fix(ai): an endpoint's destroy ends its own left-open runs and stops the sweeper only when unheld”; “fix(ai): bound runs left open after their @Prompt returns and reach them after a reattach”; “fix(ai): a run whose @Prompt returns with its session open ends with that session”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/resume/RunRegistry.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/koog/src/main/kotlin/org/atmosphere/ai/koog/AtmosphereKoogAutoConfiguration.kt modules/koog/src/main/kotlin/org/atmosphere/ai/koog/AtmosphereKoogAutoConfiguration.kt:139 — modules/koog/src/main/kotlin/org/atmosphere/ai/koog/AtmosphereKoogAutoConfiguration.kt changed 10 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 6 (its worst body is AtmosphereKoogAutoConfiguration.koogAgentRuntime at line 139), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): every runtime sends an API key over plain http only to a loopback host”; “fix(koog): read llm.* between atmosphere.koog.* and LLM_*, first non-blank wins”; “fix(koog): read LLM_MODE trimmed, as AiConfig and the other adapters do”; “fix(koog): offer the auto-configured executor and model so an executor the application sets wins”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/koog/src/main/kotlin/org/atmosphere/ai/koog/AtmosphereKoogAutoConfiguration.kt`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: atmosphere.js/src/transports/sse.ts atmosphere.js/src/transports/sse.ts:145 — atmosphere.js/src/transports/sse.ts changed 10 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 5 (its worst body is SSETransport.handleMessage at line 145), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(atmosphere.js): a fallback subscription comes back under the lost tracking id and resume point”; “fix(js): log retried transport failures at info and keep error for the terminal one”; “fix(atmosphere.js): send request headers as real headers on same-origin fetch (#2789)”; “revert(atmosphere.js): keep main's tracking-id lifecycle on HTTP transports”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- atmosphere.js/src/transports/sse.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: atmosphere.js/src/transports/streaming.ts atmosphere.js/src/transports/streaming.ts:38 — atmosphere.js/src/transports/streaming.ts changed 10 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 10 (its worst body is StreamingTransport.connect at line 38), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(atmosphere.js): a fallback subscription comes back under the lost tracking id and resume point”; “fix(js): log retried transport failures at info and keep error for the terminal one”; “fix(atmosphere.js): send request headers as real headers on same-origin fetch (#2789)”; “revert(atmosphere.js): keep main's tracking-id lifecycle on HTTP transports”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- atmosphere.js/src/transports/streaming.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/resume/RunDisconnectGrace.java modules/ai/src/main/java/org/atmosphere/ai/resume/RunDisconnectGrace.java:475 — modules/ai/src/main/java/org/atmosphere/ai/resume/RunDisconnectGrace.java changed 9 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 8 (its worst body is Detached.fire at line 475), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): endpoints hold the sweeper and grace timer from construction; none restarts unheld”; “fix(ai): every way a reattached client stops listening decides for the run, once”; “fix(ai): an endpoint's destroy cancels only the reattach graces of the runs it started”; “fix(ai): only a room run's own client restarts or holds off its reattach grace”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/resume/RunDisconnectGrace.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: atmosphere.js/src/transports/webtransport.ts atmosphere.js/src/transports/webtransport.ts:295 — atmosphere.js/src/transports/webtransport.ts changed 9 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 12 (its worst body is WebTransportTransport.drainFrames at line 295), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(atmosphere.js): a fallback subscription comes back under the lost tracking id and resume point”; “fix(atmosphere.js): a WebTransport session survives a frame it cannot parse”; “fix(js): log retried transport failures at info and keep error for the terminal one”; “fix(cpr): keep query values decoding to control characters raw; WebTransport spells spaces %20”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- atmosphere.js/src/transports/webtransport.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java:185 — modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java changed 7 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 11 (its worst body is LlmClassifierScopeGuardrail.evaluate at line 185), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): build the per-application LLM tiers through forEnvironment factories”; “fix(ai): admit a request scope with the framework's own AI environment”; “fix(ai): resolve scope, injection, moderation and intent tiers per application”; “fix(ai): degrade the semantic-intent scope tier to rule-based instead of admitting all”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: atmosphere.js/src/streaming/types.ts atmosphere.js/src/streaming/types.ts:151 — atmosphere.js/src/streaming/types.ts changed 10 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is (anonymous) at line 151), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(atmosphere.js): send the resume point on every request so a reconnect gets what it missed”; “fix(console): a Clear before the first token discards this client's room turn, not another member's”; “fix(ai): a room prompt is echoed only from the admission of the turn that streams it”; “fix(js): make useStreamingRN suspend, close or keep the stream on AppState changes”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- atmosphere.js/src/streaming/types.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: samples/spring-boot-personal-assistant/src/main/java/org/atmosphere/samples/springboot/personalassistant/PrimaryAssistant.java samples/spring-boot-personal-assistant/src/main/java/org/atmosphere/samples/springboot/personalassistant/PrimaryAssistant.java:116 — samples/spring-boot-personal-assistant/src/main/java/org/atmosphere/samples/springboot/personalassistant/PrimaryAssistant.java changed 8 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 7 (its worst body is PrimaryAssistant.onReady at line 116), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(samples): keep the personal-assistant transport open while keying memory on the token”; “fix(ai): resolve the run owner from the AuthInterceptor principal”; “fix(samples): key personal-assistant memory on the authenticated principal”; “fix(samples): stop the personal assistant overwriting an upstream-resolved ai.userId”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- samples/spring-boot-personal-assistant/src/main/java/org/atmosphere/samples/springboot/personalassistant/PrimaryAssistant.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/StreamingSessions.java modules/ai/src/main/java/org/atmosphere/ai/StreamingSessions.java:70 — modules/ai/src/main/java/org/atmosphere/ai/StreamingSessions.java changed 7 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is StreamingSessions.start at line 70), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): a run whose @Prompt returns with its session open ends with that session”; “fix(ai): a room run ends for the room when its prompter leaves, its grace expires or the run ends”; “fix(ai): long-polling room replies under shared listeners; own replies end the run replay”; “fix(ai): resume a room member's poll outside its mailbox lock”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/StreamingSessions.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/StreamingSessionSweeper.java modules/ai/src/main/java/org/atmosphere/ai/StreamingSessionSweeper.java:200 — modules/ai/src/main/java/org/atmosphere/ai/StreamingSessionSweeper.java changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 5 (its worst body is StreamingSessionSweeper.ttlMs at line 200), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): ready an endpoint's first prompt at deploy, so its run id goes out at once”; “fix(ai): endpoints hold the sweeper and grace timer from construction; none restarts unheld”; “fix(ai): an endpoint's destroy ends its own left-open runs and stops the sweeper only when unheld”; “fix(ai): bound runs left open after their @Prompt returns and reach them after a reattach”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/StreamingSessionSweeper.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:809 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 11 (its worst body is AtmosphereHttp3Handler.channelRead at line 809), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(console): wait for a WebTransport sidecar that is still starting instead of staying on WebSocket”; “fix(spring-boot): read an atmosphere.js WebTransport close as a leave in either arrival order”; “fix(spring-boot): report a WebTransport session the page left with its stream open as going-away”; “fix(spring-boot): report a dropped WebTransport session as abnormal, not closed by the client”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInEmbeddingRuntime.java modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInEmbeddingRuntime.java:149 — modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInEmbeddingRuntime.java changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 14 (its worst body is BuiltInEmbeddingRuntime.embedAll at line 149), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): every runtime sends an API key over plain http only to a loopback host”; “fix(ai): close the runtime and embedding instances an AI environment loaded when it closes”; “fix(ai): name the local Built-in embedding model with LLM_EMBEDDING_MODEL”; “fix(ai): stop the embedding scope guardrail logging an ERROR on every local-mode turn”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInEmbeddingRuntime.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: atmosphere.js/src/transports/websocket.ts atmosphere.js/src/transports/websocket.ts:215 — atmosphere.js/src/transports/websocket.ts changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 7 (its worst body is WebSocketTransport.handleClose at line 215), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(atmosphere.js): a fallback subscription comes back under the lost tracking id and resume point”; “fix(js): close the WebSocket with 1000 on disconnect so the server reports the client leaving”; “fix(js): log retried transport failures at info and keep error for the terminal one”; “fix(atmosphere.js): send the close message on close() and pagehide (#2783)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- atmosphere.js/src/transports/websocket.ts`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/annotation/AgentScope.java modules/ai/src/main/java/org/atmosphere/ai/annotation/AgentScope.java:175 — modules/ai/src/main/java/org/atmosphere/ai/annotation/AgentScope.java changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 1 (its worst body is Breach.<init> at line 175), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): send a scope breach's redirect message verbatim instead of having the model render it”; “fix(agent): warn when a skill scopeTier discards or narrows the class's restrictive @AgentScope”; “fix(agent): an explicit restrictive @AgentScope beats a scope derived from skill Guardrails”; “fix(ai): check the semantic-intent floor before forbidden topics, report its resolved impl”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/annotation/AgentScope.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:198 — modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 10 (its worst body is LlmClassifierInjectionClassifier.evaluate at line 198), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): build the per-application LLM tiers through forEnvironment factories”; “fix(ai): resolve scope, injection, moderation and intent tiers per application”; “fix(ai): time out TypeSafe connects cut short by the deadline, document what its probe checks”; “fix(ai): score the decision value the reply carries and never clear a flagged document Minority answers escalate; one threshold path; LC4j/AgentScope send the stamped schema; real-LLM e2e asserts INJECTED.”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiStreamingSession.java modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiStreamingSession.java:203 — modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiStreamingSession.java changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 6 (its worst body is AgUiStreamingSession.emit at line 203), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(agui): write AgUiStreamingSession frames to the container response past the SSE interceptor”; “fix(agui): end the run on an emitted Complete and stream AG-UI sessions through the pipeline”; “fix(agui): make RUN_ERROR terminal on every path and close-once with the wrapped session”; “fix(agui): emit AG-UI schema field names for tool, step, error, reasoning and snapshot events”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiStreamingSession.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/AtmosphereSemanticKernelClientAutoConfiguration.java modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/AtmosphereSemanticKernelClientAutoConfiguration.java:83 — modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/AtmosphereSemanticKernelClientAutoConfiguration.java changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 4 (its worst body is AtmosphereSemanticKernelClientAutoConfiguration.atmosphereSemanticKernelOpenAIAsyncClient at line 83), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): every runtime sends an API key over plain http only to a loopback host”; “fix(ai): the keyless-model gate reads LLM_MODE trimmed and case-insensitive”; “fix(ai): a blank base URL follows the model in LC4j, Spring AI, Alibaba, AgentScope, SK”; “fix(semantic-kernel): send an API key over plain http only to a loopback host”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/AtmosphereSemanticKernelClientAutoConfiguration.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/MsGovernanceChat.java samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/MsGovernanceChat.java:99 — samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/MsGovernanceChat.java changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 6 (its worst body is MsGovernanceChat.msSchemaRuleCount at line 99), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(samples): ms-governance denies a Luhn-valid card number, not every 16-digit integer”; “fix(ai): report an expected policy or guardrail denial without an ERROR stack trace”; “fix(ai): let an identity-stamping AiInterceptor run before the endpoint's guardrails and policies”; “fix(samples): let ms-governance-chat's legal-escalation policy answer legal language”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/MsGovernanceChat.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeGuardrailResolver.java modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeGuardrailResolver.java:136 — modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeGuardrailResolver.java changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 7 (its worst body is ScopeGuardrailResolver.findOrFallback at line 136), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): build the per-application LLM tiers through forEnvironment factories”; “fix(ai): resolve scope, injection, moderation and intent tiers per application”; “fix(ai): check the semantic-intent floor before forbidden topics, report its resolved impl”; “fix(ai): degrade the semantic-intent scope tier to rule-based instead of admitting all”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeGuardrailResolver.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/decision/DecisionModelResolver.java modules/ai/src/main/java/org/atmosphere/ai/decision/DecisionModelResolver.java:152 — modules/ai/src/main/java/org/atmosphere/ai/decision/DecisionModelResolver.java changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 14 (its worst body is DecisionModelResolver.resolve at line 152), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): resolve decision models, memory, caches and evaluators per application”; “fix(ai): close the resolver's cached decision model on reset and recheck a provisional fallback”; “fix(ai): close decision-model registrations the resolver loads but does not select”; “fix(ai): skip RAG and cancelled turns in intent routing and escalate unconfirmable CONFIRM at once”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/decision/DecisionModelResolver.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: modules/ai/src/main/java/org/atmosphere/ai/filter/AiStreamBroadcastFilter.java modules/ai/src/main/java/org/atmosphere/ai/filter/AiStreamBroadcastFilter.java:84 — modules/ai/src/main/java/org/atmosphere/ai/filter/AiStreamBroadcastFilter.java changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 7 (its worst body is AiStreamBroadcastFilter.deferStreamEnd at line 84), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(ai): deliver a stream-end frame a second filter defers again, instead of dropping it”; “fix(ai): deliver a whole AI reply to the next long-poll instead of its first frame”; “fix(ai): never send a deferred stream end to every subscriber after a disconnect”; “fix(ai): read a deferred stream end's recipient while its terminal frame is filtered”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 14:49:25 +00:00' --until='2026-10-22 14:49:25 +00:00' --full-history --no-merges -- modules/ai/src/main/java/org/atmosphere/ai/filter/AiStreamBroadcastFilter.java`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 33 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×47
  • TooManyMethods: AtmosphereFramework modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:106 — TooManyMethods — 196 methods. The bar is 30 methods; this is 166 over it, 6.53× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AtmosphereRequestImpl modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:78 — TooManyMethods — 109 methods. The bar is 30 methods; this is 79 over it, 3.63× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AiEndpointHandler modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:87 — TooManyMethods — 106 methods. The bar is 30 methods; this is 76 over it, 3.53× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: DefaultBroadcaster modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:96 — TooManyMethods — 104 methods. The bar is 30 methods; this is 74 over it, 3.47× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AtmosphereAdminEndpoint modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:56 — TooManyMethods — 92 methods. The bar is 30 methods; this is 62 over it, 3.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AtmosphereResourceImpl modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:53 — TooManyMethods — 91 methods. The bar is 30 methods; this is 61 over it, 3.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AiStreamingSession modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:63 — TooManyMethods — 86 methods. The bar is 30 methods; this is 56 over it, 2.87× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AiEnvironment modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java:101 — TooManyMethods — 79 methods. The bar is 30 methods; this is 49 over it, 2.63× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AtmosphereResponseImpl REDACTED:52 — TooManyMethods — 72 methods. The bar is 30 methods; this is 42 over it, 2.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: NoOpsRequest modules/cpr/src/main/java/org/atmosphere/cpr/NoOpsRequest.java:54 — TooManyMethods — 72 methods. The bar is 30 methods; this is 42 over it, 2.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: RunEventReplayBuffer modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java:178 — TooManyMethods — 70 methods. The bar is 30 methods; this is 40 over it, 2.33× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AiConfig modules/ai/src/main/java/org/atmosphere/ai/AiConfig.java:77 — TooManyMethods — 65 methods. The bar is 30 methods; this is 35 over it, 2.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: McpProtocolHandler modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:49 — TooManyMethods — 64 methods. The bar is 30 methods; this is 34 over it, 2.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AdminResource modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:51 — TooManyMethods — 63 methods. The bar is 30 methods; this is 33 over it, 2.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: OpenAiCompatibleClient modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:73 — TooManyMethods — 55 methods. The bar is 30 methods; this is 25 over it, 1.83× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: A2aProtocolHandler modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:62 — TooManyMethods — 53 methods. The bar is 30 methods; this is 23 over it, 1.77× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: McpRegistry modules/mcp/src/main/java/org/atmosphere/mcp/registry/McpRegistry.java:48 — TooManyMethods — 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: DefaultWebSocketProcessor modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:94 — TooManyMethods — 49 methods. The bar is 30 methods; this is 19 over it, 1.63× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AtmosphereProperties modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:33 — TooManyMethods — 46 methods. The bar is 30 methods; this is 16 over it, 1.53× the bar. This type is bound by @ConfigurationProperties, so its accessors ARE the configuration keys: grouping members onto a nested type renames every key beneath it, and keeping the keys means the delegate still needs the full pass-through pair, which does not reduce the count. To reduce it, treat the split as a key migration — move each cohesive group onto its own bound type and publish the new key names, keeping the old ones accepted for a deprecation period. Where the key surface has to stay as it is, that is a decision to record rather than a change to make.
  • TooManyMethods: AbstractAgentRuntime modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java:46 — TooManyMethods — 45 methods. The bar is 30 methods; this is 15 over it, 1.50× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: DefaultStreamingSession modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java:83 — TooManyMethods — 44 methods. The bar is 30 methods; this is 14 over it, 1.47× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: VertxServletResponse modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/vertx/VertxServletResponse.java:58 — TooManyMethods — 44 methods. The bar is 30 methods; this is 14 over it, 1.47× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: AiProperties modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:366 — TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× the bar. This type is bound by @ConfigurationProperties, so its accessors ARE the configuration keys: grouping members onto a nested type renames every key beneath it, and keeping the keys means the delegate still needs the full pass-through pair, which does not reduce the count. To reduce it, treat the split as a key migration — move each cohesive group onto its own bound type and publish the new key names, keeping the old ones accepted for a deprecation period. Where the key surface has to stay as it is, that is a decision to record rather than a change to make.
  • TooManyMethods: TypesafeDecisionModel modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeDecisionModel.java:173 — TooManyMethods — 41 methods. The bar is 30 methods; this is 11 over it, 1.37× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Builder modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:1035 — TooManyMethods — 41 methods. The bar is 30 methods; this is 11 over it, 1.37× the bar. Most of these members implement cpr.Builder (38 of 39 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
  • + 22 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×47
  • Duplicated block (6 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:290 — modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:290-295 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:367-372 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:290` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:131 — modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:131-136 | modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:143-148 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:131` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:138` calls `duration`, `toMillis` and `modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:150` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowRunner.java:391 — modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowRunner.java:391-396 | modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowRunner.java:458-463 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowRunner.java:391` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1322 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1322-1328 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1616-1621 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind `pipeline` to `org.atmosphere.ai.AiPipeline` in one and `AiPipeline` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java:232 — modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java:232-237 | modules/ai/src/main/java/org/atmosphere/ai/TracingCapturingSession.java:154-159 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:182 — modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:182-187 | modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:212-217 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:182` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:181` calls `remove`, `sessionId` and `modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:211` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:125 — modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:125-130 | modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:145-151 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:125` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:145` calls `parameter` and `modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:125` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsExtendsResolver.java:486 — modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsExtendsResolver.java:486-491 | modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsExtendsResolver.java:546-551 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsExtendsResolver.java:486` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsExtendsResolver.java:489 — modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsExtendsResolver.java:489-494 | modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsExtendsResolver.java:518-523 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsExtendsResolver.java:489` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:174 — modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:174-179 | modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:194-201 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:486 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:486-491 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:470-475 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:545 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:545-550 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:502-507 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:545` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:282 — modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:282-287 | modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/JsonRpcUtils.java:178-183 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:282` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:602 — modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:602-607 | modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:621-626 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:602` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:147 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:147-152 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCheckpointEndpoint.java:146-151 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:147` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:154` calls `parseInstant`, `isBlank`, `parse` and `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCheckpointEndpoint.java:153` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:565 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:565-570 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:605-610 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:565` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:152 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:152-157 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:163-168 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:554 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:554-559 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:504-509 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:737 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:737-742 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:662-667 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:457 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:457-462 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1750-1755 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:457` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:58 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:58-63 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:58-63 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:164 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:164-169 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:164-169 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:164` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (6 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/ai/VerifierController.java:236 — modules/admin/src/main/java/org/atmosphere/admin/ai/VerifierController.java:236-241 | modules/verifier-smt/src/main/java/org/atmosphere/verifier/smt/AbstractJavaSmtChecker.java:312-317 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:749 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:749-754 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:641-647 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:749` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (6 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:770 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:770-775 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:664-670 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:770` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • + 22 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×46
  • Duplicated block (8 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:240 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:240-250 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:379-386 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:240` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:563 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:563-570 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:992-999 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:563` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:284 — modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:284-291 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiChatHandler.java:391-398 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:284` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:141 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:141-148 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:272-279 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java` and `modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:490 — modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:490-497 | modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:525-532 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:490` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:224 — modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:224-231 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:246-253 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:530 — modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:530-537 | modules/ai/src/main/java/org/atmosphere/ai/workspace/OpenClawWorkspaceAdapter.java:160-167 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:91 — modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:91-98 | modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:155-162 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:91` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:328 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:328-338 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:265-272 — before extracting anything, compare `modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java` and `modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1319 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1319-1326 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1454-1461 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1319` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1068 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1068-1075 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1375-1382 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1068` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:97 — modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:97-104 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:96-103 — before extracting anything, compare `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java` and `modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:97` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:140 — modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:140-147 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:155-162 — before extracting anything, compare `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java` and `modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:148` calls `isBlank`, `put` and `modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:163` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 2) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:122 — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:122-129 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:103-110 — before extracting anything, compare `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java` and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:122` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:144 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:144-151 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:117-124 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:144` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:654 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:654-661 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:231-238 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:701 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:701-708 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:278-285 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1169 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1169-1176 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:301-308 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:796 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:796-803 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:715-722 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:796` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:867 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:867-874 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:780-787 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:642 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:642-649 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:178-185 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:642` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:638` calls `ifPresent` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:174` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:1460 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:1460-1467 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:988-995 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:97 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:97-104 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:97-104 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:107 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:107-114 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:107-114 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/skill/ScopePolicyResolver.java:773 — modules/agent/src/main/java/org/atmosphere/agent/skill/ScopePolicyResolver.java:773-780 | modules/ai/src/main/java/org/atmosphere/ai/ContextProvider.java:195-202 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • + 21 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×42
  • Duplicated block (5 lines × 2) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:191 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:191-195 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:551-555 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:191` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:290 — modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:290-294 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:454-458 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) modules/agui/src/main/java/org/atmosphere/agui/bridge/AgUiProtocolBridge.java:64 — modules/agui/src/main/java/org/atmosphere/agui/bridge/AgUiProtocolBridge.java:64-68 | modules/mcp/src/main/java/org/atmosphere/mcp/bridge/McpProtocolBridge.java:69-73 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agui/src/main/java/org/atmosphere/agui/bridge/AgUiProtocolBridge.java:64` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:119 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:119-124 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:88-92 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:119` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (5 lines × 2) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:114 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:114-118 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:174-178 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:114` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/batch/BatchWire.java:180 — modules/ai/src/main/java/org/atmosphere/ai/batch/BatchWire.java:180-184 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:278-282 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/batch/BatchWire.java:180` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind `error` to `BatchError` in one and `OpenAiError` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java:56 — modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java:56-60 | modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/JsonFileEpisodicMemoryStore.java:108-112 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java:56` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/JsonFileEpisodicMemoryStore.java:106` calls `ensureLoaded` and `modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java:54` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:87 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:87-91 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:116-120 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java` and `modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:185 — modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:185-189 | modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:209-213 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:185` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/memory/ScreenedLongTermMemory.java:207 — modules/ai/src/main/java/org/atmosphere/ai/governance/memory/ScreenedLongTermMemory.java:207-211 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java:254-258 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/memory/ScreenedLongTermMemory.java:207` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:105 — modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:105-109 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:179-183 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java:126 — modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java:126-130 | modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/Ed25519CommitmentSigner.java:161-165 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java:126` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:565 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:565-569 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:522-526 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:565` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/coordinator/CheckpointingCoordinationJournal.java:172 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/coordinator/CheckpointingCoordinationJournal.java:172-176 | modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/CoordinationProjection.java:149-153 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/coordinator/CheckpointingCoordinationJournal.java:172` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:135 — modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:135-139 | modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:251-255 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:135` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/StatelessDialect.java:223 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/StatelessDialect.java:223-227 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/StatelessDialect.java:312-316 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:161 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:161-165 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:89-93 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:161` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:799 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:799-803 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:858-862 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:799` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:130 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:130-134 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:130-134 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:130` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:72 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:72-76 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:72-76 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) modules/verifier/src/main/java/org/atmosphere/verifier/checks/AutomatonVerifier.java:117 — modules/verifier/src/main/java/org/atmosphere/verifier/checks/AutomatonVerifier.java:117-121 | modules/verifier/src/main/java/org/atmosphere/verifier/checks/WellFormednessVerifier.java:87-91 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/verifier/src/main/java/org/atmosphere/verifier/checks/AutomatonVerifier.java:117` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java:126 — modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java:126-130 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:134-138 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java:126` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/WorkspaceMcpToolWiring.java:113 — modules/agent/src/main/java/org/atmosphere/agent/processor/WorkspaceMcpToolWiring.java:113-117 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/WorkspaceMcpToolWiring.java:86-90 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:100 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:100-104 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:129-133 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java` and `modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:411 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:411-415 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:375-379 — before extracting anything, compare `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java` and `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • + 17 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×40
  • Duplicated block (9 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowController.java:149 — modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowController.java:149-157 | modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowController.java:181-189 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1087 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1087-1095 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1357-1365 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1087` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `annotation` to `Agent` in one and `Coordinator` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (9 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:139 — modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:139-147 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:129-137 — before extracting anything, compare `modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java` and `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AtmospherePlanStorage.java:89 — modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AtmospherePlanStorage.java:89-97 | modules/ai/src/main/java/org/atmosphere/ai/governance/GuardrailAsPolicy.java:66-74 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/governance/GuardrailAsPolicy.java:75` calls `isBlank`, `IllegalArgumentException` and `modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AtmospherePlanStorage.java:98` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:45 — modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:45-53 | modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java:65-73 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java` and `modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:125 — modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:125-133 | modules/ai/src/main/java/org/atmosphere/ai/filter/PiiRedactionFilter.java:101-109 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:125` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/KillSwitchPolicy.java:73 — modules/ai/src/main/java/org/atmosphere/ai/governance/KillSwitchPolicy.java:73-81 | modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:77-85 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:86` calls `copyOf` and `modules/ai/src/main/java/org/atmosphere/ai/governance/KillSwitchPolicy.java:82` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java:76 — modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java:76-84 | modules/ai/src/main/java/org/atmosphere/ai/governance/owasp/OwaspAgenticMatrix.java:63-71 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/LogprobsMode.java:85 — modules/ai/src/main/java/org/atmosphere/ai/llm/LogprobsMode.java:85-93 | modules/ai/src/main/java/org/atmosphere/ai/llm/PromptCacheKeyMode.java:99-107 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/resume/InMemoryEffectJournal.java:84 — modules/ai/src/main/java/org/atmosphere/ai/resume/InMemoryEffectJournal.java:84-92 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:103-111 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (9 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:835 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:835-843 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:700-708 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:845` calls `header` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:710` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 2) modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:347 — modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:347-355 | modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:437-445 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:347` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java:317 — modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java:317-325 | modules/cpr/src/main/java/org/atmosphere/room/RoomProtocolInterceptor.java:505-513 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java:317` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:308 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:308-317 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:247-255 — before extracting anything, compare `modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java` and `modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:393 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:393-401 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:357-365 — before extracting anything, compare `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java` and `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:393` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminReadAuthFilter.java:178 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminReadAuthFilter.java:178-186 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:263-271 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:527 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:527-535 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:587-595 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:527` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:124 — modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:124-132 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:124-132 — before extracting anything, compare `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java` and `modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:124` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:774 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:774-782 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:810-818 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:774` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:840 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:840-848 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:881-889 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1306 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1306-1314 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1341-1349 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:160 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:160-168 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:198-206 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:160` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:365 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:365-373 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:370-378 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:743 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:743-751 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:668-676 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:743` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:838 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:838-846 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:752-760 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:838` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • + 15 more in this group — see findings.md.
D3 · God Classes · ClassTooLong · ×38
  • ClassTooLong: AiEndpointHandler modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:87 — ClassTooLong — 1300 significant lines (blank, comment-only and punctuation-only lines excluded), 106 methods. The bar is 400 significant lines; this is 900 over it, 3.25× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AtmosphereRequestImpl modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:78 — ClassTooLong — 1081 significant lines (blank, comment-only and punctuation-only lines excluded), 109 methods. The bar is 400 significant lines; this is 681 over it, 2.70× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AtmosphereAiAutoConfiguration modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:59 — ClassTooLong — 1077 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 677 over it, 2.69× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AiStreamingSession modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:63 — ClassTooLong — 1043 significant lines (blank, comment-only and punctuation-only lines excluded), 86 methods. The bar is 400 significant lines; this is 643 over it, 2.61× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AtmosphereAiAutoConfiguration modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:70 — ClassTooLong — 1005 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 605 over it, 2.51× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AtmosphereAdminEndpoint modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:56 — ClassTooLong — 985 significant lines (blank, comment-only and punctuation-only lines excluded), 92 methods. The bar is 400 significant lines; this is 585 over it, 2.46× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: OpenAiCompatibleClient modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:73 — ClassTooLong — 953 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 553 over it, 2.38× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AtmosphereFramework modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:106 — ClassTooLong — 905 significant lines (blank, comment-only and punctuation-only lines excluded), 196 methods. The bar is 400 significant lines; this is 505 over it, 2.26× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: McpProtocolHandler modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:49 — ClassTooLong — 865 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 400 significant lines; this is 465 over it, 2.16× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: CoordinatorProcessor modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:120 — ClassTooLong — 814 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 414 over it, 2.04× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AtmosphereProperties modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:33 — ClassTooLong — 738 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 338 over it, 1.85× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AgentProcessor modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:71 — ClassTooLong — 686 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 286 over it, 1.72× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AdminResource modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:51 — ClassTooLong — 676 significant lines (blank, comment-only and punctuation-only lines excluded), 63 methods. The bar is 400 significant lines; this is 276 over it, 1.69× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: RunReattachSupport modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java:89 — ClassTooLong — 672 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 272 over it, 1.68× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AtmosphereResourceImpl modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:53 — ClassTooLong — 666 significant lines (blank, comment-only and punctuation-only lines excluded), 91 methods. The bar is 400 significant lines; this is 266 over it, 1.67× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AtmosphereProperties modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java:33 — ClassTooLong — 598 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 198 over it, 1.50× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: ToolExecutionHelper modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java:52 — ClassTooLong — 594 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 194 over it, 1.49× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: A2aProtocolHandler modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:62 — ClassTooLong — 587 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 187 over it, 1.47× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AiEnvironment modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java:101 — ClassTooLong — 581 significant lines (blank, comment-only and punctuation-only lines excluded), 79 methods. The bar is 400 significant lines; this is 181 over it, 1.45× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: LongPollingRoomReplies modules/ai/src/main/java/org/atmosphere/ai/LongPollingRoomReplies.java:131 — ClassTooLong — 576 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 176 over it, 1.44× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: RunEventReplayBuffer modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java:178 — ClassTooLong — 573 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 400 significant lines; this is 173 over it, 1.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AiEndpointProcessor modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:78 — ClassTooLong — 541 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 141 over it, 1.35× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: KoogAgentRuntime modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:63 — ClassTooLong — 541 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 141 over it, 1.35× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: ReactorNettyTransportServer modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:81 — ClassTooLong — 505 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 105 over it, 1.26× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: AnthropicMessagesClient modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:78 — ClassTooLong — 496 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 96 over it, 1.24× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • + 13 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×33
  • FileTooLong: processor/AiEndpointHandler.java modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java — FileTooLong — 1361 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AiEndpointHandler (87-2992). The bar is 500 significant lines; this is 861 over it, 2.72× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: cpr/DefaultBroadcaster.java modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java — FileTooLong — 1308 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 808 over it, 2.62× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: cpr/AtmosphereRequestImpl.java modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java — FileTooLong — 1130 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AtmosphereRequestImpl (78-1797). The bar is 500 significant lines; this is 630 over it, 2.26× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: boot/AtmosphereAiAutoConfiguration.java modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java — FileTooLong — 1109 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: AtmosphereAiAutoConfiguration (59-1999). The bar is 500 significant lines; this is 609 over it, 2.22× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: ai/AiStreamingSession.java modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java — FileTooLong — 1059 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: AiStreamingSession (63-2496). The bar is 500 significant lines; this is 559 over it, 2.12× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: boot/AtmosphereAiAutoConfiguration.java modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java — FileTooLong — 1046 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AtmosphereAiAutoConfiguration (70-1789). The bar is 500 significant lines; this is 546 over it, 2.09× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: boot/AtmosphereAdminEndpoint.java modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java — FileTooLong — 1015 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: AtmosphereAdminEndpoint (56-1644). The bar is 500 significant lines; this is 515 over it, 2.03× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: llm/OpenAiCompatibleClient.java modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java — FileTooLong — 984 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: OpenAiCompatibleClient (73-1998). The bar is 500 significant lines; this is 484 over it, 1.97× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: cpr/AtmosphereFramework.java modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java — FileTooLong — 977 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AtmosphereFramework (106-2190). The bar is 500 significant lines; this is 477 over it, 1.95× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: processor/CoordinatorProcessor.java modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java — FileTooLong — 896 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: CoordinatorProcessor (120-1629). The bar is 500 significant lines; this is 396 over it, 1.79× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: runtime/McpProtocolHandler.java modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java — FileTooLong — 891 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: McpProtocolHandler (49-1614). The bar is 500 significant lines; this is 391 over it, 1.78× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: boot/AtmosphereProperties.java modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java — FileTooLong — 746 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AtmosphereProperties (33-1840). The bar is 500 significant lines; this is 246 over it, 1.49× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: composables/useAtmosphereChat.ts modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts — FileTooLong — 742 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 242 over it, 1.48× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: processor/AgentProcessor.java modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java — FileTooLong — 733 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AgentProcessor (71-1359). The bar is 500 significant lines; this is 233 over it, 1.47× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: websocket/DefaultWebSocketProcessor.java modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java — FileTooLong — 714 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 214 over it, 1.43× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: runtime/AdminResource.java modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java — FileTooLong — 702 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AdminResource (51-1097). The bar is 500 significant lines; this is 202 over it, 1.40× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: cpr/AtmosphereResourceImpl.java modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java — FileTooLong — 693 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AtmosphereResourceImpl (53-1236). The bar is 500 significant lines; this is 193 over it, 1.39× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: resume/RunReattachSupport.java modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java — FileTooLong — 677 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: RunReattachSupport (89-1473). The bar is 500 significant lines; this is 177 over it, 1.35× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: koog/KoogAgentRuntime.kt modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt — FileTooLong — 634 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: KoogAgentRuntime (63-1208). The bar is 500 significant lines; this is 134 over it, 1.27× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: runtime/A2aProtocolHandler.java modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java — FileTooLong — 618 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: A2aProtocolHandler (62-1117). The bar is 500 significant lines; this is 118 over it, 1.24× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: tool/ToolExecutionHelper.java modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java — FileTooLong — 616 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ToolExecutionHelper (52-1441). The bar is 500 significant lines; this is 116 over it, 1.23× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: ai/LongPollingRoomReplies.java modules/ai/src/main/java/org/atmosphere/ai/LongPollingRoomReplies.java — FileTooLong — 609 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: LongPollingRoomReplies (131-1185). The bar is 500 significant lines; this is 109 over it, 1.22× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: boot/AtmosphereProperties.java modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java — FileTooLong — 606 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AtmosphereProperties (33-1458). The bar is 500 significant lines; this is 106 over it, 1.21× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: ai/AiEnvironment.java modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java — FileTooLong — 604 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AiEnvironment (101-1460). The bar is 500 significant lines; this is 104 over it, 1.21× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: processor/AiEndpointProcessor.java modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java — FileTooLong — 594 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: AiEndpointProcessor (78-1105). The bar is 500 significant lines; this is 94 over it, 1.19× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • + 8 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×30
  • Duplicated block (10 lines × 2) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:451 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:451-460 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:470-479 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:451` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:375 — modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:375-384 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:398-407 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:375` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:159 — modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:159-168 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:137-146 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:159` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/code/EvalSupport.java:131 — modules/ai/src/main/java/org/atmosphere/ai/code/EvalSupport.java:131-140 | modules/ai/src/main/java/org/atmosphere/ai/websearch/WebSearchSupport.java:136-145 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/code/EvalSupport.java:131` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/memory/MemorySafetyConfig.java:250 — modules/ai/src/main/java/org/atmosphere/ai/governance/memory/MemorySafetyConfig.java:250-259 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/RagSafetyConfig.java:179-188 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1487 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1487-1496 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:705-714 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:119 — modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:119-128 | modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:86-95 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:119` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:2832 — modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:2832-2841 | modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:1167-1176 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:2832` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java:95 — modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java:95-104 | modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/Ed25519CommitmentSigner.java:77-86 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:351 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:351-360 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:386-395 — before extracting anything, compare `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:351` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:395` calls `IllegalStateException`, `unlock` and `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:360` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/GovernanceFleetInterceptor.java:87 — modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/GovernanceFleetInterceptor.java:87-96 | modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/SpawnSubagentTool.java:238-247 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/GovernanceFleetInterceptor.java:87` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:70 — modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:70-79 | modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:118-127 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:70` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1518 — modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1518-1527 | modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1568-1577 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) REDACTED:56 — REDACTED:56-65 | REDACTED:69-78 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:609 — modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:609-618 | modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:630-639 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:609` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (10 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:88 — modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:88-97 | modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:105-114 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1001 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1001-1010 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1032-1041 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:143 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:143-152 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:72-81 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:143` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1144 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1144-1153 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:449-458 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1144` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1283 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1283-1292 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1098-1107 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/DurableSessionAutoConfiguration.java:62 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/DurableSessionAutoConfiguration.java:62-71 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/DurableSessionAutoConfiguration.java:62-71 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/DurableSessionAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/DurableSessionAutoConfiguration.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/evals/EvalController.java:268 — modules/admin/src/main/java/org/atmosphere/admin/evals/EvalController.java:268-277 | modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowController.java:196-207 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (10 lines × 2) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:384 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:384-393 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:499-508 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:366 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:366-375 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:556-565 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1106 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1106-1115 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:990-999 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • + 5 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×27
  • Duplicated block (11 lines × 2) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:139 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:139-149 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:204-214 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:139` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:203` calls `getResponse` and `modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:138` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:180 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:180-190 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:540-550 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (11 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:305 — modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:305-315 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:469-479 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:305` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:316` calls `put` and `modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:480` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:156 — modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:156-166 | modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java:189-199 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java` and `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:56 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:56-66 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:65-75 — before extracting anything, compare `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java` and `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:56` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:765 — modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:765-775 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:134-144 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:765` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:71 — modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:71-81 | modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java:386-396 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java` and `modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:190 — modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:190-200 | modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java:585-595 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:190` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `defaultValue` to `long` in one and `int` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:94 — modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:94-104 | modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java:102-112 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java` and `modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java:113` calls `debug`, `size`, `length` and `modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:105` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1001 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1001-1011 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1651-1661 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1001` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/tape/PiiTapeRedactor.java:54 — modules/ai/src/main/java/org/atmosphere/ai/tape/PiiTapeRedactor.java:54-64 | modules/ai/src/main/java/org/atmosphere/ai/tape/PiiTapeRedactor.java:74-84 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/tape/PiiTapeRedactor.java:54` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (11 lines × 2) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:287 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:287-297 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:322-332 — before extracting anything, compare `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:287` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:470 — modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:470-480 | modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:504-514 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:470` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1037 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1037-1047 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1345-1355 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1037` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:107 — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:107-117 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:88-98 — before extracting anything, compare `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java` and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:107` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:103` calls `getPropertySources`, `contains` and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:87` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:814 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:814-824 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:987-997 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:814` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:522 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:522-532 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:472-482 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:522` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (11 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:785 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:785-795 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:704-714 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1272 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1272-1282 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1087-1097 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionStreamHandler.java:116 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionStreamHandler.java:116-126 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java:235-245 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:98 — modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:98-108 | modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java:106-116 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java` and `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:173 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:173-183 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:161-171 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:552 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:552-562 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:509-519 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaEmbeddingRuntime.java:113 — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaEmbeddingRuntime.java:113-123 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiEmbeddingRuntime.java:118-128 — before extracting anything, compare `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaEmbeddingRuntime.java` and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiEmbeddingRuntime.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:586 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:586-596 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:536-546 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:586` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • + 2 more in this group — see findings.md.
D10 · Test Quality · Skipped test · ×24
  • Skipped test: (unnamed test) e2e/tests/personal-assistant.spec.ts:59 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) e2e/tests/personal-assistant.spec.ts:102 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) e2e/tests/personal-assistant.spec.ts:131 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) e2e/tests/personal-assistant.spec.ts:191 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) e2e/tests/coding-agent.spec.ts:101 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) e2e/tests/coding-agent.spec.ts:143 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/webtransport.spec.ts:55 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/webtransport.spec.ts:151 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/webtransport.spec.ts:209 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/quarkus-ai-chat.spec.ts:189 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/quarkus-ai-chat.spec.ts:243 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/quarkus-ai-chat.spec.ts:244 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/quarkus-ai-chat.spec.ts:293 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/quarkus-ai-chat.spec.ts:294 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/quarkus-ai-chat.spec.ts:358 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/mcp-client.spec.ts:196 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/browser-agent.spec.ts:61 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/ai-reattach-webtransport.spec.ts:42 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/agui-chat.spec.ts:110 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/agui-chat.spec.ts:170 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/admin-coverage.spec.ts:42 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/admin-coverage.spec.ts:65 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/real-llm/real-llm-decision.spec.ts:32 — Skipped — switched off by test.skip
  • Skipped test: (unnamed test) modules/integration-tests/e2e/real-llm/real-llm-chat.spec.ts:26 — Skipped — switched off by test.skip
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×23
  • Swallowed exception (caught, then discarded) atmosphere.js/src/transports/base.ts:524 — `catch` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/admin/src/main/java/org/atmosphere/admin/agent/AgentController.java:248 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:410 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/approval/ApprovalRegistry.java:197 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/approval/ApprovalRegistry.java:211 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:149 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/cache/AiResponseCacheInspector.java:70 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/code/RhinoEvalEngine.java:45 — `catch (Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceTracer.java:74 — `catch (Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java:563 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java:1157 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:138 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1250 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:305 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java:335 — `catch (Throwable)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:67 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java:478 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/cpr/src/main/java/org/atmosphere/util/annotation/ClassFileIterator.java:191 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:236 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:250 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:288 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminReadAuthFilter.java:172 — `catch (RuntimeException)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:149 — `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
AC6 · Visual & motion safety · Animation without a prefers-reduced-motion guard · ×21
  • Animation without a prefers-reduced-motion guard samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.send-btn[data-v-a3f1cbae]` moves (`transition: opacity .15s,transform .1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.tool-card[data-v-9f6f4961]` moves (`animation: .3s slideIn-9f6f4961`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.dot[data-v-fc56de36]` moves (`animation: 1.4s infinite both bounce-fc56de36`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.send-btn[data-v-a3f1cbae]` moves (`transition: opacity .15s,transform .1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.tool-card[data-v-9f6f4961]` moves (`animation: .3s slideIn-9f6f4961`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.dot[data-v-fc56de36]` moves (`animation: 1.4s infinite both bounce-fc56de36`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.send-btn[data-v-a3f1cbae]` moves (`transition: opacity .15s,transform .1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.tool-card[data-v-9f6f4961]` moves (`animation: .3s slideIn-9f6f4961`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.dot[data-v-fc56de36]` moves (`animation: 1.4s infinite both bounce-fc56de36`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.send-btn[data-v-a3f1cbae]` moves (`transition: opacity .15s,transform .1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.tool-card[data-v-9f6f4961]` moves (`animation: .3s slideIn-9f6f4961`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard samples/chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.dot[data-v-fc56de36]` moves (`animation: 1.4s infinite both bounce-fc56de36`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.send-btn[data-v-a3f1cbae]` moves (`transition: opacity .15s,transform .1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.tool-card[data-v-9f6f4961]` moves (`animation: .3s slideIn-9f6f4961`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.dot[data-v-fc56de36]` moves (`animation: 1.4s infinite both bounce-fc56de36`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard modules/spring-boot-starter/frontend/src/components/ChatContainer.vue:445 — `.dot` moves (`animation: bounce 1.4s infinite both`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard modules/spring-boot-starter/frontend/src/components/ChatInput.vue:131 — `.send-btn` moves (`transition: opacity 0.15s, transform 0.1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard modules/spring-boot-starter/frontend/src/components/ToolCard.vue:112 — `.tool-card` moves (`animation: slideIn 0.3s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.send-btn[data-v-a3f1cbae]` moves (`transition: opacity .15s,transform .1s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.tool-card[data-v-9f6f4961]` moves (`animation: .3s slideIn-9f6f4961`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.dot[data-v-fc56de36]` moves (`animation: 1.4s infinite both bounce-fc56de36`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×19
  • Focus outline removed in CSS without a :focus replacement samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.input-field[data-v-a3f1cbae]` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__nodesselection-rect:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__edge.selected` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.input-field[data-v-a3f1cbae]` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__nodesselection-rect:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/grpc-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__edge.selected` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.input-field[data-v-a3f1cbae]` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__nodesselection-rect:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__edge.selected` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.input-field[data-v-a3f1cbae]` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__nodesselection-rect:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement samples/chat/src/main/webapp/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__edge.selected` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.input-field[data-v-a3f1cbae]` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__nodesselection-rect:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__edge.selected` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement modules/spring-boot-starter/frontend/src/components/ChatInput.vue:100 — `.input-field` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.input-field[data-v-a3f1cbae]` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__nodesselection-rect:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/index-BH_8pkdZ.css:1 — `.vue-flow__edge.selected` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
D3 · God Classes · MethodTooLong · ×17
  • MethodTooLong: AiStreamingSession.stream modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1464 — MethodTooLong — stream runs 361 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 261 over it, 3.61× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AiPipeline.executeAdmitted modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:630 — MethodTooLong — executeAdmitted runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.63× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AiEndpointHandler.dispatchPrompt modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:1223 — MethodTooLong — dispatchPrompt runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AiEndpointProcessor.handle modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:140 — MethodTooLong — handle runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: Atmosphere.subscribe atmosphere.js/src/core/atmosphere.ts:66 — MethodTooLong — subscribe runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CoordinatorProcessor.handle modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:189 — MethodTooLong — handle runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SpringAiAgentRuntime.doExecuteWithHandle modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:183 — MethodTooLong — doExecuteWithHandle runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: JSR356Endpoint.onOpen modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java:122 — MethodTooLong — onOpen runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:296 — MethodTooLong — atmosphereAiEndpointRegistrar runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AgentProcessor.handle modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:98 — MethodTooLong — handle runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AdminMcpBridge.registerOptionalReadTools modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:314 — MethodTooLong — registerOptionalReadTools runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AgUiEventMapper.toAgUi modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java:69 — MethodTooLong — toAgUi runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: ToolExecutionHelper.executeWithApprovalLive modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java:728 — MethodTooLong — executeWithApprovalLive runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: OpenAiCompatibleClient.doStreamWithToolLoop modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:396 — MethodTooLong — doStreamWithToolLoop runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: EmbabelAgentRuntime.executeAtmosphereNative modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt:619 — MethodTooLong — executeAtmosphereNative runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SpringAiAlibabaAgentRuntime.doExecute modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaAgentRuntime.java:195 — MethodTooLong — doExecute runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AiEndpointHandler.onRequest modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:570 — MethodTooLong — onRequest runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
X3 · Exception handling · Swallowed exception (empty catch) · ×17
  • Swallowed exception (empty catch) atmosphere.js/src/core/atmosphere.ts:111 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/hooks/react-native/useAtmosphereRN.ts:118 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/hooks/react-native/useAtmosphereRN.ts:148 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/interactions/client.ts:377 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/interactions/client.ts:411 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/transports/webtransport.ts:120 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/transports/webtransport.ts:129 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/transports/webtransport.ts:138 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/transports/webtransport.ts:256 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/transports/base.ts:267 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) atmosphere.js/src/transports/base.ts:280 — `.catch(() => {})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it.
  • Swallowed exception (empty catch) modules/cpr/src/main/java/org/atmosphere/util/VoidExecutorService.java:62 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) modules/spring-boot-starter/frontend/scripts/vue-check-ts7.cjs:80 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) modules/spring-boot-starter/frontend/src/App.vue:95 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) modules/spring-boot-starter/frontend/src/App.vue:110 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) modules/spring-boot-starter/frontend/src/App.vue:131 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) modules/spring-boot-starter/frontend/src/App.vue:151 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×15
  • Duplicated block (12 lines × 2) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:199 — modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:199-210 | modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:310-321 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:112 — modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:112-123 | modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java:135-146 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java` and `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:285 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:285-296 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:265-276 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:285` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java:99 — modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java:99-110 | modules/ai/src/main/java/org/atmosphere/ai/governance/owasp/OwaspAgenticMatrix.java:90-101 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java:99` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/rag/InjectionClassifierResolver.java:244 — modules/ai/src/main/java/org/atmosphere/ai/governance/rag/InjectionClassifierResolver.java:244-255 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeGuardrailResolver.java:167-178 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/rag/InjectionClassifierResolver.java:244` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `tier` to `InjectionClassifier.Tier` in one and `AgentScope.Tier` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (12 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:770 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:770-781 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:658-669 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:770` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:120 — modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:120-131 | modules/channels/src/main/java/org/atmosphere/channels/slack/SlackChannel.java:228-239 — before extracting anything, compare `modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java` and `modules/channels/src/main/java/org/atmosphere/channels/slack/SlackChannel.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:201 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:201-212 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereTapeProducer.java:198-209 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:201` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:392 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:392-403 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:386-397 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:967 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:967-978 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:860-871 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1685 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1685-1696 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1620-1631 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditKafkaAutoConfiguration.java:94 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditKafkaAutoConfiguration.java:94-105 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditPostgresAutoConfiguration.java:80-91 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditKafkaAutoConfiguration.java:94` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeRegistry.java:250 — modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeRegistry.java:250-261 | modules/ai/src/main/java/org/atmosphere/ai/EmbeddingRuntimeRegistry.java:181-192 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind `runtime` to `AgentRuntime` in one and `EmbeddingRuntime` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (12 lines × 2) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaEmbeddingRuntime.java:89 — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaEmbeddingRuntime.java:89-100 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiEmbeddingRuntime.java:94-105 — before extracting anything, compare `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaEmbeddingRuntime.java` and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiEmbeddingRuntime.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:126 — samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:126-137 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:176-187 — before extracting anything, compare `samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java` and `samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D29 · Static Analysis (SAST) · REDACTED · ×14
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×14
  • Duplicated block (9 lines × 3) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:590 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:590-598 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:647-655 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:665-673 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:272 — modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:272-280 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:666-674 | modules/cpr/src/main/java/org/atmosphere/util/HtmlEncoder.java:44-52 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:272` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/AuthorizationPolicy.java:72 — modules/ai/src/main/java/org/atmosphere/ai/governance/AuthorizationPolicy.java:72-80 | modules/ai/src/main/java/org/atmosphere/ai/governance/MetadataPresencePolicy.java:56-64 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:141-149 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (9 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1506 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1506-1514 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:861-869 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:725-733 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1506` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:856 — modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:856-864 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:61-69 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:61-69 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:474 — modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:474-482 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:697-705 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:737-745 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:474` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 3) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:267 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:267-275 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/InMemoryCheckpointStore.java:109-117 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:301-309 — before extracting anything, compare `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) modules/durable-sessions-redis/src/main/java/org/atmosphere/session/redis/RedisConversationPersistence.java:52 — modules/durable-sessions-redis/src/main/java/org/atmosphere/session/redis/RedisConversationPersistence.java:52-60 | modules/durable-sessions-redis/src/main/java/org/atmosphere/session/redis/RedisConversationPersistence.java:89-97 | modules/durable-sessions-redis/src/main/java/org/atmosphere/session/redis/RedisLongTermMemory.java:59-67 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (9 lines × 3) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:947 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:947-955 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:960-968 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:997-1005 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 3) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:558 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:558-566 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:586-594 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:628-636 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1919 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1919-1927 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:998-1006 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:856-864 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `headers` to `java.util.Map<String, String>` in one and `Map<String, String>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (9 lines × 3) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAnnotationScanner.java:142 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAnnotationScanner.java:142-150 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:652-660 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:188-196 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAnnotationScanner.java:142` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (9 lines × 3) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jEmbeddingRuntime.java:147 — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jEmbeddingRuntime.java:147-155 | modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaEmbeddingRuntime.java:130-138 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiEmbeddingRuntime.java:135-143 — before extracting anything, compare `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaEmbeddingRuntime.java` and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiEmbeddingRuntime.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: `EmbeddingModel` names `dev.langchain4j.model.embedding.EmbeddingModel` in one and `org.springframework.ai.embedding.EmbeddingModel` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (9 lines × 3) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:53 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:53-61 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:41-49 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:55-63 — before extracting anything, compare `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:53` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D6 · Cohesion (LCOM4) · Low cohesion · ×14
  • Low cohesion: Builder (LCOM4 34) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:1035 — Builder's methods fall into 34 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 34 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: Builder (LCOM4 11) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:903 — Builder's methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: Builder (LCOM4 10) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeDecisionModel.java:880 — Builder's methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: Builder (LCOM4 9) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:768 — Builder's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: Builder (LCOM4 8) REDACTED:130 — Builder's methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: Builder (LCOM4 7) modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:214 — Builder's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: Builder (LCOM4 6) modules/rag/src/main/java/org/atmosphere/ai/rag/pgvector/PgVectorContextProvider.java:192 — Builder's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: Builder (LCOM4 6) modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:225 — Builder's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: Builder (LCOM4 6) modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java:279 — Builder's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: GovernanceController (LCOM4 5) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:59 — GovernanceController's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: AssistantTools (LCOM4 4) samples/spring-boot-ai-tools/src/main/java/org/atmosphere/samples/springboot/aitools/AssistantTools.java:41 — AssistantTools's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: AbstractProtocolHandler (LCOM4 4) modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:43 — AbstractProtocolHandler's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: McpSession (LCOM4 4) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpSession.java:40 — McpSession's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: AtmosphereResourceImpl (LCOM4 4) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:53 — AtmosphereResourceImpl's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×13
  • Duplicated block (13 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:82 — modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:82-94 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:78-90 — before extracting anything, compare `modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java` and `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:82` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:166 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:166-179 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:167-179 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:853 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:853-865 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:717-729 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:853` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) REDACTED:351 — REDACTED:351-363 | REDACTED:380-392 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:351` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:748 — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:748-760 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:777-789 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:748` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `builder` to `dev.langchain4j.model.chat.request.ChatRequest.Builder` in one and `dev.langchain4j.model.openai.OpenAiChatRequestParameters.Builder` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (13 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:224 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:224-236 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:418-430 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1321 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1321-1333 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1121-1133 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1321` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1732 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1732-1744 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1667-1679 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereFaviconAutoConfiguration.java:82 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereFaviconAutoConfiguration.java:82-94 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereFaviconAutoConfiguration.java:82-94 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereFaviconAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereFaviconAutoConfiguration.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:533 — modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:533-545 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:167-180 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:167` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (13 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:781 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:781-793 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1033-1045 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (13 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:801 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:801-813 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1053-1065 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (13 lines × 2) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:133 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:133-145 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:112-124 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:133` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
R4 · Test Coverage · No test reaches this file · ×13
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file atmosphere.js/scripts/build-dts.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file scripts/lib/playwright_spec_projects.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file atmosphere.js/src/hooks/react/ConnectionStatusBadge.tsx:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file atmosphere.js/src/hooks/vue/ConnectionStatusBadge.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file modules/spring-boot-starter/frontend/scripts/vue-check-ts7.cjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file atmosphere.js/scripts/check-export-types.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file atmosphere.js/src/hooks/vue/useConnectionStatus.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file modules/spring-boot-starter/frontend/scripts/ts7parser.cjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file atmosphere.js/consumer-check/consume-cjs.cts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file modules/spring-boot-starter/frontend/scripts/shim.cjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file atmosphere.js/consumer-check/consume.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file modules/spring-boot-starter/frontend/src/main.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×11
  • Duplicated block (18 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:988 — modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:988-1005 | modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1933-1950 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:988` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:193 — modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:193-210 | modules/ai/src/main/java/org/atmosphere/ai/processor/LongPollingClients.java:459-476 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:193` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (18 lines × 2) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:263 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:263-280 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:297-314 — before extracting anything, compare `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (18 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:98 — modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:98-115 | modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:155-172 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:98` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:194 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:194-211 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:205-222 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (18 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:922 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:922-939 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:816-833 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (18 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1771 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1771-1788 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1437-1454 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (18 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiLlmPropertyBridge.java:83 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiLlmPropertyBridge.java:83-100 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiLlmPropertyBridge.java:78-95 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiLlmPropertyBridge.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiLlmPropertyBridge.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (18 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:78 — modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:78-95 | modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java:81-103 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java` and `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:78` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:130 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:130-147 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:110-130 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:130` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) samples/spring-boot-guarded-email-agent/src/main/java/org/atmosphere/samples/springboot/guardedemail/GuardedEmailAgentApplication.java:199 — samples/spring-boot-guarded-email-agent/src/main/java/org/atmosphere/samples/springboot/guardedemail/GuardedEmailAgentApplication.java:199-216 | samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/StartupVerifierConfig.java:151-168 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×11
  • Duplicated block (6 lines × 3) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:123 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:123-128 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:116-121 | modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:214-219 — before extracting anything, compare `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java` and `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:123` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:122` calls `accumulatedResponse`, `isEmpty`, `put` and `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:129` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:113 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:113-118 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:264-269 | modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:141-146 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java` and `modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:113` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:173 — modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:173-178 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:192-197 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:211-216 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:97 — modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:97-102 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java:186-191 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:181-186 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:661 — modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:661-667 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:697-702 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:737-742 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:661` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 3) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:460 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:460-465 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:674-679 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:251-256 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:460` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 3) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:500 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:500-505 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:517-522 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:582-587 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:500` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 3) modules/admin/src/main/java/org/atmosphere/admin/state/StateController.java:212 — modules/admin/src/main/java/org/atmosphere/admin/state/StateController.java:212-217 | modules/admin/src/main/java/org/atmosphere/admin/workflow/WorkflowManifest.java:143-148 | modules/ai/src/main/java/org/atmosphere/ai/decision/Question.java:110-115 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1906 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1906-1911 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:991-996 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:849-854 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java:208 — modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java:208-213 | modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/AgentStateIntegrity.java:101-106 | modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/CommitmentRecord.java:130-135 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java:215` calls `isPresent`, `equals`, `isEmpty` and `modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/CommitmentRecord.java:136` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (6 lines × 3) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:632 — modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:632-640 | modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:788-793 | modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:890-895 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:632` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×10
  • Duplicated block (14 lines × 2) modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/AcsRegoEngine.java:286 — modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/AcsRegoEngine.java:286-299 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:196-209 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/AcsRegoEngine.java:286` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:2326 — modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:2326-2339 | modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:2345-2358 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 2) modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:103 — modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:103-116 | modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:106-119 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:103` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:117` calls `path`, `stringValue` and `modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:120` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (14 lines × 2) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:439 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:439-452 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:478-491 — before extracting anything, compare `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:140 — modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:140-153 | modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/LocalAgentTransport.java:196-209 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:140` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/LocalAgentTransport.java:210` calls `warn`, `get` and `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:154` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (14 lines × 2) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:84 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:84-97 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:95-108 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:84` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:181 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:181-194 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:234-247 — before extracting anything, compare `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java` and `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1006 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1006-1019 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1310-1323 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:1006` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:695 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:695-708 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:371-384 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:225 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:225-238 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:236-249 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
X2 · Cancellation propagation · Async function without AbortSignal · ×10
  • Async function without AbortSignal: probe modules/spring-boot-starter/frontend/src/composables/useVerifier.ts:85 — `probe` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: check modules/spring-boot-starter/frontend/src/composables/useVerifier.ts:108 — `check` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: createInteraction modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:68 — `createInteraction` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: continueInteraction modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:77 — `continueInteraction` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: getInteraction modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:86 — `getInteraction` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: listInteractions modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:94 — `listInteractions` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: cancelInteraction modules/spring-boot-starter/frontend/src/composables/useInteractions.ts:102 — `cancelInteraction` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: load modules/spring-boot-starter/frontend/src/composables/useGovernance.ts:87 — `load` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: unarySend modules/spring-boot-starter/frontend/src/transports/grpc.ts:254 — `unarySend` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
  • Async function without AbortSignal: connect modules/spring-boot-starter/frontend/src/transports/agui.ts:151 — `connect` awaits `fetch(…)` but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept `{ signal }` and pass it through: `fetch(url, { signal })`.
AX2 · Stateful singletons · Stateful singleton · ×9
  • Stateful singleton: ReactorNettyTransportServer modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:81 — `ReactorNettyTransportServer` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (certificateHashBase64; e.g. `certificateHashBase64` in `buildQuicSslContext` at line 313).
  • Stateful singleton: AtmosphereDurableRunsProducer modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:60 — `AtmosphereDurableRunsProducer` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (expiryCloseables, sqliteJournalPath; e.g. `expiryCloseables` in `onShutdown` at line 265).
  • Stateful singleton: DurableSessionInterceptor modules/durable-sessions/src/main/java/org/atmosphere/session/DurableSessionInterceptor.java:49 — `DurableSessionInterceptor` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (config; e.g. `config` in `configure` at line 131).
  • Stateful singleton: BoundedMemoryCache modules/cpr/src/main/java/org/atmosphere/cache/BoundedMemoryCache.java:43 — `BoundedMemoryCache` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (maxSize, ttlNanos; e.g. `maxSize` in `configure` at line 69).
  • Stateful singleton: AtmosphereFramework modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:106 — `AtmosphereFramework` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (shutdownHook, useNativeImplementation, isCometSupportSpecified, useBlockingImplementation, useStreamForFlushingComments, asyncSupport; e.g. `shutdownHook` in `destroy` at line 770).
  • Stateful singleton: AtmosphereProducers modules/cpr/src/main/java/org/atmosphere/inject/AtmosphereProducers.java:33 — `AtmosphereProducers` is a singleton (@ApplicationScoped: the container shares one instance across every request thread) but mutates instance state outside any lock (config; e.g. `config` in `configure` at line 37).
  • Stateful singleton: AuthInterceptor modules/cpr/src/main/java/org/atmosphere/interceptor/AuthInterceptor.java:44 — `AuthInterceptor` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (validator, refresher, queryParamName, disconnectOnFailure; e.g. `validator` in `configure` at line 87).
  • Stateful singleton: RoomProtocolInterceptor modules/cpr/src/main/java/org/atmosphere/room/RoomProtocolInterceptor.java:73 — `RoomProtocolInterceptor` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (roomManager, maxBodyBytes, authorizer; e.g. `roomManager` in `configure` at line 109).
  • Stateful singleton: PiiRedactionFilter modules/ai/src/main/java/org/atmosphere/ai/filter/PiiRedactionFilter.java:33 — `PiiRedactionFilter` is a singleton (@Bean: the container shares one instance across every request thread) but mutates instance state outside any lock (patterns; e.g. `patterns` in `addPattern` at line 81).
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×9
  • Members sharing a duplicated core (4 members, 50+ identical tokens) modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:125 — modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:125-174 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:110-152 | modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:87-142 | modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:55-111 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:177 — modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:177-193 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:177-191 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:210-224 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:289-303 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:456 — modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:456-554 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:652-674 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:687-727 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:735-753 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:283 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:283-332 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:317-367 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:265-310 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:240-289 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:94 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:94-118 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:102-131 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:90-118 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:112-140 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:462 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:462-494 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1179-1207 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1213-1237 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1396-1431 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:525 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:525-553 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:557-573 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:585-608 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:627-651 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:261 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:261-279 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:288-306 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:171-189 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:198-216 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:117 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:117-133 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:146-160 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:117-133 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:146-160 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×8
  • Duplicated block (16 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/SlidingWindowCompaction.java:37 — modules/ai/src/main/java/org/atmosphere/ai/SlidingWindowCompaction.java:37-52 | modules/ai/src/main/java/org/atmosphere/ai/TokenWindowCompaction.java:68-83 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/SlidingWindowCompaction.java:37` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemPreset.java:91 — modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemPreset.java:91-106 | modules/ai/src/main/java/org/atmosphere/ai/plan/PlanningPreset.java:90-105 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemPreset.java:91` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:68 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:68-83 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:97-112 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java` and `modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:68` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:226 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:226-241 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:210-225 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:226` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:215` calls `resolveMemoryFileSystem`, `from` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:208` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (16 lines × 2) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:393 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:393-408 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:431-446 — before extracting anything, compare `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (16 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:267 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:267-282 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:244-259 — before extracting anything, compare `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java` and `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:491 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:491-506 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:238-253 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:670 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:670-685 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:247-262 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×8
  • Duplicated block (7 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1485 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1485-1491 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:838-844 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:703-709 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1485` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:845` calls `header` and `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1492` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:662 — modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:662-668 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:243-249 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:465-471 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:662` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 3) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:757 — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:757-763 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:786-792 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:564-570 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:757` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `builder` to `dev.langchain4j.model.chat.request.ChatRequest.Builder` in one and `dev.langchain4j.model.openai.OpenAiChatRequestParameters.Builder` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (7 lines × 3) modules/rag/src/main/java/org/atmosphere/ai/rag/pgvector/PgVectorContextProvider.java:97 — modules/rag/src/main/java/org/atmosphere/ai/rag/pgvector/PgVectorContextProvider.java:97-103 | modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:96-102 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:95-101 — before extracting anything, compare `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java` and `modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 3) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:136 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:136-142 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:132-138 | modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:226-232 — before extracting anything, compare `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java` and `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java:313 — modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java:313-319 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:206-212 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:194-200 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 3) modules/cpr/src/main/java/org/atmosphere/annotation/AsyncSupportListenerServiceProcessor.java:35 — modules/cpr/src/main/java/org/atmosphere/annotation/AsyncSupportListenerServiceProcessor.java:35-41 | modules/cpr/src/main/java/org/atmosphere/annotation/AtmosphereResourceListenerServiceProcessor.java:36-42 | modules/cpr/src/main/java/org/atmosphere/annotation/BroadcasterCacheListenererviceProcessor.java:36-42 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind `annotatedClass` to `Class<AsyncSupportListener>` in one and `Class<AtmosphereResourceListener>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (7 lines × 3) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:206 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:206-212 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:234-240 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:456-462 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:205` calls `setString`, `runId` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:233` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
R10 · Code Duplication · Forked directory tree (8 identical files, ~830 KB × 2 trees) · ×8
  • Forked directory tree (8 identical files, ~830 KB × 2 trees) modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1 — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/ and samples/chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place.
  • Forked directory tree (8 identical files, ~830 KB × 2 trees) modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1 — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/ and samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place.
  • Forked directory tree (8 identical files, ~830 KB × 2 trees) modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1 — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/ and samples/grpc-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place.
  • Forked directory tree (8 identical files, ~830 KB × 2 trees) modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1 — modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/atmosphere/console/ and samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place.
  • Forked directory tree (8 identical files, ~830 KB × 2 trees) modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1 — modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/ and samples/chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place.
  • Forked directory tree (8 identical files, ~830 KB × 2 trees) modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1 — modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/ and samples/embedded-jetty-websocket-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place.
  • Forked directory tree (8 identical files, ~830 KB × 2 trees) modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1 — modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/ and samples/grpc-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place.
  • Forked directory tree (8 identical files, ~830 KB × 2 trees) modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/assets/katex-BdBmVSus.js:1 — modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/console/ and samples/kotlin-dsl-chat/src/main/webapp/atmosphere/console/ are near-verbatim copies of each other: 8 files are byte-identical under the same relative paths (~830 KB; the trees hold 8 and 8 files). That is one structural fact, not 8 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×7
  • Duplicated block (19 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:236 — modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:236-254 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:681-699 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:256` calls `toString` and `modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:700` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (19 lines × 2) modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:132 — modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:132-150 | modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisClusterBroadcastFilter.java:112-130 — before extracting anything, compare `modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java` and `modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisClusterBroadcastFilter.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:132` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:565 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:565-583 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:515-533 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:565` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (19 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1652 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1652-1670 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1587-1605 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:202 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:202-220 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:106-124 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:130` calls `put`, `hasInstalledTape` and `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:221` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (19 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/ConsoleRootRedirectFilter.java:51 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/ConsoleRootRedirectFilter.java:51-69 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/ConsoleRootRedirectFilter.java:51-69 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/ConsoleRootRedirectFilter.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/ConsoleRootRedirectFilter.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:972 — modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:972-990 | modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:1080-1098 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:972` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×7
  • Duplicated block (15 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:103 — modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:103-117 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:94-108 — before extracting anything, compare `modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java` and `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:461 — modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:461-475 | modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiStreamingSession.java:204-218 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:303 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:303-317 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:284-298 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:303` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:453 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:453-470 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:441-455 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:453` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:135 — modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:135-149 | modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:169-183 — before extracting anything, compare `modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java` and `modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:135` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:346 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:346-360 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:315-329 — before extracting anything, compare `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java` and `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:346` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:109 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:109-123 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:130-144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:109` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×7
  • Duplicated block (8 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/InMemoryConversationMemory.java:86 — modules/ai/src/main/java/org/atmosphere/ai/InMemoryConversationMemory.java:86-93 | modules/ai/src/main/java/org/atmosphere/ai/SlidingWindowCompaction.java:37-44 | modules/ai/src/main/java/org/atmosphere/ai/TokenWindowCompaction.java:68-75 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/InMemoryConversationMemory.java:86` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/SlidingWindowCompaction.java:46` calls `removeFirst` and `modules/ai/src/main/java/org/atmosphere/ai/InMemoryConversationMemory.java:94` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 3) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:346 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:346-353 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:286-293 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:262-269 — before extracting anything, compare `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java` and `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 3) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:241 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:241-248 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:577-584 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:241-248 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:577` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 3) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:957 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:957-965 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:983-991 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1031-1038 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:957` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 3) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:1109 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:1109-1116 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:284-291 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1606-1613 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (8 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/CollectingSession.java:94 — modules/ai/src/main/java/org/atmosphere/ai/CollectingSession.java:94-101 | modules/interactions/src/main/java/org/atmosphere/interactions/InteractionCapturingSession.java:271-278 | samples/spring-boot-passivation-agent/src/main/java/org/atmosphere/samples/springboot/passivation/CapturingSession.java:112-119 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (8 lines × 3) modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:1036 — modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:1036-1043 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:299-306 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereTapeProducer.java:262-269 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
D3 · God Classes · FunctionTooLong · ×6
  • FunctionTooLong: useStreamingRN.useStreamingRN atmosphere.js/src/hooks/react-native/useStreamingRN.ts:202 — FunctionTooLong — useStreamingRN runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: useStreaming.useStreaming atmosphere.js/src/hooks/react/useStreaming.ts:175 — FunctionTooLong — useStreaming runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: index.subscribeStreaming atmosphere.js/src/streaming/index.ts:49 — FunctionTooLong — subscribeStreaming runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: useChat.useChat atmosphere.js/src/hooks/react/useChat.ts:74 — FunctionTooLong — useChat runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: useAtmosphereCore.useAtmosphereCore atmosphere.js/src/hooks/shared/useAtmosphereCore.ts:102 — FunctionTooLong — useAtmosphereCore runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: useStreaming.useStreaming atmosphere.js/src/hooks/vue/useStreaming.ts:75 — FunctionTooLong — useStreaming runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication · Duplicated block (13–14 lines × 2) · ×6
  • Duplicated block (13–14 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:63 — modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:63-76 | modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java:67-79 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java` and `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:63` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13–14 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:859 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:859-871 | modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:1047-1060 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:1047` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (13–14 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:143 — modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:143-155 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:235-248 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:143` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13–14 lines × 2) REDACTED:481 — REDACTED:481-493 | REDACTED:499-512 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:499` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13–14 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:131 — modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:131-143 | modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:163-176 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:131` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13–14 lines × 2) modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:94 — modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:94-106 | modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:111-124 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×6
  • Duplicated block (11–12 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:65 — modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:65-75 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:116-127 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:65` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11–12 lines × 2) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:318 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:318-328 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:350-361 — before extracting anything, compare `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:318` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:317` calls `setLong` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:349` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11–12 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1238 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1238-1249 | modules/rag/src/main/java/org/atmosphere/ai/rag/InMemoryContextProvider.java:187-197 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11–12 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:430 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:430-441 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:921-931 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:430` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11–12 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:73 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:73-83 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:59-70 — before extracting anything, compare `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:73` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11–12 lines × 2) samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:67 — samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:67-77 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:104-115 — before extracting anything, compare `samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java` and `samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×6
  • Duplicated block (11 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:72 — modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:72-82 | modules/ai/src/main/java/org/atmosphere/ai/governance/MessageLengthPolicy.java:53-63 | modules/ai/src/main/java/org/atmosphere/ai/governance/RateLimitPolicy.java:72-82 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:72` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/governance/RateLimitPolicy.java:83` calls `isZero`, `isNegative`, `IllegalArgumentException` and `modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:83` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 3) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:520 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:520-530 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:337-347 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:642-652 — before extracting anything, compare `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:520` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:641` calls `setString`, `name` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:519` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 3) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:165 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:165-175 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:218-228 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:189-199 — before extracting anything, compare `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java` and `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 3) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAnnotationScanner.java:101 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAnnotationScanner.java:101-112 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:593-603 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:132-142 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAnnotationScanner.java:101` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/code/CodeSandboxConfig.java:160 — modules/ai/src/main/java/org/atmosphere/ai/code/CodeSandboxConfig.java:160-170 | modules/ai/src/main/java/org/atmosphere/ai/code/EvalConfig.java:95-105 | modules/ai/src/main/java/org/atmosphere/ai/websearch/WebSearchConfig.java:127-137 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (11 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/code/CodeSandboxConfig.java:172 — modules/ai/src/main/java/org/atmosphere/ai/code/CodeSandboxConfig.java:172-182 | modules/ai/src/main/java/org/atmosphere/ai/code/EvalConfig.java:107-117 | modules/ai/src/main/java/org/atmosphere/ai/websearch/WebSearchConfig.java:139-149 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
D4 · Code Duplication · Duplicated block (10–11 lines × 2) · ×6
  • Duplicated block (10–11 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:127 — modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:127-136 | modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java:150-160 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java` and `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:127` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10–11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/code/EvalSupport.java:103 — modules/ai/src/main/java/org/atmosphere/ai/code/EvalSupport.java:103-113 | modules/ai/src/main/java/org/atmosphere/ai/websearch/WebSearchSupport.java:104-113 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/code/EvalSupport.java:103` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10–11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/fs/CompositeAgentFileSystem.java:353 — modules/ai/src/main/java/org/atmosphere/ai/fs/CompositeAgentFileSystem.java:353-363 | modules/ai/src/main/java/org/atmosphere/ai/fs/WorkspaceAgentFileSystem.java:568-577 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/fs/CompositeAgentFileSystem.java:353` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (10–11 lines × 2) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:168 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:168-177 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:231-241 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:168` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10–11 lines × 2) modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:83 — modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:83-93 | REDACTED:138-147 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:83` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10–11 lines × 2) modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:101 — modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:101-110 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:116-126 — before extracting anything, compare `modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java` and `modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:101` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
AC3 · Page structure · Page without a main landmark · ×5
  • Page without a main landmark modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/admin/index.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark modules/spring-boot-starter/src/main/resources/META-INF/resources/atmosphere/admin/evals.html:17 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark REDACTED:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark modules/spring-boot3-starter/src/main/resources/META-INF/resources/atmosphere/admin/evals.html:17 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark REDACTED:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×5
  • Members sharing a duplicated core (6 members, 50+ identical tokens) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkRootAgent.java:151 — modules/adk/src/main/java/org/atmosphere/ai/adk/AdkRootAgent.java:151-161 | modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgent.java:95-105 | modules/ai/src/main/java/org/atmosphere/ai/llm/ToolLoopPolicies.java:117-127 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAiServices.java:169-179 | modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelInvocation.java:104-114 | modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaRunnableConfig.java:102-112 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:118 — modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:118-183 | modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java:118-183 | modules/ai/src/main/java/org/atmosphere/ai/batch/SchemaMigrations.java:118-183 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SchemaMigrations.java:120-185 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SchemaMigrations.java:118-183 | modules/interactions/src/main/java/org/atmosphere/interactions/SchemaMigrations.java:118-183 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:205 — modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:205-217 | modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java:205-217 | modules/ai/src/main/java/org/atmosphere/ai/batch/SchemaMigrations.java:205-217 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SchemaMigrations.java:207-219 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SchemaMigrations.java:205-217 | modules/interactions/src/main/java/org/atmosphere/interactions/SchemaMigrations.java:205-217 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:224 — modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:224-236 | modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java:224-236 | modules/ai/src/main/java/org/atmosphere/ai/batch/SchemaMigrations.java:224-236 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SchemaMigrations.java:226-238 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SchemaMigrations.java:224-236 | modules/interactions/src/main/java/org/atmosphere/interactions/SchemaMigrations.java:224-236 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1080 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1080-1103 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1308-1333 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1458-1481 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:964-987 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1110-1133 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1250-1273 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication · Duplicated block (8–9 lines × 2) · ×5
  • Duplicated block (8–9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:101 — modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:101-108 | modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:129-137 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:101` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8–9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:928 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:928-935 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:937-945 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:937` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8–9 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:2810 — modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:2810-2817 | modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java:732-740 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:2810` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8–9 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:957 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:957-965 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1031-1038 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:957` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8–9 lines × 2) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:59 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:59-66 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:59-67 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:59` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×4
  • Members sharing a duplicated core (5 members, 50+ identical tokens) modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:110 — modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:110-220 | modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:283-300 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiChatHandler.java:390-407 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:215-334 | modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:107-127 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:67 — modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:67-81 | modules/ai/src/main/java/org/atmosphere/ai/code/EvalTool.java:66-87 | modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:259-283 | modules/ai/src/main/java/org/atmosphere/ai/plan/PlanningTools.java:94-107 | modules/ai/src/main/java/org/atmosphere/ai/websearch/WebSearchTool.java:72-95 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:114 — modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:114-153 | modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:146-187 | modules/channels/src/main/java/org/atmosphere/channels/slack/SlackChannel.java:225-254 | modules/channels/src/main/java/org/atmosphere/channels/telegram/TelegramChannel.java:187-215 | modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:166-213 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:80 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:80-92 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CancelTestHandler.java:94-113 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlApprovalTestHandler.java:103-131 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlCrossSessionTestHandler.java:64-73 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:78-92 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×4
  • Duplicated block (29 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:259 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:259-287 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:387-415 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (29 lines × 2) modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:159 — modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:159-187 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:171-199 — before extracting anything, compare `modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java` and `modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (29 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:95 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:95-123 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:95-123 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:95` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (29 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereLifecycle.java:48 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereLifecycle.java:48-81 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereLifecycle.java:47-75 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereLifecycle.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereLifecycle.java` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereLifecycle.java:48` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×4
  • Duplicated block (26 lines × 2) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java:274 — modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java:274-299 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:437-462 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java:274` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (26 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1867 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1867-1892 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1351-1376 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (26 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:53 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:53-78 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:53-78 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (26 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:56 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:56-81 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:56-81 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×4
  • Duplicated block (17 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:287 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:287-303 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:263-279 — before extracting anything, compare `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java` and `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:287` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:135 — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:135-151 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:117-133 — before extracting anything, compare `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java` and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:135` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1226 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1226-1242 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1047-1063 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (17 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:82 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:82-98 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:82-98 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×4
  • Duplicated block (10 lines × 3) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:975 — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:975-984 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:995-1004 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:1009-1018 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 3) modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:140 — modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:140-149 | modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:174-183 | modules/channels/src/main/java/org/atmosphere/channels/slack/SlackChannel.java:183-192 — before extracting anything, compare `modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java` and `modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:140` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 3) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:412 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:412-421 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:277-286 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:532-541 — before extracting anything, compare `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 3) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:698 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:698-707 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:723-732 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:765-774 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:698` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×4
  • Duplicated block (9–10 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1120 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1120-1128 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1389-1398 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1120` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9–10 lines × 2) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:245 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:245-253 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:275-284 — before extracting anything, compare `modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:275` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9–10 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:85 — modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:85-93 | modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:95-104 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:95` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9–10 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:86 — modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:86-94 | modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:127-136 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (9 lines × 6) · ×4
  • Duplicated block (9 lines × 6) modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:228 — modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:228-236 | modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java:228-236 | modules/ai/src/main/java/org/atmosphere/ai/batch/SchemaMigrations.java:228-236 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SchemaMigrations.java:230-238 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SchemaMigrations.java:228-236 | modules/interactions/src/main/java/org/atmosphere/interactions/SchemaMigrations.java:228-236 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java` and `modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:228` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 6) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:55 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:55-63 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:64-72 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:72-80 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:101-109 | modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:61-69 | modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/SandboxSnapshot.java:33-41 — before extracting anything, compare `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java` and `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:61` calls `isBlank`, `IllegalArgumentException` and `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:54` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (9 lines × 6) modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:189 — modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:189-197 | modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java:189-197 | modules/ai/src/main/java/org/atmosphere/ai/batch/SchemaMigrations.java:189-197 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SchemaMigrations.java:191-199 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SchemaMigrations.java:189-197 | modules/interactions/src/main/java/org/atmosphere/interactions/SchemaMigrations.java:189-197 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java` and `modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 6) modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:239 — modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:239-247 | modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java:239-247 | modules/ai/src/main/java/org/atmosphere/ai/batch/SchemaMigrations.java:239-247 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SchemaMigrations.java:241-249 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SchemaMigrations.java:239-247 | modules/interactions/src/main/java/org/atmosphere/interactions/SchemaMigrations.java:239-247 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java` and `modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×4
  • Duplicated block (5 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:151 — modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:151-155 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:129-133 | modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:76-80 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:151` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:150` calls `AtomicBoolean` and `modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:75` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (5 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:158 — modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:158-162 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:136-140 | modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:83-87 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (5 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:187 — modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:187-191 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:220-224 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:299-303 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:187` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:191 — modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:191-195 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java:222-226 | modules/ai/src/main/java/org/atmosphere/ai/guardrails/LlmModerationDetector.java:179-183 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D1 · Cyclomatic Complexity · REDACTED.loadMetrics (cyclomatic 41) · ×3
  • REDACTED.loadMetrics (cyclomatic 41) modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/admin/index.html:296 — REDACTED.loadMetrics has cyclomatic complexity 41 (threshold 15). Of this number, 39 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • REDACTED.loadMetrics (cyclomatic 41) REDACTED:334 — REDACTED.loadMetrics has cyclomatic complexity 41 (threshold 15). Of this number, 39 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • REDACTED.loadMetrics (cyclomatic 41) REDACTED:334 — REDACTED.loadMetrics has cyclomatic complexity 41 (threshold 15). Of this number, 39 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · REDACTED.loadMetrics (cognitive 33) · ×3
  • REDACTED.loadMetrics (cognitive 33) modules/quarkus-admin-extension/runtime/src/main/resources/META-INF/resources/admin/index.html:296 — REDACTED.loadMetrics has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 32, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • REDACTED.loadMetrics (cognitive 33) REDACTED:334 — REDACTED.loadMetrics has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 32, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • REDACTED.loadMetrics (cognitive 33) REDACTED:334 — REDACTED.loadMetrics has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 32, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · REDACTED.window.addEventListener("message") (cognitive 17) · ×3
  • REDACTED.window.addEventListener("message") (cognitive 17) REDACTED:108 — REDACTED.window.addEventListener("message") has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6 (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.
  • REDACTED.window.addEventListener("message") (cognitive 17) REDACTED:108 — REDACTED.window.addEventListener("message") has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6 (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.
  • REDACTED.window.addEventListener("message") (cognitive 17) REDACTED:108 — REDACTED.window.addEventListener("message") has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6 (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.
D35 · Change Coupling · Change coupling · ×3
  • Change coupling: long-polling.ts ↔ streaming.ts atmosphere.js/src/transports/long-polling.ts:1 — `atmosphere.js/src/transports/long-polling.ts` and `atmosphere.js/src/transports/streaming.ts` change together 90% of the time (9 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `f5c04516` fix(atmosphere.js): send request headers as real headers on same-orig…; `f2ec88d3` revert(atmosphere.js): keep main's tracking-id lifecycle on HTTP tran…; `86dc3bd1` revert(atmosphere.js): take a new client tracking id on each HTTP rec… — run `git show` on any of them.
  • Change coupling: playwright.config.ts ↔ AiFeatureTestServer.java modules/integration-tests/playwright.config.ts:1 — `modules/integration-tests/playwright.config.ts` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiFeatureTestServer.java` change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `4be20c24` test(ai): playwright e2e coverage for budget breaker, confidence, pas…; `394a40ed` feat(e2e): Tier-1 Ollama real-LLM workflow with structural assertions…; `512aa9b2` test(e2e): add Wave 1-6 feature coverage for 9 missing e2e gaps 8 han… — run `git show` on any of them.
  • Change coupling: streaming.ts ↔ protocol.ts atmosphere.js/src/transports/streaming.ts:1 — `atmosphere.js/src/transports/streaming.ts` and `atmosphere.js/src/utils/protocol.ts` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `f5c04516` fix(atmosphere.js): send request headers as real headers on same-orig…; `f2ec88d3` revert(atmosphere.js): keep main's tracking-id lifecycle on HTTP tran…; `f51fa540` fix(atmosphere.js): new client tracking id per HTTP subscription, res… — run `git show` on any of them.
D4 · Code Duplication · Duplicated block (35 lines × 2) · ×3
  • Duplicated block (35 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/WorkspaceMcpToolWiring.java:72 — modules/agent/src/main/java/org/atmosphere/agent/processor/WorkspaceMcpToolWiring.java:72-106 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/WorkspaceMcpToolWiring.java:50-84 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (35 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:613 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:613-647 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:332-366 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:613` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (35 lines × 2) modules/a2a/src/main/java/org/atmosphere/a2a/types/ListTasksResponse.java:1 — modules/a2a/src/main/java/org/atmosphere/a2a/types/ListTasksResponse.java:1-35 | modules/ai/src/main/java/org/atmosphere/ai/llm/ChatMessage.java:1-108 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/a2a/src/main/java/org/atmosphere/a2a/types/ListTasksResponse.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×3
  • Duplicated block (23 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1081 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1081-1103 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:965-987 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1459 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1459-1481 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1251-1273 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/RetryDemoChat.java:65 — samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/RetryDemoChat.java:65-87 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/RetryDemoChat.java:82-104 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/RetryDemoChat.java:65` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×3
  • Duplicated block (20 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:60 — modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:60-79 | modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:63-82 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:81` calls `parseBoolean`, `getInitParameter` and `modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:83` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (20 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:232 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:232-251 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:142-161 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (20 lines × 2) modules/cpr/src/main/java/org/atmosphere/config/ApplicationConfiguration.java:26 — modules/cpr/src/main/java/org/atmosphere/config/ApplicationConfiguration.java:26-45 | modules/cpr/src/main/java/org/atmosphere/config/FrameworkConfiguration.java:26-45 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (13–15 lines × 2) · ×3
  • Duplicated block (13–15 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:308 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:308-322 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:311-323 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:308` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13–15 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:280 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:280-292 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1711-1725 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:280` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `chain` to `jakarta.servlet.FilterChain` in one and `FilterChain` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (13–15 lines × 2) modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:72 — modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:72-84 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:76-90 — before extracting anything, compare `modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java` and `modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:76` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:74` calls `dispatchEvent`, `headers` and `modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:70` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×3
  • Duplicated block (12 lines × 3) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:317 — modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:317-328 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:379-390 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:409-420 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:317` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:176 — modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:176-187 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:195-206 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:224-235 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:176` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 3) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:182 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:182-193 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:235-246 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:269-280 — before extracting anything, compare `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java` and `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:182` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9–11 lines × 2) · ×3
  • Duplicated block (9–11 lines × 2) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:84 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:84-92 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:91-101 — before extracting anything, compare `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java` and `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:84` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9–11 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:74 — modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:74-82 | modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java:81-91 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java` and `modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9–11 lines × 2) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:257 — modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:257-265 | modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/JsonRpcUtils.java:130-140 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:257` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (8–10 lines × 2) · ×3
  • Duplicated block (8–10 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:709 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:709-716 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1576-1585 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:709` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8–10 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:204 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:204-213 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:314-321 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:204` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:214` calls `setLong`, `seq` and `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:322` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8–10 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:467 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:467-476 | modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:146-153 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:467` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 5) · ×3
  • Duplicated block (8 lines × 5) modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:68 — modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:68-76 | modules/ai/src/main/java/org/atmosphere/ai/code/EvalTool.java:67-74 | modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:260-267 | modules/ai/src/main/java/org/atmosphere/ai/plan/PlanningTools.java:95-102 | modules/ai/src/main/java/org/atmosphere/ai/websearch/WebSearchTool.java:73-80 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:68` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 5) modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:126 — modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:126-133 | modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:160-167 | modules/channels/src/main/java/org/atmosphere/channels/slack/SlackChannel.java:234-241 | modules/channels/src/main/java/org/atmosphere/channels/telegram/TelegramChannel.java:195-202 | modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:182-189 — before extracting anything, compare `modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java` and `modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:126` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:125` calls `header` and `modules/channels/src/main/java/org/atmosphere/channels/telegram/TelegramChannel.java:194` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (8 lines × 5) modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:178 — modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java:178-185 | modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java:211-218 | modules/ai/src/main/java/org/atmosphere/ai/batch/SqliteBatchJobStore.java:481-488 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:247-254 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:302-309 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalDatasetStore.java` and `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalRunStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×3
  • Duplicated block (7–8 lines × 2) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:499 — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:499-505 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:596-603 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:499` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7–8 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:423 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:423-429 | modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:221-228 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:423` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7–8 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:982 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:982-989 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1094-1100 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:982` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×3
  • Duplicated block (7 lines × 4) modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:115 — modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:115-121 | modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:285-291 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiChatHandler.java:392-398 | modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:109-115 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:115` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 4) modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:114 — modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:114-120 | modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:284-290 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiChatHandler.java:391-397 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:237-243 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:114` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:110` calls `handlePost`, `getRequest`, `getResponse` and `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:234` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 4) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1083 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1083-1089 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1311-1317 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:967-973 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1113-1119 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1083` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6–7 lines × 2) · ×3
  • Duplicated block (6–7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:331 — modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:331-337 | modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:373-378 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:331` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6–7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:113 — modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:113-118 | modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiChatHandler.java:133-139 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/batch/BatchHandler.java:113` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6–7 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:158 — modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:158-163 | modules/ai/src/main/java/org/atmosphere/ai/filter/PiiRedactionFilter.java:124-130 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:158` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D5 · Coupling · Off the main sequence · ×3
  • Off the main sequence: atmosphere-ai — atmosphere-ai: abstractness 0.14, instability 0.03, distance 0.84 — zone of pain — concrete and depended on by 39 project(s), so it's rigid to change.
  • Off the main sequence: atmosphere-grpc — atmosphere-grpc: abstractness 0.11, instability 0.17, distance 0.72 — zone of pain — concrete and depended on by 5 project(s), so it's rigid to change.
  • Off the main sequence: atmosphere-runtime — atmosphere-runtime: abstractness 0.30, instability 0.00, distance 0.70 — zone of pain — concrete and depended on by 19 project(s), so it's rigid to change.
P12 · CI test-gate honesty · Tests run only outside the merge gate · ×3
  • Tests run only outside the merge gate REDACTED:150 — `npx playwright test --project=real-llm-chat --project=real-llm-decision --reporter=list` is the only CI command that runs 620 test(s) in 122 file(s) (e.g. `modules/integration-tests/e2e/xss-protection.spec.ts`, `modules/integration-tests/e2e/webtransport.spec.ts`), and the workflow runs only on a schedule — a failure there is found after the change merged, when the only remedy is a revert. Run them on pull requests (or in the merge queue).
  • Tests run only outside the merge gate REDACTED:165 — `npx playwright test --project=quarkus-ai-chat --reporter=list` is the only CI command that runs 620 test(s) in 122 file(s) (e.g. `modules/integration-tests/e2e/xss-protection.spec.ts`, `modules/integration-tests/e2e/webtransport.spec.ts`), and the workflow runs only on a schedule — a failure there is found after the change merged, when the only remedy is a revert. Run them on pull requests (or in the merge queue).
  • Tests run only outside the merge gate REDACTED:221 — `npx playwright test tests/governance-feedback-chat.spec.ts --reporter=list --retries=0` is the only CI command that runs 1 test(s) in 1 file(s) (e.g. `e2e/tests/governance-feedback-chat.spec.ts`), and the workflow runs only on a schedule — a failure there is found after the change merged, when the only remedy is a revert. Run them on pull requests (or in the merge queue).
P12 · CI test-gate honesty · Test failure does not fail the CI gate · ×3
  • Test failure does not fail the CI gate REDACTED:46 — `./scripts/release-gate-samples.sh --list` runs the tests, and `|| rc=1` discards their exit status — a failing suite leaves the check green. Let the test command's failure fail the step (re-raise it after logging).
  • Test failure does not fail the CI gate REDACTED:160 — `./scripts/release-gate-samples.sh --shard ${{ matrix.shard }}` runs the tests, and `|| rc=1` discards their exit status — a failing suite leaves the check green. Let the test command's failure fail the step (re-raise it after logging).
  • Test failure does not fail the CI gate REDACTED:45 — `./scripts/release-gate-samples.sh --list` runs the tests, and `|| rc=1` discards their exit status — a failing suite leaves the check green. Let the test command's failure fail the step (re-raise it after logging).
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×3
  • Outbound HTTP without resilience modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:307 — `.openConnection(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:329 — `.openConnection(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
  • Outbound HTTP without resilience modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:333 — `.openConnection(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
R10 · Code Duplication · Duplicated block (10 lines × 2 locations) · ×3
  • Duplicated block (10 lines × 2 locations) atmosphere.js/src/interactions/client.ts:290 — atmosphere.js/src/interactions/client.ts:290 · atmosphere.js/src/interactions/client.ts:325 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (10 lines × 2 locations) atmosphere.js/src/transports/streaming.ts:250 — atmosphere.js/src/transports/streaming.ts:250 · atmosphere.js/src/transports/webtransport.ts:473 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (10 lines × 2 locations) modules/spring-boot-starter/frontend/src/components/Tape.vue:70 — modules/spring-boot-starter/frontend/src/components/Tape.vue:70 · modules/spring-boot-starter/frontend/src/components/Tape.vue:104 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
D1 · Cyclomatic Complexity · AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cyclomatic 17) · ×2
  • AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cyclomatic 17) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1477 — AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller 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.
  • AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cyclomatic 17) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1539 — AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller 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 · AtmosphereAutoConfiguration.scanAnnotations (cyclomatic 16) · ×2
  • AtmosphereAutoConfiguration.scanAnnotations (cyclomatic 16) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:111 — AtmosphereAutoConfiguration.scanAnnotations 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.
  • AtmosphereAutoConfiguration.scanAnnotations (cyclomatic 16) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:558 — AtmosphereAutoConfiguration.scanAnnotations 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.
D10 · Test Quality · Fixed-sleep synchronisation · ×2
  • Fixed-sleep synchronisation: should handle AbortError gracefully on disconnect during connect atmosphere.js/tests/unit/streaming-transport.test.ts:357 — This test starts work it did not wait for (`connectPromise`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 10))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
  • Fixed-sleep synchronisation: should handle AbortError gracefully on disconnect atmosphere.js/tests/unit/long-polling.test.ts:189 — This test starts work it did not wait for (`connectPromise`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 10))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
D2 · Cognitive Complexity · AtmosphereAutoConfiguration.scanAnnotations (cognitive 29) · ×2
  • AtmosphereAutoConfiguration.scanAnnotations (cognitive 29) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:111 — AtmosphereAutoConfiguration.scanAnnotations has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 8 (14 pts) (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.
  • AtmosphereAutoConfiguration.scanAnnotations (cognitive 29) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:558 — AtmosphereAutoConfiguration.scanAnnotations has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 8 (14 pts) (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 · SpringAtmosphereObjectFactory.injectSpringBeans (cognitive 21) · ×2
  • SpringAtmosphereObjectFactory.injectSpringBeans (cognitive 21) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:93 — SpringAtmosphereObjectFactory.injectSpringBeans has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (10 pts), error handling 2 (6 pts), loops 2 (3 pts), boolean chains 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.
  • SpringAtmosphereObjectFactory.injectSpringBeans (cognitive 21) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:93 — SpringAtmosphereObjectFactory.injectSpringBeans has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (10 pts), error handling 2 (6 pts), loops 2 (3 pts), boolean chains 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 · AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cognitive 20) · ×2
  • AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cognitive 20) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1477 — AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, loops 4, error handling 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.
  • AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cognitive 20) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1539 — AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, loops 4, error handling 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 · LongPollingTransport.poll (cognitive 19) · ×2
  • LongPollingTransport.poll (cognitive 19) modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java:74 — LongPollingTransport.poll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (4 pts), loops 2 (4 pts), 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.
  • LongPollingTransport.poll (cognitive 19) atmosphere.js/src/transports/long-polling.ts:79 — LongPollingTransport.poll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, error handling 1, 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.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×2
  • Edited copy of a member (18 corresponding lines) modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:392 — modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:392-411 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:430-449 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) modules/ai/src/main/java/org/atmosphere/ai/governance/AuditJsonEncoder.java:97 — modules/ai/src/main/java/org/atmosphere/ai/governance/AuditJsonEncoder.java:97-123 | REDACTED:267-290 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) · ×2
  • Members sharing a duplicated core (7 members, 50+ identical tokens) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:658 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:658-671 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:676-689 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:697-715 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:722-740 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:745-758 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:764-782 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:786-799 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:176 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:176-187 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConfidenceElicitationTestHandler.java:148-159 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/DecisionModelTestHandler.java:120-129 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IntentRoutingTestHandler.java:71-80 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/PassivationTestHandler.java:166-177 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/StructuredOutputTestHandler.java:129-140 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmDecisionTestHandler.java:134-143 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication · Duplicated block (39 lines × 2) · ×2
  • Duplicated block (39 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:148 — modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:148-186 | modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java:551-589 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java` and `modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (39 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:667 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:667-705 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:203-241 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (36 lines × 2) · ×2
  • Duplicated block (36 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:71 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:71-106 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:67-102 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (36 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/ConfidenceDecision.java:1 — modules/ai/src/main/java/org/atmosphere/ai/ConfidenceDecision.java:1-36 | modules/ai/src/main/java/org/atmosphere/ai/tape/TapeStep.java:1-49 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/ConfidenceDecision.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×2
  • Duplicated block (31 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGrpcAutoConfiguration.java:66 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGrpcAutoConfiguration.java:66-96 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGrpcAutoConfiguration.java:66-96 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGrpcAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGrpcAutoConfiguration.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (31 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereHealthIndicator.java:47 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereHealthIndicator.java:47-77 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereHealthIndicator.java:47-77 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereHealthIndicator.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereHealthIndicator.java` as WHOLE FILES: 96% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: `Health` names `org.springframework.boot.actuate.health.Health` in one and `org.springframework.boot.health.contributor.Health` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×2
  • Duplicated block (28 lines × 2) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:334 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:334-361 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:372-399 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (28 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:411 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:411-438 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:337-364 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×2
  • Duplicated block (21 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeRegistry.java:219 — modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeRegistry.java:219-239 | modules/ai/src/main/java/org/atmosphere/ai/EmbeddingRuntimeRegistry.java:159-179 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeRegistry.java:219` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:99 — modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:99-119 | modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisClusterBroadcastFilter.java:83-103 — before extracting anything, compare `modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java` and `modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisClusterBroadcastFilter.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×2
  • Duplicated block (15 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:64 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:64-78 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:93-107 | modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:62-76 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java` and `modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 3) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:332 — modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:332-346 | modules/cpr/src/main/java/org/atmosphere/util/Utils.java:368-382 | modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:342-356 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
D4 · Code Duplication · Duplicated block (14–15 lines × 2) · ×2
  • Duplicated block (14–15 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java:541 — modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java:541-555 | modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java:621-634 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java:541` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14–15 lines × 2) modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:110 — modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:110-123 | REDACTED:166-180 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:110` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×2
  • Duplicated block (13 lines × 3) modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:80 — modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:80-92 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:98-110 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:91-103 — before extracting anything, compare `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java` and `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:80` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecSupport.java:72 — modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecSupport.java:72-84 | modules/ai/src/main/java/org/atmosphere/ai/code/EvalSupport.java:79-91 | modules/ai/src/main/java/org/atmosphere/ai/websearch/WebSearchSupport.java:77-89 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (11–13 lines × 2) · ×2
  • Duplicated block (11–13 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:694 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:694-706 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1563-1573 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:694` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11–13 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:912 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:912-922 | modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:1065-1077 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (12–13 lines × 2) · ×2
  • Duplicated block (12–13 lines × 2) modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:282 — modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:282-293 | modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:322-334 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:282` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12–13 lines × 2) modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt:420 — modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt:420-432 | modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:316-327 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt:420` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7 lines × 5) · ×2
  • Duplicated block (7 lines × 5) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:957 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:957-964 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:983-990 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1031-1037 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1059-1065 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:1095-1101 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 5) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:81 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:81-87 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CancelTestHandler.java:95-102 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlApprovalTestHandler.java:104-111 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlCrossSessionTestHandler.java:65-71 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:79-90 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 5 times.
D4 · Code Duplication · Duplicated block (76 lines × 2) · ×2
  • Duplicated block (76 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemMode.java:1 — modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemMode.java:1-78 | modules/ai/src/main/java/org/atmosphere/ai/plan/PlanningMode.java:1-76 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemMode.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (76 lines × 2) modules/mcp/src/main/java/org/atmosphere/mcp/protocol/JsonRpc.java:1 — modules/mcp/src/main/java/org/atmosphere/mcp/protocol/JsonRpc.java:1-76 | modules/protocol-common/src/main/java/org/atmosphere/protocol/JsonRpc.java:1-76 — before extracting anything, compare `modules/mcp/src/main/java/org/atmosphere/mcp/protocol/JsonRpc.java` and `modules/protocol-common/src/main/java/org/atmosphere/protocol/JsonRpc.java` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/protocol/JsonRpc.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
R10 · Code Duplication · Duplicated block with local edits (47 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (47 matched lines × 2 locations) atmosphere.js/src/hooks/react/useOptimistic.ts:24 — atmosphere.js/src/hooks/react/useOptimistic.ts:24 · atmosphere.js/src/hooks/vue/useOptimistic.ts:21 — the two spans are one implementation copied and then locally edited — 424 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
  • Duplicated block with local edits (47 matched lines × 2 locations) atmosphere.js/src/transports/sse.ts:53 — atmosphere.js/src/transports/sse.ts:53 · atmosphere.js/src/transports/websocket.ts:52 — the two spans are one implementation copied and then locally edited — 278 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (22 lines × 2 locations) · ×2
  • Duplicated block (22 lines × 2 locations) atmosphere.js/src/transports/streaming.ts:161 — atmosphere.js/src/transports/streaming.ts:161 · atmosphere.js/src/transports/webtransport.ts:372 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (22 lines × 2 locations) atmosphere.js/src/transports/websocket.ts:250 — atmosphere.js/src/transports/websocket.ts:250 · atmosphere.js/src/transports/webtransport.ts:458 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×2
  • Untrusted text written into markup unescaped modules/spring-boot-starter/frontend/src/components/ChatMessage.vue:35 — `formattedContent()` is text this program did not author, and it is written into the text of an element through Vue's `v-html` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped modules/spring-boot-starter/frontend/src/components/ToolCard.vue:98 — `renderedResult` is text this program did not author, and it is written into the text of an element through Vue's `v-html` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
AC7 · A11y enforcement · Accessibility enforcement below the top rung · ×1
  • Accessibility enforcement below the top rung — No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 39 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
D1 · Cyclomatic Complexity · useAtmosphereChat.useAtmosphereChat.handleStreamingEvent (cyclomatic 143) · ×1
  • useAtmosphereChat.useAtmosphereChat.handleStreamingEvent (cyclomatic 143) modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:463 — useAtmosphereChat.useAtmosphereChat.handleStreamingEvent has cyclomatic complexity 143 (threshold 15). Of this number, 137 points are the body's own statements and 6 belong to 4 function literals inside it that branch. 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 · AiStreamingSession.stream (cyclomatic 102) · ×1
  • AiStreamingSession.stream (cyclomatic 102) modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1464 — AiStreamingSession.stream has cyclomatic complexity 102 (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 · AiPipeline.executeAdmitted (cyclomatic 73) · ×1
  • AiPipeline.executeAdmitted (cyclomatic 73) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:630 — AiPipeline.executeAdmitted has cyclomatic complexity 73 (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 · SpringAiAgentRuntime.doExecuteWithHandle (cyclomatic 45) · ×1
  • SpringAiAgentRuntime.doExecuteWithHandle (cyclomatic 45) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:183 — SpringAiAgentRuntime.doExecuteWithHandle 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 · AiEndpointHandler.dispatchPrompt (cyclomatic 44) · ×1
  • AiEndpointHandler.dispatchPrompt (cyclomatic 44) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:1223 — AiEndpointHandler.dispatchPrompt has cyclomatic complexity 44 (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 · JSR356Endpoint.onOpen (cyclomatic 43) · ×1
  • JSR356Endpoint.onOpen (cyclomatic 43) modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java:122 — JSR356Endpoint.onOpen 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 · useStreamingRN.useStreamingRN (cyclomatic 43) · ×1
  • useStreamingRN.useStreamingRN (cyclomatic 43) atmosphere.js/src/hooks/react-native/useStreamingRN.ts:202 — useStreamingRN.useStreamingRN has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 4 of the 43 points are its own statements and the rest belongs to 22 function literals inside it that branch (lines 396, 267, 449, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · DefaultBroadcaster.deliverPush (cyclomatic 41) · ×1
  • DefaultBroadcaster.deliverPush (cyclomatic 41) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:681 — DefaultBroadcaster.deliverPush 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 · AiEndpointProcessor.handle (cyclomatic 37) · ×1
  • AiEndpointProcessor.handle (cyclomatic 37) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:140 — AiEndpointProcessor.handle has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · SpringAiAlibabaAgentRuntime.doExecute (cyclomatic 35) · ×1
  • SpringAiAlibabaAgentRuntime.doExecute (cyclomatic 35) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaAgentRuntime.java:195 — SpringAiAlibabaAgentRuntime.doExecute 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 · AiEndpointHandler.onRequest (cyclomatic 35) · ×1
  • AiEndpointHandler.onRequest (cyclomatic 35) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:570 — AiEndpointHandler.onRequest 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 · AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cyclomatic 34) · ×1
  • AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cyclomatic 34) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:296 — AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar 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 · OpenAiCompatibleClient.processResponsesApiSSELine (cyclomatic 34) · ×1
  • OpenAiCompatibleClient.processResponsesApiSSELine (cyclomatic 34) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1643 — OpenAiCompatibleClient.processResponsesApiSSELine 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 · ToolExecutionHelper.executeWithApprovalLive (cyclomatic 34) · ×1
  • ToolExecutionHelper.executeWithApprovalLive (cyclomatic 34) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java:728 — ToolExecutionHelper.executeWithApprovalLive has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · AgUiEventMapper.toAgUi (cyclomatic 34) · ×1
  • AgUiEventMapper.toAgUi (cyclomatic 34) modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java:69 — AgUiEventMapper.toAgUi has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · Atmosphere.subscribe (cyclomatic 34) · ×1
  • Atmosphere.subscribe (cyclomatic 34) atmosphere.js/src/core/atmosphere.ts:66 — Atmosphere.subscribe has cyclomatic complexity 34 (threshold 15). Of this number, 17 points are the body's own statements and 17 belong to 9 function items inside it that branch. 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.dispatch (cyclomatic 32) · ×1
  • index.dispatch (cyclomatic 32) atmosphere.js/src/streaming/index.ts:346 — index.dispatch 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 · OpenAiCompatibleClient.doStreamWithToolLoop (cyclomatic 31) · ×1
  • OpenAiCompatibleClient.doStreamWithToolLoop (cyclomatic 31) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:396 — OpenAiCompatibleClient.doStreamWithToolLoop 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 · OpenAiCompatibleClient.processSSELine (cyclomatic 31) · ×1
  • OpenAiCompatibleClient.processSSELine (cyclomatic 31) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:994 — OpenAiCompatibleClient.processSSELine 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 · WorkspaceExtensions.permissionPolicies (cyclomatic 31) · ×1
  • WorkspaceExtensions.permissionPolicies (cyclomatic 31) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:456 — WorkspaceExtensions.permissionPolicies has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · RequestView.detached (cyclomatic 30) · ×1
  • RequestView.detached (cyclomatic 30) modules/ai/src/main/java/org/atmosphere/ai/RunScopedResource.java:224 — RequestView.detached 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 · AtmosphereResourceImpl.suspend (cyclomatic 29) · ×1
  • AtmosphereResourceImpl.suspend (cyclomatic 29) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:357 — AtmosphereResourceImpl.suspend 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 · DecisionScorer.leastConcentrated (cyclomatic 29) · ×1
  • DecisionScorer.leastConcentrated (cyclomatic 29) modules/ai/src/main/java/org/atmosphere/ai/llm/DecisionScorer.java:375 — DecisionScorer.leastConcentrated has cyclomatic complexity 29 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · ToolBridgeUtils.lenientParse (cyclomatic 29) · ×1
  • ToolBridgeUtils.lenientParse (cyclomatic 29) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:156 — ToolBridgeUtils.lenientParse 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 · EmbabelAgentRuntime.executeAtmosphereNative (cyclomatic 29) · ×1
  • EmbabelAgentRuntime.executeAtmosphereNative (cyclomatic 29) modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt:619 — EmbabelAgentRuntime.executeAtmosphereNative 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 · source_scan.project_columns (cyclomatic 29) · ×1
  • source_scan.project_columns (cyclomatic 29) scripts/lib/source_scan.py:94 — source_scan.project_columns 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 · AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cyclomatic 28) · ×1
  • AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cyclomatic 28) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:299 — AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · CoordinatorProcessor.handle (cyclomatic 28) · ×1
  • CoordinatorProcessor.handle (cyclomatic 28) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:189 — CoordinatorProcessor.handle has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · index.main (cyclomatic 28) · ×1
  • index.main (cyclomatic 28) REDACTED:93 — index.main 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 · LangChain4jAgentRuntime.doExecuteWithHandle (cyclomatic 27) · ×1
  • LangChain4jAgentRuntime.doExecuteWithHandle (cyclomatic 27) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:272 — LangChain4jAgentRuntime.doExecuteWithHandle 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 · AsynchronousProcessor.action (cyclomatic 27) · ×1
  • AsynchronousProcessor.action (cyclomatic 27) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:117 — AsynchronousProcessor.action has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · IntrospectionUtils.invokeProperty (cyclomatic 27) · ×1
  • IntrospectionUtils.invokeProperty (cyclomatic 27) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:131 — IntrospectionUtils.invokeProperty 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 · RunReattachSupport.replayPendingRun (cyclomatic 27) · ×1
  • RunReattachSupport.replayPendingRun (cyclomatic 27) modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java:767 — RunReattachSupport.replayPendingRun has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · DecisionScorer.score (cyclomatic 26) · ×1
  • DecisionScorer.score (cyclomatic 26) modules/ai/src/main/java/org/atmosphere/ai/llm/DecisionScorer.java:109 — DecisionScorer.score 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 · AtmosphereConfigReader.parse (cyclomatic 25) · ×1
  • AtmosphereConfigReader.parse (cyclomatic 25) REDACTED:85 — AtmosphereConfigReader.parse has cyclomatic complexity 25 (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 · A2aHandler.restRoute (cyclomatic 25) · ×1
  • A2aHandler.restRoute (cyclomatic 25) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:237 — A2aHandler.restRoute has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · index.subscribeStreaming (cyclomatic 25) · ×1
  • index.subscribeStreaming (cyclomatic 25) atmosphere.js/src/streaming/index.ts:49 — index.subscribeStreaming has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 101, 172). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · Markdown.format (cyclomatic 24) · ×1
  • Markdown.format (cyclomatic 24) modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/JournalFormat.java:52 — Markdown.format 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 · CohereChatClient.stream (cyclomatic 24) · ×1
  • CohereChatClient.stream (cyclomatic 24) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:160 — CohereChatClient.stream 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 · TapeRecordingSession.emit (cyclomatic 24) · ×1
  • TapeRecordingSession.emit (cyclomatic 24) modules/ai/src/main/java/org/atmosphere/ai/tape/TapeRecordingSession.java:288 — TapeRecordingSession.emit has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · DefaultToolRegistry.convertArg (cyclomatic 24) · ×1
  • DefaultToolRegistry.convertArg (cyclomatic 24) modules/ai/src/main/java/org/atmosphere/ai/tool/DefaultToolRegistry.java:429 — DefaultToolRegistry.convertArg has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · TypesafeDecisionModel.exchange (cyclomatic 24) · ×1
  • TypesafeDecisionModel.exchange (cyclomatic 24) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeDecisionModel.java:603 — TypesafeDecisionModel.exchange 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 · AgentProcessor.handle (cyclomatic 24) · ×1
  • AgentProcessor.handle (cyclomatic 24) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:98 — AgentProcessor.handle has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · BaseTransport.captureRunId (cyclomatic 24) · ×1
  • BaseTransport.captureRunId (cyclomatic 24) atmosphere.js/src/transports/base.ts:511 — BaseTransport.captureRunId 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 · useStreaming.useStreaming (cyclomatic 24) · ×1
  • useStreaming.useStreaming (cyclomatic 24) atmosphere.js/src/hooks/react/useStreaming.ts:175 — useStreaming.useStreaming has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 18 function literals inside it that branch (lines 225, 290, 299, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · AtmosphereSpringAiAlibabaEnvironmentPostProcessor.postProcessEnvironment (cyclomatic 23) · ×1
  • AtmosphereSpringAiAlibabaEnvironmentPostProcessor.postProcessEnvironment (cyclomatic 23) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:98 — AtmosphereSpringAiAlibabaEnvironmentPostProcessor.postProcessEnvironment 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 · AnthropicMessagesClient.buildRequestBody (cyclomatic 23) · ×1
  • AnthropicMessagesClient.buildRequestBody (cyclomatic 23) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:684 — AnthropicMessagesClient.buildRequestBody 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 · ScopePolicy.<init> (cyclomatic 23) · ×1
  • ScopePolicy.<init> (cyclomatic 23) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:136 — ScopePolicy.<init> 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 · useChat.useChat (cyclomatic 23) · ×1
  • useChat.useChat (cyclomatic 23) atmosphere.js/src/hooks/react/useChat.ts:74 — useChat.useChat has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 11 function literals inside it that branch (lines 100, 105, 88, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · vue-check-ts7.run (cyclomatic 23) · ×1
  • vue-check-ts7.run (cyclomatic 23) modules/spring-boot-starter/frontend/scripts/vue-check-ts7.cjs:32 — vue-check-ts7.run has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body's own statements and 6 belong to 3 function literals inside it that branch. 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 · DefaultBroadcaster.checkCachedAndPush (cyclomatic 22) · ×1
  • DefaultBroadcaster.checkCachedAndPush (cyclomatic 22) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1137 — DefaultBroadcaster.checkCachedAndPush 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 · BatchWire.parse (cyclomatic 22) · ×1
  • BatchWire.parse (cyclomatic 22) modules/ai/src/main/java/org/atmosphere/ai/batch/BatchWire.java:77 — BatchWire.parse 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 · WorkspaceExtensions.applyRuntime (cyclomatic 22) · ×1
  • WorkspaceExtensions.applyRuntime (cyclomatic 22) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:295 — WorkspaceExtensions.applyRuntime has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · HttpSseSidecarClient.toJson (cyclomatic 21) · ×1
  • HttpSseSidecarClient.toJson (cyclomatic 21) modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:193 — HttpSseSidecarClient.toJson 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 · AtmosphereFramework.doInitParams (cyclomatic 21) · ×1
  • AtmosphereFramework.doInitParams (cyclomatic 21) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:592 — AtmosphereFramework.doInitParams has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · AtmosphereFramework.loadAtmosphereDotXml (cyclomatic 21) · ×1
  • AtmosphereFramework.loadAtmosphereDotXml (cyclomatic 21) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:867 — AtmosphereFramework.loadAtmosphereDotXml 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 · AbstractReflectorAtmosphereHandler.onStateChange (cyclomatic 21) · ×1
  • AbstractReflectorAtmosphereHandler.onStateChange (cyclomatic 21) modules/cpr/src/main/java/org/atmosphere/handler/AbstractReflectorAtmosphereHandler.java:70 — AbstractReflectorAtmosphereHandler.onStateChange 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 · AnthropicMessagesClient.parseRound (cyclomatic 21) · ×1
  • AnthropicMessagesClient.parseRound (cyclomatic 21) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:275 — AnthropicMessagesClient.parseRound 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 · AnthropicMessagesClient.stream (cyclomatic 21) · ×1
  • AnthropicMessagesClient.stream (cyclomatic 21) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:159 — AnthropicMessagesClient.stream 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 · QuestionSpec.answer (cyclomatic 21) · ×1
  • QuestionSpec.answer (cyclomatic 21) modules/ai/src/main/java/org/atmosphere/ai/decision/RuntimeDecisionModel.java:575 — QuestionSpec.answer has cyclomatic complexity 21 (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 · OpenAiCompatibleClient.buildRequestBody (cyclomatic 21) · ×1
  • OpenAiCompatibleClient.buildRequestBody (cyclomatic 21) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1145 — OpenAiCompatibleClient.buildRequestBody has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · RoomCatchUp.frames (cyclomatic 21) · ×1
  • RoomCatchUp.frames (cyclomatic 21) modules/ai/src/main/java/org/atmosphere/ai/resume/RoomCatchUp.java:352 — RoomCatchUp.frames 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 · LongPollingReplies.deliver (cyclomatic 21) · ×1
  • LongPollingReplies.deliver (cyclomatic 21) modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:509 — LongPollingReplies.deliver 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 · AdminMcpBridge.registerOptionalReadTools (cyclomatic 21) · ×1
  • AdminMcpBridge.registerOptionalReadTools (cyclomatic 21) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:314 — AdminMcpBridge.registerOptionalReadTools has cyclomatic complexity 21 (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 · DefaultBroadcaster.addAtmosphereResource (cyclomatic 20) · ×1
  • DefaultBroadcaster.addAtmosphereResource (cyclomatic 20) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1619 — DefaultBroadcaster.addAtmosphereResource 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 · YamlPolicyParser.parse (cyclomatic 20) · ×1
  • YamlPolicyParser.parse (cyclomatic 20) modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:114 — YamlPolicyParser.parse 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 · IntentDispatch.route (cyclomatic 20) · ×1
  • IntentDispatch.route (cyclomatic 20) modules/ai/src/main/java/org/atmosphere/ai/IntentDispatch.java:123 — IntentDispatch.route 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 · AcsRegoEngine.parseVerdict (cyclomatic 20) · ×1
  • AcsRegoEngine.parseVerdict (cyclomatic 20) modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/AcsRegoEngine.java:204 — AcsRegoEngine.parseVerdict has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · AtmosphereConsoleInfoEndpoint.info (cyclomatic 19) · ×1
  • AtmosphereConsoleInfoEndpoint.info (cyclomatic 19) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:70 — AtmosphereConsoleInfoEndpoint.info has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · AtmosphereSpringAiEnvironmentPostProcessor.postProcessEnvironment (cyclomatic 19) · ×1
  • AtmosphereSpringAiEnvironmentPostProcessor.postProcessEnvironment (cyclomatic 19) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:87 — AtmosphereSpringAiEnvironmentPostProcessor.postProcessEnvironment has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · AtmosphereFramework.configureRequestResponse (cyclomatic 19) · ×1
  • AtmosphereFramework.configureRequestResponse (cyclomatic 19) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:1059 — AtmosphereFramework.configureRequestResponse 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 · ContainerInitializer.onStartup (cyclomatic 19) · ×1
  • ContainerInitializer.onStartup (cyclomatic 19) modules/cpr/src/main/java/org/atmosphere/cpr/ContainerInitializer.java:47 — ContainerInitializer.onStartup 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 · DefaultBroadcaster.getAsyncWriteHandler (cyclomatic 19) · ×1
  • DefaultBroadcaster.getAsyncWriteHandler (cyclomatic 19) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:540 — DefaultBroadcaster.getAsyncWriteHandler 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 · ServerCookieDecoder.decode (cyclomatic 19) · ×1
  • ServerCookieDecoder.decode (cyclomatic 19) modules/cpr/src/main/java/org/atmosphere/util/CookieUtil.java:394 — ServerCookieDecoder.decode 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 · SemanticIntentScopeGuardrail.evaluate (cyclomatic 19) · ×1
  • SemanticIntentScopeGuardrail.evaluate (cyclomatic 19) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:180 — SemanticIntentScopeGuardrail.evaluate 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 · PromptRepollGate.await (cyclomatic 19) · ×1
  • PromptRepollGate.await (cyclomatic 19) modules/ai/src/main/java/org/atmosphere/ai/processor/PromptRepollGate.java:231 — PromptRepollGate.await 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 · HttpOperationExecutor.execute (cyclomatic 19) · ×1
  • HttpOperationExecutor.execute (cyclomatic 19) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:421 — HttpOperationExecutor.execute 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 · DispatchDecorators.compose (cyclomatic 19) · ×1
  • DispatchDecorators.compose (cyclomatic 19) modules/ai/src/main/java/org/atmosphere/ai/DispatchDecorators.java:154 — DispatchDecorators.compose has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · ScopePolicyResolver.reportScopeOverrides (cyclomatic 19) · ×1
  • ScopePolicyResolver.reportScopeOverrides (cyclomatic 19) modules/agent/src/main/java/org/atmosphere/agent/skill/ScopePolicyResolver.java:432 — ScopePolicyResolver.reportScopeOverrides 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 · GovernanceController.check (cyclomatic 19) · ×1
  • GovernanceController.check (cyclomatic 19) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:167 — GovernanceController.check 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 · KoogAgentRuntime.executeWithExecutor (cyclomatic 19) · ×1
  • KoogAgentRuntime.executeWithExecutor (cyclomatic 19) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:862 — KoogAgentRuntime.executeWithExecutor 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 · filter_ai_state_sites.main (cyclomatic 19) · ×1
  • filter_ai_state_sites.main (cyclomatic 19) scripts/lib/filter_ai_state_sites.py:82 — filter_ai_state_sites.main 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 · source_scan.main (cyclomatic 19) · ×1
  • source_scan.main (cyclomatic 19) scripts/lib/source_scan.py:501 — source_scan.main 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 · useChatRN.useChatRN (cyclomatic 19) · ×1
  • useChatRN.useChatRN (cyclomatic 19) atmosphere.js/src/hooks/react-native/useChatRN.ts:80 — useChatRN.useChatRN has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 101, 105, 92, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · mathSpans.extractMath (cyclomatic 19) · ×1
  • mathSpans.extractMath (cyclomatic 19) REDACTED:91 — mathSpans.extractMath 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 · VerifyCli.run (cyclomatic 18) · ×1
  • VerifyCli.run (cyclomatic 18) modules/verifier/src/main/java/org/atmosphere/verifier/cli/VerifyCli.java:114 — VerifyCli.run 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 · McpHandler.handlePost (cyclomatic 18) · ×1
  • McpHandler.handlePost (cyclomatic 18) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:215 — McpHandler.handlePost has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · CrewAiAgentRuntime.drainStream (cyclomatic 18) · ×1
  • CrewAiAgentRuntime.drainStream (cyclomatic 18) modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java:272 — CrewAiAgentRuntime.drainStream 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 · ManagedAtmosphereHandler.stateChange (cyclomatic 18) · ×1
  • ManagedAtmosphereHandler.stateChange (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:208 — ManagedAtmosphereHandler.stateChange 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 · AtmosphereResourceImpl.notifyListeners (cyclomatic 18) · ×1
  • AtmosphereResourceImpl.notifyListeners (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:713 — AtmosphereResourceImpl.notifyListeners has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · DefaultBroadcaster.executeAsyncWrite (cyclomatic 18) · ×1
  • DefaultBroadcaster.executeAsyncWrite (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1026 — DefaultBroadcaster.executeAsyncWrite 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 · InstallMetaServiceProcedure.apply (cyclomatic 18) · ×1
  • InstallMetaServiceProcedure.apply (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/cpr/MetaServiceAction.java:118 — InstallMetaServiceProcedure.apply has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · DefaultWebSocketProcessor.sameOrigin (cyclomatic 18) · ×1
  • DefaultWebSocketProcessor.sameOrigin (cyclomatic 18) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:195 — DefaultWebSocketProcessor.sameOrigin 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 · A2aAgentTransport.extractStreamingText (cyclomatic 18) · ×1
  • A2aAgentTransport.extractStreamingText (cyclomatic 18) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:227 — A2aAgentTransport.extractStreamingText 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 · BuiltInAgentRuntime.buildRequest (cyclomatic 18) · ×1
  • BuiltInAgentRuntime.buildRequest (cyclomatic 18) modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java:164 — BuiltInAgentRuntime.buildRequest 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 · OpenAiCompatibleClient.buildResponsesApiBody (cyclomatic 18) · ×1
  • OpenAiCompatibleClient.buildResponsesApiBody (cyclomatic 18) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1543 — OpenAiCompatibleClient.buildResponsesApiBody 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 · RoomCatchUp.mergeCached (cyclomatic 18) · ×1
  • RoomCatchUp.mergeCached (cyclomatic 18) modules/ai/src/main/java/org/atmosphere/ai/resume/RoomCatchUp.java:222 — RoomCatchUp.mergeCached 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 · AiEnvironment.close (cyclomatic 18) · ×1
  • AiEnvironment.close (cyclomatic 18) modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java:622 — AiEnvironment.close 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 · AdkAgentRuntime.doExecuteWithHandle (cyclomatic 18) · ×1
  • AdkAgentRuntime.doExecuteWithHandle (cyclomatic 18) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:548 — AdkAgentRuntime.doExecuteWithHandle has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · AdkEventAdapter.onEvent (cyclomatic 18) · ×1
  • AdkEventAdapter.onEvent (cyclomatic 18) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkEventAdapter.java:241 — AdkEventAdapter.onEvent 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 · metrics.meterFromPrometheus (cyclomatic 18) · ×1
  • metrics.meterFromPrometheus (cyclomatic 18) modules/spring-boot-starter/frontend/src/lib/metrics.ts:221 — metrics.meterFromPrometheus has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function item inside it that branches. 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 · McpProtocolHandler.handleCompletion (cyclomatic 17) · ×1
  • McpProtocolHandler.handleCompletion (cyclomatic 17) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1246 — McpProtocolHandler.handleCompletion has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · ToolAwareStreamingResponseHandler.completeRound (cyclomatic 17) · ×1
  • ToolAwareStreamingResponseHandler.completeRound (cyclomatic 17) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java:178 — ToolAwareStreamingResponseHandler.completeRound 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 · AtmosphereFramework.configureQueryStringAsRequest (cyclomatic 17) · ×1
  • AtmosphereFramework.configureQueryStringAsRequest (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:1300 — AtmosphereFramework.configureQueryStringAsRequest 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 · AtmosphereRequestImpl.getHeader (cyclomatic 17) · ×1
  • AtmosphereRequestImpl.getHeader (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:347 — AtmosphereRequestImpl.getHeader 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 · FrameworkDiagnostics.info (cyclomatic 17) · ×1
  • FrameworkDiagnostics.info (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java:48 — FrameworkDiagnostics.info has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · HeartbeatInterceptor.inspect (cyclomatic 17) · ×1
  • HeartbeatInterceptor.inspect (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java:190 — HeartbeatInterceptor.inspect 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 · JavaScriptProtocol.inspect (cyclomatic 17) · ×1
  • JavaScriptProtocol.inspect (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/interceptor/JavaScriptProtocol.java:85 — JavaScriptProtocol.inspect 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 · QueryStringDecoder.decodeParams (cyclomatic 17) · ×1
  • QueryStringDecoder.decodeParams (cyclomatic 17) modules/cpr/src/main/java/org/atmosphere/util/QueryStringDecoder.java:228 — QueryStringDecoder.decodeParams 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 · DefaultAgentFleet.parallel (cyclomatic 17) · ×1
  • DefaultAgentFleet.parallel (cyclomatic 17) modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/DefaultAgentFleet.java:280 — DefaultAgentFleet.parallel 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 · ScopeConfig.<init> (cyclomatic 17) · ×1
  • ScopeConfig.<init> (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeConfig.java:43 — ScopeConfig.<init> 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 · OnSessionCloseStrategy.parseJsonArray (cyclomatic 17) · ×1
  • OnSessionCloseStrategy.parseJsonArray (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:120 — OnSessionCloseStrategy.parseJsonArray 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 · OpenAiWire.parse (cyclomatic 17) · ×1
  • OpenAiWire.parse (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:80 — OpenAiWire.parse 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 · AiEndpointHandler.appendResolvedFacts (cyclomatic 17) · ×1
  • AiEndpointHandler.appendResolvedFacts (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:1881 — AiEndpointHandler.appendResolvedFacts 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 · AiEndpointHandler.prepareTurn (cyclomatic 17) · ×1
  • AiEndpointHandler.prepareTurn (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:1609 — AiEndpointHandler.prepareTurn 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 · RunEventCapturingSession.emit (cyclomatic 17) · ×1
  • RunEventCapturingSession.emit (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventCapturingSession.java:196 — RunEventCapturingSession.emit 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 · MultiModalInput.decode (cyclomatic 17) · ×1
  • MultiModalInput.decode (cyclomatic 17) modules/ai/src/main/java/org/atmosphere/ai/MultiModalInput.java:153 — MultiModalInput.decode has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · TypesafeWire.errorMessage (cyclomatic 17) · ×1
  • TypesafeWire.errorMessage (cyclomatic 17) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeWire.java:447 — TypesafeWire.errorMessage 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 · TypesafeWire.score (cyclomatic 17) · ×1
  • TypesafeWire.score (cyclomatic 17) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeWire.java:320 — TypesafeWire.score has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · AgUiHandler.handlePost (cyclomatic 17) · ×1
  • AgUiHandler.handlePost (cyclomatic 17) modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:110 — AgUiHandler.handlePost 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 · AdkAgentRuntime.buildRequestRunner (cyclomatic 17) · ×1
  • AdkAgentRuntime.buildRequestRunner (cyclomatic 17) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:359 — AdkAgentRuntime.buildRequestRunner 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 · stream.run_crew (cyclomatic 17) · ×1
  • stream.run_crew (cyclomatic 17) modules/crewai/sidecar/src/atmosphere_crewai_bridge/stream.py:179 — stream.run_crew 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 · AtmosphereProtocol.buildRequest (cyclomatic 17) · ×1
  • AtmosphereProtocol.buildRequest (cyclomatic 17) atmosphere.js/src/utils/protocol.ts:112 — AtmosphereProtocol.buildRequest has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · SemanticKernelStreamingAdapter.drainToolTurn (cyclomatic 16) · ×1
  • SemanticKernelStreamingAdapter.drainToolTurn (cyclomatic 16) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelStreamingAdapter.java:123 — SemanticKernelStreamingAdapter.drainToolTurn has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · SemanticKernelToolBridge.sendToolsUnderTheirOwnNames (cyclomatic 16) · ×1
  • SemanticKernelToolBridge.sendToolsUnderTheirOwnNames (cyclomatic 16) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelToolBridge.java:294 — SemanticKernelToolBridge.sendToolsUnderTheirOwnNames 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 · ManagedAtmosphereHandler.handleRequest (cyclomatic 16) · ×1
  • ManagedAtmosphereHandler.handleRequest (cyclomatic 16) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:132 — ManagedAtmosphereHandler.handleRequest 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 · DefaultBroadcaster.removeAtmosphereResource (cyclomatic 16) · ×1
  • DefaultBroadcaster.removeAtmosphereResource (cyclomatic 16) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1906 — DefaultBroadcaster.removeAtmosphereResource 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 · RoomProtocolInterceptor.readBody (cyclomatic 16) · ×1
  • RoomProtocolInterceptor.readBody (cyclomatic 16) modules/cpr/src/main/java/org/atmosphere/room/RoomProtocolInterceptor.java:465 — RoomProtocolInterceptor.readBody has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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.
D1 · Cyclomatic Complexity · AnnotationDetector.detect (cyclomatic 16) · ×1
  • AnnotationDetector.detect (cyclomatic 16) modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:279 — AnnotationDetector.detect 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 · AcsManifestParser.parseInterventionPoints (cyclomatic 16) · ×1
  • AcsManifestParser.parseInterventionPoints (cyclomatic 16) modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:119 — AcsManifestParser.parseInterventionPoints 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 · LlmModerationDetector.detect (cyclomatic 16) · ×1
  • LlmModerationDetector.detect (cyclomatic 16) modules/ai/src/main/java/org/atmosphere/ai/guardrails/LlmModerationDetector.java:192 — LlmModerationDetector.detect 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 · OpenApiToolImporter.fromSpec (cyclomatic 16) · ×1
  • OpenApiToolImporter.fromSpec (cyclomatic 16) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:88 — OpenApiToolImporter.fromSpec 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 · TypesafeWire.decodeReply (cyclomatic 16) · ×1
  • TypesafeWire.decodeReply (cyclomatic 16) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeWire.java:149 — TypesafeWire.decodeReply 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 · AgentHandler.onRequest (cyclomatic 16) · ×1
  • AgentHandler.onRequest (cyclomatic 16) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentHandler.java:124 — AgentHandler.onRequest 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 · KoogAgentRuntime.buildPrompt (cyclomatic 16) · ×1
  • KoogAgentRuntime.buildPrompt (cyclomatic 16) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:963 — KoogAgentRuntime.buildPrompt 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 · AtmosphereEmbabelEnvironmentPostProcessor.postProcessEnvironment (cyclomatic 16) · ×1
  • AtmosphereEmbabelEnvironmentPostProcessor.postProcessEnvironment (cyclomatic 16) modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/AtmosphereEmbabelEnvironmentPostProcessor.kt:70 — AtmosphereEmbabelEnvironmentPostProcessor.postProcessEnvironment 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 · LongPollingTransport.poll (cyclomatic 16) · ×1
  • LongPollingTransport.poll (cyclomatic 16) atmosphere.js/src/transports/long-polling.ts:79 — LongPollingTransport.poll 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 · useAtmosphereCore.useAtmosphereCore (cyclomatic 16) · ×1
  • useAtmosphereCore.useAtmosphereCore (cyclomatic 16) atmosphere.js/src/hooks/shared/useAtmosphereCore.ts:102 — useAtmosphereCore.useAtmosphereCore has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 11 function literals inside it that branch (lines 141, 163, 136, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · client.parseFrames (cyclomatic 16) · ×1
  • client.parseFrames (cyclomatic 16) atmosphere.js/src/interactions/client.ts:389 — client.parseFrames 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 · AgUiEventTranslator.translate (cyclomatic 16) · ×1
  • AgUiEventTranslator.translate (cyclomatic 16) modules/spring-boot-starter/frontend/src/transports/agui.ts:72 — AgUiEventTranslator.translate 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 · useAtmosphereChat.useAtmosphereChat.extractErrorShape (cyclomatic 16) · ×1
  • useAtmosphereChat.useAtmosphereChat.extractErrorShape (cyclomatic 16) modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:365 — useAtmosphereChat.useAtmosphereChat.extractErrorShape 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.
D17 · Explicit Debt · HackComment · ×1
  • HackComment modules/cpr/src/main/java/org/atmosphere/cpr/ContainerInitializer.java:59 — // Hack to make jsr356 works. Pretty ugly. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
D2 · Cognitive Complexity · useAtmosphereChat.useAtmosphereChat.handleStreamingEvent (cognitive 184) · ×1
  • useAtmosphereChat.useAtmosphereChat.handleStreamingEvent (cognitive 184) modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:463 — useAtmosphereChat.useAtmosphereChat.handleStreamingEvent has cognitive complexity 184 (threshold 15). Drivers by points: if/else 56 (112 pts), boolean chains 43, ternaries 11 (25 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 72). Of this number, 181 points are the body's own statements and 3 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AiStreamingSession.stream (cognitive 151) · ×1
  • AiStreamingSession.stream (cognitive 151) modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1464 — AiStreamingSession.stream has cognitive complexity 151 (threshold 15). Drivers by points: if/else 36 (55 pts), ternaries 27 (50 pts), boolean chains 19, error handling 8 (16 pts), loops 5 (7 pts), match/switch 2 (4 pts) (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 · AiPipeline.executeAdmitted (cognitive 91) · ×1
  • AiPipeline.executeAdmitted (cognitive 91) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:630 — AiPipeline.executeAdmitted has cognitive complexity 91 (threshold 15). Drivers by points: if/else 28 (39 pts), ternaries 13 (19 pts), boolean chains 18, error handling 5 (9 pts), match/switch 2 (4 pts), loops 2 (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 · AiEndpointHandler.onRequest (cognitive 72) · ×1
  • AiEndpointHandler.onRequest (cognitive 72) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:570 — AiEndpointHandler.onRequest has cognitive complexity 72 (threshold 15). Drivers by points: if/else 21 (51 pts), boolean chains 9, ternaries 2 (9 pts), error handling 2 (3 pts) (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · JSR356Endpoint.onOpen (cognitive 71) · ×1
  • JSR356Endpoint.onOpen (cognitive 71) modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java:122 — JSR356Endpoint.onOpen has cognitive complexity 71 (threshold 15). Drivers by points: if/else 32 (47 pts), ternaries 3 (8 pts), loops 4 (7 pts), error handling 3 (5 pts), boolean chains 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 · DefaultBroadcaster.deliverPush (cognitive 71) · ×1
  • DefaultBroadcaster.deliverPush (cognitive 71) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:681 — DefaultBroadcaster.deliverPush has cognitive complexity 71 (threshold 15). Drivers by points: if/else 18 (37 pts), loops 7 (16 pts), error handling 2 (6 pts), ternaries 3 (6 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AiEndpointHandler.dispatchPrompt (cognitive 62) · ×1
  • AiEndpointHandler.dispatchPrompt (cognitive 62) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:1223 — AiEndpointHandler.dispatchPrompt has cognitive complexity 62 (threshold 15). Drivers by points: if/else 28 (38 pts), error handling 8 (11 pts), ternaries 7 (9 pts), 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 · SpringAiAgentRuntime.doExecuteWithHandle (cognitive 59) · ×1
  • SpringAiAgentRuntime.doExecuteWithHandle (cognitive 59) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:183 — SpringAiAgentRuntime.doExecuteWithHandle has cognitive complexity 59 (threshold 15). Drivers by points: if/else 22 (31 pts), boolean chains 12, ternaries 9 (12 pts), loops 2 (4 pts) (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 · AbstractReflectorAtmosphereHandler.onStateChange (cognitive 57) · ×1
  • AbstractReflectorAtmosphereHandler.onStateChange (cognitive 57) modules/cpr/src/main/java/org/atmosphere/handler/AbstractReflectorAtmosphereHandler.java:70 — AbstractReflectorAtmosphereHandler.onStateChange has cognitive complexity 57 (threshold 15). Drivers by points: if/else 21 (40 pts), error handling 3 (8 pts), loops 2 (6 pts), ternaries 1 (3 pts) (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 · OpenAiCompatibleClient.processResponsesApiSSELine (cognitive 57) · ×1
  • OpenAiCompatibleClient.processResponsesApiSSELine (cognitive 57) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1643 — OpenAiCompatibleClient.processResponsesApiSSELine has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (38 pts), ternaries 5 (11 pts), boolean chains 6, error handling 1, match/switch 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 · source_scan.project_columns (cognitive 57) · ×1
  • source_scan.project_columns (cognitive 57) scripts/lib/source_scan.py:94 — source_scan.project_columns has cognitive complexity 57 (threshold 15). Drivers by points: if/else 18 (49 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IntrospectionUtils.invokeProperty (cognitive 54) · ×1
  • IntrospectionUtils.invokeProperty (cognitive 54) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:131 — IntrospectionUtils.invokeProperty has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (29 pts), error handling 6 (17 pts), boolean chains 6, loops 2 (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 · DecisionScorer.leastConcentrated (cognitive 53) · ×1
  • DecisionScorer.leastConcentrated (cognitive 53) modules/ai/src/main/java/org/atmosphere/ai/llm/DecisionScorer.java:375 — DecisionScorer.leastConcentrated has cognitive complexity 53 (threshold 15). Drivers by points: loops 19 (34 pts), if/else 7 (17 pts), boolean chains 2 (nesting depth added 25). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · ToolBridgeUtils.lenientParse (cognitive 53) · ×1
  • ToolBridgeUtils.lenientParse (cognitive 53) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:156 — ToolBridgeUtils.lenientParse has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (33 pts), loops 4 (8 pts), boolean chains 7, error handling 1 (3 pts), ternaries 1 (2 pts) (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 · index.dispatch (cognitive 53) · ×1
  • index.dispatch (cognitive 53) atmosphere.js/src/streaming/index.ts:346 — index.dispatch has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 11 (26 pts), if/else 10 (23 pts), match/switch 2 (3 pts), boolean chains 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 · AtmosphereFramework.loadAtmosphereDotXml (cognitive 52) · ×1
  • AtmosphereFramework.loadAtmosphereDotXml (cognitive 52) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:867 — AtmosphereFramework.loadAtmosphereDotXml has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 5 (11 pts), error handling 2 (7 pts), boolean chains 1 (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 · AtmosphereResourceImpl.suspend (cognitive 51) · ×1
  • AtmosphereResourceImpl.suspend (cognitive 51) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:357 — AtmosphereResourceImpl.suspend has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (32 pts), boolean chains 10, ternaries 2 (6 pts), loops 1 (3 pts) (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · AnnotationDetector.detect (cognitive 51) · ×1
  • AnnotationDetector.detect (cognitive 51) modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:279 — AnnotationDetector.detect has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (34 pts), error handling 3 (13 pts), loops 3 (4 pts) (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 · useStreamingRN.useStreamingRN (cognitive 51) · ×1
  • useStreamingRN.useStreamingRN (cognitive 51) atmosphere.js/src/hooks/react-native/useStreamingRN.ts:202 — useStreamingRN.useStreamingRN has cognitive complexity 51 (threshold 15). Drivers by points: if/else 33 (40 pts), boolean chains 5, ternaries 3 (5 pts), error handling 1 (nesting depth added 9). Most of this is not in the body itself: 2 of the 51 points are its own statements and the rest belongs to 22 function literals inside it that branch (lines 396, 267, 449, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SpringAiAlibabaAgentRuntime.doExecute (cognitive 49) · ×1
  • SpringAiAlibabaAgentRuntime.doExecute (cognitive 49) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaAgentRuntime.java:195 — SpringAiAlibabaAgentRuntime.doExecute has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (27 pts), ternaries 6 (10 pts), boolean chains 7, error handling 3 (4 pts), 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 · OpenAiCompatibleClient.processSSELine (cognitive 49) · ×1
  • OpenAiCompatibleClient.processSSELine (cognitive 49) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:994 — OpenAiCompatibleClient.processSSELine has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 9, ternaries 1 (3 pts), loops 1 (2 pts), error handling 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 · mathSpans.extractMath (cognitive 48) · ×1
  • mathSpans.extractMath (cognitive 48) REDACTED:91 — mathSpans.extractMath has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (30 pts), ternaries 3 (11 pts), loops 2 (4 pts), boolean chains 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 · AtmosphereConfigReader.parse (cognitive 47) · ×1
  • AtmosphereConfigReader.parse (cognitive 47) REDACTED:85 — AtmosphereConfigReader.parse has cognitive complexity 47 (threshold 15). Drivers by points: loops 7 (21 pts), if/else 6 (20 pts), match/switch 2 (6 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cognitive 46) · ×1
  • AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cognitive 46) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:296 — AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 8, ternaries 4 (8 pts), error handling 1 (2 pts), loops 1 (2 pts) (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 · TypesafeDecisionModel.exchange (cognitive 46) · ×1
  • TypesafeDecisionModel.exchange (cognitive 46) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeDecisionModel.java:603 — TypesafeDecisionModel.exchange has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 6, error handling 3 (6 pts), ternaries 2 (5 pts), loops 1 (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 · Atmosphere.subscribe (cognitive 46) · ×1
  • Atmosphere.subscribe (cognitive 46) atmosphere.js/src/core/atmosphere.ts:66 — Atmosphere.subscribe has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (24 pts), ternaries 4 (9 pts), boolean chains 7, error handling 2 (4 pts), loops 1 (2 pts) (nesting depth added 16). Of this number, 26 points are the body's own statements and 20 belong to 9 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ServerCookieDecoder.decode (cognitive 43) · ×1
  • ServerCookieDecoder.decode (cognitive 43) modules/cpr/src/main/java/org/atmosphere/util/CookieUtil.java:394 — ServerCookieDecoder.decode has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 3 (6 pts), ternaries 1 (5 pts), 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 · DecisionScorer.score (cognitive 42) · ×1
  • DecisionScorer.score (cognitive 42) modules/ai/src/main/java/org/atmosphere/ai/llm/DecisionScorer.java:109 — DecisionScorer.score has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (27 pts), loops 6 (7 pts), boolean chains 4, ternaries 2 (4 pts) (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 · AiEndpointProcessor.handle (cognitive 42) · ×1
  • AiEndpointProcessor.handle (cognitive 42) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:140 — AiEndpointProcessor.handle has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (21 pts), ternaries 14 (16 pts), error handling 2, loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · ManagedAtmosphereHandler.stateChange (cognitive 41) · ×1
  • ManagedAtmosphereHandler.stateChange (cognitive 41) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:208 — ManagedAtmosphereHandler.stateChange has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 1 (5 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · EmbabelAgentRuntime.executeAtmosphereNative (cognitive 41) · ×1
  • EmbabelAgentRuntime.executeAtmosphereNative (cognitive 41) modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt:619 — EmbabelAgentRuntime.executeAtmosphereNative has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (32 pts), error handling 5 (6 pts), boolean chains 2, match/switch 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 · DecisionScorer.locate (cognitive 40) · ×1
  • DecisionScorer.locate (cognitive 40) modules/ai/src/main/java/org/atmosphere/ai/llm/DecisionScorer.java:539 — DecisionScorer.locate has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (25 pts), ternaries 2 (11 pts), boolean chains 3, loops 1 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · OpenAiCompatibleClient.doStreamWithToolLoop (cognitive 40) · ×1
  • OpenAiCompatibleClient.doStreamWithToolLoop (cognitive 40) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:396 — OpenAiCompatibleClient.doStreamWithToolLoop has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (26 pts), boolean chains 7, error handling 3 (4 pts), ternaries 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 · DefaultBroadcaster.checkCachedAndPush (cognitive 39) · ×1
  • DefaultBroadcaster.checkCachedAndPush (cognitive 39) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1137 — DefaultBroadcaster.checkCachedAndPush has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (7 pts), error handling 2 (5 pts), ternaries 2 (5 pts), match/switch 1 (2 pts), 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 · JavaScriptProtocol.inspect (cognitive 39) · ×1
  • JavaScriptProtocol.inspect (cognitive 39) modules/cpr/src/main/java/org/atmosphere/interceptor/JavaScriptProtocol.java:85 — JavaScriptProtocol.inspect has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 2 (5 pts), error handling 1 (4 pts), boolean chains 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 · LangChain4jAgentRuntime.doExecuteWithHandle (cognitive 38) · ×1
  • LangChain4jAgentRuntime.doExecuteWithHandle (cognitive 38) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:272 — LangChain4jAgentRuntime.doExecuteWithHandle has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (26 pts), ternaries 6, boolean chains 4, loops 1 (2 pts) (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 · ContainerInitializer.onStartup (cognitive 38) · ×1
  • ContainerInitializer.onStartup (cognitive 38) modules/cpr/src/main/java/org/atmosphere/cpr/ContainerInitializer.java:47 — ContainerInitializer.onStartup has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 3 (10 pts), boolean chains 6, ternaries 1 (3 pts), 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 · HttpSseSidecarClient.toJson (cognitive 37) · ×1
  • HttpSseSidecarClient.toJson (cognitive 37) modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:193 — HttpSseSidecarClient.toJson has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 7 (19 pts), loops 4 (8 pts), if/else 5 (6 pts), boolean chains 4 (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 · DefaultBroadcaster.getAsyncWriteHandler (cognitive 37) · ×1
  • DefaultBroadcaster.getAsyncWriteHandler (cognitive 37) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:540 — DefaultBroadcaster.getAsyncWriteHandler has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 6, error handling 2 (5 pts), ternaries 1 (5 pts), 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 · DefaultAgentFleet.parallel (cognitive 37) · ×1
  • DefaultAgentFleet.parallel (cognitive 37) modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/DefaultAgentFleet.java:280 — DefaultAgentFleet.parallel has cognitive complexity 37 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (9 pts), loops 5 (8 pts), error handling 2 (6 pts), 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 · AtmosphereRequestImpl.getHeader (cognitive 36) · ×1
  • AtmosphereRequestImpl.getHeader (cognitive 36) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:347 — AtmosphereRequestImpl.getHeader has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 5, loops 1 (5 pts), error handling 1 (4 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · InjectableObjectFactory.injectFields (cognitive 36) · ×1
  • InjectableObjectFactory.injectFields (cognitive 36) modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:254 — InjectableObjectFactory.injectFields has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (27 pts), error handling 1 (5 pts), loops 2 (4 pts) (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 · IntrospectionUtils.processArgs (cognitive 36) · ×1
  • IntrospectionUtils.processArgs (cognitive 36) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:551 — IntrospectionUtils.processArgs has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 3 (7 pts), boolean chains 1 (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 · RoomCatchUp.frames (cognitive 36) · ×1
  • RoomCatchUp.frames (cognitive 36) modules/ai/src/main/java/org/atmosphere/ai/resume/RoomCatchUp.java:352 — RoomCatchUp.frames has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 6 (8 pts), ternaries 2 (6 pts), boolean chains 5 (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 · AgentHandler.onRequest (cognitive 36) · ×1
  • AgentHandler.onRequest (cognitive 36) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentHandler.java:124 — AgentHandler.onRequest has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (26 pts), error handling 2 (6 pts), match/switch 1 (4 pts) (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cognitive 35) · ×1
  • AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cognitive 35) modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:299 — AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (17 pts), ternaries 4 (8 pts), boolean chains 6, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · DefaultBroadcaster.addAtmosphereResource (cognitive 35) · ×1
  • DefaultBroadcaster.addAtmosphereResource (cognitive 35) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1619 — DefaultBroadcaster.addAtmosphereResource has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 5, error handling 1 (4 pts) (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 · CoordinatorProcessor.handle (cognitive 35) · ×1
  • CoordinatorProcessor.handle (cognitive 35) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:189 — CoordinatorProcessor.handle has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 7, error handling 2, loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ScopePolicy.<init> (cognitive 35) · ×1
  • ScopePolicy.<init> (cognitive 35) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:136 — ScopePolicy.<init> has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 3 (8 pts), boolean chains 6, loops 2 (3 pts) (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 · RequestView.detached (cognitive 34) · ×1
  • RequestView.detached (cognitive 34) modules/ai/src/main/java/org/atmosphere/ai/RunScopedResource.java:224 — RequestView.detached has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 5 (13 pts), boolean chains 4, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · source_scan.main (cognitive 34) · ×1
  • source_scan.main (cognitive 34) scripts/lib/source_scan.py:501 — source_scan.main has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (9 pts), ternaries 3 (5 pts), error handling 2 (3 pts), boolean chains 2 (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 · AsynchronousProcessor.action (cognitive 33) · ×1
  • AsynchronousProcessor.action (cognitive 33) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:117 — AsynchronousProcessor.action has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 5, error handling 3 (5 pts), ternaries 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ClassFileIterator.next (cognitive 33) · ×1
  • ClassFileIterator.next (cognitive 33) modules/cpr/src/main/java/org/atmosphere/util/annotation/ClassFileIterator.java:145 — ClassFileIterator.next has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (23 pts), error handling 2 (7 pts), boolean chains 2, loops 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · IntrospectionUtils.findMethod (cognitive 33) · ×1
  • IntrospectionUtils.findMethod (cognitive 33) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:654 — IntrospectionUtils.findMethod has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 2 (4 pts), boolean chains 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 · DenyListPolicy.screenGraph (cognitive 33) · ×1
  • DenyListPolicy.screenGraph (cognitive 33) modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:183 — DenyListPolicy.screenGraph has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 4 (13 pts) (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 · WorkspaceExtensions.applyRuntime (cognitive 33) · ×1
  • WorkspaceExtensions.applyRuntime (cognitive 33) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:295 — WorkspaceExtensions.applyRuntime has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (21 pts), ternaries 7 (9 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · McpRegistry.scan (cognitive 32) · ×1
  • McpRegistry.scan (cognitive 32) modules/mcp/src/main/java/org/atmosphere/mcp/registry/McpRegistry.java:308 — McpRegistry.scan has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (29 pts), loops 2, boolean chains 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 · AsynchronousProcessor.completeLifecycle (cognitive 32) · ×1
  • AsynchronousProcessor.completeLifecycle (cognitive 32) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:478 — AsynchronousProcessor.completeLifecycle has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (18 pts), error handling 4 (11 pts), ternaries 1 (2 pts), 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 · ChunkConcatReader.read (cognitive 32) · ×1
  • ChunkConcatReader.read (cognitive 32) modules/cpr/src/main/java/org/atmosphere/util/ChunkConcatReaderPool.java:102 — ChunkConcatReader.read has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (21 pts), error handling 2 (8 pts), boolean chains 1, loops 1, 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 · DefaultWebSocketProcessor.close (cognitive 32) · ×1
  • DefaultWebSocketProcessor.close (cognitive 32) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:709 — DefaultWebSocketProcessor.close has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 2 (11 pts), boolean chains 3 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · DefaultWebSocketProcessor.postProcessMapping (cognitive 32) · ×1
  • DefaultWebSocketProcessor.postProcessMapping (cognitive 32) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:337 — DefaultWebSocketProcessor.postProcessMapping has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (20 pts), error handling 3 (8 pts), boolean chains 2, ternaries 2 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · RunReattachSupport.replayPendingRun (cognitive 32) · ×1
  • RunReattachSupport.replayPendingRun (cognitive 32) modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java:767 — RunReattachSupport.replayPendingRun has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 8, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · AtmosphereFramework.configureQueryStringAsRequest (cognitive 31) · ×1
  • AtmosphereFramework.configureQueryStringAsRequest (cognitive 31) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:1300 — AtmosphereFramework.configureQueryStringAsRequest has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 3 (9 pts), boolean chains 5, loops 1 (2 pts), 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 · HeartbeatInterceptor.inspect (cognitive 31) · ×1
  • HeartbeatInterceptor.inspect (cognitive 31) modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java:190 — HeartbeatInterceptor.inspect has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 5, error handling 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · IntrospectionUtils.replaceProperties (cognitive 31) · ×1
  • IntrospectionUtils.replaceProperties (cognitive 31) modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:306 — IntrospectionUtils.replaceProperties has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 2 (5 pts), 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 · QueryStringDecoder.decodeParams (cognitive 31) · ×1
  • QueryStringDecoder.decodeParams (cognitive 31) modules/cpr/src/main/java/org/atmosphere/util/QueryStringDecoder.java:228 — QueryStringDecoder.decodeParams has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 2, 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 · Markdown.format (cognitive 31) · ×1
  • Markdown.format (cognitive 31) modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/JournalFormat.java:52 — Markdown.format has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 7 (23 pts), if/else 1 (3 pts), boolean chains 2, match/switch 1 (2 pts), loops 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 · AnthropicMessagesClient.buildRequestBody (cognitive 31) · ×1
  • AnthropicMessagesClient.buildRequestBody (cognitive 31) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:684 — AnthropicMessagesClient.buildRequestBody has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7, loops 3 (6 pts), error handling 2 (3 pts) (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 · CacheKey.compute (cognitive 31) · ×1
  • CacheKey.compute (cognitive 31) modules/ai/src/main/java/org/atmosphere/ai/cache/CacheKey.java:63 — CacheKey.compute has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 4 (13 pts), if/else 7 (12 pts), loops 3 (6 pts) (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 · ScopePolicyResolver.resolve (cognitive 31) · ×1
  • ScopePolicyResolver.resolve (cognitive 31) modules/agent/src/main/java/org/atmosphere/agent/skill/ScopePolicyResolver.java:190 — ScopePolicyResolver.resolve has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (23 pts), ternaries 3 (8 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · index.subscribeStreaming (cognitive 31) · ×1
  • index.subscribeStreaming (cognitive 31) atmosphere.js/src/streaming/index.ts:49 — index.subscribeStreaming has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 8 (nesting depth added 7). None of this is in the body itself: all 31 points belong to 2 function literals inside it that branch (lines 101, 172). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · vue-check-ts7.run (cognitive 31) · ×1
  • vue-check-ts7.run (cognitive 31) modules/spring-boot-starter/frontend/scripts/vue-check-ts7.cjs:32 — vue-check-ts7.run has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 7 (8 pts), ternaries 4 (5 pts), boolean chains 2, error handling 1 (nesting depth added 8). Of this number, 23 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AtmosphereSpringAiAlibabaEnvironmentPostProcessor.postProcessEnvironment (cognitive 30) · ×1
  • AtmosphereSpringAiAlibabaEnvironmentPostProcessor.postProcessEnvironment (cognitive 30) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:98 — AtmosphereSpringAiAlibabaEnvironmentPostProcessor.postProcessEnvironment has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 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 · CohereChatClient.stream (cognitive 30) · ×1
  • CohereChatClient.stream (cognitive 30) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:160 — CohereChatClient.stream has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 4 (5 pts), boolean chains 4, loops 3 (4 pts), error handling 1 (2 pts), match/switch 1 (2 pts) (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 · WebTransportTransport.drainFrames (cognitive 30) · ×1
  • WebTransportTransport.drainFrames (cognitive 30) atmosphere.js/src/transports/webtransport.ts:295 — WebTransportTransport.drainFrames has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 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 · index.main (cognitive 30) · ×1
  • index.main (cognitive 30) REDACTED:93 — index.main has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 2 (4 pts), match/switch 1 (2 pts), 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 · IOUtils.readEntirelyAsString (cognitive 29) · ×1
  • IOUtils.readEntirelyAsString (cognitive 29) modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java:119 — IOUtils.readEntirelyAsString has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 4 (10 pts), loops 1 (3 pts), ternaries 1 (2 pts), 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 · WhatsAppChannel.receive (cognitive 29) · ×1
  • WhatsAppChannel.receive (cognitive 29) modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:105 — WhatsAppChannel.receive has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (6 pts), boolean chains 4, error handling 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 · AcsManifestParser.parseInterventionPoints (cognitive 29) · ×1
  • AcsManifestParser.parseInterventionPoints (cognitive 29) modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:119 — AcsManifestParser.parseInterventionPoints has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 2 (4 pts), boolean chains 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 · AgentProcessor.handle (cognitive 29) · ×1
  • AgentProcessor.handle (cognitive 29) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:98 — AgentProcessor.handle has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (20 pts), ternaries 4, error handling 2, loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · AdkAgentRuntime.buildRequestRunner (cognitive 29) · ×1
  • AdkAgentRuntime.buildRequestRunner (cognitive 29) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:359 — AdkAgentRuntime.buildRequestRunner has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 1 (4 pts), ternaries 2 (4 pts), 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 · useStreaming.useStreaming (cognitive 29) · ×1
  • useStreaming.useStreaming (cognitive 29) atmosphere.js/src/hooks/react/useStreaming.ts:175 — useStreaming.useStreaming has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22 (25 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 5). None of this is in the body itself: all 29 points belong to 18 function literals inside it that branch (lines 225, 290, 299, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · BatchWire.parse (cognitive 28) · ×1
  • BatchWire.parse (cognitive 28) modules/ai/src/main/java/org/atmosphere/ai/batch/BatchWire.java:77 — BatchWire.parse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 8, error handling 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 · AdkEventAdapter.onEvent (cognitive 28) · ×1
  • AdkEventAdapter.onEvent (cognitive 28) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkEventAdapter.java:241 — AdkEventAdapter.onEvent has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (4 pts), ternaries 1 (4 pts), 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 · A2aHandler.restRoute (cognitive 28) · ×1
  • A2aHandler.restRoute (cognitive 28) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:237 — A2aHandler.restRoute has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · ManagedServiceInterceptor.mapAnnotatedService (cognitive 27) · ×1
  • ManagedServiceInterceptor.mapAnnotatedService (cognitive 27) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedServiceInterceptor.java:45 — ManagedServiceInterceptor.mapAnnotatedService has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (21 pts), error handling 1 (5 pts), boolean chains 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · SimpleRestInterceptor.readBalancedObject (cognitive 27) · ×1
  • SimpleRestInterceptor.readBalancedObject (cognitive 27) modules/cpr/src/main/java/org/atmosphere/interceptor/SimpleRestInterceptor.java:425 — SimpleRestInterceptor.readBalancedObject has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (25 pts), 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 · IOUtils.forceReadEntirelyAsByte (cognitive 27) · ×1
  • IOUtils.forceReadEntirelyAsByte (cognitive 27) modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java:311 — IOUtils.forceReadEntirelyAsByte has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (17 pts), error handling 3 (7 pts), loops 1 (3 pts) (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 · DefaultWebSocketProcessor.sameOrigin (cognitive 27) · ×1
  • DefaultWebSocketProcessor.sameOrigin (cognitive 27) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:195 — DefaultWebSocketProcessor.sameOrigin has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 8 (10 pts), boolean chains 5, 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 · OpenAiCompatibleClient.buildResponsesApiBody (cognitive 27) · ×1
  • OpenAiCompatibleClient.buildResponsesApiBody (cognitive 27) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1543 — OpenAiCompatibleClient.buildResponsesApiBody has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), loops 2 (4 pts), boolean chains 1, 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 · RoomCatchUp.mergeCached (cognitive 27) · ×1
  • RoomCatchUp.mergeCached (cognitive 27) modules/ai/src/main/java/org/atmosphere/ai/resume/RoomCatchUp.java:222 — RoomCatchUp.mergeCached has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 5 (7 pts), boolean chains 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 · PiiTapeRedactor.redactValue (cognitive 27) · ×1
  • PiiTapeRedactor.redactValue (cognitive 27) modules/ai/src/main/java/org/atmosphere/ai/tape/PiiTapeRedactor.java:67 — PiiTapeRedactor.redactValue has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 3 (6 pts), loops 2 (4 pts) (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 · LongPollingReplies.deliver (cognitive 27) · ×1
  • LongPollingReplies.deliver (cognitive 27) modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:509 — LongPollingReplies.deliver has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 4, boolean chains 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 · TypesafeWire.errorMessage (cognitive 27) · ×1
  • TypesafeWire.errorMessage (cognitive 27) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeWire.java:447 — TypesafeWire.errorMessage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 3 (7 pts), boolean chains 5, error handling 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 · filter_ai_state_sites.main (cognitive 27) · ×1
  • filter_ai_state_sites.main (cognitive 27) scripts/lib/filter_ai_state_sites.py:82 — filter_ai_state_sites.main has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (5 pts), error handling 2 (4 pts), boolean chains 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 · client.parseFrames (cognitive 27) · ×1
  • client.parseFrames (cognitive 27) atmosphere.js/src/interactions/client.ts:389 — client.parseFrames has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (19 pts), error handling 1 (4 pts), boolean chains 3, 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 · metrics.meterFromPrometheus (cognitive 27) · ×1
  • metrics.meterFromPrometheus (cognitive 27) modules/spring-boot-starter/frontend/src/lib/metrics.ts:221 — metrics.meterFromPrometheus has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 2 (5 pts), boolean chains 2, loops 2 (nesting depth added 11). Of this number, 26 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · UUIDBroadcasterCache.invalidateExpiredEntries (cognitive 26) · ×1
  • UUIDBroadcasterCache.invalidateExpiredEntries (cognitive 26) modules/cpr/src/main/java/org/atmosphere/cache/UUIDBroadcasterCache.java:324 — UUIDBroadcasterCache.invalidateExpiredEntries has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 6 (7 pts), 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 · AnthropicMessagesClient.stream (cognitive 26) · ×1
  • AnthropicMessagesClient.stream (cognitive 26) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:159 — AnthropicMessagesClient.stream has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 4 (5 pts), boolean chains 3, error handling 1 (2 pts), loops 2, match/switch 1 (2 pts) (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 · AcsManifestPolicy.buildInput (cognitive 26) · ×1
  • AcsManifestPolicy.buildInput (cognitive 26) modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestPolicy.java:248 — AcsManifestPolicy.buildInput has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (25 pts), 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 · SemanticIntentScopeGuardrail.evaluate (cognitive 26) · ×1
  • SemanticIntentScopeGuardrail.evaluate (cognitive 26) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:180 — SemanticIntentScopeGuardrail.evaluate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3, ternaries 1 (3 pts), 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 · PromptMethodInvoker.bindArguments (cognitive 26) · ×1
  • PromptMethodInvoker.bindArguments (cognitive 26) modules/ai/src/main/java/org/atmosphere/ai/processor/PromptMethodInvoker.java:99 — PromptMethodInvoker.bindArguments has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (5 pts), 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 · DefaultToolRegistry.convertArg (cognitive 26) · ×1
  • DefaultToolRegistry.convertArg (cognitive 26) modules/ai/src/main/java/org/atmosphere/ai/tool/DefaultToolRegistry.java:429 — DefaultToolRegistry.convertArg has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 10, loops 1 (2 pts) (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 · ToolExecutionHelper.executeWithApprovalLive (cognitive 26) · ×1
  • ToolExecutionHelper.executeWithApprovalLive (cognitive 26) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java:728 — ToolExecutionHelper.executeWithApprovalLive has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 5, ternaries 4, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · GovernanceController.check (cognitive 26) · ×1
  • GovernanceController.check (cognitive 26) modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:167 — GovernanceController.check has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), ternaries 4, error handling 1 (3 pts), match/switch 1 (3 pts), boolean chains 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 · KoogAgentRuntime.buildPrompt (cognitive 26) · ×1
  • KoogAgentRuntime.buildPrompt (cognitive 26) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:963 — KoogAgentRuntime.buildPrompt has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 3 (6 pts), match/switch 1 (2 pts) (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 · source_scan.self_test (cognitive 26) · ×1
  • source_scan.self_test (cognitive 26) scripts/lib/source_scan.py:464 — source_scan.self_test has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 5 (7 pts), ternaries 1 (3 pts) (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 · BaseTransport.captureRunId (cognitive 26) · ×1
  • BaseTransport.captureRunId (cognitive 26) atmosphere.js/src/transports/base.ts:511 — BaseTransport.captureRunId has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7, error handling 1 (2 pts), 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 · AtmosphereFramework.configureRequestResponse (cognitive 25) · ×1
  • AtmosphereFramework.configureRequestResponse (cognitive 25) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:1059 — AtmosphereFramework.configureRequestResponse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, ternaries 2 (5 pts) (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 · AtmosphereResourceImpl.notifyListeners (cognitive 25) · ×1
  • AtmosphereResourceImpl.notifyListeners (cognitive 25) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:713 — AtmosphereResourceImpl.notifyListeners has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4, error handling 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · FrameworkDiagnostics.info (cognitive 25) · ×1
  • FrameworkDiagnostics.info (cognitive 25) modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java:48 — FrameworkDiagnostics.info has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 3 (5 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · IdleResourceInterceptor.idleResources (cognitive 25) · ×1
  • IdleResourceInterceptor.idleResources (cognitive 25) modules/cpr/src/main/java/org/atmosphere/interceptor/IdleResourceInterceptor.java:72 — IdleResourceInterceptor.idleResources has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 2, error handling 1 (2 pts), 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 · DefaultEndpointMapper.map (cognitive 25) · ×1
  • DefaultEndpointMapper.map (cognitive 25) modules/cpr/src/main/java/org/atmosphere/util/DefaultEndpointMapper.java:71 — DefaultEndpointMapper.map has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), ternaries 2 (6 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · ChannelAiBridge.addressedAgent (cognitive 25) · ×1
  • ChannelAiBridge.addressedAgent (cognitive 25) modules/channels/src/main/java/org/atmosphere/channels/ChannelAiBridge.java:421 — ChannelAiBridge.addressedAgent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 3, loops 2 (3 pts) (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 · ScopeConfig.<init> (cognitive 25) · ×1
  • ScopeConfig.<init> (cognitive 25) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeConfig.java:43 — ScopeConfig.<init> has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 7 (9 pts), boolean chains 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 · YamlPolicyParser.parse (cognitive 25) · ×1
  • YamlPolicyParser.parse (cognitive 25) modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:114 — YamlPolicyParser.parse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 4 (8 pts), boolean chains 3, error handling 2 (3 pts), 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 · RoutingLlmClient.streamChatCompletion (cognitive 25) · ×1
  • RoutingLlmClient.streamChatCompletion (cognitive 25) modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java:146 — RoutingLlmClient.streamChatCompletion has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 1 (3 pts), match/switch 1 (2 pts), boolean chains 1, 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 · IntentDispatch.route (cognitive 25) · ×1
  • IntentDispatch.route (cognitive 25) modules/ai/src/main/java/org/atmosphere/ai/IntentDispatch.java:123 — IntentDispatch.route has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (19 pts), error handling 2 (5 pts), 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 · SkillFileParser.parse (cognitive 25) · ×1
  • SkillFileParser.parse (cognitive 25) modules/agent/src/main/java/org/atmosphere/agent/skill/SkillFileParser.java:83 — SkillFileParser.parse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 2, loops 1, 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 · AgentController.listAgents (cognitive 25) · ×1
  • AgentController.listAgents (cognitive 25) modules/admin/src/main/java/org/atmosphere/admin/agent/AgentController.java:58 — AgentController.listAgents has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 2 (5 pts), 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 · AdminMcpBridge.registerOptionalReadTools (cognitive 25) · ×1
  • AdminMcpBridge.registerOptionalReadTools (cognitive 25) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:314 — AdminMcpBridge.registerOptionalReadTools has cognitive complexity 25 (threshold 15). Drivers by points: error handling 14 (19 pts), if/else 5, 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 · AtmosphereEmbabelEnvironmentPostProcessor.postProcessEnvironment (cognitive 25) · ×1
  • AtmosphereEmbabelEnvironmentPostProcessor.postProcessEnvironment (cognitive 25) modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/AtmosphereEmbabelEnvironmentPostProcessor.kt:70 — AtmosphereEmbabelEnvironmentPostProcessor.postProcessEnvironment has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 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 · stream.run_crew (cognitive 25) · ×1
  • stream.run_crew (cognitive 25) modules/crewai/sidecar/src/atmosphere_crewai_bridge/stream.py:179 — stream.run_crew has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (20 pts), error handling 2, ternaries 1 (2 pts), 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 · useAtmosphereChat.useAtmosphereChat.extractErrorShape (cognitive 25) · ×1
  • useAtmosphereChat.useAtmosphereChat.extractErrorShape (cognitive 25) modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:365 — useAtmosphereChat.useAtmosphereChat.extractErrorShape has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 5, error handling 1 (3 pts), loops 2 (3 pts) (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 · SemanticKernelAgentRuntime.buildInvocationContext (cognitive 24) · ×1
  • SemanticKernelAgentRuntime.buildInvocationContext (cognitive 24) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java:393 — SemanticKernelAgentRuntime.buildInvocationContext has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 4, error handling 1 (2 pts) (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 · SemanticKernelToolBridge.sendToolsUnderTheirOwnNames (cognitive 24) · ×1
  • SemanticKernelToolBridge.sendToolsUnderTheirOwnNames (cognitive 24) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelToolBridge.java:294 — SemanticKernelToolBridge.sendToolsUnderTheirOwnNames has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (7 pts), loops 4 (5 pts), boolean chains 3, error handling 1 (2 pts) (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 · ToolAwareStreamingResponseHandler.completeRound (cognitive 24) · ×1
  • ToolAwareStreamingResponseHandler.completeRound (cognitive 24) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java:178 — ToolAwareStreamingResponseHandler.completeRound has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 3 (6 pts), boolean chains 2, match/switch 1 (2 pts) (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 · KafkaBroadcaster.consumeLoop (cognitive 24) · ×1
  • KafkaBroadcaster.consumeLoop (cognitive 24) modules/kafka/src/main/java/org/atmosphere/kafka/KafkaBroadcaster.java:187 — KafkaBroadcaster.consumeLoop has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 4 (9 pts), loops 2 (3 pts), 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 · AtmosphereFramework.doInitParams (cognitive 24) · ×1
  • AtmosphereFramework.doInitParams (cognitive 24) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:592 — AtmosphereFramework.doInitParams has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ChannelAiBridge.callAi (cognitive 24) · ×1
  • ChannelAiBridge.callAi (cognitive 24) modules/channels/src/main/java/org/atmosphere/channels/ChannelAiBridge.java:287 — ChannelAiBridge.callAi has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, loops 2 (3 pts), error handling 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 · AbstractSseLlmClient.runRound (cognitive 24) · ×1
  • AbstractSseLlmClient.runRound (cognitive 24) modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:246 — AbstractSseLlmClient.runRound has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 2 (4 pts), ternaries 1 (3 pts), boolean chains 1, 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 · OpenAiCompatibleClient.continueAfterRound (cognitive 24) · ×1
  • OpenAiCompatibleClient.continueAfterRound (cognitive 24) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:616 — OpenAiCompatibleClient.continueAfterRound has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), match/switch 1 (4 pts), boolean chains 2, ternaries 1 (2 pts) (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 · OpenAiCompatibleClient.streamChatCompletion (cognitive 24) · ×1
  • OpenAiCompatibleClient.streamChatCompletion (cognitive 24) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:336 — OpenAiCompatibleClient.streamChatCompletion has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), error handling 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 · PromptRepollGate.await (cognitive 24) · ×1
  • PromptRepollGate.await (cognitive 24) modules/ai/src/main/java/org/atmosphere/ai/processor/PromptRepollGate.java:231 — PromptRepollGate.await has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3, error handling 1, loops 1, 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 · WorkspaceExtensions.permissionPolicies (cognitive 24) · ×1
  • WorkspaceExtensions.permissionPolicies (cognitive 24) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:456 — WorkspaceExtensions.permissionPolicies has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · useChat.useChat (cognitive 24) · ×1
  • useChat.useChat (cognitive 24) atmosphere.js/src/hooks/react/useChat.ts:74 — useChat.useChat has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 5 (8 pts), boolean chains 5, loops 1 (nesting depth added 4). None of this is in the body itself: all 24 points belong to 11 function literals inside it that branch (lines 105, 100, 160, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · AtmosphereProcessor.boundPayloadTypes (cognitive 23) · ×1
  • AtmosphereProcessor.boundPayloadTypes (cognitive 23) modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:434 — AtmosphereProcessor.boundPayloadTypes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 4 (10 pts), 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 · McpHandler.handlePost (cognitive 23) · ×1
  • McpHandler.handlePost (cognitive 23) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:215 — McpHandler.handlePost has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (17 pts), error handling 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · CrewAiAgentRuntime.drainStream (cognitive 23) · ×1
  • CrewAiAgentRuntime.drainStream (cognitive 23) modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java:272 — CrewAiAgentRuntime.drainStream has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, error handling 2, loops 2, ternaries 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 · ManagedAtmosphereHandler.handleRequest (cognitive 23) · ×1
  • ManagedAtmosphereHandler.handleRequest (cognitive 23) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:132 — ManagedAtmosphereHandler.handleRequest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 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 · ClasspathScanner.autoConfigureService (cognitive 23) · ×1
  • ClasspathScanner.autoConfigureService (cognitive 23) modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:207 — ClasspathScanner.autoConfigureService has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (6 pts), ternaries 2 (3 pts), error handling 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 · DefaultBroadcaster.executeAsyncWrite (cognitive 23) · ×1
  • DefaultBroadcaster.executeAsyncWrite (cognitive 23) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1026 — DefaultBroadcaster.executeAsyncWrite has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 3, loops 1 (3 pts), ternaries 2 (3 pts), 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 · DefaultMetaBroadcaster.broadcast (cognitive 23) · ×1
  • DefaultMetaBroadcaster.broadcast (cognitive 23) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultMetaBroadcaster.java:76 — DefaultMetaBroadcaster.broadcast has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (4 pts), error handling 1 (2 pts), boolean chains 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 · InjectableObjectFactory.configure (cognitive 23) · ×1
  • InjectableObjectFactory.configure (cognitive 23) modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:74 — InjectableObjectFactory.configure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 3 (7 pts), loops 3 (4 pts), boolean chains 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 · PathParamIntrospector.injectable (cognitive 23) · ×1
  • PathParamIntrospector.injectable (cognitive 23) modules/cpr/src/main/java/org/atmosphere/inject/PathParamIntrospector.java:50 — PathParamIntrospector.injectable has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · DefaultEndpointMapper.map (cognitive 23) · ×1
  • DefaultEndpointMapper.map (cognitive 23) modules/cpr/src/main/java/org/atmosphere/util/DefaultEndpointMapper.java:109 — DefaultEndpointMapper.map has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 2 (6 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · A2aAgentTransport.extractStreamingText (cognitive 23) · ×1
  • A2aAgentTransport.extractStreamingText (cognitive 23) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:227 — A2aAgentTransport.extractStreamingText has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3, error handling 1, 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 · DecisionScorer.againstTheAnswer (cognitive 23) · ×1
  • DecisionScorer.againstTheAnswer (cognitive 23) modules/ai/src/main/java/org/atmosphere/ai/llm/DecisionScorer.java:234 — DecisionScorer.againstTheAnswer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 4 (6 pts), 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 · OpenAiCompatibleClient.buildRequestBody (cognitive 23) · ×1
  • OpenAiCompatibleClient.buildRequestBody (cognitive 23) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1145 — OpenAiCompatibleClient.buildRequestBody has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 6, ternaries 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · OnSessionCloseStrategy.parseJsonArray (cognitive 23) · ×1
  • OnSessionCloseStrategy.parseJsonArray (cognitive 23) modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:120 — OnSessionCloseStrategy.parseJsonArray has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 3 (5 pts) (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 · AiEndpointHandler.prepareTurn (cognitive 23) · ×1
  • AiEndpointHandler.prepareTurn (cognitive 23) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:1609 — AiEndpointHandler.prepareTurn has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), error handling 1 (3 pts), 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 · OpenApiToolImporter.fromSpec (cognitive 23) · ×1
  • OpenApiToolImporter.fromSpec (cognitive 23) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:88 — OpenApiToolImporter.fromSpec has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, error handling 1 (3 pts), loops 2 (3 pts), ternaries 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 · ScopePolicyResolver.reportScopeOverrides (cognitive 23) · ×1
  • ScopePolicyResolver.reportScopeOverrides (cognitive 23) modules/agent/src/main/java/org/atmosphere/agent/skill/ScopePolicyResolver.java:432 — ScopePolicyResolver.reportScopeOverrides has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6, ternaries 2 (3 pts) (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 · A2aProtocolHandler.executeSkill (cognitive 23) · ×1
  • A2aProtocolHandler.executeSkill (cognitive 23) modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:690 — A2aProtocolHandler.executeSkill has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (3 pts), boolean chains 2, error handling 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 · KoogAgentRuntime.executeWithAgent (cognitive 23) · ×1
  • KoogAgentRuntime.executeWithAgent (cognitive 23) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:533 — KoogAgentRuntime.executeWithAgent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2, error handling 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 · GoapPlanner.plan (cognitive 22) · ×1
  • GoapPlanner.plan (cognitive 22) modules/verifier/src/main/java/org/atmosphere/verifier/planner/GoapPlanner.java:91 — GoapPlanner.plan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (3 pts), 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 · AtmosphereConsoleInfoEndpoint.info (cognitive 22) · ×1
  • AtmosphereConsoleInfoEndpoint.info (cognitive 22) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:70 — AtmosphereConsoleInfoEndpoint.info has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · InjectableObjectFactory.requestScoped (cognitive 22) · ×1
  • InjectableObjectFactory.requestScoped (cognitive 22) modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:342 — InjectableObjectFactory.requestScoped has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (15 pts), loops 3 (6 pts), 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 · SimpleRestInterceptor.createAtmosphereRequest (cognitive 22) · ×1
  • SimpleRestInterceptor.createAtmosphereRequest (cognitive 22) modules/cpr/src/main/java/org/atmosphere/interceptor/SimpleRestInterceptor.java:247 — SimpleRestInterceptor.createAtmosphereRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 4 (8 pts) (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 · AgUiCoordinatorBridge.onAction (cognitive 22) · ×1
  • AgUiCoordinatorBridge.onAction (cognitive 22) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1419 — AgUiCoordinatorBridge.onAction has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (5 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (2 pts) (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 · AnthropicMessagesClient.parseRound (cognitive 22) · ×1
  • AnthropicMessagesClient.parseRound (cognitive 22) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:275 — AnthropicMessagesClient.parseRound has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (6 pts), boolean chains 3, loops 3, match/switch 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 · BuiltInAgentRuntime.buildRequest (cognitive 22) · ×1
  • BuiltInAgentRuntime.buildRequest (cognitive 22) modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java:164 — BuiltInAgentRuntime.buildRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 1, 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 · OpenAiCompatibleClient.sendWithRetry (cognitive 22) · ×1
  • OpenAiCompatibleClient.sendWithRetry (cognitive 22) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:872 — OpenAiCompatibleClient.sendWithRetry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 2 (4 pts), boolean chains 2, ternaries 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 · AiEndpointHandler.appendResolvedFacts (cognitive 22) · ×1
  • AiEndpointHandler.appendResolvedFacts (cognitive 22) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:1881 — AiEndpointHandler.appendResolvedFacts has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6 (8 pts), boolean chains 4, 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 · AiEnvironment.close (cognitive 22) · ×1
  • AiEnvironment.close (cognitive 22) modules/ai/src/main/java/org/atmosphere/ai/AiEnvironment.java:622 — AiEnvironment.close has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, loops 2 (3 pts) (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 · FlowController.buildGraph (cognitive 22) · ×1
  • FlowController.buildGraph (cognitive 22) modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:94 — FlowController.buildGraph has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (6 pts), loops 4, match/switch 1 (2 pts) (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 · AtmosphereProtocol.buildRequest (cognitive 22) · ×1
  • AtmosphereProtocol.buildRequest (cognitive 22) atmosphere.js/src/utils/protocol.ts:112 — AtmosphereProtocol.buildRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 3 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · AtmosphereSpringAiEnvironmentPostProcessor.postProcessEnvironment (cognitive 21) · ×1
  • AtmosphereSpringAiEnvironmentPostProcessor.postProcessEnvironment (cognitive 21) modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:87 — AtmosphereSpringAiEnvironmentPostProcessor.postProcessEnvironment has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 8 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · SemanticKernelAgentRuntime.doExecuteWithHandle (cognitive 21) · ×1
  • SemanticKernelAgentRuntime.doExecuteWithHandle (cognitive 21) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java:163 — SemanticKernelAgentRuntime.doExecuteWithHandle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 5, boolean chains 1, 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 · McpProtocolHandler.toolResult (cognitive 21) · ×1
  • McpProtocolHandler.toolResult (cognitive 21) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:794 — McpProtocolHandler.toolResult has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 1 (3 pts), 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 · DefaultBroadcaster.removeAtmosphereResource (cognitive 21) · ×1
  • DefaultBroadcaster.removeAtmosphereResource (cognitive 21) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1906 — DefaultBroadcaster.removeAtmosphereResource has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 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 · IOUtils.guestRawServletPath (cognitive 21) · ×1
  • IOUtils.guestRawServletPath (cognitive 21) modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java:373 — IOUtils.guestRawServletPath has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (5 pts), error handling 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 · HttpOperationExecutor.execute (cognitive 21) · ×1
  • HttpOperationExecutor.execute (cognitive 21) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:421 — HttpOperationExecutor.execute has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (7 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (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 · AgUiHandler.handlePost (cognitive 21) · ×1
  • AgUiHandler.handlePost (cognitive 21) modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:110 — AgUiHandler.handlePost has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 4, ternaries 2 (4 pts), boolean chains 2, 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 · KoogAgentRuntime.executeWithPlannerAgent (cognitive 21) · ×1
  • KoogAgentRuntime.executeWithPlannerAgent (cognitive 21) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:694 — KoogAgentRuntime.executeWithPlannerAgent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 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 · KoogAgentRuntime.executeWithExecutor (cognitive 21) · ×1
  • KoogAgentRuntime.executeWithExecutor (cognitive 21) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:862 — KoogAgentRuntime.executeWithExecutor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), error handling 2, boolean chains 1, match/switch 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 · A2aChatTransport.stream (cognitive 21) · ×1
  • A2aChatTransport.stream (cognitive 21) modules/spring-boot-starter/frontend/src/transports/a2a.ts:209 — A2aChatTransport.stream has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (6 pts), 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 · VerifyCli.run (cognitive 20) · ×1
  • VerifyCli.run (cognitive 20) modules/verifier/src/main/java/org/atmosphere/verifier/cli/VerifyCli.java:114 — VerifyCli.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (6 pts), error handling 2, loops 2, match/switch 1 (2 pts) (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 · McpProtocolHandler.handleInitialize (cognitive 20) · ×1
  • McpProtocolHandler.handleInitialize (cognitive 20) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:378 — McpProtocolHandler.handleInitialize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 3 (6 pts), boolean chains 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 · HttpSseSidecarClient.writeSchemaFacets (cognitive 20) · ×1
  • HttpSseSidecarClient.writeSchemaFacets (cognitive 20) modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:260 — HttpSseSidecarClient.writeSchemaFacets has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (7 pts), boolean chains 4 (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 · AtmosphereResourceImpl.resume (cognitive 20) · ×1
  • AtmosphereResourceImpl.resume (cognitive 20) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:287 — AtmosphereResourceImpl.resume has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 2 (3 pts), loops 1 (2 pts), 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 · QueryStringDecoder.decodeComponent (cognitive 20) · ×1
  • QueryStringDecoder.decodeComponent (cognitive 20) modules/cpr/src/main/java/org/atmosphere/util/QueryStringDecoder.java:327 — QueryStringDecoder.decodeComponent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (4 pts), loops 2, boolean chains 1, 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 · QuestionSpec.of (cognitive 20) · ×1
  • QuestionSpec.of (cognitive 20) modules/ai/src/main/java/org/atmosphere/ai/decision/RuntimeDecisionModel.java:498 — QuestionSpec.of has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 3 (7 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · AcsExtendsResolver.mergePointConfig (cognitive 20) · ×1
  • AcsExtendsResolver.mergePointConfig (cognitive 20) modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsExtendsResolver.java:540 — AcsExtendsResolver.mergePointConfig has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (2 pts), 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 · FetchEventSource._parseEvent (cognitive 20) · ×1
  • FetchEventSource._parseEvent (cognitive 20) atmosphere.js/src/react-native/event-source-polyfill.ts:196 — FetchEventSource._parseEvent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (2 pts), 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 · useAtmosphereCore.useAtmosphereCore (cognitive 20) · ×1
  • useAtmosphereCore.useAtmosphereCore (cognitive 20) atmosphere.js/src/hooks/shared/useAtmosphereCore.ts:102 — useAtmosphereCore.useAtmosphereCore has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (16 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 4). None of this is in the body itself: all 20 points belong to 11 function literals inside it that branch (lines 141, 163, 136, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · AgUiChatTransport.run (cognitive 20) · ×1
  • AgUiChatTransport.run (cognitive 20) modules/spring-boot-starter/frontend/src/transports/agui.ts:184 — AgUiChatTransport.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 pts), boolean chains 3, 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 · GrpcChatTransport.subscribe (cognitive 20) · ×1
  • GrpcChatTransport.subscribe (cognitive 20) modules/spring-boot-starter/frontend/src/transports/grpc.ts:142 — GrpcChatTransport.subscribe has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 2 function items inside it that branch (pump, a function literal at line 201). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · McpProtocolHandler.handleCompletion (cognitive 19) · ×1
  • McpProtocolHandler.handleCompletion (cognitive 19) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1246 — McpProtocolHandler.handleCompletion has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 4, ternaries 4, error handling 2, loops 1 (2 pts) (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 · AtmosphereFrameworkInitializer.configureFramework (cognitive 19) · ×1
  • AtmosphereFrameworkInitializer.configureFramework (cognitive 19) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFrameworkInitializer.java:52 — AtmosphereFrameworkInitializer.configureFramework has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 1 (3 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · AtmosphereRequestImpl.getHeaders (cognitive 19) · ×1
  • AtmosphereRequestImpl.getHeaders (cognitive 19) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:236 — AtmosphereRequestImpl.getHeaders has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (2 pts), 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 · DefaultBroadcaster.getBroadcastHandler (cognitive 19) · ×1
  • DefaultBroadcaster.getBroadcastHandler (cognitive 19) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:495 — DefaultBroadcaster.getBroadcastHandler has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 3 (6 pts), 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 · SimpleRestInterceptor.inspect (cognitive 19) · ×1
  • SimpleRestInterceptor.inspect (cognitive 19) modules/cpr/src/main/java/org/atmosphere/interceptor/SimpleRestInterceptor.java:116 — SimpleRestInterceptor.inspect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, error handling 1 (2 pts) (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 · DefaultWebSocketProcessor.invokeInterceptors (cognitive 19) · ×1
  • DefaultWebSocketProcessor.invokeInterceptors (cognitive 19) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:439 — DefaultWebSocketProcessor.invokeInterceptors has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (14 pts), error handling 1 (2 pts), ternaries 2, boolean chains 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 · FanOutStreamingSession.fanOut (cognitive 19) · ×1
  • FanOutStreamingSession.fanOut (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/fanout/FanOutStreamingSession.java:103 — FanOutStreamingSession.fanOut has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (5 pts), error handling 2, boolean chains 1, match/switch 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 · EmbeddingScopeGuardrail.evaluate (cognitive 19) · ×1
  • EmbeddingScopeGuardrail.evaluate (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:96 — EmbeddingScopeGuardrail.evaluate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), 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 · GovernancePolicies.installed (cognitive 19) · ×1
  • GovernancePolicies.installed (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/governance/GovernancePolicies.java:56 — GovernancePolicies.installed has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (5 pts), error handling 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · LlmModerationDetector.detect (cognitive 19) · ×1
  • LlmModerationDetector.detect (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/guardrails/LlmModerationDetector.java:192 — LlmModerationDetector.detect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 2 (4 pts), match/switch 1 (2 pts), boolean chains 1, error handling 1, 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 · OpenAiWire.parse (cognitive 19) · ×1
  • OpenAiWire.parse (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:80 — OpenAiWire.parse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1, loops 1 (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 · RunReattachSupport.cacheDelivered (cognitive 19) · ×1
  • RunReattachSupport.cacheDelivered (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java:330 — RunReattachSupport.cacheDelivered has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), ternaries 1 (2 pts), boolean chains 1, 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 · WorkspaceExtensions.mcpServerUris (cognitive 19) · ×1
  • WorkspaceExtensions.mcpServerUris (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:687 — WorkspaceExtensions.mcpServerUris has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, error handling 1 (2 pts), 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 · DispatchDecorators.compose (cognitive 19) · ×1
  • DispatchDecorators.compose (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/DispatchDecorators.java:154 — DispatchDecorators.compose has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 6, 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 · LongPollingReplies.park (cognitive 19) · ×1
  • LongPollingReplies.park (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/LongPollingReplies.java:411 — LongPollingReplies.park has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts) (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 · Room.onMessage (cognitive 19) · ×1
  • Room.onMessage (cognitive 19) modules/ai/src/main/java/org/atmosphere/ai/LongPollingRoomReplies.java:666 — Room.onMessage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 1 (3 pts), boolean chains 2, 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 · TypesafeWire.score (cognitive 19) · ×1
  • TypesafeWire.score (cognitive 19) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeWire.java:320 — TypesafeWire.score has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, loops 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · AgUiEventMapper.toAgUi (cognitive 19) · ×1
  • AgUiEventMapper.toAgUi (cognitive 19) modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java:69 — AgUiEventMapper.toAgUi has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 6 (7 pts), boolean chains 2, error handling 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 · useChatRN.useChatRN (cognitive 19) · ×1
  • useChatRN.useChatRN (cognitive 19) atmosphere.js/src/hooks/react-native/useChatRN.ts:80 — useChatRN.useChatRN has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6, boolean chains 5 (nesting depth added 3). None of this is in the body itself: all 19 points belong to 8 function literals inside it that branch (lines 105, 101, 92, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · metrics.parseLabels (cognitive 19) · ×1
  • metrics.parseLabels (cognitive 19) modules/spring-boot-starter/frontend/src/lib/metrics.ts:176 — metrics.parseLabels has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (5 pts), boolean chains 4 (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 · SemanticKernelStreamingAdapter.drainToolTurn (cognitive 18) · ×1
  • SemanticKernelStreamingAdapter.drainToolTurn (cognitive 18) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelStreamingAdapter.java:123 — SemanticKernelStreamingAdapter.drainToolTurn has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · McpRegistry.registerCompletionMethod (cognitive 18) · ×1
  • McpRegistry.registerCompletionMethod (cognitive 18) modules/mcp/src/main/java/org/atmosphere/mcp/registry/McpRegistry.java:367 — McpRegistry.registerCompletionMethod has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 1 (2 pts), error handling 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 · EventIterator.readNext (cognitive 18) · ×1
  • EventIterator.readNext (cognitive 18) modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:407 — EventIterator.readNext has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1, 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 · ManagedAtmosphereHandler.message (cognitive 18) · ×1
  • ManagedAtmosphereHandler.message (cognitive 18) modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java:413 — ManagedAtmosphereHandler.message has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 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 · TypeResolver.resolveGenericType (cognitive 18) · ×1
  • TypeResolver.resolveGenericType (cognitive 18) modules/cpr/src/main/java/org/atmosphere/config/managed/TypeResolver.java:164 — TypeResolver.resolveGenericType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (2 pts) (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 · AsynchronousProcessor.invokeAtmosphereHandler (cognitive 18) · ×1
  • AsynchronousProcessor.invokeAtmosphereHandler (cognitive 18) modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:547 — AsynchronousProcessor.invokeAtmosphereHandler has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (9 pts), if/else 4 (7 pts), 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 · AtmosphereResourceImpl.cancel (cognitive 18) · ×1
  • AtmosphereResourceImpl.cancel (cognitive 18) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:871 — AtmosphereResourceImpl.cancel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (18 pts) (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 · DefaultAsyncSupportResolver.detectWebSocketPresent (cognitive 18) · ×1
  • DefaultAsyncSupportResolver.detectWebSocketPresent (cognitive 18) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:81 — DefaultAsyncSupportResolver.detectWebSocketPresent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5 (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 · InstallMetaServiceProcedure.apply (cognitive 18) · ×1
  • InstallMetaServiceProcedure.apply (cognitive 18) modules/cpr/src/main/java/org/atmosphere/cpr/MetaServiceAction.java:118 — InstallMetaServiceProcedure.apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. 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 · RoomProtocolInterceptor.readBody (cognitive 18) · ×1
  • RoomProtocolInterceptor.readBody (cognitive 18) modules/cpr/src/main/java/org/atmosphere/room/RoomProtocolInterceptor.java:465 — RoomProtocolInterceptor.readBody has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 3 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · DefaultWebSocketProcessor.open (cognitive 18) · ×1
  • DefaultWebSocketProcessor.open (cognitive 18) modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:248 — DefaultWebSocketProcessor.open has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), error handling 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · InMemoryCheckpointStore.evictIfNeeded (cognitive 18) · ×1
  • InMemoryCheckpointStore.evictIfNeeded (cognitive 18) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/InMemoryCheckpointStore.java:235 — InMemoryCheckpointStore.evictIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (4 pts) (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 · AiEndpointHandler.resolveRunOwner (cognitive 18) · ×1
  • AiEndpointHandler.resolveRunOwner (cognitive 18) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:1090 — AiEndpointHandler.resolveRunOwner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (4 pts), boolean chains 3, error handling 1 (3 pts) (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 · DurableRunResumer.reconstruct (cognitive 18) · ×1
  • DurableRunResumer.reconstruct (cognitive 18) modules/ai/src/main/java/org/atmosphere/ai/resume/DurableRunResumer.java:155 — DurableRunResumer.reconstruct has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (7 pts), loops 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 · TapeTrainingExtractor.inputMessages (cognitive 18) · ×1
  • TapeTrainingExtractor.inputMessages (cognitive 18) modules/ai/src/main/java/org/atmosphere/ai/tape/TapeTrainingExtractor.java:130 — TapeTrainingExtractor.inputMessages has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 2 (6 pts), if/else 2 (4 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (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 · ToolExecutionHelper.resolveApprovalDurably (cognitive 18) · ×1
  • ToolExecutionHelper.resolveApprovalDurably (cognitive 18) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java:1017 — ToolExecutionHelper.resolveApprovalDurably has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), error handling 4 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · AbstractAgentRuntime.executeWithOuterRetry (cognitive 18) · ×1
  • AbstractAgentRuntime.executeWithOuterRetry (cognitive 18) modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java:838 — AbstractAgentRuntime.executeWithOuterRetry has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 2 (6 pts), boolean chains 4, 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 · StructuredOutputRetry.runLoop (cognitive 18) · ×1
  • StructuredOutputRetry.runLoop (cognitive 18) modules/ai/src/main/java/org/atmosphere/ai/StructuredOutputRetry.java:116 — StructuredOutputRetry.runLoop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (4 pts), 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 · TypesafeWire.encodeQuestion (cognitive 18) · ×1
  • TypesafeWire.encodeQuestion (cognitive 18) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeWire.java:91 — TypesafeWire.encodeQuestion has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · AgentHandler.<init> (cognitive 18) · ×1
  • AgentHandler.<init> (cognitive 18) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentHandler.java:81 — AgentHandler.<init> has cognitive complexity 18 (threshold 15). Drivers by points: error handling 2 (6 pts), loops 3 (6 pts), if/else 3 (5 pts), 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 · AgentProcessor.handleHeadless (cognitive 18) · ×1
  • AgentProcessor.handleHeadless (cognitive 18) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:532 — AgentProcessor.handleHeadless has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (7 pts), 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 · AdkAgentRuntime.doExecuteWithHandle (cognitive 18) · ×1
  • AdkAgentRuntime.doExecuteWithHandle (cognitive 18) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:548 — AdkAgentRuntime.doExecuteWithHandle has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7, if/else 5 (6 pts), boolean chains 4, 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 · BidiFraming.drain (cognitive 17) · ×1
  • BidiFraming.drain (cognitive 17) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/BidiFraming.java:65 — BidiFraming.drain has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), 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 · McpRegistry.complete (cognitive 17) · ×1
  • McpRegistry.complete (cognitive 17) modules/mcp/src/main/java/org/atmosphere/mcp/registry/McpRegistry.java:588 — McpRegistry.complete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4 (6 pts), boolean chains 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 · LangChain4jAgentRuntime.dispatchAiService (cognitive 17) · ×1
  • LangChain4jAgentRuntime.dispatchAiService (cognitive 17) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:482 — LangChain4jAgentRuntime.dispatchAiService has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (6 pts), boolean chains 2, 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 · DurableSessionInterceptor.inspect (cognitive 17) · ×1
  • DurableSessionInterceptor.inspect (cognitive 17) modules/durable-sessions/src/main/java/org/atmosphere/session/DurableSessionInterceptor.java:147 — DurableSessionInterceptor.inspect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 3 (6 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · Invoker.matchDecoder (cognitive 17) · ×1
  • Invoker.matchDecoder (cognitive 17) modules/cpr/src/main/java/org/atmosphere/config/managed/Invoker.java:115 — Invoker.matchDecoder has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 1 (3 pts), boolean chains 2, loops 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 · AtmosphereRequestImpl.getSession (cognitive 17) · ×1
  • AtmosphereRequestImpl.getSession (cognitive 17) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java:721 — AtmosphereRequestImpl.getSession has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 5 (7 pts), boolean chains 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 · DefaultBroadcaster.queueWriteIO (cognitive 17) · ×1
  • DefaultBroadcaster.queueWriteIO (cognitive 17) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:865 — DefaultBroadcaster.queueWriteIO has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), 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 · InterceptorRegistry.configure (cognitive 17) · ×1
  • InterceptorRegistry.configure (cognitive 17) modules/cpr/src/main/java/org/atmosphere/cpr/InterceptorRegistry.java:159 — InterceptorRegistry.configure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), error handling 1 (3 pts) (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 · JsonRpcUtils.firstPartText (cognitive 17) · ×1
  • JsonRpcUtils.firstPartText (cognitive 17) modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/JsonRpcUtils.java:153 — JsonRpcUtils.firstPartText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts), 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 · DecisionModelResolver.scan (cognitive 17) · ×1
  • DecisionModelResolver.scan (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/decision/DecisionModelResolver.java:262 — DecisionModelResolver.scan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 3 (5 pts), boolean chains 1, loops 1, 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 · AcsManifestParser.parse (cognitive 17) · ×1
  • AcsManifestParser.parse (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/governance/acs/AcsManifestParser.java:47 — AcsManifestParser.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (2 pts) (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 · OpenAiWire.extractContent (cognitive 17) · ×1
  • OpenAiWire.extractContent (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/openai/OpenAiWire.java:167 — OpenAiWire.extractContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (2 pts) (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 · AiEndpointProcessor.instantiateGuardrails (cognitive 17) · ×1
  • AiEndpointProcessor.instantiateGuardrails (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:836 — AiEndpointProcessor.instantiateGuardrails has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (5 pts), error handling 2 (3 pts) (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 · RunEventCapturingSession.emit (cognitive 17) · ×1
  • RunEventCapturingSession.emit (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventCapturingSession.java:196 — RunEventCapturingSession.emit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (4 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · TapeRecordingSession.recordInput (cognitive 17) · ×1
  • TapeRecordingSession.recordInput (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/tape/TapeRecordingSession.java:444 — TapeRecordingSession.recordInput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (6 pts), boolean chains 2, loops 1 (2 pts) (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 · ToolArgumentValidator.validateParameter (cognitive 17) · ×1
  • ToolArgumentValidator.validateParameter (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/tool/ToolArgumentValidator.java:69 — ToolArgumentValidator.validateParameter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (4 pts), boolean chains 3 (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 · PersistentConversationMemory.findMatchingBrace (cognitive 17) · ×1
  • PersistentConversationMemory.findMatchingBrace (cognitive 17) modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:193 — PersistentConversationMemory.findMatchingBrace has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), 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 · TypesafeWire.decodeReply (cognitive 17) · ×1
  • TypesafeWire.decodeReply (cognitive 17) modules/ai-decision-typesafe/src/main/java/org/atmosphere/ai/decision/typesafe/TypesafeWire.java:149 — TypesafeWire.decodeReply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, error handling 2 (3 pts), loops 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SkillFileParser.parseFrontmatter (cognitive 17) · ×1
  • SkillFileParser.parseFrontmatter (cognitive 17) modules/agent/src/main/java/org/atmosphere/agent/skill/SkillFileParser.java:177 — SkillFileParser.parseFrontmatter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 3 (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 · AgentController.findAgentAnnotation (cognitive 17) · ×1
  • AgentController.findAgentAnnotation (cognitive 17) modules/admin/src/main/java/org/atmosphere/admin/agent/AgentController.java:215 — AgentController.findAgentAnnotation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (5 pts), boolean chains 2, error handling 1 (2 pts) (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 · AdminMcpBridge.registerTapeReadTool (cognitive 17) · ×1
  • AdminMcpBridge.registerTapeReadTool (cognitive 17) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:213 — AdminMcpBridge.registerTapeReadTool has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 3, loops 2 (3 pts), 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 · KoogAgentRuntime.executeWithOuterRetry (cognitive 17) · ×1
  • KoogAgentRuntime.executeWithOuterRetry (cognitive 17) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:298 — KoogAgentRuntime.executeWithOuterRetry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 2 (6 pts), boolean chains 3, 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 · EmbabelAgentRuntime.executeWithOuterRetry (cognitive 17) · ×1
  • EmbabelAgentRuntime.executeWithOuterRetry (cognitive 17) modules/embabel/src/main/kotlin/org/atmosphere/ai/embabel/EmbabelAgentRuntime.kt:397 — EmbabelAgentRuntime.executeWithOuterRetry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 2 (6 pts), boolean chains 3, 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 · source_scan.iter_files (cognitive 17) · ×1
  • source_scan.iter_files (cognitive 17) scripts/lib/source_scan.py:316 — source_scan.iter_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), ternaries 1 (2 pts), 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 · AtmosphereAnnotationScanner.scan (cognitive 16) · ×1
  • AtmosphereAnnotationScanner.scan (cognitive 16) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAnnotationScanner.java:85 — AtmosphereAnnotationScanner.scan has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (8 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · AtmosphereConsoleInfoEndpoint.detectEndpoint (cognitive 16) · ×1
  • AtmosphereConsoleInfoEndpoint.detectEndpoint (cognitive 16) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:607 — AtmosphereConsoleInfoEndpoint.detectEndpoint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, loops 2, error handling 1, ternaries 1 (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 · RagChunker.sentenceSpans (cognitive 16) · ×1
  • RagChunker.sentenceSpans (cognitive 16) modules/rag/src/main/java/org/atmosphere/ai/rag/RagChunker.java:432 — RagChunker.sentenceSpans has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), 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 · VertxAtmosphereHandler.handle (cognitive 16) · ×1
  • VertxAtmosphereHandler.handle (cognitive 16) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/vertx/VertxAtmosphereHandler.java:93 — VertxAtmosphereHandler.handle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · AtmosphereCheckpointServlet.writeValue (cognitive 16) · ×1
  • AtmosphereCheckpointServlet.writeValue (cognitive 16) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:203 — AtmosphereCheckpointServlet.writeValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts) (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 · McpProtocolHandler.handleSingleMessage (cognitive 16) · ×1
  • McpProtocolHandler.handleSingleMessage (cognitive 16) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:294 — McpProtocolHandler.handleSingleMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (5 pts), boolean chains 3 (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 · McpToolSource.toParameter (cognitive 16) · ×1
  • McpToolSource.toParameter (cognitive 16) modules/mcp-client/src/main/java/org/atmosphere/mcp/client/McpToolSource.java:394 — McpToolSource.toParameter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 2 (4 pts), ternaries 3 (4 pts), 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 · CancelAwareStreamingHandler.onCompleteResponse (cognitive 16) · ×1
  • CancelAwareStreamingHandler.onCompleteResponse (cognitive 16) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:584 — CancelAwareStreamingHandler.onCompleteResponse has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 3 (4 pts), 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 · Interceptor.transformPayload (cognitive 16) · ×1
  • Interceptor.transformPayload (cognitive 16) modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:132 — Interceptor.transformPayload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, error handling 1 (2 pts) (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 · AtmosphereResourceImpl.enterCancelled (cognitive 16) · ×1
  • AtmosphereResourceImpl.enterCancelled (cognitive 16) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java:929 — AtmosphereResourceImpl.enterCancelled has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 1 (4 pts), 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 · DefaultBroadcaster.cacheAndSuspend (cognitive 16) · ×1
  • DefaultBroadcaster.cacheAndSuspend (cognitive 16) modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1712 — DefaultBroadcaster.cacheAndSuspend has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, ternaries 1 (2 pts) (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 · ResponseWriter.writeWithBuffering (cognitive 16) · ×1
  • ResponseWriter.writeWithBuffering (cognitive 16) REDACTED:479 — ResponseWriter.writeWithBuffering has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 2 (5 pts) (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 · SSEAtmosphereInterceptor.encodeMultilineData (cognitive 16) · ×1
  • SSEAtmosphereInterceptor.encodeMultilineData (cognitive 16) modules/cpr/src/main/java/org/atmosphere/interceptor/SSEAtmosphereInterceptor.java:211 — SSEAtmosphereInterceptor.encodeMultilineData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 1, error handling 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 · AnnotationDetector.print (cognitive 16) · ×1
  • AnnotationDetector.print (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java:679 — AnnotationDetector.print has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 1 (3 pts) (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 · CookieUtil.toString (cognitive 16) · ×1
  • CookieUtil.toString (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/CookieUtil.java:68 — CookieUtil.toString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (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 · ExecutorsFactory.getAsyncOperationExecutor (cognitive 16) · ×1
  • ExecutorsFactory.getAsyncOperationExecutor (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:128 — ExecutorsFactory.getAsyncOperationExecutor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), 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. This shape REPEATS in the file: one other method here (ExecutorsFactory.getMessageDispatcher) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · ExecutorsFactory.getMessageDispatcher (cognitive 16) · ×1
  • ExecutorsFactory.getMessageDispatcher (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:70 — ExecutorsFactory.getMessageDispatcher has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), 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. This shape REPEATS in the file: one other method here (ExecutorsFactory.getAsyncOperationExecutor) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · IOUtils.readEntirelyAsString (cognitive 16) · ×1
  • IOUtils.readEntirelyAsString (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java:195 — IOUtils.readEntirelyAsString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 1, error handling 1, 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 · PathTemplate.<init> (cognitive 16) · ×1
  • PathTemplate.<init> (cognitive 16) modules/cpr/src/main/java/org/atmosphere/util/PathTemplate.java:57 — PathTemplate.<init> has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), 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 · WebSocket.write (cognitive 16) · ×1
  • WebSocket.write (cognitive 16) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:249 — WebSocket.write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, ternaries 1 (2 pts) (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 · WebTransportSession.write (cognitive 16) · ×1
  • WebTransportSession.write (cognitive 16) modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:206 — WebTransportSession.write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, ternaries 1 (2 pts) (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 · A2aCoordinatorBridge.handlePrompt (cognitive 16) · ×1
  • A2aCoordinatorBridge.handlePrompt (cognitive 16) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1481 — A2aCoordinatorBridge.handlePrompt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 3, ternaries 2 (3 pts), error handling 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · CohereChatClient.buildRequestBody (cognitive 16) · ×1
  • CohereChatClient.buildRequestBody (cognitive 16) modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:612 — CohereChatClient.buildRequestBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5, loops 3 (5 pts), boolean chains 3, error handling 2 (3 pts) (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 · ChannelWebhookController.handleWebhook (cognitive 16) · ×1
  • ChannelWebhookController.handleWebhook (cognitive 16) modules/channels/src/main/java/org/atmosphere/channels/ChannelWebhookController.java:134 — ChannelWebhookController.handleWebhook has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (4 pts), error handling 2 (3 pts), 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 · AuthorizationPolicy.defaultRoleResolver (cognitive 16) · ×1
  • AuthorizationPolicy.defaultRoleResolver (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/governance/AuthorizationPolicy.java:124 — AuthorizationPolicy.defaultRoleResolver has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), 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 · IntentRouting.<init> (cognitive 16) · ×1
  • IntentRouting.<init> (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/intent/IntentRouting.java:173 — IntentRouting.<init> has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, ternaries 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · DecisionField.fromSchema (cognitive 16) · ×1
  • DecisionField.fromSchema (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/llm/DecisionField.java:98 — DecisionField.fromSchema has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, loops 1 (2 pts), error handling 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 · RunEventReplayBuffer.dropOldest (cognitive 16) · ×1
  • RunEventReplayBuffer.dropOldest (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java:1079 — RunEventReplayBuffer.dropOldest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (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 · RunEventReplayBuffer.join (cognitive 16) · ×1
  • RunEventReplayBuffer.join (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java:1026 — RunEventReplayBuffer.join has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), loops 3 (5 pts), ternaries 2 (5 pts) (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 · OpenApiToolImporter.collectRequestBody (cognitive 16) · ×1
  • OpenApiToolImporter.collectRequestBody (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java:249 — OpenApiToolImporter.collectRequestBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (2 pts) (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 · HttpWebSearchEngine.parse (cognitive 16) · ×1
  • HttpWebSearchEngine.parse (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/websearch/HttpWebSearchEngine.java:174 — HttpWebSearchEngine.parse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, error handling 1, loops 1 (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 · MultiModalInput.decode (cognitive 16) · ×1
  • MultiModalInput.decode (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/MultiModalInput.java:153 — MultiModalInput.decode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, error handling 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 · RequestView.invoke (cognitive 16) · ×1
  • RequestView.invoke (cognitive 16) modules/ai/src/main/java/org/atmosphere/ai/RunScopedResource.java:180 — RequestView.invoke has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), 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 · AcsRegoEngine.parseVerdict (cognitive 16) · ×1
  • AcsRegoEngine.parseVerdict (cognitive 16) modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/AcsRegoEngine.java:204 — AcsRegoEngine.parseVerdict has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 5, loops 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 · CedarCliAuthorizer.appendJson (cognitive 16) · ×1
  • CedarCliAuthorizer.appendJson (cognitive 16) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:247 — CedarCliAuthorizer.appendJson has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts) (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 · AgentScopeEventForwarder.accept (cognitive 16) · ×1
  • AgentScopeEventForwarder.accept (cognitive 16) modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeEventForwarder.java:58 — AgentScopeEventForwarder.accept has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5 (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 · KoogAgentRuntime.buildSystemPrompt (cognitive 16) · ×1
  • KoogAgentRuntime.buildSystemPrompt (cognitive 16) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:1076 — KoogAgentRuntime.buildSystemPrompt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (5 pts) (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 · stream._drain_stream (cognitive 16) · ×1
  • stream._drain_stream (cognitive 16) modules/crewai/sidecar/src/atmosphere_crewai_bridge/stream.py:349 — stream._drain_stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (5 pts), 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 · A2aChatTransport.exchange (cognitive 16) · ×1
  • A2aChatTransport.exchange (cognitive 16) modules/spring-boot-starter/frontend/src/transports/a2a.ts:179 — A2aChatTransport.exchange has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2 (3 pts) (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.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D30 · Dependency Vulnerabilities · Medium CVE · ×1
  • REDACTED
D31 · IaC & Container Security · Medium IaC · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member family (3 members, 26 shared lines) · ×1
  • Near-duplicate member family (3 members, 26 shared lines) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:273 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:273-304 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:465-500 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:284-319 — These 3 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 18 shared lines) · ×1
  • Near-duplicate member family (3 members, 18 shared lines) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:60 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:60-83 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:89-112 | modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:58-89 — These 3 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication · Near-duplicate member pair (104 shared lines) · ×1
  • Near-duplicate member pair (104 shared lines) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:307 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:307-497 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:310-447 — These two members are variants of one another: 104 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (63 shared lines) · ×1
  • Near-duplicate member pair (63 shared lines) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:98 — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:98-197 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:87-163 — These two members are variants of one another: 63 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (53 shared lines) · ×1
  • Near-duplicate member pair (53 shared lines) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:165 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:165-273 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:166-257 — These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (39 shared lines) · ×1
  • Near-duplicate member pair (39 shared lines) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:541 — modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:541-664 | modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:703-808 — These two members are variants of one another: 39 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (36 shared lines) · ×1
  • Near-duplicate member pair (36 shared lines) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:693 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:693-732 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1562-1604 — These two members are variants of one another: 36 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Edited copy of a member (31 corresponding lines) · ×1
  • Edited copy of a member (31 corresponding lines) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:48 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:48-78 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:48-78 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×1
  • Edited copy of a member (20 corresponding lines) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:238 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:238-261 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:462-483 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (17 corresponding lines) · ×1
  • Edited copy of a member (17 corresponding lines) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:278 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:278-296 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:259-276 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×1
  • Edited copy of a member (12 corresponding lines) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:484 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:484-497 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:457-480 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (9 members, 50+ identical tokens) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:124 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:124-135 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:120-131 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:133-144 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:120-131 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:142-153 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:99-110 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:117-128 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:70-81 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:79-90 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication · Duplicated block (71–75 lines × 2) · ×1
  • Duplicated block (71–75 lines × 2) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:666 — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:666-736 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:466-540 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (75 lines × 2) · ×1
  • Duplicated block (75 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1558 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1558-1632 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1493-1567 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (65 lines × 6) · ×1
  • Duplicated block (65 lines × 6) modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:119 — modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:119-183 | modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java:119-183 | modules/ai/src/main/java/org/atmosphere/ai/batch/SchemaMigrations.java:119-183 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SchemaMigrations.java:121-185 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SchemaMigrations.java:119-183 | modules/interactions/src/main/java/org/atmosphere/interactions/SchemaMigrations.java:119-183 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java` and `modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (62 lines × 2) · ×1
  • Duplicated block (62 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:574 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:574-635 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:113-174 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (53 lines × 2) · ×1
  • Duplicated block (53 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:102 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:102-154 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:102-154 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (50 lines × 2) · ×1
  • Duplicated block (50 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:260 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:260-309 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:453-502 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (43 lines × 2) · ×1
  • Duplicated block (43 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1414 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1414-1456 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1206-1248 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (42 lines × 2) · ×1
  • Duplicated block (42 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:456 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:456-497 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:406-447 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:456` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (37–39 lines × 2) · ×1
  • Duplicated block (37–39 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:250 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:250-288 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:207-243 — before extracting anything, compare `modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java` and `modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (38 lines × 2) · ×1
  • Duplicated block (38 lines × 2) modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:102 — modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:102-140 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:98-135 — before extracting anything, compare `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java` and `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:102` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:135` calls `IllegalStateException`, `unlock` and `modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:140` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (34–37 lines × 2) · ×1
  • Duplicated block (34–37 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:201 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:201-237 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:161-194 — before extracting anything, compare `modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java` and `modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (33 lines × 2) · ×1
  • Duplicated block (33 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:129 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:129-161 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:117-149 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:129` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (32 lines × 2) · ×1
  • Duplicated block (32 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:420 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:420-451 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:167-198 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:420` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (26–30 lines × 3) · ×1
  • Duplicated block (26–30 lines × 3) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:279 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:279-304 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:471-500 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:290-319 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:279` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14–28 lines × 2) · ×1
  • Duplicated block (14–28 lines × 2) modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelStreamingAdapter.java:167 — modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelStreamingAdapter.java:167-180 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:407-434 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelStreamingAdapter.java:167` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (27–28 lines × 2) · ×1
  • Duplicated block (27–28 lines × 2) modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:170 — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:170-197 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:137-163 — before extracting anything, compare `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java` and `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:170` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:133` calls `isBlank`, `getProperty`, `put` and `modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:167` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (24–27 lines × 2) · ×1
  • Duplicated block (24–27 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereRuntimeHints.java:45 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereRuntimeHints.java:45-71 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereRuntimeHints.java:45-68 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereRuntimeHints.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereRuntimeHints.java` as WHOLE FILES: 91% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (23–25 lines × 2) · ×1
  • Duplicated block (23–25 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:795 — modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:795-819 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:154-176 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:795` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×1
  • Duplicated block (25 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1054 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1054-1078 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:938-962 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (23–24 lines × 2) · ×1
  • Duplicated block (23–24 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:182 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:182-204 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:185-208 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:182` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:215` calls `resolveMemoryFileSystem`, `from` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:210` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (22–23 lines × 2) · ×1
  • Duplicated block (22–23 lines × 2) modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:688 — modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:688-709 | modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:614-636 — before extracting anything, compare `modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java` and `modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (17–21 lines × 2) · ×1
  • Duplicated block (17–21 lines × 2) modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:78 — modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:78-98 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:133-149 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:78` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (20 lines × 4) · ×1
  • Duplicated block (20 lines × 4) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:99 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:99-118 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:112-131 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:99-118 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:121-140 — before extracting anything, compare `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:99` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:111` calls `requireNonNull` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:98` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (19–20 lines × 2) · ×1
  • Duplicated block (19–20 lines × 2) modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalSupport.java:51 — modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalSupport.java:51-69 | modules/ai/src/main/java/org/atmosphere/ai/batch/SqliteBatchJobStore.java:77-96 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/evals/SqliteEvalSupport.java:51` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (18–20 lines × 2) · ×1
  • Duplicated block (18–20 lines × 2) modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:344 — modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:344-363 | modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:241-258 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (13–19 lines × 3) · ×1
  • Duplicated block (13–19 lines × 3) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:507 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:507-519 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:323-336 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:622-640 — before extracting anything, compare `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:507` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:641` calls `setString`, `name` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:337` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (19 lines × 3) · ×1
  • Duplicated block (19 lines × 3) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:442 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:442-460 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:189-207 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1727-1745 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:442` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17–19 lines × 2) · ×1
  • Duplicated block (17–19 lines × 2) REDACTED:145 — REDACTED:145-163 | REDACTED:167-183 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:145` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15–18 lines × 2) · ×1
  • Duplicated block (15–18 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:718 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:718-732 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1587-1604 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:718` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16–17 lines × 2) · ×1
  • Duplicated block (16–17 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1242 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1242-1258 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1483-1498 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1500` calls `A2aCoordinatorCollector` and `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1263` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (12–15 lines × 4) · ×1
  • Duplicated block (12–15 lines × 4) modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:469 — modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:469-483 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1191-1202 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1221-1232 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1403-1414 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:469` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (10–15 lines × 2) · ×1
  • Duplicated block (10–15 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:143 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:143-157 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:236-245 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:143` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13–14 lines × 3) · ×1
  • Duplicated block (13–14 lines × 3) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:215 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:215-227 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:627-640 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:346-359 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:215` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×1
  • Duplicated block (14 lines × 3) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:258 — modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:258-271 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:438-451 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:257-270 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (8–14 lines × 2) · ×1
  • Duplicated block (8–14 lines × 2) modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:181 — modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:181-194 | modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:309-316 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (12–14 lines × 2) · ×1
  • Duplicated block (12–14 lines × 2) modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:110 — modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:110-123 | modules/cpr/src/main/java/org/atmosphere/interceptor/TrackMessageSizeB64Interceptor.java:77-88 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:110` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (11–14 lines × 2) · ×1
  • Duplicated block (11–14 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1544 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1544-1557 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1482-1492 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (13 lines × 5) · ×1
  • Duplicated block (13 lines × 5) modules/ai/src/main/java/org/atmosphere/ai/governance/AuditJsonEncoder.java:109 — modules/ai/src/main/java/org/atmosphere/ai/governance/AuditJsonEncoder.java:109-121 | modules/cpr/src/main/java/org/atmosphere/nativeimage/NativeImageMetadataWriter.java:102-114 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:247-259 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:469-481 | REDACTED:276-288 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/AuditJsonEncoder.java:109` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12–13 lines × 4) · ×1
  • Duplicated block (12–13 lines × 4) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:122 — modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:122-133 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:136-148 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:151-163 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:170-181 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:122` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (12 lines × 6) · ×1
  • Duplicated block (12 lines × 6) modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:206 — modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java:206-217 | modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java:206-217 | modules/ai/src/main/java/org/atmosphere/ai/batch/SchemaMigrations.java:206-217 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SchemaMigrations.java:208-219 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SchemaMigrations.java:206-217 | modules/interactions/src/main/java/org/atmosphere/interactions/SchemaMigrations.java:206-217 — before extracting anything, compare `modules/admin/src/main/java/org/atmosphere/admin/evals/SchemaMigrations.java` and `modules/ai-audit-postgres/src/main/java/org/atmosphere/ai/audit/postgres/SchemaMigrations.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (4–12 lines × 3) · ×1
  • Duplicated block (4–12 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/processor/PromptMethodInvoker.java:103 — modules/ai/src/main/java/org/atmosphere/ai/processor/PromptMethodInvoker.java:103-106 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1433-1444 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1513-1524 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/processor/PromptMethodInvoker.java:103` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1512` calls `setAccessible` and `modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1432` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (11 lines × 9) · ×1
  • Duplicated block (11 lines × 9) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:125 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:125-135 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:121-131 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:134-144 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:121-131 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:143-153 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:100-110 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:118-128 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:71-81 | modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:80-90 — before extracting anything, compare `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×1
  • Duplicated block (11 lines × 4) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:269 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:269-279 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:296-306 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:179-189 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:206-216 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:269` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (10–11 lines × 3) · ×1
  • Duplicated block (10–11 lines × 3) modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1240 — modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1240-1249 | modules/rag/src/main/java/org/atmosphere/ai/rag/InMemoryContextProvider.java:188-197 | samples/spring-boot-rag-chat/src/main/java/org/atmosphere/samples/springboot/ragchat/VectorStoreConfig.java:149-159 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/rag/src/main/java/org/atmosphere/ai/rag/InMemoryContextProvider.java:188` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Duplicated block (10 lines × 6) · ×1
  • Duplicated block (10 lines × 6) modules/adk/src/main/java/org/atmosphere/ai/adk/AdkRootAgent.java:152 — modules/adk/src/main/java/org/atmosphere/ai/adk/AdkRootAgent.java:152-161 | modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgent.java:96-105 | modules/ai/src/main/java/org/atmosphere/ai/llm/ToolLoopPolicies.java:118-127 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAiServices.java:170-179 | modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelInvocation.java:105-114 | modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaRunnableConfig.java:103-112 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (5–10 lines × 2) · ×1
  • Duplicated block (5–10 lines × 2) modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AtmosphereAgentScopeAutoConfiguration.java:111 — modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AtmosphereAgentScopeAutoConfiguration.java:111-115 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/AtmosphereLangChain4jAutoConfiguration.java:111-120 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×1
  • Duplicated block (9 lines × 4) modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:62 — modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:62-70 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:91-99 | modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:60-68 | modules/ai/src/main/java/org/atmosphere/ai/governance/TimeWindowPolicy.java:72-80 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java` and `modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:62` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (2–9 lines × 4) · ×1
  • Duplicated block (2–9 lines × 4) modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:185 — modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:185-186 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:178-186 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:211-219 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:290-298 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:178` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (4–9 lines × 3) · ×1
  • Duplicated block (4–9 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:147 — modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:147-155 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:125-133 | modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:72-75 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/LlmReranker.java:147` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (8 lines × 16) · ×1
  • Duplicated block (8 lines × 16) modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:62 — modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:62-69 | modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:62-69 | modules/ai/src/main/java/org/atmosphere/ai/governance/AuthorizationPolicy.java:70-77 | modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:72-79 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:91-98 | modules/ai/src/main/java/org/atmosphere/ai/governance/GuardrailAsPolicy.java:70-77 | modules/ai/src/main/java/org/atmosphere/ai/governance/KillSwitchPolicy.java:71-78 | modules/ai/src/main/java/org/atmosphere/ai/governance/MessageLengthPolicy.java:53-60 | modules/ai/src/main/java/org/atmosphere/ai/governance/MetadataPresencePolicy.java:54-61 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:99-106 | modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:60-67 | modules/ai/src/main/java/org/atmosphere/ai/governance/RateLimitPolicy.java:72-79 | modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:59-66 | modules/ai/src/main/java/org/atmosphere/ai/governance/TimeWindowPolicy.java:72-79 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:139-146 | samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/FaqKnowledgeBase.java:60-67 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java` and `modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:62` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:81` calls `IllegalArgumentException` and `modules/ai/src/main/java/org/atmosphere/ai/governance/GuardrailAsPolicy.java:78` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (4–8 lines × 3) · ×1
  • Duplicated block (4–8 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1051 — modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1051-1054 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1696-1703 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1712-1718 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1051` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (7 lines × 17) · ×1
  • Duplicated block (7 lines × 17) modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:61 — modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:61-67 | modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:61-67 | modules/ai/src/main/java/org/atmosphere/ai/governance/AuthorizationPolicy.java:69-75 | modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:71-77 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:90-96 | modules/ai/src/main/java/org/atmosphere/ai/governance/GuardrailAsPolicy.java:69-75 | modules/ai/src/main/java/org/atmosphere/ai/governance/KillSwitchPolicy.java:70-76 | modules/ai/src/main/java/org/atmosphere/ai/governance/MessageLengthPolicy.java:52-58 | modules/ai/src/main/java/org/atmosphere/ai/governance/MetadataPresencePolicy.java:53-59 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:98-104 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:62-68 | modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:59-65 | modules/ai/src/main/java/org/atmosphere/ai/governance/RateLimitPolicy.java:71-77 | modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:58-64 | modules/ai/src/main/java/org/atmosphere/ai/governance/TimeWindowPolicy.java:71-77 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:138-144 | samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/FaqKnowledgeBase.java:59-65 — before extracting anything, compare `modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java` and `modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:61` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7 lines × 6) · ×1
  • Duplicated block (7 lines × 6) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:281 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:281-287 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:261-267 | modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:268-274 | modules/ai/src/main/java/org/atmosphere/ai/governance/AuditJsonEncoder.java:103-109 | modules/cpr/src/main/java/org/atmosphere/util/HtmlEncoder.java:40-46 | REDACTED:272-278 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:281` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6 lines × 12) · ×1
  • Duplicated block (6 lines × 12) modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:283 — modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:283-288 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:263-268 | modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:237-242 | modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:270-275 | modules/ai/src/main/java/org/atmosphere/ai/governance/AuditJsonEncoder.java:105-110 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:664-669 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:682-687 | modules/cpr/src/main/java/org/atmosphere/nativeimage/NativeImageMetadataWriter.java:100-105 | modules/cpr/src/main/java/org/atmosphere/util/HtmlEncoder.java:42-47 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereCheckpointServlet.java:245-250 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:467-472 | REDACTED:274-279 — there are 12 copies across 10 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 12 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:283` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6 lines × 7) · ×1
  • Duplicated block (6 lines × 7) modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:666 — modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:666-671 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:684-689 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:710-715 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:735-740 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:753-758 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:777-782 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:794-799 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:666` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6 lines × 5) · ×1
  • Duplicated block (6 lines × 5) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1084 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1084-1089 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1462-1467 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:968-973 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1114-1119 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1254-1259 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 727 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1084` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (4–6 lines × 4) · ×1
  • Duplicated block (4–6 lines × 4) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:122 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:122-125 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:155-160 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:122-125 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:155-160 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/TapeAdminSupport.java:155` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind `r` to `TapeReplay.ReplayedRun` in one and `TapeRun` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (5 lines × 5) · ×1
  • Duplicated block (5 lines × 5) modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:115 — modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:115-119 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:129-133 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:143-148 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:158-163 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:177-181 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (3–5 lines × 3) · ×1
  • Duplicated block (3–5 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1579 — modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1579-1583 | modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1683-1685 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:99-103 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:1579` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (45 lines × 3) · ×1
  • Duplicated block (45 lines × 3) modules/a2a/src/main/java/org/atmosphere/a2a/types/AgentExtension.java:1 — modules/a2a/src/main/java/org/atmosphere/a2a/types/AgentExtension.java:1-46 | modules/ai/src/main/java/org/atmosphere/ai/approval/PendingApproval.java:1-45 | modules/interactions/src/main/java/org/atmosphere/interactions/InteractionStep.java:1-58 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/a2a/src/main/java/org/atmosphere/a2a/types/AgentExtension.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (68 lines × 2) · ×1
  • Duplicated block (68 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocketProcessor.java:128 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocketProcessor.java:128-195 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportProcessor.java:111-183 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/websocket/WebSocketProcessor.java:128` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (94 lines × 2) · ×1
  • Duplicated block (94 lines × 2) modules/cpr/src/main/java/org/atmosphere/websocket/WebSocketEventListenerAdapter.java:1 — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocketEventListenerAdapter.java:1-99 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportEventListenerAdapter.java:1-94 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `modules/cpr/src/main/java/org/atmosphere/websocket/WebSocketEventListenerAdapter.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (65 lines × 2) · ×1
  • Duplicated block (65 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCacheAutoConfiguration.java:1 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCacheAutoConfiguration.java:1-65 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCacheAutoConfiguration.java:1-65 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCacheAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCacheAutoConfiguration.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCacheAutoConfiguration.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (99 lines × 2) · ×1
  • Duplicated block (99 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCoordinatorAutoConfiguration.java:1 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCoordinatorAutoConfiguration.java:1-100 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCoordinatorAutoConfiguration.java:1-99 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCoordinatorAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCoordinatorAutoConfiguration.java` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereCoordinatorAutoConfiguration.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (168 lines × 2) · ×1
  • Duplicated block (168 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereTracingAutoConfiguration.java:1 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereTracingAutoConfiguration.java:1-168 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereTracingAutoConfiguration.java:1-168 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereTracingAutoConfiguration.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereTracingAutoConfiguration.java` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereTracingAutoConfiguration.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (55 lines × 2) · ×1
  • Duplicated block (55 lines × 2) modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/DefaultAiChatEndpoint.java:1 — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/DefaultAiChatEndpoint.java:1-55 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/DefaultAiChatEndpoint.java:1-55 — before extracting anything, compare `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/DefaultAiChatEndpoint.java` and `modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/DefaultAiChatEndpoint.java` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/DefaultAiChatEndpoint.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (34 lines × 3) · ×1
  • Duplicated block (34 lines × 3) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/CheckpointId.java:1 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/CheckpointId.java:1-50 | modules/verifier/src/main/java/org/atmosphere/verifier/ast/SymRef.java:1-35 | modules/verifier/src/main/java/org/atmosphere/verifier/policy/AutomatonState.java:1-34 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/CheckpointId.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (25 lines × 3) · ×1
  • Duplicated block (25 lines × 3) modules/ai/src/main/java/org/atmosphere/ai/batch/SqliteBatchJobStore.java:109 — modules/ai/src/main/java/org/atmosphere/ai/batch/SqliteBatchJobStore.java:109-141 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:133-157 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:155-189 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/ai/src/main/java/org/atmosphere/ai/batch/SqliteBatchJobStore.java:109` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:234 — modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java:234-243 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:424-433 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteRunJournal.java:289-298 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:544-553 — before extracting anything, compare `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteDurableTimerStore.java` and `modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (13–16 lines × 2) · ×1
  • Duplicated block (13–16 lines × 2) modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:543 — modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:543-558 | modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:714-726 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:714` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:567` calls `from` and `modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt:728` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Members sharing a duplicated core (23 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (23 members, 50+ identical tokens) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:41 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:41-51 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:64-73 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:52-73 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheHintTestHandler.java:42-52 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:40-59 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ClassroomTestHandler.java:49-65 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:54-70 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConfidenceElicitationTestHandler.java:70-79 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:52-66 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:43-55 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:42-52 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ErrorRecoveryTestHandler.java:39-53 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FanOutTestHandler.java:51-69 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FilterTestHandler.java:41-60 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IdentityTestHandler.java:38-56 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/LifecycleListenerTestHandler.java:61-71 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:52-67 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ModelsTestHandler.java:47-57 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MultiModalTestHandler.java:59-69 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/PassivationTestHandler.java:72-81 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RetryPolicyTestHandler.java:42-52 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RoutingTestHandler.java:59-72 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/StructuredOutputTestHandler.java:67-76 — These 23 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 23 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 23 times.
D4 · Code Duplication · Members sharing a duplicated core (20 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (20 members, 50+ identical tokens) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:111 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:111-121 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java:145-155 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheHintTestHandler.java:83-93 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:170-180 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CancelTestHandler.java:250-260 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java:171-181 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:80-90 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EpisodicMemoryTestHandler.java:209-219 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlApprovalTestHandler.java:236-247 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlCrossSessionTestHandler.java:110-121 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IdentityTestHandler.java:59-69 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/JfrObservabilityTestHandler.java:145-155 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/LifecycleListenerTestHandler.java:185-195 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:70-83 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ModelsTestHandler.java:86-96 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MultiModalTestHandler.java:107-117 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RetryPolicyTestHandler.java:80-90 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolCallDeltaTestHandler.java:71-81 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolPermissionTestHandler.java:142-152 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:123-133 — These 20 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 20 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 20 times.
D4 · Code Duplication · Members sharing a duplicated core (11 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (11 members, 50+ identical tokens) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:113 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:113-125 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:76-88 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:62-74 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ClassroomTestHandler.java:68-80 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:147-159 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:69-86 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:130-142 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ErrorRecoveryTestHandler.java:56-68 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FanOutTestHandler.java:72-84 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FilterTestHandler.java:63-75 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RoutingTestHandler.java:75-87 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times.
D4 · Code Duplication · Duplicated block (23–28 lines × 2) · ×1
  • Duplicated block (23–28 lines × 2) samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:80 — samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:80-102 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:118-145 — before extracting anything, compare `samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java` and `samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (20–24 lines × 2) · ×1
  • Duplicated block (20–24 lines × 2) samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/MultiModalAgent.java:91 — samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/MultiModalAgent.java:91-110 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java:119-142 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/MultiModalAgent.java:91` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (23 lines × 3) · ×1
  • Duplicated block (23 lines × 3) samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/MultiModalAgent.java:79 — samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/MultiModalAgent.java:79-101 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java:107-129 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java:156-178 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/MultiModalAgent.java:103` calls `sendContent`, `Image` and `samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java:180` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (17 lines × 3) · ×1
  • Duplicated block (17 lines × 3) samples/spring-boot-channels-chat/src/main/java/org/atmosphere/samples/channels/ConsoleEndpointAlias.java:39 — samples/spring-boot-channels-chat/src/main/java/org/atmosphere/samples/channels/ConsoleEndpointAlias.java:39-55 | samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/ConsoleEndpointAlias.java:38-54 | samples/spring-boot-orchestration-demo/src/main/java/org/atmosphere/samples/springboot/orchestration/ConsoleEndpointAlias.java:38-54 — before extracting anything, compare `samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/ConsoleEndpointAlias.java` and `samples/spring-boot-orchestration-demo/src/main/java/org/atmosphere/samples/springboot/orchestration/ConsoleEndpointAlias.java` as WHOLE FILES: 88% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (11 lines × 11) · ×1
  • Duplicated block (11 lines × 11) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:115 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:115-125 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:78-88 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:64-74 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ClassroomTestHandler.java:70-80 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:149-159 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:76-86 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:132-142 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ErrorRecoveryTestHandler.java:58-68 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FanOutTestHandler.java:74-84 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FilterTestHandler.java:65-75 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RoutingTestHandler.java:77-87 — before extracting anything, compare `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:115` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9 lines × 7) · ×1
  • Duplicated block (9 lines × 7) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:179 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:179-187 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConfidenceElicitationTestHandler.java:151-159 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/DecisionModelTestHandler.java:121-129 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IntentRoutingTestHandler.java:72-80 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/PassivationTestHandler.java:169-177 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/StructuredOutputTestHandler.java:132-140 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmDecisionTestHandler.java:135-143 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 7 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (8 lines × 20) · ×1
  • Duplicated block (8 lines × 20) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:114 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:114-121 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java:148-155 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheHintTestHandler.java:86-93 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:173-180 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CancelTestHandler.java:253-260 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java:174-181 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:83-90 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EpisodicMemoryTestHandler.java:212-219 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlApprovalTestHandler.java:240-247 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlCrossSessionTestHandler.java:114-121 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IdentityTestHandler.java:62-69 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/JfrObservabilityTestHandler.java:148-155 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/LifecycleListenerTestHandler.java:188-195 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:76-83 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ModelsTestHandler.java:89-96 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MultiModalTestHandler.java:110-117 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RetryPolicyTestHandler.java:83-90 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolCallDeltaTestHandler.java:74-81 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolPermissionTestHandler.java:145-152 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:126-133 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 20 times. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:114` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:73` calls `isClosedByClient`, `isClosedByApplication`, `clear` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:113` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (7–8 lines × 3) · ×1
  • Duplicated block (7–8 lines × 3) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java:68 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java:68-75 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EpisodicMemoryTestHandler.java:57-64 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolPermissionTestHandler.java:64-70 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (6 lines × 11) · ×1
  • Duplicated block (6 lines × 11) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:46 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:46-51 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:68-73 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheHintTestHandler.java:47-52 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConfidenceElicitationTestHandler.java:74-79 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:47-52 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/LifecycleListenerTestHandler.java:66-71 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ModelsTestHandler.java:52-57 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MultiModalTestHandler.java:64-69 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/PassivationTestHandler.java:76-81 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RetryPolicyTestHandler.java:47-52 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/StructuredOutputTestHandler.java:71-76 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 11 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:46` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6 lines × 4) · ×1
  • Duplicated block (6 lines × 4) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:57 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:57-62 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:45-50 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:59-64 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FilterTestHandler.java:46-52 — before extracting anything, compare `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:57` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:53` calls `progress` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FilterTestHandler.java:55` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (5 lines × 23) · ×1
  • Duplicated block (5 lines × 23) modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:42 — modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:42-47 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:65-69 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:57-62 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheHintTestHandler.java:43-48 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:45-50 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ClassroomTestHandler.java:50-55 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:59-64 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConfidenceElicitationTestHandler.java:71-75 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:53-58 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:44-49 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:43-48 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ErrorRecoveryTestHandler.java:40-45 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FanOutTestHandler.java:52-57 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FilterTestHandler.java:46-52 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IdentityTestHandler.java:39-44 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/LifecycleListenerTestHandler.java:62-67 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:53-58 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ModelsTestHandler.java:48-53 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MultiModalTestHandler.java:60-65 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/PassivationTestHandler.java:73-77 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RetryPolicyTestHandler.java:43-48 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RoutingTestHandler.java:60-65 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/StructuredOutputTestHandler.java:68-72 — before extracting anything, compare `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:42` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:39` calls `FakeEmbeddingRuntime` and `modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:38` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (79 lines × 4) · ×1
  • Duplicated block (79 lines × 4) samples/chat/src/main/java/org/atmosphere/samples/chat/Chat.java:1 — samples/chat/src/main/java/org/atmosphere/samples/chat/Chat.java:1-99 | samples/quarkus-chat/src/main/java/org/atmosphere/samples/quarkus/chat/Chat.java:1-79 | samples/spring-boot-chat/src/main/java/org/atmosphere/samples/springboot/chat/Chat.java:1-79 | samples/spring-boot-mcp-server/src/main/java/org/atmosphere/samples/mcp/Chat.java:1-83 — before extracting anything, compare `samples/quarkus-chat/src/main/java/org/atmosphere/samples/quarkus/chat/Chat.java` and `samples/spring-boot-chat/src/main/java/org/atmosphere/samples/springboot/chat/Chat.java` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `samples/chat/src/main/java/org/atmosphere/samples/chat/Chat.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (50 lines × 3) · ×1
  • Duplicated block (50 lines × 3) samples/chat/src/main/java/org/atmosphere/samples/chat/ConsoleInfoServlet.java:1 — samples/chat/src/main/java/org/atmosphere/samples/chat/ConsoleInfoServlet.java:1-52 | samples/embedded-jetty-websocket-chat/src/main/java/org/atmosphere/samples/chat/ConsoleInfoServlet.java:1-50 | samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConsoleInfoServlet.java:1-51 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `samples/chat/src/main/java/org/atmosphere/samples/chat/ConsoleInfoServlet.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (33 lines × 4) · ×1
  • Duplicated block (33 lines × 4) samples/chat/src/main/java/org/atmosphere/samples/chat/Message.java:26 — samples/chat/src/main/java/org/atmosphere/samples/chat/Message.java:26-58 | samples/quarkus-chat/src/main/java/org/atmosphere/samples/quarkus/chat/Message.java:26-58 | samples/spring-boot-chat/src/main/java/org/atmosphere/samples/springboot/chat/Message.java:26-58 | samples/spring-boot-durable-sessions/src/main/java/org/atmosphere/samples/springboot/durable/Message.java:26-58 — before extracting anything, compare `samples/chat/src/main/java/org/atmosphere/samples/chat/Message.java` and `samples/quarkus-chat/src/main/java/org/atmosphere/samples/quarkus/chat/Message.java` as WHOLE FILES: 92% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (63 lines × 2) · ×1
  • Duplicated block (63 lines × 2) samples/spring-boot-channels-chat/src/main/java/org/atmosphere/samples/channels/OmnichannelChat.java:1 — samples/spring-boot-channels-chat/src/main/java/org/atmosphere/samples/channels/OmnichannelChat.java:1-63 | samples/spring-boot-orchestration-demo/src/main/java/org/atmosphere/samples/springboot/orchestration/BillingAgent.java:1-75 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `samples/spring-boot-channels-chat/src/main/java/org/atmosphere/samples/channels/OmnichannelChat.java:1` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D5 · Coupling · Unstable project atmosphere-spring-boot-starter · ×1
  • Unstable project atmosphere-spring-boot-starter — atmosphere-spring-boot-starter has instability 0.94 with 1 dependents.
R10 · Code Duplication · Duplication concentrated across 5 sibling directories (17 clone groups) · ×1
  • Duplication concentrated across 5 sibling directories (17 clone groups) atmosphere.js/src/hooks/react-native/useStreamingRN.ts:208 — 17 duplicated blocks under atmosphere.js/src/hooks/ have copies in at least two of the sibling directories react, react-native, shared, svelte, vue — 8 of them are reported below, and 9 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 17 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 17 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 17 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplicated block with local edits (150 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (150 matched lines × 2 locations) atmosphere.js/src/hooks/react-native/useStreamingRN.ts:208 — atmosphere.js/src/hooks/react-native/useStreamingRN.ts:208 · atmosphere.js/src/hooks/react/useStreaming.ts:182 — the two spans are one implementation copied and then locally edited — 929 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (117 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (117 matched lines × 2 locations) atmosphere.js/src/hooks/react-native/useChatRN.ts:26 — atmosphere.js/src/hooks/react-native/useChatRN.ts:26 · atmosphere.js/src/hooks/react/useChat.ts:23 — the two spans are one implementation copied and then locally edited — 915 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (49 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (49 matched lines × 2 locations) atmosphere.js/src/hooks/svelte/atmosphere.ts:57 — atmosphere.js/src/hooks/svelte/atmosphere.ts:57 · atmosphere.js/src/hooks/svelte/room.ts:51 — the two spans are one implementation copied and then locally edited — 287 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (41 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (41 matched lines × 2 locations) atmosphere.js/src/transports/long-polling.ts:28 — atmosphere.js/src/transports/long-polling.ts:28 · atmosphere.js/src/transports/streaming.ts:28 — the two spans are one implementation copied and then locally edited — 276 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (33 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (33 matched lines × 2 locations) atmosphere.js/src/streaming/index.ts:358 — atmosphere.js/src/streaming/index.ts:358 · atmosphere.js/src/streaming/index.ts:411 — the two spans are one implementation copied and then locally edited — 249 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (30 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (30 matched lines × 2 locations) atmosphere.js/src/hooks/react/ConnectionStatusBadge.tsx:18 — atmosphere.js/src/hooks/react/ConnectionStatusBadge.tsx:18 · atmosphere.js/src/hooks/vue/ConnectionStatusBadge.ts:17 — the two spans are one implementation copied and then locally edited — 135 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (23 lines × 2 locations) · ×1
  • Duplicated block (23 lines × 2 locations) modules/spring-boot-starter/frontend/src/transports/a2a.ts:148 — modules/spring-boot-starter/frontend/src/transports/a2a.ts:148 · modules/spring-boot-starter/frontend/src/transports/agui.ts:157 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (22 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (22 matched lines × 2 locations) atmosphere.js/src/hooks/svelte/optimistic.ts:83 — atmosphere.js/src/hooks/svelte/optimistic.ts:83 · atmosphere.js/src/hooks/vue/useOptimistic.ts:62 — the two spans are one implementation copied and then locally edited — 151 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (20 lines × 4 locations) · ×1
  • Duplicated block (20 lines × 4 locations) atmosphere.js/src/transports/sse.ts:146 — atmosphere.js/src/transports/sse.ts:146 · atmosphere.js/src/transports/streaming.ts:164 · atmosphere.js/src/transports/websocket.ts:182 · atmosphere.js/src/transports/webtransport.ts:375 — the 4 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete.
R10 · Code Duplication · Duplicated block (19 lines × 2 locations) · ×1
  • Duplicated block (19 lines × 2 locations) atmosphere.js/src/hooks/svelte/chat.ts:118 — atmosphere.js/src/hooks/svelte/chat.ts:118 · atmosphere.js/src/hooks/vue/useChat.ts:61 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (19 lines × 3 locations) · ×1
  • Duplicated block (19 lines × 3 locations) atmosphere.js/src/transports/long-polling.ts:231 — atmosphere.js/src/transports/long-polling.ts:231 · atmosphere.js/src/transports/sse.ts:225 · atmosphere.js/src/transports/streaming.ts:238 — the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (17 lines × 2 locations) · ×1
  • Duplicated block (17 lines × 2 locations) atmosphere.js/src/transports/websocket.ts:112 — atmosphere.js/src/transports/websocket.ts:112 · atmosphere.js/src/transports/webtransport.ts:197 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
R10 · Code Duplication · Duplicated block (16 lines × 2 locations) · ×1
  • Duplicated block (16 lines × 2 locations) atmosphere.js/src/hooks/svelte/chat.ts:47 — atmosphere.js/src/hooks/svelte/chat.ts:47 · atmosphere.js/src/hooks/vue/useChat.ts:37 — the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct — and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal's entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins — a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are.
R10 · Code Duplication · Duplicated block (15 lines × 2 locations) · ×1
  • Duplicated block (15 lines × 2 locations) modules/spring-boot-starter/frontend/src/components/Interactions.vue:142 — modules/spring-boot-starter/frontend/src/components/Interactions.vue:142 · modules/spring-boot-starter/frontend/src/components/Interactions.vue:162 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
R10 · Code Duplication · Duplicated block with local edits (14 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (14 matched lines × 2 locations) atmosphere.js/src/transports/base.ts:447 — atmosphere.js/src/transports/base.ts:447 · atmosphere.js/src/transports/webtransport.ts:229 — the two spans are one implementation copied and then locally edited — 61 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (14 lines × 5 locations) · ×1
  • Duplicated block (14 lines × 5 locations) atmosphere.js/src/transports/long-polling.ts:175 — atmosphere.js/src/transports/long-polling.ts:175 · atmosphere.js/src/transports/sse.ts:156 · atmosphere.js/src/transports/streaming.ts:174 · atmosphere.js/src/transports/websocket.ts:192 · +1 more site(s) not listed — the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (13 lines × 3 locations) · ×1
  • Duplicated block (13 lines × 3 locations) atmosphere.js/src/transports/sse.ts:202 — atmosphere.js/src/transports/sse.ts:202 · atmosphere.js/src/transports/websocket.ts:237 · atmosphere.js/src/transports/webtransport.ts:436 — the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete.
R10 · Code Duplication · Duplicated block (13 lines × 2 locations) · ×1
  • Duplicated block (13 lines × 2 locations) modules/spring-boot-starter/frontend/src/components/Observability.vue:197 — modules/spring-boot-starter/frontend/src/components/Observability.vue:197 · modules/spring-boot-starter/frontend/src/components/Rooms.vue:32 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (12 lines × 2 locations) · ×1
  • Duplicated block (12 lines × 2 locations) atmosphere.js/src/hooks/react/useStreaming.ts:228 — atmosphere.js/src/hooks/react/useStreaming.ts:228 · atmosphere.js/src/hooks/react/useStreaming.ts:245 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
R10 · Code Duplication · Duplicated block (12 lines × 3 locations) · ×1
  • Duplicated block (12 lines × 3 locations) atmosphere.js/src/hooks/svelte/atmosphere.ts:117 — atmosphere.js/src/hooks/svelte/atmosphere.ts:117 · atmosphere.js/src/hooks/svelte/room.ts:115 · atmosphere.js/src/hooks/svelte/streaming.ts:146 — the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape — one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values — and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete.
R10 · Code Duplication · Duplicated block with local edits (12 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (12 matched lines × 2 locations) modules/spring-boot-starter/frontend/src/components/Checkpoints.vue:37 — modules/spring-boot-starter/frontend/src/components/Checkpoints.vue:37 · modules/spring-boot-starter/frontend/src/components/Tape.vue:147 — the two spans are one implementation copied and then locally edited — 70 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (11 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (11 matched lines × 2 locations) atmosphere.js/src/hooks/svelte/messageHistory.ts:55 — atmosphere.js/src/hooks/svelte/messageHistory.ts:55 · atmosphere.js/src/hooks/svelte/optimistic.ts:60 — the two spans are one implementation copied and then locally edited — 63 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (11 lines × 2 locations) · ×1
  • Duplicated block (11 lines × 2 locations) atmosphere.js/src/react-native/event-source-polyfill.ts:145 — atmosphere.js/src/react-native/event-source-polyfill.ts:145 · atmosphere.js/src/react-native/event-source-polyfill.ts:164 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (9 lines × 3 locations) · ×1
  • Duplicated block (9 lines × 3 locations) modules/spring-boot-starter/frontend/src/components/Checkpoints.vue:21 — modules/spring-boot-starter/frontend/src/components/Checkpoints.vue:21 · modules/spring-boot-starter/frontend/src/components/GovernanceCommitments.vue:5 · modules/spring-boot-starter/frontend/src/components/GovernancePolicies.vue:5 — the 3 copies are spread across 3 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited.
R2 · Cyclomatic Complexity · Complex function handleStreamingEvent (cyclomatic 145, cognitive 202) · ×1
  • Complex function handleStreamingEvent (cyclomatic 145, cognitive 202) modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:463 — handleStreamingEvent has cyclomatic complexity 145 and cognitive complexity 202; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function dispatch (cyclomatic 36, cognitive 57) · ×1
  • Complex function dispatch (cyclomatic 36, cognitive 57) atmosphere.js/src/streaming/index.ts:346 — dispatch has cyclomatic complexity 36 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 33, cognitive 40) · ×1
  • Complex function (anonymous) (cyclomatic 33, cognitive 40) modules/spring-boot-starter/frontend/src/App.vue:236 — (anonymous) has cyclomatic complexity 33 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function main (cyclomatic 28, cognitive 30) · ×1
  • Complex function main (cyclomatic 28, cognitive 30) REDACTED:93 — main has cyclomatic complexity 28 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function message (cyclomatic 27, cognitive 32) · ×1
  • Complex function message (cyclomatic 27, cognitive 32) atmosphere.js/src/streaming/index.ts:101 — message has cyclomatic complexity 27 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function onBridgeMessage (cyclomatic 21, cognitive 32) · ×1
  • Complex function onBridgeMessage (cyclomatic 21, cognitive 32) modules/spring-boot-starter/frontend/src/components/McpApps.vue:237 — onBridgeMessage has cyclomatic complexity 21 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function subscribe (cyclomatic 20, cognitive 34) · ×1
  • Complex function subscribe (cyclomatic 20, cognitive 34) atmosphere.js/src/core/atmosphere.ts:66 — subscribe has cyclomatic complexity 20 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function buildRequest (cyclomatic 20, cognitive 25) · ×1
  • Complex function buildRequest (cyclomatic 20, cognitive 25) atmosphere.js/src/utils/protocol.ts:112 — buildRequest has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function extractMath (cyclomatic 19, cognitive 48) · ×1
  • Complex function extractMath (cyclomatic 19, cognitive 48) REDACTED:91 — extractMath has cyclomatic complexity 19 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function extractErrorShape (cyclomatic 19, cognitive 27) · ×1
  • Complex function extractErrorShape (cyclomatic 19, cognitive 27) modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:365 — extractErrorShape has cyclomatic complexity 19 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function meterFromPrometheus (cyclomatic 17, cognitive 27) · ×1
  • Complex function meterFromPrometheus (cyclomatic 17, cognitive 27) modules/spring-boot-starter/frontend/src/lib/metrics.ts:221 — meterFromPrometheus has cyclomatic complexity 17 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function parseFrames (cyclomatic 16, cognitive 27) · ×1
  • Complex function parseFrames (cyclomatic 16, cognitive 27) atmosphere.js/src/interactions/client.ts:389 — parseFrames has cyclomatic complexity 16 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function handleEvent (cyclomatic 16, cognitive 18) · ×1
  • Complex function handleEvent (cyclomatic 16, cognitive 18) modules/integration-tests/e2e/helpers/ai-ws-client.ts:177 — handleEvent has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function _parseEvent (cyclomatic 15, cognitive 23) · ×1
  • Complex function _parseEvent (cyclomatic 15, cognitive 23) atmosphere.js/src/react-native/event-source-polyfill.ts:196 — _parseEvent has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function run (cyclomatic 14, cognitive 20) · ×1
  • Complex function run (cyclomatic 14, cognitive 20) modules/spring-boot-starter/frontend/src/transports/agui.ts:184 — run has cyclomatic complexity 14 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function run (cyclomatic 14, cognitive 19) · ×1
  • Complex function run (cyclomatic 14, cognitive 19) modules/spring-boot-starter/frontend/scripts/vue-check-ts7.cjs:32 — run has cyclomatic complexity 14 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function handleIncoming (cyclomatic 14, cognitive 16) · ×1
  • Complex function handleIncoming (cyclomatic 14, cognitive 16) atmosphere.js/src/room/rooms.ts:244 — handleIncoming has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 14, cognitive 14) · ×1
  • Complex function (anonymous) (cyclomatic 14, cognitive 14) modules/spring-boot-starter/frontend/src/App.vue:169 — (anonymous) has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function adoptSessionOfInFlightPrompt (cyclomatic 14, cognitive 10) · ×1
  • Complex function adoptSessionOfInFlightPrompt (cyclomatic 14, cognitive 10) modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:265 — adoptSessionOfInFlightPrompt has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function statsFromActuator (cyclomatic 14, cognitive 10) · ×1
  • Complex function statsFromActuator (cyclomatic 14, cognitive 10) modules/spring-boot-starter/frontend/src/lib/metrics.ts:93 — statsFromActuator has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts · ×1
  • modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts: 1177 lines of code modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:1 — modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts has 1177 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · modules/spring-boot-starter/frontend/src/components/Interactions.vue · ×1
  • modules/spring-boot-starter/frontend/src/components/Interactions.vue: 632 lines of code modules/spring-boot-starter/frontend/src/components/Interactions.vue:1 — modules/spring-boot-starter/frontend/src/components/Interactions.vue has 632 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · atmosphere.js/src/transports/base.ts · ×1
  • atmosphere.js/src/transports/base.ts: 624 lines of code atmosphere.js/src/transports/base.ts:1 — atmosphere.js/src/transports/base.ts has 624 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · modules/spring-boot-starter/frontend/src/components/Workspace.vue · ×1
  • modules/spring-boot-starter/frontend/src/components/Workspace.vue: 610 lines of code modules/spring-boot-starter/frontend/src/components/Workspace.vue:1 — modules/spring-boot-starter/frontend/src/components/Workspace.vue has 610 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · modules/spring-boot-starter/frontend/src/App.vue · ×1
  • modules/spring-boot-starter/frontend/src/App.vue: 571 lines of code modules/spring-boot-starter/frontend/src/App.vue:1 — modules/spring-boot-starter/frontend/src/App.vue has 571 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · atmosphere.js/src/types/index.ts · ×1
  • atmosphere.js/src/types/index.ts: 536 lines of code atmosphere.js/src/types/index.ts:1 — atmosphere.js/src/types/index.ts has 536 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · atmosphere.js/src/hooks/react-native/useStreamingRN.ts · ×1
  • atmosphere.js/src/hooks/react-native/useStreamingRN.ts: 483 lines of code atmosphere.js/src/hooks/react-native/useStreamingRN.ts:1 — atmosphere.js/src/hooks/react-native/useStreamingRN.ts has 483 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · modules/spring-boot-starter/frontend/src/components/McpApps.vue · ×1
  • modules/spring-boot-starter/frontend/src/components/McpApps.vue: 452 lines of code modules/spring-boot-starter/frontend/src/components/McpApps.vue:1 — modules/spring-boot-starter/frontend/src/components/McpApps.vue has 452 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · atmosphere.js/src/transports/webtransport.ts · ×1
  • atmosphere.js/src/transports/webtransport.ts: 451 lines of code atmosphere.js/src/transports/webtransport.ts:1 — atmosphere.js/src/transports/webtransport.ts has 451 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · atmosphere.js/src/streaming/index.ts · ×1
  • atmosphere.js/src/streaming/index.ts: 441 lines of code atmosphere.js/src/streaming/index.ts:1 — atmosphere.js/src/streaming/index.ts has 441 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · modules/spring-boot-starter/frontend/src/components/Validation.vue · ×1
  • modules/spring-boot-starter/frontend/src/components/Validation.vue: 431 lines of code modules/spring-boot-starter/frontend/src/components/Validation.vue:1 — modules/spring-boot-starter/frontend/src/components/Validation.vue has 431 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · modules/spring-boot-starter/frontend/src/lib/metrics.ts · ×1
  • modules/spring-boot-starter/frontend/src/lib/metrics.ts: 420 lines of code modules/spring-boot-starter/frontend/src/lib/metrics.ts:1 — modules/spring-boot-starter/frontend/src/lib/metrics.ts has 420 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · atmosphere.js/src/utils/protocol.ts · ×1
  • atmosphere.js/src/utils/protocol.ts: 418 lines of code atmosphere.js/src/utils/protocol.ts:1 — atmosphere.js/src/utils/protocol.ts has 418 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · modules/spring-boot-starter/frontend/src/components/ChatContainer.vue · ×1
  • modules/spring-boot-starter/frontend/src/components/ChatContainer.vue: 412 lines of code modules/spring-boot-starter/frontend/src/components/ChatContainer.vue:1 — modules/spring-boot-starter/frontend/src/components/ChatContainer.vue has 412 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R7 · Dead Code · Dead file (~33 LoC) · ×1
  • Dead file (~33 LoC) atmosphere.js/consumer-check/consume-cjs.cts — no import path from any entry point (44 application, 14 tooling, 254 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~31 LoC) · ×1
  • Dead file (~31 LoC) atmosphere.js/consumer-check/consume.ts — no import path from any entry point (44 application, 14 tooling, 254 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R8 · Dependency Hygiene · Unused dependency 'protobufjs' · ×1
  • Unused dependency 'protobufjs' — Declared in modules/integration-tests/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×1
  • Recursive walk over a caller-supplied document has no depth cap modules/crewai/sidecar/src/atmosphere_crewai_bridge/tools.py:120 — `build_remote_tool` is public, takes a document from its caller (line 234) and hands it to `_coerce_type`, which calls itself at line 120 (`_coerce_type`) with a piece of `schema` — and nowhere in `_coerce_type` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `_coerce_type` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
X20 · Mistyped argument guard · Argument guard throws the exception its own condition disproves · ×1
  • Argument guard throws the exception its own condition disproves modules/cpr/src/main/java/org/atmosphere/cpr/DefaultMetaBroadcaster.java:128 — The guard on line 127 rejects `path` and line 128 reports that rejection as `NullPointerException` — but the condition's own test `path.isEmpty()` is true of a value that is NOT null: it is satisfied by an EMPTY `path`, and on that path `path` was already proven non-null by the very expression that decided it. So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `NullPointerException` to handle a real null handles the empty case with it, and whoever reads the stack trace later is told a failure the source disproves. Throw `IllegalArgumentException` for the empty case, or split the guard and throw each on its own condition.
Minor — 152 finding(s)
M4 · Documentation accuracy · README/code drift · ×35
  • README/code drift .harness/README.md:184 — .harness/README.md names `feedback_drift_log.md`, but no file or folder `feedback_drift_log.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:25 — atmosphere.js/README.md names `atmosphere.js/chat`, but no file or folder `atmosphere.js/chat` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:395 — atmosphere.js/README.md names `atmosphere.js/react`, but no file or folder `atmosphere.js/react` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:605 — atmosphere.js/README.md names `atmosphere.js/svelte`, but no file or folder `atmosphere.js/svelte` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:678 — atmosphere.js/README.md names `atmosphere.js/react-native`, but no file or folder `atmosphere.js/react-native` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:740 — atmosphere.js/README.md installs `#` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:740 — atmosphere.js/README.md installs `optional,` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:740 — atmosphere.js/README.md installs `for` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:740 — atmosphere.js/README.md installs `network-aware` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:740 — atmosphere.js/README.md installs `reconnection` (`bun add @react-native-community/netinfo # optional, for network-aware reconnection`), but no package.json declares it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift atmosphere.js/README.md:1349 — atmosphere.js/README.md links to `LICENSE`, but `atmosphere.js/LICENSE` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/governance-policy-plane.md:272 — docs/governance-policy-plane.md names `.tar.gz`, but no file or folder `.tar.gz` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/governance-policy-plane.md:306 — docs/governance-policy-plane.md names `META-INF/services/org.atmosphere.ai.governance.GovernancePolicy`, but no file or folder `META-INF/services/org.atmosphere.ai.governance.GovernancePolicy` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift docs/sovereign-deploy.md:157 — docs/sovereign-deploy.md links to `./audits/vision-parity-2026-05-22.md`, but `docs/audits/vision-parity-2026-05-22.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/a2a/README.md:10 — modules/a2a/README.md names `agent/authenticatedExtendedCard`, but no file or folder `agent/authenticatedExtendedCard` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/agent/README.md:82 — modules/agent/README.md names `feedback_primitive_needs_consumer.md`, but no file or folder `feedback_primitive_needs_consumer.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/ai-decision-typesafe/README.md:23 — modules/ai-decision-typesafe/README.md names `api.md`, but no file or folder `api.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/ai-decision-typesafe/README.md:133 — modules/ai-decision-typesafe/README.md names `models.md`, but no file or folder `models.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/ai/README.md:600 — modules/ai/README.md documents the environment variable `DURABLE_RUN`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/ai/README.md:600 — modules/ai/README.md documents the environment variable `TOOL_REPLAY`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/ai/README.md:2875 — modules/ai/README.md names `.tar.gz`, but no file or folder `.tar.gz` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/cohere/README.md:102 — modules/cohere/README.md links to `../../docs/audits/vision-parity-2026-05-22.md`, but `docs/audits/vision-parity-2026-05-22.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/coordinator/README.md:244 — modules/coordinator/README.md names `META-INF/services/org.atmosphere.coordinator.fleet.AgentActivityListener`, but no file or folder `META-INF/services/org.atmosphere.coordinator.fleet.AgentActivityListener` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/crewai/README.md:99 — modules/crewai/README.md documents the environment variable `ATMOSPHERE_CREWAI_SIDECAR_HEALTH_TIMEOUT_MS`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift modules/crewai/README.md:100 — modules/crewai/README.md documents the environment variable `ATMOSPHERE_CREWAI_SIDECAR_REQUEST_TIMEOUT_MS`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • + 10 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×25
  • Duplicated predicate modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:2836 — `!Character.isLetterOrDigit(c) && c != '-' && c != '_'` appears character-identically in 2 files — modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java, modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:204 — `!aiEnvironment.hasOwnSettings() || aiEnvironment.settings() != settings` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java:97 — `!field.isAnnotationPresent(Inject.class) && !field.isAnnotationPresent(Autowired.class)` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:214 — `!filters.isEmpty() && r.getStatus() < 400` appears character-identically in 2 files — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java, modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/DefaultAgentFleet.java:591 — `!future.isDone() && cancelled.getAsBoolean()` appears character-identically in 2 files — modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/DefaultAgentFleet.java, modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/DefaultAgentProxy.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/cpr/src/main/java/org/atmosphere/room/RoomProtocolInterceptor.java:498 — `!readGetBody && "GET".equalsIgnoreCase(request.getMethod())` appears character-identically in 2 files — modules/cpr/src/main/java/org/atmosphere/room/RoomProtocolInterceptor.java, modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java:216 — `!this.equals(EMPTY) && !signature.isEmpty()` appears character-identically in 2 files — modules/ai/src/main/java/org/atmosphere/ai/state/seal/AgentStateIntegrity.java, modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/AgentStateIntegrity.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/ConsoleRootRedirectFilter.java:72 — `"GET".equalsIgnoreCase(method) || "HEAD".equalsIgnoreCase(method)` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/ConsoleRootRedirectFilter.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/ConsoleRootRedirectFilter.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:379 — `"GET".equalsIgnoreCase(method) || "HEAD".equalsIgnoreCase(method) || "OPTIONS".equalsIgnoreCase(method)` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/ai/src/main/java/org/atmosphere/ai/cache/AiResponseCacheListener.java:68 — `"complete".equals(type) || "error".equals(type) || org.atmosphere.ai.RunCancelledException.FRAME_TYPE.equals(type)` appears character-identically in 2 files — modules/ai/src/main/java/org/atmosphere/ai/cache/AiResponseCacheListener.java, modules/ai/src/main/java/org/atmosphere/ai/resume/RunEventReplayBuffer.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:189 — `("http".equalsIgnoreCase(scheme) && port == 80) || ("https".equalsIgnoreCase(scheme) && port == 443)` appears character-identically in 2 files — modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java, modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:178 — `a == null || b == null || a.length != b.length || a.length == 0` appears character-identically in 4 files — modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java, modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java, modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java, modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:217 — `a.type() != Action.TYPE.CONTINUE && a.type() != Action.TYPE.SKIP_ATMOSPHEREHANDLER` appears character-identically in 2 files — modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java, modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/ai/src/main/java/org/atmosphere/ai/guardrails/ConfidenceThresholdGuardrail.java:89 — `accumulatedResponse == null || accumulatedResponse.isEmpty()` appears character-identically in 2 files — modules/ai/src/main/java/org/atmosphere/ai/guardrails/ConfidenceThresholdGuardrail.java, modules/ai/src/main/java/org/atmosphere/ai/guardrails/PiiRedactionGuardrail.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1771 — `aiProps.getApiKey() != null && !aiProps.getApiKey().isBlank()` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:288 — `aiProps.getBaseUrl() != null && !aiProps.getBaseUrl().isBlank()` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:272 — `aiProps.getMode() != null && !aiProps.getMode().isBlank()` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:280 — `aiProps.getModel() != null && !aiProps.getModel().isBlank()` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:107 — `aiProps.getSystemPromptResource() != null && !aiProps.getSystemPromptResource().isEmpty()` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:122 — `apiKey != null && isBlank(env.getProperty("spring.ai.openai.api-key"))` appears character-identically in 2 files — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java, modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:251 — `apiKey == null && !"local".equalsIgnoreCase(mode)` appears character-identically in 2 files — modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:151 — `baseUrl != null && isBlank(env.getProperty("spring.ai.openai.base-url"))` appears character-identically in 2 files — modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java, modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:264 — `binaryWrite || resource().forceBinaryWrite()` appears character-identically in 2 files — modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java, modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/AcsRegoEngine.java:229 — `c == 'f' && json.regionMatches(i, "false", 0, 5)` appears character-identically in 2 files — modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/AcsRegoEngine.java, modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/AcsRegoEngine.java:226 — `c == 't' && json.regionMatches(i, "true", 0, 4)` appears character-identically in 2 files — modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/AcsRegoEngine.java, modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
X4 · Structured logging · Interpolated log message defeats structured logging · ×19
  • Interpolated log message defeats structured logging modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:200 — `warn` at line 200 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/annotation/RoomServiceProcessor.java:89 — `warn` at line 89 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/container/Servlet30CometSupport.java:197 — `warn` at line 197 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/container/Servlet30CometSupport.java:222 — `warn` at line 222 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:304 — `trace` at line 304 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:341 — `trace` at line 341 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:703 — `trace` at line 703 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java:972 — `warn` at line 972 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:256 — `trace` at line 256 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:363 — `error` at line 363 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:379 — `trace` at line 379 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:401 — `error` at line 401 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/interceptor/AtmosphereResourceStateRecovery.java:281 — `trace` at line 281 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.trace("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:237 — `info` at line 237 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:276 — `info` at line 276 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:452 — `debug` at line 452 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.debug("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:140 — `warn` at line 140 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:155 — `warn` at line 155 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
  • Interpolated log message defeats structured logging modules/cpr/src/main/java/org/atmosphere/websocket/protocol/EchoProtocol.java:69 — `error` at line 69 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
P2 · Observability · Console output used as the logging channel · ×16
  • Console output used as the logging channel atmosphere.js/src/hooks/react/useAtmosphere.ts:78 — `atmosphere.js/src/hooks/react/useAtmosphere.ts` reports through `console.*` at line 78 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/interactions/client.ts:233 — `atmosphere.js/src/interactions/client.ts` reports through `console.*` at line 233 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/react-native/platform.ts:65 — `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 65 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/react-native/platform.ts:77 — `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 77 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/react-native/platform.ts:80 — `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 80 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/react-native/platform.ts:86 — `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 86 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/react-native/platform.ts:97 — `atmosphere.js/src/react-native/platform.ts` reports through `console.*` at line 97 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/resilience/connection-status.ts:42 — `atmosphere.js/src/resilience/connection-status.ts` reports through `console.*` at line 42 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/room/rooms.ts:45 — `atmosphere.js/src/room/rooms.ts` reports through `console.*` at line 45 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/room/rooms.ts:46 — `atmosphere.js/src/room/rooms.ts` reports through `console.*` at line 46 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/room/rooms.ts:47 — `atmosphere.js/src/room/rooms.ts` reports through `console.*` at line 47 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/transports/base.ts:570 — `atmosphere.js/src/transports/base.ts` reports through `console.*` at line 570 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/utils/logger.ts:32 — `atmosphere.js/src/utils/logger.ts` reports through `console.*` at line 32 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/utils/logger.ts:38 — `atmosphere.js/src/utils/logger.ts` reports through `console.*` at line 38 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/utils/logger.ts:44 — `atmosphere.js/src/utils/logger.ts` reports through `console.*` at line 44 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
  • Console output used as the logging channel atmosphere.js/src/utils/logger.ts:50 — `atmosphere.js/src/utils/logger.ts` reports through `console.*` at line 50 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline.
D10 · Test Quality · Mock-dominated test · ×12
  • Mock-dominated test: should call error handler when read loop throws atmosphere.js/tests/unit/webtransport.test.ts:1203 — This test sets up 5 test doubles (for example `vi.fn`) against 3 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: a tool-start AiEvent fires onToolPart AND onAiEvent (back-compat) atmosphere.js/tests/unit/tool-part.test.ts:76 — This test sets up 3 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should end a cancelled run through onCancelled, not onError or onComplete atmosphere.js/tests/unit/streaming.test.ts:287 — This test sets up 5 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 5 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should end a cancelled run through onComplete when no onCancelled is registered atmosphere.js/tests/unit/streaming.test.ts:316 — This test sets up 3 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should still fire onMetadata for routing keys atmosphere.js/tests/unit/streaming.test.ts:668 — This test sets up 3 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: legacy error with governance prefix fires onPolicyDenied AND onError atmosphere.js/tests/unit/policy-denial.test.ts:94 — This test sets up 3 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: legacy error without governance prefix only fires onError atmosphere.js/tests/unit/policy-denial.test.ts:126 — This test sets up 3 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: AiEvent error with structured policy payload fires onPolicyDenied atmosphere.js/tests/unit/policy-denial.test.ts:152 — This test sets up 3 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: guardrail block string fires onPolicyDenied with kind=guardrail atmosphere.js/tests/unit/policy-denial.test.ts:189 — This test sets up 3 test doubles (for example `vi.fn`) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should notify handler when primary transport fails and fallback is used atmosphere.js/tests/unit/features.test.ts:31 — This test sets up 3 test doubles (for example `vi.fn`) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: should call reopen on second open, not first atmosphere.js/tests/unit/features.test.ts:80 — This test sets up 5 test doubles (for example `vi.fn`) against 1 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: preserves wrapped consumer handlers (delegates to original) atmosphere.js/tests/unit/connection-status.test.ts:160 — This test sets up 4 test doubles (for example `vi.fn`) against 2 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
AX6 · Interface segregation · Fat interface · ×8
  • Fat interface: AtmosphereConfig (19 abstract methods) modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConfig.java:34 — `AtmosphereConfig` declares 19 abstract methods: `ai`, `broadcasterCacheClass`, `broadcasterClass`, `cacheEnabled`, `consoleEndpoint`, `consoleSubtitle`, `consoleTransport`, `container`, `durableRuns`, `durableSessions`, `heartbeatInterval`, `initParams`, `loadOnStartup`, `packages`, `servletPath`, `sessionSupport`, `vertx`, `webTransport`, `websocketSupport`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: AtmosphereRequest (28 abstract methods) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java:42 — `AtmosphereRequest` declares 28 abstract methods: `body`, `body`, `body`, `body`, `body`, `contentType`, `contextPath`, `destroy`, `destroy`, `destroyable`, `destroyed`, `dispatchRequestAsynchronously`, `getHeader`, `header`, `headers`, `headersMap`, `isDestroyable`, `localAttributes`, `method`, `pathInfo`, `queryString`, `queryStringsMap`, `requestURI`, `requestURL`, `resource`, `servletPath`, `uuid`, `wrappedRequest`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 28 declarations carry 23 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 23 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: Builder (40 abstract methods) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequest.java:192 — `Builder` declares 40 abstract methods: `attributes`, `authType`, `body`, `body`, `body`, `build`, `contentLength`, `contentType`, `contextPath`, `cookies`, `destroyable`, `dispatchRequestAsynchronously`, `encoding`, `headers`, `inputStream`, `isSSecure`, `isSecure`, `localAddr`, `localInetSocketAddress`, `localName`, `localPort`, `locale`, `method`, `pathInfo`, `principal`, `queryString`, `queryStrings`, `reader`, `remoteAddr`, `remoteHost`, `remoteInetSocketAddress`, `remotePort`, `request`, `requestURI`, `requestURL`, `serverName`, `serverPort`, `servletPath`, `session`, `userPrincipal`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 40 declarations carry 38 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 38 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: AtmosphereResource (39 abstract methods) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResource.java:30 — `AtmosphereResource` declares 39 abstract methods: `addBroadcaster`, `addEventListener`, `broadcasters`, `close`, `forceBinaryWrite`, `forceBinaryWrite`, `getAtmosphereConfig`, `getAtmosphereHandler`, `getAtmosphereResourceEvent`, `getBroadcaster`, `getRequest`, `getResponse`, `getSerializer`, `initialize`, `isCancelled`, `isResumed`, `isSuspended`, `notifyListeners`, `notifyListeners`, `removeBroadcaster`, `removeEventListener`, `removeEventListeners`, `removeFromAllBroadcasters`, `resume`, `resumeOnBroadcast`, `resumeOnBroadcast`, `session`, `session`, `setBroadcaster`, `setSerializer`, `suspend`, `suspend`, `suspend`, `transport`, `uuid`, `write`, `write`, `writeOnTimeout`, `writeOnTimeout`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 39 declarations carry 31 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 31 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: AtmosphereResourceFactory (17 abstract methods) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceFactory.java:30 — `AtmosphereResourceFactory` declares 17 abstract methods under just 10 distinct name(s): `configure`, `create`, `create`, `create`, `create`, `create`, `create`, `create`, `create`, `destroy`, `find`, `findAll`, `locate`, `registerUuidForFindCandidate`, `remove`, `resources`, `unRegisterUuidForFindCandidate`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 17 separate responsibilities: a caller binds to 10 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 17 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
  • Fat interface: AtmosphereResponse (24 abstract methods) modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResponse.java:33 — `AtmosphereResponse` declares 24 abstract methods: `asyncIOWriter`, `close`, `closeStreamOrWriter`, `delegateToNativeResponse`, `destroy`, `destroy`, `destroyable`, `destroyed`, `getAsyncIOWriter`, `getResponse`, `getStatusMessage`, `headers`, `isDestroyable`, `request`, `request`, `resource`, `setResponse`, `uuid`, `write`, `write`, `write`, `write`, `write`, `write`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 24 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 17 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: Broadcaster (30 abstract methods) modules/cpr/src/main/java/org/atmosphere/cpr/Broadcaster.java:48 — `Broadcaster` declares 30 abstract methods: `addAtmosphereResource`, `addBroadcasterLifeCyclePolicyListener`, `addBroadcasterListener`, `awaitAndBroadcast`, `broadcast`, `broadcast`, `broadcast`, `broadcastOnResume`, `delayBroadcast`, `delayBroadcast`, `destroy`, `getAtmosphereResources`, `getBroadcasterConfig`, `getBroadcasterLifeCyclePolicy`, `getID`, `getScope`, `initialize`, `isDestroyed`, `releaseExternalResources`, `removeAtmosphereResource`, `removeBroadcasterLifeCyclePolicyListener`, `removeBroadcasterListener`, `resumeAll`, `scheduleFixedBroadcast`, `scheduleFixedBroadcast`, `setBroadcasterConfig`, `setBroadcasterLifeCyclePolicy`, `setID`, `setScope`, `setSuspendPolicy`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 30 declarations carry 26 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 26 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: BroadcasterFactory (16 abstract methods) modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterFactory.java:27 — `BroadcasterFactory` declares 16 abstract methods under just 10 distinct name(s): `add`, `addBroadcasterListener`, `broadcasterListeners`, `configure`, `destroy`, `get`, `get`, `get`, `lookup`, `lookup`, `lookup`, `lookup`, `lookupAll`, `remove`, `remove`, `removeBroadcasterListener`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 16 separate responsibilities: a caller binds to 10 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 16 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
X7 · Silent fallback defaults · Silent fallback default in catch · ×6
  • Silent fallback default in catch modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java:563 — `broadcasterIdFor` swallows every exception into `return "replay"` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing.
  • Silent fallback default in catch modules/ai/src/main/java/org/atmosphere/ai/resume/RunReattachSupport.java:554 — `filtersFor` swallows every exception into `return java.util.List.of()` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing.
  • Silent fallback default in catch modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:410 — `sha256` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing.
  • Silent fallback default in catch modules/integration-tests/e2e/helpers/llm-rate-budget.ts:50 — `readStamps` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch modules/spring-boot-starter/frontend/src/transports/a2a.ts:42 — `parseA2aData` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch modules/spring-boot-starter/frontend/src/composables/useAtmosphereChat.ts:338 — `useAtmosphereChat.ownMemberIds` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing.
R7 · Dead Code · Unused export 'ConnectionStatusBadge' · ×2
  • Unused export 'ConnectionStatusBadge' atmosphere.js/src/hooks/react/ConnectionStatusBadge.tsx:104 — Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/react/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/react/index.ts in the same commit, or the barrel will import a name that no longer exists.
  • Unused export 'ConnectionStatusBadge' atmosphere.js/src/hooks/vue/ConnectionStatusBadge.ts:71 — Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/vue/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/vue/index.ts in the same commit, or the barrel will import a name that no longer exists.
R7 · Dead Code · Unused export 'useConnectionStatus' · ×2
  • Unused export 'useConnectionStatus' atmosphere.js/src/hooks/react/useConnectionStatus.ts:65 — Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/react-native/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/react-native/index.ts in the same commit, or the barrel will import a name that no longer exists.
  • Unused export 'useConnectionStatus' atmosphere.js/src/hooks/vue/useConnectionStatus.ts:51 — Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/vue/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/vue/index.ts in the same commit, or the barrel will import a name that no longer exists.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D26 · Project Cohesion · Split modules/ai · ×1
  • Split modules/ai — A sprawling AI subdirectory whose namespaces are governance/resume/llm/tool/tape/decision/code/approval/batch/governance/rag/acs/scope/guardrails across 49 namespaces. Suggested:
D26 · Project Cohesion · Split modules/cpr · ×1
  • Split modules/cpr — A huge modules/cpr project whose namespaces are all named config/service/util/websocket/interceptor/annotation/inject/cache/auth/room/protocol and many more under one cohesive CPR framework. Suggested:
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D31 · IaC & Container Security · Low IaC · ×1
  • REDACTED
D34 · Knowledge Freshness · Orphaned files with no living knowledge · ×1
  • Orphaned files with no living knowledge — 1 of 1214 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 1214 of the 1722 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each — most significant first: modules/cpr/src/main/java/org/atmosphere/util/ChunkConcatReaderPool.java. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
D34 · Knowledge Freshness · Orphaned file · ×1
  • Orphaned file modules/cpr/src/main/java/org/atmosphere/util/ChunkConcatReaderPool.java:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P10 · Library API & versioning · Large public API surface · ×1
  • Large public API surface — 1980/2501 types (79%) declared in the published library are public. For a library, every public type is a stability contract — keep implementation types off the surface and expose only the intended API.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 54/56 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`, `cli/npx`.
PF1 · Benchmark discipline · Benchmarks don't track allocations · ×1
  • Benchmarks don't track allocations modules/benchmarks/src/main/java/org/atmosphere/benchmarks/jmh/PolicyEvalBenchmark.java — A JMH/Jetpack Benchmark suite exists but nothing turns on its allocation measurement — allocations (the main way hot code pressures a garbage collector or allocator) aren't being measured.
R7 · Dead Code · Unused export 'ConnectionStatusBadgeRN' · ×1
  • Unused export 'ConnectionStatusBadgeRN' atmosphere.js/src/hooks/react-native/ConnectionStatusBadgeRN.tsx:92 — Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/react-native/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/react-native/index.ts in the same commit, or the barrel will import a name that no longer exists.
R7 · Dead Code · Unused export 'useAtmosphereRN' · ×1
  • Unused export 'useAtmosphereRN' atmosphere.js/src/hooks/react-native/useAtmosphereRN.ts:80 — Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/react-native/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/react-native/index.ts in the same commit, or the barrel will import a name that no longer exists.
R7 · Dead Code · Unused export 'usePresence' · ×1
  • Unused export 'usePresence' atmosphere.js/src/hooks/react/usePresence.ts:62 — Nothing ultimately consumes this binding: its only referrer is the re-export in atmosphere.js/src/hooks/react-native/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in atmosphere.js/src/hooks/react-native/index.ts in the same commit, or the barrel will import a name that no longer exists.
R7 · Dead Code · Unused private field 'channel' · ×1
  • Unused private field 'channel' modules/integration-tests/e2e/helpers/grpc-client.ts:14 — Nothing in its class reads or assigns this private field (for a constructor parameter property: it is stored and never read), and no string key or test reaches it by name. Remove it, or use it where it was meant to take effect.
R7 · Dead Code · Unused module-local declaration 'initializeSession' · ×1
  • Unused module-local declaration 'initializeSession' modules/integration-tests/e2e/mcp-bidirectional.spec.ts:39 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
X2 · Cancellation propagation · Not all async functions that make a request accept an AbortSignal · ×1
  • Not all async functions that make a request accept an AbortSignal — Only 9/19 async functions that make a cancellable request (fetch, axios, ky, ofetch) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up — a page navigated away from, an unmounted component, a timed-out job. Take a `signal` (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
X5 · Nullable reference types · Strict null checking is not enabled everywhere the repository type-checks · ×1
  • Strict null checking is not enabled everywhere the repository type-checks — 9/10 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
X5 · Nullable reference types · Null assertions (`!`) reduce the strict null checking score · ×1
  • Null assertions (`!`) reduce the strict null checking score — ~0.5 `!` null assertions per 1k TypeScript source lines — 9 assertion(s) across the 18302 source line(s) of the 112 TypeScript file(s) read, which is the only code the operator asserts anything in (a `!` in a `.js` file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: modules/spring-boot-starter/frontend/src/lib/tapeGraph.ts (3), atmosphere.js/src/core/atmosphere.ts (1), atmosphere.js/src/core/handler-gate.ts (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic `strictNullChecks` exists to produce.
X7 · Silent fallback defaults · Silent fallback default on parse failure · ×1
  • Silent fallback default on parse failure modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:1087 — `decodePageToken` returns `0` when `NumberFormatException` is thrown, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing.
X9 · Subsumed condition operand · Subsumed condition operand · ×1
  • Subsumed condition operand modules/ai/src/test/java/org/atmosphere/ai/governance/EvidenceConsumerGrepPinTest.java:283 — `t.startsWith("*/")` can never decide this `||` — every value satisfying `t.startsWith("*/")` also satisfies `t.startsWith("*")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.

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)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-345cc05ae362407284c6807cb2bb7d43/history.json --exit-code 0 --source .3artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-345cc05ae362407284c6807cb2bb7d43/tree.json --exit-code 0 --source .1artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off .228artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .4artifacts/raw/osv-scanner.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0—
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .3artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 70 file(s) — `atmosphere.js/src/index.ts`, `atmosphere.js/src/react-native/rn-types.d.ts`, `atmosphere.js/src/streaming/types.ts`, `atmosphere.js/src/types/index.ts`, `modules/admin/src/main/java/org/atmosphere/admin/AdminEventProducer.java`, … (+65 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.0—
D40 · Network Egress Confinementruntime-hardening—runtime-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-hardening—runtime-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-hardening—runtime-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—
D43 · Malicious Dependenciesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .0artifacts/raw/osv-scanner.json
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0—

Run 01a16518-58f9-70cf-9838-0ee0bbbb0ad7 · 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